diff --git a/code/__DEFINES/storage/volumetrics.dm b/code/__DEFINES/storage/volumetrics.dm index 62eaa226c4..d5da40a722 100644 --- a/code/__DEFINES/storage/volumetrics.dm +++ b/code/__DEFINES/storage/volumetrics.dm @@ -36,4 +36,5 @@ GLOBAL_LIST_INIT(default_weight_class_to_volume, list( #define STORAGE_VOLUME_BACKPACK (DEFAULT_VOLUME_NORMAL * 7) #define STORAGE_VOLUME_DUFFLEBAG (DEFAULT_VOLUME_NORMAL * 10) #define STORAGE_VOLUME_BAG_OF_HOLDING (DEFAULT_VOLUME_NORMAL * 20) - +#define STORAGE_VOLUME_CHEMISTRY_BAG (DEFAULT_VOLUME_TINY * 50) +#define STORAGE_VOLUME_PILL_BOTTLE (DEFAULT_VOLUME_TINY * 7) diff --git a/code/game/objects/items/storage/bags.dm b/code/game/objects/items/storage/bags.dm index 5b7eb65d9b..d687702af5 100644 --- a/code/game/objects/items/storage/bags.dm +++ b/code/game/objects/items/storage/bags.dm @@ -382,14 +382,14 @@ icon = 'icons/obj/chemical.dmi' icon_state = "bag" desc = "A bag for storing pills, patches, and bottles." - w_class = WEIGHT_CLASS_TINY + slot_flags = ITEM_SLOT_BELT|ITEM_SLOT_POCKET resistance_flags = FLAMMABLE /obj/item/storage/bag/chemistry/ComponentInitialize() . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) - STR.max_combined_w_class = 200 - STR.max_items = 50 + STR.storage_flags = STORAGE_FLAGS_VOLUME_DEFAULT + STR.max_volume = STORAGE_VOLUME_CHEMISTRY_BAG STR.insert_preposition = "in" STR.can_hold = typecacheof(list(/obj/item/reagent_containers/pill, /obj/item/reagent_containers/glass/beaker, /obj/item/reagent_containers/glass/bottle, /obj/item/reagent_containers/syringe/dart)) @@ -402,7 +402,7 @@ icon = 'icons/obj/chemical.dmi' icon_state = "biobag" desc = "A bag for the safe transportation and disposal of biowaste and other biological materials." - w_class = WEIGHT_CLASS_TINY + slot_flags = ITEM_SLOT_BELT|ITEM_SLOT_POCKET resistance_flags = FLAMMABLE /obj/item/storage/bag/bio/ComponentInitialize() diff --git a/code/game/objects/items/storage/firstaid.dm b/code/game/objects/items/storage/firstaid.dm index 092648ee3c..c7c0a711c8 100644 --- a/code/game/objects/items/storage/firstaid.dm +++ b/code/game/objects/items/storage/firstaid.dm @@ -224,7 +224,7 @@ . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) STR.storage_flags = STORAGE_FLAGS_VOLUME_DEFAULT - STR.max_volume = 14 + STR.max_volume = STORAGE_VOLUME_PILL_BOTTLE STR.allow_quick_gather = TRUE STR.click_gather = TRUE STR.can_hold = typecacheof(list(/obj/item/reagent_containers/pill, /obj/item/dice)) diff --git a/code/modules/reagents/reagent_containers/pill.dm b/code/modules/reagents/reagent_containers/pill.dm index 1247a7abc3..fca04f239e 100644 --- a/code/modules/reagents/reagent_containers/pill.dm +++ b/code/modules/reagents/reagent_containers/pill.dm @@ -25,14 +25,8 @@ /obj/item/reagent_containers/pill/attack_self(mob/user) return -/obj/item/reagent_containers/pill/get_w_volume() - switch(reagents.total_volume) - if(0 to 9.5) - return 1 - if(9.5 to 25) - return DEFAULT_VOLUME_TINY - else - return DEFAULT_VOLUME_SMALL +/obj/item/reagent_containers/pill/get_w_volume() // DEFAULT_VOLUME_TINY at 25u, DEFAULT_VOLUME_SMALL at 50u + return DEFAULT_VOLUME_TINY/2 + reagents.total_volume / reagents.maximum_volume * DEFAULT_VOLUME_TINY /obj/item/reagent_containers/pill/attack(mob/M, mob/user, def_zone) if(!canconsume(M, user))