Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local oldhp = tonumber(player:get_attribute("hp:hp"))
- local newhp = 0
- hp_change = tonumber(hp_change)
- if hp_change <= 0 then
- newhp = oldhp - hp_change
- else
- newhp = oldhp + hp_change
- end
- minetest.log("action",name.." -> "..newhp)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement