Fixes eyes of the gods bugs (#20266)

This commit is contained in:
Qwertytoforty
2023-01-23 23:28:46 +01:00
committed by GitHub
parent f03b79b456
commit 4efeb71bf8
2 changed files with 5 additions and 1 deletions
@@ -918,7 +918,7 @@ It'll return null if the organ doesn't correspond, so include null checks when u
if(G.invis_override)
H.see_invisible = G.invis_override
else
H.see_invisible = min(G.invis_view, H.see_invisible)
H.see_invisible = max(G.invis_view, H.see_invisible) //Max, whichever is better
if(!isnull(G.lighting_alpha))
H.lighting_alpha = min(G.lighting_alpha, H.lighting_alpha)
+4
View File
@@ -319,6 +319,9 @@
lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
flash_protect = FLASH_PROTECTION_VERYVUNERABLE //Flashing is it's weakness. I don't care how many protections you have up
owner?.client?.color = LIGHT_COLOR_PURE_CYAN
colourmatrix = list(0, 0, 0,\
0, 1, 0,\
0, 0, 1)
owner.update_sight()
owner.update_eyes_overlay_layer()
@@ -330,6 +333,7 @@
lighting_alpha = initial(lighting_alpha)
flash_protect = initial(flash_protect)
owner?.client?.color = null
colourmatrix = null
owner.update_sight()
owner.update_eyes_overlay_layer()