Merge pull request #10961 from Citadel-Station-13/Ghommie-patch-2-1

Fixes an issue with the nearsighted prescription glasses taking over worn eyewear
This commit is contained in:
Lin
2020-02-10 20:28:57 +00:00
committed by GitHub
+2 -3
View File
@@ -144,9 +144,8 @@ GLOBAL_LIST_EMPTY(family_heirlooms)
/datum/quirk/nearsighted/on_spawn()
var/mob/living/carbon/human/H = quirk_holder
var/obj/item/clothing/glasses/regular/glasses = new(get_turf(H))
H.put_in_hands(glasses)
H.equip_to_slot(glasses, SLOT_GLASSES)
H.regenerate_icons() //this is to remove the inhand icon, which persists even if it's not in their hands
if(!H.equip_to_slot_if_possible(glasses, SLOT_GLASSES))
H.put_in_hands(glasses)
/datum/quirk/nyctophobia
name = "Nyctophobia"