[WIP] Treballant en el jefe. Pattern recovery

This commit is contained in:
2026-04-17 21:57:00 +02:00
parent 82e00e04d1
commit 1b3aa47d9e
3 changed files with 77 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ function imp.new(_hab,_x,_y)
step=0,
moods={stop=0, chase=1, avoid=2, neutral=4},
mood=0, --anterior fight_mode
timers={mood=150,target=250, shot=100, super=200, flip_wait=50}, --anterior *_cooldown
timers={mood=150,target=100, shot=100, super=200, flip_wait=50}, --anterior *_cooldown
move_types={free=0, pattern=1, super=2},
move_type=1, -- anterior movement_type
actions={no_action=0, up=1, down=2, left=4, right=8, jump=16, shot=32, super=64, jumpfwd=128},
@@ -74,6 +74,7 @@ function imp.new(_hab,_x,_y)
check_action_event = imp.check_action_event,
add_action_event = imp.add_action_event,
shot = imp.shot,
pattern_recovery = imp.pattern_recovery,
-- debug
_moure = imp._moure,
_pause = false,
@@ -172,6 +173,7 @@ function imp:update_normal()
-- analisis
self:analyze_env()
self:update_action_events()
if self.analisis.target_reached then self:reset_timer("target") end
-- print_analisis()
-- decisio