Skip to content

Commit

Permalink
[MIRROR] riot helmets can attach visors, visors don't incorrectly sho…
Browse files Browse the repository at this point in the history
…w in storage (#2320)

Co-authored-by: Spookerton <[email protected]>
Co-authored-by: UEDCommander <[email protected]>
  • Loading branch information
3 people authored Jun 21, 2024
1 parent d5cfabd commit c3618e1
Show file tree
Hide file tree
Showing 3 changed files with 3,580 additions and 3,575 deletions.
2 changes: 1 addition & 1 deletion code/modules/clothing/head/helmet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
name = "riot helmet"
desc = "It's a helmet specifically designed to protect against close range attacks."
icon_state = "helmet_riot"
valid_accessory_slots = null
valid_accessory_slots = list(ACCESSORY_SLOT_HELMET_VISOR)
body_parts_covered = HEAD|FACE|EYES //face shield
armor = list(
melee = ARMOR_MELEE_VERY_HIGH,
Expand Down
9 changes: 7 additions & 2 deletions code/modules/clothing/under/accessories/goggle_mods.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,21 @@
/obj/item/clothing/accessory/glassesmod/proc/process_hud(mob/M)
return

/obj/item/clothing/accessory/glassesmod/get_mob_overlay(mob/user_mob, slot)
if (slot == "slot_s_store")
return null
return ..()

/obj/item/clothing/accessory/glassesmod/activate()
. = ..()
..()
parent.CutOverlays(inv_overlay)
inv_overlay = null
inv_overlay = get_inv_overlay()
parent.AddOverlays(inv_overlay)
parent.update_vision()

/obj/item/clothing/accessory/glassesmod/deactivate()
. = ..()
..()
parent.CutOverlays(inv_overlay)
inv_overlay = null
inv_overlay = get_inv_overlay()
Expand Down
Loading

0 comments on commit c3618e1

Please sign in to comment.