diff --git a/mods/siege_hammer/init.lua b/mods/siege_hammer/init.lua index 821e238..df0f930 100644 --- a/mods/siege_hammer/init.lua +++ b/mods/siege_hammer/init.lua @@ -1,4 +1,5 @@ material_Strengths = {} +siegehammer_Damage = 1 minetest.register_chatcommand("node_strength", { params = "", @@ -141,8 +142,7 @@ minetest.register_tool("siege_hammer:siege_hammer", { tmp.fields.siege_health = material_Strengths[realNode.name] end -- Damage code. - -- Remove 0.1 hit point. - tmp.fields.siege_health = tmp.fields.siege_health - 0.1 + tmp.fields.siege_health = tmp.fields.siege_health - siegehammer_Damage health = tmp.fields.siege_health meta:from_table(tmp) end