mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
General fixes
This commit is contained in:
@@ -42,6 +42,7 @@ SUBSYSTEM_DEF(mobs)
|
|||||||
|
|
||||||
if(!M || QDELETED(M))
|
if(!M || QDELETED(M))
|
||||||
mob_list -= M
|
mob_list -= M
|
||||||
|
continue
|
||||||
else if(M.low_priority && !(process_z[get_z(M)]))
|
else if(M.low_priority && !(process_z[get_z(M)]))
|
||||||
slept_mobs++
|
slept_mobs++
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
for(var/obj/item/organ/I in internal_organs)
|
for(var/obj/item/organ/I in internal_organs)
|
||||||
I.removed()
|
I.removed()
|
||||||
if(istype(loc,/turf))
|
if(isturf(I?.loc)) // Some organs qdel themselves or other things when removed
|
||||||
I.throw_at(get_edge_target_turf(src,pick(alldirs)),rand(1,3),30)
|
I.throw_at(get_edge_target_turf(src,pick(alldirs)),rand(1,3),30)
|
||||||
|
|
||||||
for(var/obj/item/organ/external/E in src.organs)
|
for(var/obj/item/organ/external/E in src.organs)
|
||||||
|
|||||||
Reference in New Issue
Block a user