From c3cb1b71bfb7262bcbb5d23ad300f03bd2d6bcd6 Mon Sep 17 00:00:00 2001 From: Alberyk Date: Sat, 7 Apr 2018 06:28:21 -0300 Subject: [PATCH] Fixes the runtime with the new hud eyespatches (#4548) --- code/modules/clothing/glasses/glasses.dm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index d9d4d98a96f..c086c34947f 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -120,6 +120,7 @@ src.icon_state = initial(icon_state) to_chat(usr, "You change \the [src] to cover the [src.flipped ? "left" : "right"] eye.") update_clothing_icon() + update_icon() /obj/item/clothing/glasses/monocle name = "monocle" @@ -414,12 +415,18 @@ hud = /obj/item/clothing/glasses/hud/security eye_color = COLOR_BLUE +/obj/item/clothing/glasses/eyepatch/hud/security/process_hud(var/mob/M) + process_sec_hud(M, 1) + /obj/item/clothing/glasses/eyepatch/hud/medical name = "MEDpatch" desc = "A Medical-type heads-up display that connects directly to the optic nerve of the user, giving you information about a patient your department will likely ignore." hud = /obj/item/clothing/glasses/hud/health eye_color = COLOR_CYAN +/obj/item/clothing/glasses/eyepatch/hud/medical/process_hud(var/mob/M) + process_med_hud(M, 1) + /obj/item/clothing/glasses/eyepatch/hud/meson name = "MESpatch" desc = "An optical meson scanner display that connects directly to the optic nerve of the user, giving you cool green vision at the low cost of your only other eye." @@ -453,7 +460,7 @@ see_invisible = SEE_INVISIBLE_NOLIGHTING eye_color = COLOR_ORANGE -/obj/item/clothing/glasses/eyepatch/hud/thermal/New() +/obj/item/clothing/glasses/eyepatch/hud/thermal/Initialize() ..() overlay = global_hud.thermal @@ -471,7 +478,7 @@ see_invisible = SEE_INVISIBLE_NOLIGHTING eye_color = COLOR_GREEN -/obj/item/clothing/glasses/eyepatch/hud/night/New() +/obj/item/clothing/glasses/eyepatch/hud/night/Initialize() ..() overlay = global_hud.nvg