From 7963c5945131779d4fd4a8ebb85d17f4e3119b2b Mon Sep 17 00:00:00 2001 From: "A. Demant" Date: Tue, 6 Nov 2018 06:07:07 +0100 Subject: [PATCH] correct iron_ingot -> steel_ingot --- tools.lua | 4 +++- tools.txt | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tools.lua b/tools.lua index 14613e1..9beb4ff 100644 --- a/tools.lua +++ b/tools.lua @@ -9,7 +9,7 @@ local tool_definition = farming.import_csv(farming.path.."/tools.txt",crop_cols) for i,line in pairs(tool_definition) do - tool_def={description=line.name:gsub("_"," "), + tool_def={description=S(line.name:gsub("_"," ")), inventory_image="farming_tool_"..line.name..".png", max_uses=line.max_uses, farming_change=line.farming_change, @@ -27,6 +27,8 @@ for i,line in pairs(tool_definition) do } } local tooltype=line.name:split("_")[1] + print(tooltype) + print(dump(tool_def)) if tooltype=="billhook" then farming.register_billhook("farming:"..line.name,tool_def) elseif tooltype=="scythe" then diff --git a/tools.txt b/tools.txt index a1d293e..07ba807 100644 --- a/tools.txt +++ b/tools.txt @@ -1,10 +1,10 @@ name,material,max_uses,farming_change,max_level,snappy,damage,times billhook_wood,group:wood,100,10,2,3,3,5 billhook_stone,group:stone,200,6,2,3,4,4.5 -billhook_steel,default:iron_ingot,400,3,3,3,5,3.8 +billhook_steel,default:steel_ingot,400,3,3,3,5,3.8 scythe_wood,group:wood,60,10,2,3,4,5 scythe_stone,group:stone,110,6,2,3,5,4.4 -scythe_steel,default:iron_ingot,250,3,3,3,6,3.7 +scythe_steel,default:steel_ingot,250,3,3,3,6,3.7 hoe_wood,group:wood,60,10,2,3,4,5 hoe_stone,group:stone,110,6,2,3,5,4.4 -hoe_steel,default:iron_ingot,250,3,3,3,6,3.7 +hoe_steel,default:steel_ingot,250,3,3,3,6,3.7