Switch to material glasses

This commit is contained in:
Mark van Alphen
2019-05-06 05:47:49 +02:00
parent 88fd88e25b
commit 6c14ac302c
2 changed files with 9 additions and 14 deletions
+9
View File
@@ -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."
-14
View File
@@ -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, "<span class='warning'>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