diff --git a/code/game/objects/items/stacks/sheets/sheet_types.dm b/code/game/objects/items/stacks/sheets/sheet_types.dm index a9052e79e86..ad798e781eb 100644 --- a/code/game/objects/items/stacks/sheets/sheet_types.dm +++ b/code/game/objects/items/stacks/sheets/sheet_types.dm @@ -311,10 +311,11 @@ GLOBAL_LIST_INIT(cardboard_recipes, list ( new /datum/stack_recipe("cardborg suit", /obj/item/clothing/suit/cardborg, 3), new /datum/stack_recipe("cardborg helmet", /obj/item/clothing/head/cardborg), new /datum/stack_recipe("pizza box", /obj/item/pizzabox), + new /datum/stack_recipe("donut box", /obj/item/storage/fancy/donut_box/empty, 1), new /datum/stack_recipe("folder", /obj/item/folder), new /datum/stack_recipe("cardboard tube", /obj/item/c_tube), new /datum/stack_recipe("cardboard box", /obj/structure/closet/cardboard, 4), - new/datum/stack_recipe("cardboard cutout", /obj/item/cardboard_cutout, 5), + new /datum/stack_recipe("cardboard cutout", /obj/item/cardboard_cutout, 5) )) /obj/item/stack/sheet/cardboard/attackby(obj/item/I, mob/user, params) diff --git a/code/game/objects/items/weapons/storage/fancy.dm b/code/game/objects/items/weapons/storage/fancy.dm index 644cd45ce19..98c6a439ac4 100644 --- a/code/game/objects/items/weapons/storage/fancy.dm +++ b/code/game/objects/items/weapons/storage/fancy.dm @@ -39,10 +39,9 @@ */ /obj/item/storage/fancy/donut_box + name = "donut box" icon_type = "donut" icon_state = "donutbox_back" - name = "donut box" - name = "donut box" storage_slots = 6 can_hold = list(/obj/item/reagent_containers/food/snacks/donut) icon_type = "donut" @@ -62,10 +61,14 @@ /obj/item/storage/fancy/donut_box/New() ..() - for(var/i = 1 to storage_slots) - new /obj/item/reagent_containers/food/snacks/donut(src) + if(!empty) + for(var/i = 1 to storage_slots) + new /obj/item/reagent_containers/food/snacks/donut(src) update_icon() +/obj/item/storage/fancy/donut_box/empty + empty = TRUE + /* * Egg Box */ diff --git a/code/game/objects/items/weapons/storage/firstaid.dm b/code/game/objects/items/weapons/storage/firstaid.dm index 1803a0d9951..29d9e3b0487 100644 --- a/code/game/objects/items/weapons/storage/firstaid.dm +++ b/code/game/objects/items/weapons/storage/firstaid.dm @@ -14,7 +14,6 @@ icon_state = "firstaid" throw_speed = 2 throw_range = 8 - var/empty = FALSE req_one_access =list(ACCESS_MEDICAL, ACCESS_ROBOTICS) //Access and treatment are utilized for medbots. var/treatment_brute = "salglu_solution" var/treatment_oxy = "salbutamol" diff --git a/code/game/objects/items/weapons/storage/storage.dm b/code/game/objects/items/weapons/storage/storage.dm index 68b1acf1ab7..a3bafa5b3cf 100644 --- a/code/game/objects/items/weapons/storage/storage.dm +++ b/code/game/objects/items/weapons/storage/storage.dm @@ -12,6 +12,7 @@ var/silent = 0 // No message on putting items in var/list/can_hold = new/list() //List of objects which this item can store (if set, it can't store anything else) var/list/cant_hold = new/list() //List of objects which this item can't store (in effect only if can_hold isn't set) + var/empty = FALSE // Will this spawn as an empty box var/max_w_class = WEIGHT_CLASS_SMALL //Max size of objects that this object can store (in effect only if can_hold isn't set) var/max_combined_w_class = 14 //The sum of the w_classes of all the items in this storage item. var/storage_slots = 7 //The number of storage slots in this container.