Stasis Cages - Bugfixes & QoL (#22982)

changes:
- qol: "Mobs in animal traps can now be transferred directly to Stasis
Cages by click-dragging rather than requiring them to be in a net."
- bugfix: "Mobs can no longer use their ranged attacks while contained
inside objects (including animal traps)."
- bugfix: "Stasis cages now apply stasis only while powered and
correctly clear it when releasing simplemobs."
- bugfix: "Fixes stasis cage transfers race condition freeing trapped
animals randomly."
  - bugfix: "Corrects stasis cage safety-wire status display."
This commit is contained in:
Batrachophreno
2026-08-02 01:41:17 +00:00
committed by GitHub
parent d2e5fbca75
commit 1658eda825
5 changed files with 47 additions and 8 deletions
@@ -369,6 +369,9 @@ ABSTRACT_TYPE(/mob/living/simple_animal/hostile)
/mob/living/simple_animal/hostile/proc/OpenFire(atom/target, ignore_visibility = FALSE)
set waitfor = FALSE
if(!isturf(loc) || captured)
return
if(QDELETED(target))
LoseTarget()
return
@@ -415,6 +418,8 @@ ABSTRACT_TYPE(/mob/living/simple_animal/hostile)
return target_hit
/mob/living/simple_animal/hostile/proc/shoot_wrapper(atom/target, location, user)
if(!isturf(loc))
return
Shoot(target, location, user)
if(casingtype)
new casingtype(loc)