From 57190cb10e77376346beb56edb39103d72ac43dd Mon Sep 17 00:00:00 2001 From: Coder12a <32314020+Coder12a@users.noreply.github.com> Date: Sun, 25 Mar 2018 18:53:30 -0700 Subject: [PATCH] More damage. --- mods/siege_hammer/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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