From 073ec0c1bcb4953db46d0d3ae4cd5b576d77a0ef Mon Sep 17 00:00:00 2001 From: Jedi-Toothpaste <53096233+Jedi-Toothpaste@users.noreply.github.com> Date: Wed, 18 Dec 2024 22:06:56 +0000 Subject: [PATCH] fixes max weight on surgery cases (#3881) ## About The Pull Request Makes it so the Circ-Saw and the 7th item can fit in by defining a max combined weight to the item (I am aware it's infinity but there is a cap to the amount of items that can be held. If someone wants to use cases to smuggle 7 circ saws at a time then be my guest.) ## Why It's Good For The Game So surgery cases work as intended. ## Changelog :cl: fix: surgery cases now hold all the items /:cl: --- code/game/objects/items/storage/cases.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/storage/cases.dm b/code/game/objects/items/storage/cases.dm index 3ef5e2c790f9..0a69e5d9afb5 100644 --- a/code/game/objects/items/storage/cases.dm +++ b/code/game/objects/items/storage/cases.dm @@ -30,7 +30,8 @@ /obj/item/storage/case/surgery/ComponentInitialize() . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) - STR.max_w_class = WEIGHT_CLASS_NORMAL + STR.max_w_class = INFINITY //workaround for the differently sized items, case is still limited to 7 items max and to the list. + STR.max_combined_w_class = INFINITY //part of the workaround, not setting a max combined weight defaults to some weird number. STR.max_items = 7 STR.set_holdable(list( /obj/item/healthanalyzer,