From 153fc65db67dd28706030ab0e0c323a24bf38c14 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Sun, 26 Nov 2023 12:07:09 +0300 Subject: [PATCH] [MIRROR] Quick carry modules now give the correct bonus [MDB IGNORE] (#819) * Quick carry modules now give the correct bonus (#79909) --------- Co-authored-by: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Co-authored-by: Nick <42454181+Momo8289@users.noreply.github.com> --- code/modules/mod/modules/modules_medical.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/modules/mod/modules/modules_medical.dm b/code/modules/mod/modules/modules_medical.dm index c1a1cbce403..3af9ae710a2 100644 --- a/code/modules/mod/modules/modules_medical.dm +++ b/code/modules/mod/modules/modules_medical.dm @@ -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)