diff --git a/code/datums/supplypacks/hospitality.dm b/code/datums/supplypacks/hospitality.dm index 917c4a686f..1d26685713 100644 --- a/code/datums/supplypacks/hospitality.dm +++ b/code/datums/supplypacks/hospitality.dm @@ -65,6 +65,13 @@ containertype = /obj/structure/closet/crate/freezer/centauri containername = "Pizza crate" +/datum/supply_pack/hospitality/nuggets + name = "Nugget crate" + contains = list(/obj/item/storage/box/nuggets = 2) + cost = 15 + containertype = /obj/structure/closet/crate/freezer/centauri + containername = "nugget crate" + /datum/supply_pack/hospitality/gifts name = "Gift crate" contains = list( diff --git a/code/game/objects/items/weapons/storage/misc.dm b/code/game/objects/items/weapons/storage/misc.dm index 03259d0cf4..6f830456e6 100644 --- a/code/game/objects/items/weapons/storage/misc.dm +++ b/code/game/objects/items/weapons/storage/misc.dm @@ -64,6 +64,57 @@ var/global/list/random_weighted_donuts = list( /obj/item/storage/box/donut/empty/PopulateDonutSelection() return +/obj/item/storage/box/nuggets + name = "box of nuggets" + icon = 'icons/obj/food_nuggets.dmi' + icon_state = "nuggetbox_ten" + desc = "A share pack of golden chicken nuggets in various fun shapes. Rumours of the rare and deadly 'fifth nugget shape' remain unsubstantiated." + description_fluff = "While these nuggets remain beloved by children, drunks and picky eaters across the known galaxy, ongoing legal action leaves the meaning of 'chicken' in dispute." + center_of_mass = list("x" = 16,"y" = 9) + max_storage_space = ITEMSIZE_COST_SMALL * 6 + can_hold = null + foldable = /obj/item/stack/material/cardboard + var/nugget_type = /obj/item/reagent_containers/food/snacks/nugget + var/nugget_amount = 10 + +/obj/item/storage/box/nuggets/Initialize() + can_hold = list(nugget_type) + . = ..() + if(nugget_amount) + name = "[nugget_amount]-piece chicken nuggets box" + max_storage_space = ITEMSIZE_COST_SMALL * nugget_amount + immanentize_nuggets() + update_icon() + +/obj/item/storage/box/nuggets/proc/immanentize_nuggets() + for(var/i in 1 to nugget_amount) + new /obj/item/reagent_containers/food/snacks/nugget(src) + +/obj/item/storage/box/nuggets/update_icon() + if(length(contents) == 0) + icon_state = "[initial(icon_state)]_empty" + else if(length(contents) == nugget_amount) + icon_state = "[initial(icon_state)]_full" + else + icon_state = initial(icon_state) + +// Subtypes below. +/obj/item/storage/box/nuggets/empty/immanentize_nuggets() + return + +/obj/item/storage/box/nuggets/twenty + nugget_amount = 20 + icon_state = "nuggetbox_twenty" + +/obj/item/storage/box/nuggets/twenty/empty/immanentize_nuggets() + return + +/obj/item/storage/box/nuggets/forty + nugget_amount = 40 + icon_state = "nuggetbox_forty" + +/obj/item/storage/box/nuggets/forty/empty/immanentize_nuggets() + return /obj/item/storage/box/wormcan icon = 'icons/obj/food.dmi' @@ -106,4 +157,4 @@ var/global/list/random_weighted_donuts = list( /obj/item/storage/box/wormcan/deluxe/update_icon(var/itemremoved = 0) if (contents.len == 0) - icon_state = "wormcan_empty_deluxe" + icon_state = "wormcan_empty_deluxe" diff --git a/code/game/objects/structures/loot_piles.dm b/code/game/objects/structures/loot_piles.dm index 5bfd9c1616..d52a9b7f03 100644 --- a/code/game/objects/structures/loot_piles.dm +++ b/code/game/objects/structures/loot_piles.dm @@ -284,6 +284,10 @@ Loot piles can be depleted, if loot_depleted is turned on. Note that players wh /obj/item/storage/box/donkpockets, /obj/item/storage/box/donut, /obj/item/storage/box/donut/empty, + /obj/item/storage/box/nuggets, + /obj/item/storage/box/nuggets/empty, + /obj/item/storage/box/nuggets/twenty/empty, + /obj/item/storage/box/nuggets/forty/empty, /obj/item/storage/box/evidence, /obj/item/storage/box/lights/mixed, /obj/item/storage/box/lights/tubes, @@ -305,7 +309,8 @@ Loot piles can be depleted, if loot_depleted is turned on. Note that players wh /obj/item/storage/box/smokes, /obj/item/storage/box/metalfoam, /obj/item/storage/box/handcuffs, - /obj/item/storage/box/seccarts + /obj/item/storage/box/seccarts, + /obj/item/storage/box/nuggets/twenty ) rare_loot = list( @@ -313,7 +318,8 @@ Loot piles can be depleted, if loot_depleted is turned on. Note that players wh /obj/item/storage/box/empslite, /obj/item/storage/box/flashshells, /obj/item/storage/box/stunshells, - /obj/item/storage/box/teargas + /obj/item/storage/box/teargas, + /obj/item/storage/box/nuggets/forty ) // One of the more useful maint piles, contains electrical components. diff --git a/code/modules/food/food/snacks.dm b/code/modules/food/food/snacks.dm index 231e419644..2eb3dd9bd9 100644 --- a/code/modules/food/food/snacks.dm +++ b/code/modules/food/food/snacks.dm @@ -5010,7 +5010,7 @@ /obj/item/reagent_containers/food/snacks/nugget name = "chicken nugget" - icon = 'icons/obj/food_syn.dmi' + icon = 'icons/obj/food_nuggets.dmi' icon_state = "nugget_lump" nutriment_desc = "mild battered chicken" nutriment_allergens = ALLERGEN_EGGS|ALLERGEN_GRAINS|ALLERGEN_MEAT diff --git a/code/modules/materials/materials/plastic.dm b/code/modules/materials/materials/plastic.dm index e92a19e74c..6949d6f2d0 100644 --- a/code/modules/materials/materials/plastic.dm +++ b/code/modules/materials/materials/plastic.dm @@ -59,6 +59,7 @@ recipes += list( new /datum/stack_recipe("box", /obj/item/storage/box, pass_stack_color = TRUE, recycle_material = "[name]"), new /datum/stack_recipe("donut box", /obj/item/storage/box/donut/empty, pass_stack_color = TRUE, recycle_material = "[name]"), + new /datum/stack_recipe("nugget box", /obj/item/storage/box/nuggets/empty, pass_stack_color = TRUE, recycle_material = "[name]"), new /datum/stack_recipe("egg box", /obj/item/storage/fancy/egg_box, pass_stack_color = TRUE, recycle_material = "[name]"), new /datum/stack_recipe("light tubes box", /obj/item/storage/box/lights/tubes, pass_stack_color = TRUE, recycle_material = "[name]"), new /datum/stack_recipe("light bulbs box", /obj/item/storage/box/lights/bulbs, pass_stack_color = TRUE, recycle_material = "[name]"), diff --git a/icons/obj/food_nuggets.dmi b/icons/obj/food_nuggets.dmi new file mode 100644 index 0000000000..3d45f7a675 Binary files /dev/null and b/icons/obj/food_nuggets.dmi differ diff --git a/icons/obj/food_syn.dmi b/icons/obj/food_syn.dmi index e703b9e221..2e850b7041 100644 Binary files a/icons/obj/food_syn.dmi and b/icons/obj/food_syn.dmi differ