Files
cacaus-arcade/data/imp_mood.lua
JailGamer a43173a940 [WIP] Treballant en el jefe. Organitzant codi (Ha deixat de funcionar quasi tot)
[FIX] Els warps reutilitzats mantenien l'estat anterior
[NEW] Funcio distancia(a, b)
2026-04-12 23:06:20 +02:00

15 lines
390 B
Lua

function imp:choose_mood()
if self.mood==self.moods.stop then return end
if self.timers.mood<=0 then
self.mood=self.moods[math.random(2)+1] -- chase o avoid
self:reset_mood_timer()
end
end
function imp:reset_mood_timer( value ) -- OK
if DEBUG_FN_NAME then print("reset_mood_timer") end
value = value or 150
self.timers.mood = value
return value
end