[FIX] Corregits impactes mentres warping en el jefe
This commit is contained in:
+4
-4
@@ -41,7 +41,7 @@ function imp.new(_hab,_x,_y)
|
|||||||
pattern= pattern.new(),
|
pattern= pattern.new(),
|
||||||
analisis = {}, -- memoria per a guardar el resultat de l'analisis
|
analisis = {}, -- memoria per a guardar el resultat de l'analisis
|
||||||
step_length=1,
|
step_length=1,
|
||||||
energia=1,
|
energia=21,
|
||||||
max_energia=21,
|
max_energia=21,
|
||||||
jump_height=0,
|
jump_height=0,
|
||||||
max_jump_height=24,
|
max_jump_height=24,
|
||||||
@@ -202,10 +202,11 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function imp:update_disappearing()
|
function imp:update_disappearing()
|
||||||
print_dbg(">>>>>>>>>> update_disappearing "..self.wait)
|
-- print_dbg(">>>>>>>>>> update_disappearing "..self.wait)
|
||||||
if not self.enabled then return end
|
-- if not self.enabled then return end
|
||||||
|
|
||||||
-- Que pasa quan "mor"
|
-- Que pasa quan "mor"
|
||||||
|
self.enabled = false
|
||||||
local step_time = self.disappear_time
|
local step_time = self.disappear_time
|
||||||
if self.can_warp then
|
if self.can_warp then
|
||||||
step_time = self.disappear_time/2; -- warp, wait
|
step_time = self.disappear_time/2; -- warp, wait
|
||||||
@@ -223,7 +224,6 @@ print_dbg(">>>>>>>>>> update_disappearing "..self.wait)
|
|||||||
self.moure = self.noop
|
self.moure = self.noop
|
||||||
else
|
else
|
||||||
if not self.warping then
|
if not self.warping then
|
||||||
self.enabled = false
|
|
||||||
print("END BOSS")
|
print("END BOSS")
|
||||||
-- stages.stage1_boss_finished()
|
-- stages.stage1_boss_finished()
|
||||||
states:executar("stage1_boss_outro", true)
|
states:executar("stage1_boss_outro", true)
|
||||||
|
|||||||
Reference in New Issue
Block a user