mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 20:47:43 +01:00
Ports Stasis Cages from Baystation (#6017)
* Ports Stasis Cages from Baystation
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user