Skip to content

Commit

Permalink
Merge pull request #969 from NopemanMcHalt/gasmask_loadout_fix
Browse files Browse the repository at this point in the history
A workaround to fix loadout masks getting removed due Bane Syndrome quirk
  • Loading branch information
MosleyTheMalO authored Oct 5, 2023
2 parents 99bbac7 + 7f2e13d commit ce3d2af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modular_splurt/code/datums/traits/neutral.dm
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@
. = ..()
var/mob/living/carbon/human/H = quirk_holder
var/obj/item/clothing/mask/gas/cosmetic/gasmask = new(get_turf(quirk_holder)) // Uses a custom gas mask
H.equip_to_slot(gasmask, ITEM_SLOT_MASK)
H.equip_to_slot_if_possible(gasmask, ITEM_SLOT_MASK) // If character have a loadout mask, the custom one will not overwrite it but instead will be dropped on floor
H.regenerate_icons()

/datum/quirk/body_morpher
Expand Down
2 changes: 1 addition & 1 deletion modular_splurt/code/modules/client/loadout/mask.dm
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/datum/gear/mask/gas
restricted_roles = list()
restricted_roles = list()

0 comments on commit ce3d2af

Please sign in to comment.