mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 08:34:16 +01:00
Update simulated var to bay12 refactors
This commit refactors the simulated var to a missed update from bay12, which prevents the singularity or explosions from breaking lighting.
This commit is contained in:
@@ -5,6 +5,7 @@ var/global/narsie_cometh = 0
|
||||
var/global/list/uneatable = list(
|
||||
/turf/space,
|
||||
/obj/effect/overlay,
|
||||
/atom/movable/lighting_overlay,
|
||||
/mob/dead,
|
||||
/mob/camera,
|
||||
/mob/new_player
|
||||
@@ -222,6 +223,7 @@ var/global/list/uneatable = list(
|
||||
for(var/atom/X in orange(grav_pull,src))
|
||||
// N3X: Move this up here since get_dist is slow.
|
||||
if(is_type_in_list(X, uneatable)) continue
|
||||
if(!X.simulated) continue
|
||||
|
||||
var/dist = get_dist(X, src)
|
||||
|
||||
@@ -265,6 +267,8 @@ var/global/list/uneatable = list(
|
||||
var/gain = 0
|
||||
if(is_type_in_list(A, uneatable))
|
||||
return 0
|
||||
if(!A.simulated)
|
||||
return 0
|
||||
if (istype(A,/mob/living))//Mobs get gibbed
|
||||
var/mob/living/M = A
|
||||
gain = 20
|
||||
@@ -561,6 +565,8 @@ var/global/list/uneatable = list(
|
||||
/obj/machinery/singularity/narsie/consume(var/atom/A)
|
||||
if(is_type_in_list(A, uneatable))
|
||||
return 0
|
||||
if(!A.simulated)
|
||||
return 0
|
||||
if (istype(A,/mob/living))//Mobs get gibbed
|
||||
A:gib()
|
||||
else if(istype(A,/obj))
|
||||
|
||||
Reference in New Issue
Block a user