1
0
Fork 0

Function name consistency

test_mob_tweaks_branch
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
self:check_gowp(dtime)
elseif self.state == "walk" then
self:do_state_walk()
self:do_states_walk()
elseif self.state == "runaway" then
-- runaway when punched
self:do_states_runaway()
elseif self.state == "attack" then
-- attack routines (explode, dogfight, shoot, dogshoot)
if self:do_state_attack(dtime) then
if self:do_states_attack(dtime) then
return true
end
end

View File

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

View File

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