From da4535cefe7cc3d79c7357dc69ce74f7db29f02b Mon Sep 17 00:00:00 2001 From: Jedi-Toothpaste Date: Wed, 4 Dec 2024 23:56:41 +0000 Subject: [PATCH 1/2] fixes max weight on cases --- code/game/objects/items/storage/cases.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/storage/cases.dm b/code/game/objects/items/storage/cases.dm index 3ef5e2c790f9..2685e8d54b9c 100644 --- a/code/game/objects/items/storage/cases.dm +++ b/code/game/objects/items/storage/cases.dm @@ -13,6 +13,7 @@ throw_speed = 3 throw_range = 7 var/empty = FALSE + var/max_items = 10 w_class = WEIGHT_CLASS_BULKY /obj/item/storage/case/ComponentInitialize() @@ -30,7 +31,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, From 08a26a33eb3a43e209a2dd69023bdec5d0448f0f Mon Sep 17 00:00:00 2001 From: Jedi-Toothpaste Date: Fri, 13 Dec 2024 00:44:54 +0000 Subject: [PATCH 2/2] blows up max_items line --- code/game/objects/items/storage/cases.dm | 1 - 1 file changed, 1 deletion(-) diff --git a/code/game/objects/items/storage/cases.dm b/code/game/objects/items/storage/cases.dm index 2685e8d54b9c..0a69e5d9afb5 100644 --- a/code/game/objects/items/storage/cases.dm +++ b/code/game/objects/items/storage/cases.dm @@ -13,7 +13,6 @@ throw_speed = 3 throw_range = 7 var/empty = FALSE - var/max_items = 10 w_class = WEIGHT_CLASS_BULKY /obj/item/storage/case/ComponentInitialize()