mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Craftable donut boxes (#15051)
* Craftable donut boxes * probably doesn't need two names
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user