Fixes oversight about prescription glasses (#22445)

Co-authored-by: Miraviel <Miraviel@users.noreply.github.com>
This commit is contained in:
Adri
2023-09-19 20:38:39 +02:00
committed by GitHub
parent 5ba2b97fe4
commit d5328f7d7c
2 changed files with 6 additions and 3 deletions
+1 -2
View File
@@ -511,8 +511,7 @@ SUBSYSTEM_DEF(jobs)
if(equipped != 1)
var/obj/item/clothing/glasses/G = H.glasses
if(istype(G) && !G.prescription)
G.prescription = TRUE
G.name = "prescription [G.name]"
G.upgrade_prescription()
H.update_nearsighted_effects()
H.create_log(MISC_LOG, "Spawned as \an [H.dna?.species ? H.dna.species : "Undefined species"] named [H]. [joined_late ? "Joined during the round" : "Roundstart joined"] as job: [rank].")
+5 -1
View File
@@ -204,6 +204,7 @@
desc = "Yarr."
icon_state = "eyepatch"
item_state = "eyepatch"
prescription_upgradable = TRUE
sprite_sheets = list(
"Vox" = 'icons/mob/clothing/species/vox/eyes.dmi',
@@ -263,7 +264,7 @@
desc = "Made by Nerd. Co."
icon_state = "glasses"
item_state = "glasses"
prescription = 1
prescription = TRUE
sprite_sheets = list(
"Vox" = 'icons/mob/clothing/species/vox/eyes.dmi',
@@ -330,6 +331,8 @@
see_in_dark = 0
flash_protect = FLASH_PROTECTION_NONE
tint = FLASH_PROTECTION_NONE
prescription_upgradable = TRUE
sprite_sheets = list(
"Vox" = 'icons/mob/clothing/species/vox/eyes.dmi',
"Drask" = 'icons/mob/clothing/species/drask/eyes.dmi',
@@ -516,6 +519,7 @@
actions_types = list(/datum/action/item_action/toggle)
up = FALSE
tint = FLASH_PROTECTION_NONE
prescription_upgradable = TRUE
sprite_sheets = list(
"Vox" = 'icons/mob/clothing/species/vox/eyes.dmi',