Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functional M5 Gasmask 2: Electric Boogaloo #5083

Merged
merged 6 commits into from
Dec 6, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions code/game/objects/items/props/helmetgarb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,32 @@
desc = "The USCM had its funding pulled for these when it became apparent that not every deployed enlisted was wearing a helmet 24/7; much to the bafflement of UA High Command."
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
Ediblebomb marked this conversation as resolved.
Show resolved Hide resolved

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
Ediblebomb marked this conversation as resolved.
Show resolved Hide resolved
..()
Ediblebomb marked this conversation as resolved.
Show resolved Hide resolved

/obj/item/prop/helmetgarb/helmet_gasmask/on_exit_storage(obj/item/storage/internal/helmet_internal_inventory)
if(!istype(helmet_internal_inventory))
return
Ediblebomb marked this conversation as resolved.
Show resolved Hide resolved

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)
Ediblebomb marked this conversation as resolved.
Show resolved Hide resolved
return..()
Ediblebomb marked this conversation as resolved.
Show resolved Hide resolved

/obj/item/prop/helmetgarb/trimmed_wire
name = "trimmed barbed wire"
desc = "It is a length of barbed wire that's had most of the sharp points filed down so that it is safe to handle."
Expand Down