Skip to content

Commit

Permalink
[MIRROR] Adds prescription versions of aviator HUDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbotkin authored and SierraHelper committed Apr 13, 2024
1 parent 41882cd commit 25aa276
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
3 changes: 3 additions & 0 deletions code/modules/client/preference_setup/loadout/lists/eyegear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
options["Goggles, corrective"] = /obj/item/clothing/glasses/hud/health/goggle/prescription
options["Eyepatch"] = /obj/item/clothing/glasses/eyepatch/hud/medical
options["Aviators"] = /obj/item/clothing/glasses/hud/health/aviators
options["Aviators, corrective"] = /obj/item/clothing/glasses/hud/health/aviators/prescription
gear_tweaks += new /datum/gear_tweak/path (options)


Expand All @@ -94,6 +95,7 @@
options["Goggles, corrective"] = /obj/item/clothing/glasses/meson/prescription
options["Eyepatch"] = /obj/item/clothing/glasses/eyepatch/hud/meson
options["Aviators"] = /obj/item/clothing/glasses/meson/aviators
options["Aviators, corrective"] = /obj/item/clothing/glasses/meson/aviators/prescription
gear_tweaks += new /datum/gear_tweak/path (options)


Expand All @@ -110,6 +112,7 @@
options["HUD"] = /obj/item/clothing/glasses/hud/janitor
options["HUD, corrective"] = /obj/item/clothing/glasses/hud/janitor/prescription
options["Aviators"] = /obj/item/clothing/glasses/hud/janitor/aviators
options["Aviators, corrective"] = /obj/item/clothing/glasses/hud/janitor/aviators/prescription
gear_tweaks += new /datum/gear_tweak/path (options)


Expand Down
5 changes: 4 additions & 1 deletion code/modules/clothing/glasses/glasses.dm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
overlay = GLOB.global_hud.meson

/obj/item/clothing/glasses/meson/prescription
name = "meson goggles"
desc = "Used for seeing walls, floors, and stuff through anything. This set has corrective lenses."
prescription = 5

Expand All @@ -136,6 +135,10 @@
off_state = "avi_off"
item_state = "meson_avi_on"

/obj/item/clothing/glasses/meson/aviators/prescription
prescription = 5
desc = "A meson HUD integrated into a pair of aviator sunglasses. These ones have eyesight-correcting lenses."

/obj/item/clothing/glasses/science
name = "science goggles"
desc = "Goggles fitted with a portable analyzer capable of determining the fabricator training potential of an item or components of a machine. Sensitive to EMP."
Expand Down
14 changes: 13 additions & 1 deletion code/modules/clothing/glasses/hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
off_state = "avi_off"
item_state = "health_avi_on"

/obj/item/clothing/glasses/hud/health/aviators/prescription
prescription = 5
desc = "A medical HUD integrated into a pair of aviator sunglasses. These ones have eyesight-correcting lenses."

/obj/item/clothing/glasses/hud/health/goggle
name = "medical HUD visor"
desc = "A medical HUD integrated with a wide visor."
Expand Down Expand Up @@ -152,6 +156,10 @@
off_state = "avi_off"
item_state = "jani_avi_on"

/obj/item/clothing/glasses/hud/janitor/aviators/prescription
prescription = 5
desc = "A janitorial HUD integrated into a pair of aviator sunglasses. These ones have eyesight-correcting lenses."

/obj/item/clothing/glasses/hud/janitor/process_hud(mob/M)
process_jani_hud(M)

Expand All @@ -176,4 +184,8 @@
desc = "A scientific HUD integrated into a pair of aviator sunglasses. It does little to protect against the sun, but it sure looks cool."
icon_state = "sci_avi_on"
off_state = "avi_off"
item_state = "sci_avi_on"
item_state = "sci_avi_on"

/obj/item/clothing/glasses/hud/science/aviators/prescription
prescription = 5
desc = "A scientific HUD integrated into a pair of aviator sunglasses. These ones have eyesight-correcting lenses."

0 comments on commit 25aa276

Please sign in to comment.