Skip to content

Commit

Permalink
Machetes on back for smartgunners (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
grifp71 committed Apr 7, 2024
1 parent 784a01f commit 1a5b544
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/modules/clothing/suits/marine_armor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@
/obj/item/device/motiondetector,
/obj/item/device/walkman,
)
var/list/smartgun_back = list(
/obj/item/storage/large_holster/machete,
)

/obj/item/clothing/suit/storage/marine/smartgunner/Initialize()
. = ..()
Expand Down Expand Up @@ -424,6 +427,10 @@
if(slot != WEAR_BACK)
return


if(is_type_in_list(equipping_item, smartgun_back))
return

. = COMPONENT_HUMAN_CANCEL_ATTEMPT_EQUIP

if(equipping_item.flags_equip_slot == SLOT_BACK)
Expand Down

0 comments on commit 1a5b544

Please sign in to comment.