From c861c17025b3e360d81bb1f2410f2b1a601452f5 Mon Sep 17 00:00:00 2001 From: Matt Atlas Date: Wed, 21 Oct 2020 03:54:37 +0200 Subject: [PATCH] Fixes prescription glasses not fixing nearsightedness (#10308) --- code/controllers/subsystems/job.dm | 4 +-- html/changelogs/mattatlas-eyent.yml | 41 +++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 html/changelogs/mattatlas-eyent.yml diff --git a/code/controllers/subsystems/job.dm b/code/controllers/subsystems/job.dm index abdd8523c33..14284b53425 100644 --- a/code/controllers/subsystems/job.dm +++ b/code/controllers/subsystems/job.dm @@ -391,7 +391,7 @@ var/equipped = H.equip_to_slot_or_del(new /obj/item/clothing/glasses/regular(H), slot_glasses) if(equipped != 1) var/obj/item/clothing/glasses/G = H.glasses - G.prescription = TRUE + G.prescription = 7 if(H.species && !H.species_items_equipped) H.species.equip_later_gear(H) @@ -527,7 +527,7 @@ var/equipped = H.equip_to_slot_or_del(new /obj/item/clothing/glasses/regular(H), slot_glasses) if(equipped != 1) var/obj/item/clothing/glasses/G = H.glasses - G.prescription = TRUE + G.prescription = 7 G.autodrobe_no_remove = TRUE if(H.species && !H.species_items_equipped) diff --git a/html/changelogs/mattatlas-eyent.yml b/html/changelogs/mattatlas-eyent.yml new file mode 100644 index 00000000000..58ad9fbe0b6 --- /dev/null +++ b/html/changelogs/mattatlas-eyent.yml @@ -0,0 +1,41 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# wip (For works in progress) +# tweak +# soundadd +# sounddel +# rscadd (general adding of nice things) +# rscdel (general deleting of nice things) +# imageadd +# imagedel +# maptweak +# spellcheck (typo fixes) +# experiment +# balance +# admin +# backend +# security +# refactor +################################# + +# Your name. +author: MattAtlas + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - bugfix: "Nearsightedness has been fixed."