mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-09-29 16:41:52 +02:00
Implement starve damage
This commit is contained in:
parent
a3af1cdf6e
commit
9c75cd1a79
@ -164,7 +164,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
if mod_death_messages then
|
if mod_death_messages then
|
||||||
mcl_death_messages.player_damage(player, S("@1 starved to death.", name))
|
mcl_death_messages.player_damage(player, S("@1 starved to death.", name))
|
||||||
end
|
end
|
||||||
player:set_hp(hp-1)
|
mcl_util.deal_damage(player, 1, {type = "starve"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user