Allows glasses to set the see_invisible of their wearer.
This commit is contained in:
mwerezak
2015-07-31 01:33:43 -04:00
parent 43083062c7
commit 47d30a49a0
4 changed files with 8 additions and 9 deletions
+5 -5
View File
@@ -1244,6 +1244,9 @@
else
seer = 0
if(!seer)
see_invisible = SEE_INVISIBLE_LIVING
var/equipped_glasses = glasses
var/obj/item/weapon/rig/rig = back
if(istype(rig) && rig.visor)
@@ -1253,9 +1256,6 @@
if(equipped_glasses)
process_glasses(equipped_glasses)
if(!seer)
see_invisible = SEE_INVISIBLE_LIVING
if(healths)
if (analgesic > 100)
healths.icon_state = "health_health_numb"
@@ -1403,8 +1403,8 @@
sight |= G.vision_flags
if(!druggy && !seer)
see_invisible = SEE_INVISIBLE_MINIMUM
if(istype(G,/obj/item/clothing/glasses/night) && !seer)
see_invisible = SEE_INVISIBLE_MINIMUM
if(G.see_invisible >= 0)
see_invisible = G.see_invisible
/* HUD shit goes here, as long as it doesn't modify sight flags */
// The purpose of this is to stop xray and w/e from preventing you from using huds -- Love, Doohl
var/obj/item/clothing/glasses/hud/O = G