nugget boxes (#19492)

This commit is contained in:
ktlwjec
2023-07-10 20:19:03 +01:00
committed by GitHub
parent 558a707c57
commit c043940324
3 changed files with 24 additions and 1 deletions

View File

@@ -516,6 +516,7 @@ GLOBAL_LIST_INIT(cardboard_recipes, list ( \
new /datum/stack_recipe("donut box", /obj/item/storage/box/fancy/donut_box), \
new /datum/stack_recipe("egg box", /obj/item/storage/box/fancy/egg_box), \
new /datum/stack_recipe("monkey cube box", /obj/item/storage/box/monkeycubes), \
new /datum/stack_recipe("nugget box", /obj/item/storage/box/fancy/nugget_box), \
null, \
new /datum/stack_recipe("bean bag ammo box", /obj/item/storage/box/beanbag), \

View File

@@ -462,3 +462,25 @@
/obj/item/storage/box/fancy/heart_box/PopulateContents()
for(var/i in 1 to 8)
new /obj/item/reagent_containers/food/snacks/tinychocolate(src)
//////////////
//NUGGET BOX//
//////////////
/obj/item/storage/box/fancy/nugget_box
name = "nugget box"
desc = "A cardboard box used for holding chicken nuggies."
icon = 'icons/obj/food/containers.dmi'
item_state = "nuggetbox"
icon_state = "nuggetbox"
icon_type = "nugget"
spawn_type = /obj/item/reagent_containers/food/snacks/nugget
/obj/item/storage/box/fancy/nugget_box/Initialize(mapload)
. = ..()
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
STR.max_items = 6
STR.set_holdable(list(/obj/item/reagent_containers/food/snacks/nugget))
/obj/item/storage/box/fancy/nugget_box/PopulateContents()
for(var/i in 1 to 6)
new /obj/item/reagent_containers/food/snacks/nugget(src)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 12 KiB