Add some despawning logic (but do not enable despawning yet)

This commit is contained in:
Wuzzy 2018-09-14 14:48:48 +02:00
parent 67ebf3366f
commit ad2fbb0008
5 changed files with 29 additions and 15 deletions

View file

@ -22,7 +22,7 @@ end
-- Wolf
local wolf = {
type = "animal",
can_despawn = true,
hp_min = 8,
hp_max = 8,
passive = false,
@ -123,6 +123,7 @@ end
-- Tamed wolf (aka “dog”)
local dog = table.copy(wolf)
dog.can_despawn = false
dog.passive = true
dog.hp_min = 20
dog.hp_max = 20