mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 15:45:25 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user