[MIRROR] Fixes AI lag by re-adding idle mode to all AI that was lost with the simple mob to basic mob conversion. (#27296)

Fixes AI lag by re-adding idle mode to all AI that was lost with the simple mob to basic mob conversion.

Co-authored-by: Iamgoofball <iamgoofball@gmail.com>
Co-authored-by: Waterpig <wtryoutube@seznam.cz>
This commit is contained in:
SkyratBot
2024-04-25 16:39:06 +02:00
committed by GitHub
co-authored by Iamgoofball Waterpig
parent 89677f37ba
commit 2429a2821a
8 changed files with 47 additions and 8 deletions
@@ -21,6 +21,7 @@
var/fake_dt = SSai_controllers.wait * 0.1
// Set AI - AIs by default are off in z-levels with no client, we have to force it on.
biter.ai_controller.set_ai_status(AI_STATUS_ON)
biter.ai_controller.can_idle = FALSE
// Select behavior - this will queue finding the cable
biter.ai_controller.SelectBehaviors(fake_dt)
// Process behavior - this will execute the "locate the cable" behavior