Ports Stasis Cages from Baystation (#6017)

* Ports Stasis Cages from Baystation
This commit is contained in:
Novacat
2019-03-30 14:55:52 -04:00
committed by VirgoBot
parent a2ca1346c8
commit 63c6e7f308
7 changed files with 118 additions and 0 deletions
+3
View File
@@ -11,6 +11,9 @@
if(holder.incapacitated(INCAPACITATION_DISABLED)) // Stunned in some form.
ai_log("can_act() : Incapacited.", AI_LOG_TRACE)
return FALSE
if(holder.instasis()) // In a stasis field.
ai_log("can_act() : In a stasis field.", AI_LOG_TRACE)
return FALSE
return TRUE
// Test if we should switch to STANCE_DISABLE.
+6
View File
@@ -60,6 +60,12 @@
if(myid)
return myid.GetID()
/mob/living/proc/instasis()
/mob/living/simple_mob/instasis()
if(in_stasis)
return TRUE
// Respects move cooldowns as if it had a client.
// Also tries to avoid being superdumb with moving into certain tiles (unless that's desired).
/mob/living/proc/IMove(turf/newloc, safety = TRUE)