Skip to content

Commit

Permalink
fixes visor overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxilmaniac committed Dec 4, 2024
1 parent 18e2486 commit f6b4a07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/clothing/head/hardhat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@
if(isinhands)
return

if(!up)
if(!up && !mask_overlay_icon) // DOPPLER EDIT - ORIGINAL - if(!up)
. += mutable_appearance('icons/mob/clothing/head/utility.dmi', visor_state)
else if(!up) // DOPPLER EDIT ADDITION - SEE modular_doppler/modular_cosmetics/code/hats/doppler_command_hats.dm
. += mutable_appearance(mask_overlay_icon, visor_state) // DOPPLER EDIT ADDITION

/obj/item/clothing/head/utility/hardhat/welding/update_overlays()
. = ..()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// Cool firehelmets

/obj/item/clothing/head/utility/hardhat/welding
/// If we use a special icon file for the welding mask overlay
var/mask_overlay_icon = null

/obj/item/clothing/head/utility/hardhat/welding/doppler_command
name = "generic command hardhat"
desc = "A heavy-duty hardhat for protecting the heads of the heads when everything starts to go wrong."
Expand All @@ -8,6 +12,7 @@
resistance_flags = FIRE_PROOF | ACID_PROOF
icon_state = null
hat_type = null
mask_overlay_icon = 'modular_doppler/modular_cosmetics/icons/obj/head/doppler_command_hardhats.dmi'

/obj/item/clothing/head/utility/hardhat/welding/doppler_command/medical
name = "medical command hardhat"
Expand Down

0 comments on commit f6b4a07

Please sign in to comment.