Life changes (#19560)

Refactored Life() to receive seconds per tick and times fired as
parameters.
Life() now cannot be slept in, turned various sleepings into async calls
procs.
Optimized mob AI subsystems, gave them new priorities levels and flags.
Grab upgrades are now elaborated asynchronously, tweaked them to avoid
stacking multiple upgrades.
Fixed plains tyrants keeping sending messages about stomping even if
dead.
This commit is contained in:
Fluffy
2024-07-08 12:48:18 +00:00
committed by GitHub
parent 78348238a3
commit b3a4aa501f
55 changed files with 350 additions and 222 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/mob/abstract/eye/Life()
/mob/abstract/eye/Life(seconds_per_tick, times_fired)
..()
// If we lost our client, reset the list of visible chunks so they update properly on return
if(owner == src && !client)
@@ -145,7 +145,7 @@ Transfer_mind is there to check if mob is being deleted/not going to have a body
Works together with spawning an observer, noted above.
*/
/mob/abstract/observer/Life()
/mob/abstract/observer/Life(seconds_per_tick, times_fired)
..()
if(!loc) return
if(!client) return 0