Fix deprecation warnings
Move defined object properties into the initial_properties table.
This commit is contained in:
parent
408e33b76f
commit
699012db80
@ -69,6 +69,7 @@ local function mummy_update_visuals_def(self)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local MUMMY_DEF = {
|
local MUMMY_DEF = {
|
||||||
|
initial_properties = {
|
||||||
hp_max = mummy_hp,
|
hp_max = mummy_hp,
|
||||||
physical = true,
|
physical = true,
|
||||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||||
@ -77,6 +78,7 @@ local MUMMY_DEF = {
|
|||||||
mesh = mummy_mesh,
|
mesh = mummy_mesh,
|
||||||
textures = mummy_texture,
|
textures = mummy_texture,
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
|
},
|
||||||
npc_anim = 0,
|
npc_anim = 0,
|
||||||
timer = 0,
|
timer = 0,
|
||||||
turn_timer = 0,
|
turn_timer = 0,
|
||||||
@ -117,6 +119,7 @@ local function check_if_mummy_spawner_entity_exists(pos, self)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local spawner_DEF = {
|
local spawner_DEF = {
|
||||||
|
initial_properties = {
|
||||||
hp_max = 1,
|
hp_max = 1,
|
||||||
physical = false,
|
physical = false,
|
||||||
pointable = false,
|
pointable = false,
|
||||||
@ -125,8 +128,9 @@ local spawner_DEF = {
|
|||||||
mesh = mummy_mesh,
|
mesh = mummy_mesh,
|
||||||
textures = mummy_texture,
|
textures = mummy_texture,
|
||||||
makes_footstep_sound = false,
|
makes_footstep_sound = false,
|
||||||
timer = 0,
|
|
||||||
automatic_rotate = math.pi * 2.9,
|
automatic_rotate = math.pi * 2.9,
|
||||||
|
},
|
||||||
|
timer = 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
spawner_DEF.on_activate = function(self)
|
spawner_DEF.on_activate = function(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user