1
0
Fork 0

Function name consistency

This commit is contained in:
ancientmarinerdev 2023-01-02 00:58:23 +00:00
parent 5faf060122
commit f8ae702ce4
3 changed files with 4 additions and 4 deletions

View File

@ -293,13 +293,13 @@ function mob_class:do_states(dtime)
elseif self.state == PATHFINDING then elseif self.state == PATHFINDING then
self:check_gowp(dtime) self:check_gowp(dtime)
elseif self.state == "walk" then elseif self.state == "walk" then
self:do_state_walk() self:do_states_walk()
elseif self.state == "runaway" then elseif self.state == "runaway" then
-- runaway when punched -- runaway when punched
self:do_states_runaway() self:do_states_runaway()
elseif self.state == "attack" then elseif self.state == "attack" then
-- attack routines (explode, dogfight, shoot, dogshoot) -- attack routines (explode, dogfight, shoot, dogshoot)
if self:do_state_attack(dtime) then if self:do_states_attack(dtime) then
return true return true
end end
end end

View File

@ -807,7 +807,7 @@ function mob_class:check_aggro(dtime)
self._check_aggro_timer = self._check_aggro_timer + dtime self._check_aggro_timer = self._check_aggro_timer + dtime
end end
function mob_class:do_state_attack (dtime) function mob_class:do_states_attack (dtime)
local yaw = self.object:get_yaw() or 0 local yaw = self.object:get_yaw() or 0
local s = self.object:get_pos() local s = self.object:get_pos()

View File

@ -793,7 +793,7 @@ function mob_class:teleport(target)
end end
end end
function mob_class:do_state_walk() function mob_class:do_states_walk()
local yaw = self.object:get_yaw() or 0 local yaw = self.object:get_yaw() or 0
local s = self.object:get_pos() local s = self.object:get_pos()