Sunglasses fix (#9918)

This commit is contained in:
Wowzewow (Wezzy)
2020-09-08 18:10:24 +02:00
committed by GitHub
parent 72ed8a463d
commit ae7c0f2a74
3 changed files with 58 additions and 15 deletions
@@ -33,14 +33,13 @@
glasses["sunglasses, aviator"] = /obj/item/clothing/glasses/fakesunglasses/aviator
glasses["sunglasses, prescription"] = /obj/item/clothing/glasses/fakesunglasses/prescription
glasses["sunglasses, fat"] = /obj/item/clothing/glasses/fakesunglasses/big
gear_tweaks += new/datum/gear_tweak/path(glasses)
/datum/gear/eyes/sunglasses
display_name = "flash-proof sunglasses selection"
display_name = "flash-proof sunglasses selection (Security/Command)"
description = "A selection of flash-proof sunglasses."
path = /obj/item/clothing/glasses/sunglasses
allowed_roles = list("Security Officer", "Head of Security", "Warden", "Security Cadet", "Detective", "Forensic Technician")
allowed_roles = list("Security Officer", "Head of Security", "Warden", "Captain", "Head of Personnel", "Quartermaster", "Internal Affairs Agent", "Detective", "Forensic Technician")
/datum/gear/eyes/sunglasses/New()
..()
+14 -12
View File
@@ -121,7 +121,6 @@ BLIND // can't see anything
attack_self(usr)
/obj/item/clothing/glasses/hud/health/aviator
name = "medical HUD aviators"
desc = "Modified aviator glasses with a toggled health HUD. Comes with bonus prescription overlay."
@@ -139,7 +138,6 @@ BLIND // can't see anything
attack_self(usr)
/obj/item/clothing/glasses/science
name = "science goggles"
desc = "Used to protect your eyes against harmful chemicals!"
@@ -186,7 +184,6 @@ BLIND // can't see anything
attack_self(usr)
/obj/item/clothing/glasses/safety
name = "safety glasses"
desc = "A simple pair of safety glasses. Thinner than their goggle counterparts, for those who can't decide between safety and style."
@@ -365,7 +362,7 @@ BLIND // can't see anything
darkness_view = -1
flash_protection = FLASH_PROTECTION_MODERATE
/obj/item/clothing/glasses/fakesunglasses/Initialize()
/obj/item/clothing/glasses/sunglasses/Initialize()
. = ..()
desc += " Enhanced shielding blocks many flashes."
@@ -380,38 +377,43 @@ BLIND // can't see anything
name = "prescription sunglasses"
prescription = 1
/obj/item/clothing/glasses/sunglasses/prescription/Initialize()
. = ..()
desc += " Comes with built-in prescription lenses."
/obj/item/clothing/glasses/sunglasses/big
desc = "Strangely ancient technology used to help provide rudimentary eye cover."
icon_state = "bigsunglasses"
item_state = "sun"
//For style with no powergaming connotations.
/obj/item/clothing/glasses/fakesunglasses
desc = "Strangely ancient technology used to help provide rudimentary eye cover."
name = "sunglasses"
name = "stylish sunglasses"
desc = "A pair of designer sunglasses."
icon_state = "sun"
item_state = "sun"
darkness_view = -1
/obj/item/clothing/glasses/fakesunglasses/Initialize()
. = ..()
desc += " Doesn't seem like it'll block flashes."
desc += " Doesn't seem like it'll block flashes."
/obj/item/clothing/glasses/fakesunglasses/aviator
name = "aviators"
name = "stylish aviators"
desc = "A pair of designer sunglasses. They should put HUDs in these."
icon_state = "aviator"
item_state = "aviator"
prescription = 1
/obj/item/clothing/glasses/fakesunglasses/prescription
name = "prescription sunglasses"
name = "stylish prescription sunglasses"
prescription = 1
/obj/item/clothing/glasses/fakesunglasses/prescription/Initialize()
. = ..()
desc += " Comes with built-in prescription lenses."
/obj/item/clothing/glasses/fakesunglasses/big
desc = "Strangely ancient technology used to help provide rudimentary eye cover."
icon_state = "bigsunglasses"
item_state = "sun"