Skip to content

Commit

Permalink
Not sure how I didn't consider using this button before
Browse files Browse the repository at this point in the history
Co-authored-by: Drathek <[email protected]>
  • Loading branch information
Ediblebomb and Drulikar committed Dec 6, 2023
1 parent d398525 commit 684b9ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions code/game/objects/items/props/helmetgarb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@

/obj/item/prop/helmetgarb/helmet_gasmask/on_enter_storage(obj/item/storage/internal/helmet_internal_inventory)
..()
if(!istype(helmet_internal_inventory))
return
var/obj/item/clothing/head/helmet/helmet_item = helmet_internal_inventory.master_object

if(!istype(helmet_item))
Expand All @@ -508,13 +510,15 @@

/obj/item/prop/helmetgarb/helmet_gasmask/on_exit_storage(obj/item/storage/internal/helmet_internal_inventory)
..()
if(!istype(helmet_internal_inventory))
return
var/obj/item/clothing/head/helmet/helmet_item = helmet_internal_inventory.master_object

if(!istype(helmet_item))
return

helmet_item.flags_inventory = initial(helmet_item.flags_inventory)
helmet_item.flags_inv_hide = initial(helmet_item.flags_inv_hide)
helmet_item.flags_inventory &= ~(BLOCKGASEFFECT)
helmet_item.flags_inv_hide &= ~(HIDEFACE)

/obj/item/prop/helmetgarb/trimmed_wire
name = "trimmed barbed wire"
Expand Down

0 comments on commit 684b9ca

Please sign in to comment.