Skip to content

Commit

Permalink
[MIRROR] Quick carry modules now give the correct bonus [MDB IGNORE] (#…
Browse files Browse the repository at this point in the history
…819)

* Quick carry modules now give the correct bonus (#79909)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Nick <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2023
1 parent 5989855 commit 153fc65
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions code/modules/mod/modules/modules_medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,22 @@
incompatible_modules = list(/obj/item/mod/module/quick_carry, /obj/item/mod/module/constructor)

/obj/item/mod/module/quick_carry/on_suit_activation()
ADD_TRAIT(mod.wearer, TRAIT_QUICKER_CARRY, MOD_TRAIT)
ADD_TRAIT(mod.wearer, TRAIT_QUICK_CARRY, MOD_TRAIT)

/obj/item/mod/module/quick_carry/on_suit_deactivation(deleting = FALSE)
REMOVE_TRAIT(mod.wearer, TRAIT_QUICKER_CARRY, MOD_TRAIT)
REMOVE_TRAIT(mod.wearer, TRAIT_QUICK_CARRY, MOD_TRAIT)

/obj/item/mod/module/quick_carry/advanced
name = "MOD advanced quick carry module"
removable = FALSE
complexity = 0

/obj/item/mod/module/quick_carry/advanced/on_suit_activation()
ADD_TRAIT(mod.wearer, TRAIT_QUICKER_CARRY, MOD_TRAIT)

/obj/item/mod/module/quick_carry/advanced/on_suit_deactivation(deleting = FALSE)
REMOVE_TRAIT(mod.wearer, TRAIT_QUICKER_CARRY, MOD_TRAIT)

/obj/item/mod/module/quick_carry/on_suit_activation()
. = ..()
ADD_TRAIT(mod.wearer, TRAIT_FASTMED, MOD_TRAIT)
Expand Down

0 comments on commit 153fc65

Please sign in to comment.