mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user