Fix pAI shenanigans

This commit is contained in:
Jerry Wester
2022-12-10 22:30:46 -07:00
parent f7ac3c7624
commit bbaf55a8f5
6 changed files with 95 additions and 49 deletions
+3
View File
@@ -122,6 +122,9 @@
module.on_deactivation()
activating = TRUE
to_chat(wearer, span_notice("MODsuit [active ? "shutting down" : "starting up"]."))
if(ai)
to_chat(ai, span_notice("MODsuit [active ? "shutting down" : "starting up"]."))
if(do_after(wearer, MOD_ACTIVATION_STEP_TIME, target = wearer, required_mobility_flags = NONE))
to_chat(wearer, span_notice("[boots] [active ? "relax their grip on your legs" : "seal around your feet"]."))
playsound(src, 'sound/mecha/mechmove03.ogg', 25, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)