From 88fd88e25bce4a37fa98b9b389667495c148a910 Mon Sep 17 00:00:00 2001 From: Mark van Alphen Date: Mon, 6 May 2019 05:29:04 +0200 Subject: [PATCH 1/2] Add custom glasses for Reyblood --- code/modules/customitems/item_defines.dm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index d2b32f720cf..021146e84dd 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -1785,4 +1785,18 @@ item_state = "voxbodysuit" item_color = "voxbodysuit" body_parts_covered = HEAD|UPPER_TORSO|LOWER_TORSO|LEGS|ARMS - species_fit = list("Vox") \ No newline at end of file + species_fit = list("Vox") + +/obj/item/clothing/glasses/night/fluff/reyblood //Reyblood: All characters + name = "Custom Night Vision Goggles" + desc = "These customized night vision goggles completely remove all darkness." + lighting_alpha = LIGHTING_PLANE_ALPHA_INVISIBLE + + var/limited_to_ckey = "reyblood" + +/obj/item/clothing/glasses/night/fluff/reyblood/mob_can_equip(mob/user, slot) + . = ..() + + if(. && user.ckey != limited_to_ckey) + to_chat(user, "These glasses can only be used by [limited_to_ckey], as they are not able to play the game with lighting enabled due to hardware limitations.") + . = FALSE From 6c14ac302c3d376d1100eef293dad1ef7248acf1 Mon Sep 17 00:00:00 2001 From: Mark van Alphen Date: Mon, 6 May 2019 05:47:49 +0200 Subject: [PATCH 2/2] Switch to material glasses --- code/modules/clothing/glasses/glasses.dm | 9 +++++++++ code/modules/customitems/item_defines.dm | 14 -------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index b527bb2717d..aa123156775 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -177,6 +177,15 @@ flags = NODROP flags_cover = null +/obj/item/clothing/glasses/material/lighting + name = "Neutron Goggles" + desc = "These odd glasses use a form of neutron-based imaging to completely negate the effects of light and darkness." + origin_tech = null + vision_flags = 0 + + flags = NODROP + lighting_alpha = LIGHTING_PLANE_ALPHA_INVISIBLE + /obj/item/clothing/glasses/regular name = "prescription glasses" desc = "Made by Nerd. Co." diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index 021146e84dd..6181644ffc8 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -1786,17 +1786,3 @@ item_color = "voxbodysuit" body_parts_covered = HEAD|UPPER_TORSO|LOWER_TORSO|LEGS|ARMS species_fit = list("Vox") - -/obj/item/clothing/glasses/night/fluff/reyblood //Reyblood: All characters - name = "Custom Night Vision Goggles" - desc = "These customized night vision goggles completely remove all darkness." - lighting_alpha = LIGHTING_PLANE_ALPHA_INVISIBLE - - var/limited_to_ckey = "reyblood" - -/obj/item/clothing/glasses/night/fluff/reyblood/mob_can_equip(mob/user, slot) - . = ..() - - if(. && user.ckey != limited_to_ckey) - to_chat(user, "These glasses can only be used by [limited_to_ckey], as they are not able to play the game with lighting enabled due to hardware limitations.") - . = FALSE