Craftable donut boxes (#15051)

* Craftable donut boxes

* probably doesn't need two names
This commit is contained in:
SabreML
2020-12-06 10:25:33 +00:00
committed by GitHub
parent 1d644b9cc1
commit 1b41b28763
4 changed files with 10 additions and 6 deletions
@@ -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)
@@ -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
*/
@@ -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"
@@ -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.