Dead carp no longer block lasers / interact weirdly (#28487)

* fucking carp

* dead carp don't swarm

* Apply suggestions from code review

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>

---------

Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2025-02-22 12:47:38 -05:00
committed by GitHub
parent 38642d5888
commit 3f60bb37e7
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -27,6 +27,10 @@
return ..()
/datum/component/swarming/proc/join_swarm(datum/source, atom/movable/arrived, atom/old_loc, list/atom/old_locs)
if(isliving(arrived))
var/mob/living/our_mob = arrived
if(our_mob.stat == DEAD)
return
var/datum/component/swarming/other_swarm = arrived.GetComponent(/datum/component/swarming)
if(!other_swarm)
return