this is acutally is a better fix

my first commit didnt account for the possibility that the revealed item could be destroyed, this way also eliminates another if statement. BUT it still goes through the full cycle for the objects(they still appear translucent for a time)
This commit is contained in:
Kugamo
2020-08-29 19:03:27 -05:00
parent 811dd2c454
commit 702fbbfdb3
+1 -3
View File
@@ -72,9 +72,7 @@ REAGENT SCANNER
var/turf/U = O.loc
if(U && U.intact)
O.invisibility = 101
O.alpha = 255
if(O.alpha != 255)
O.alpha = 255
O.alpha = 255
for(var/mob/living/M in T.contents)
var/oldalpha = M.alpha
if(M.alpha < 255 && istype(M))