Skip to content

Commit

Permalink
tweak it again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ediblebomb committed Dec 5, 2023
1 parent 5c819ec commit d398525
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions code/game/objects/items/props/helmetgarb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -497,30 +497,24 @@
icon_state = "helmet_gasmask"

/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))
return

helmet_item.flags_inventory|=BLOCKGASEFFECT
helmet_item.flags_inv_hide|=HIDEFACE
..()
helmet_item.flags_inventory |= BLOCKGASEFFECT
helmet_item.flags_inv_hide |= HIDEFACE

/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)
return..()

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

0 comments on commit d398525

Please sign in to comment.