Skip to content

Commit

Permalink
Adds nugget share packs.
Browse files Browse the repository at this point in the history
  • Loading branch information
MistakeNot4892 committed Jan 8, 2024
1 parent 795481b commit c22191b
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 4 deletions.
7 changes: 7 additions & 0 deletions code/datums/supplypacks/hospitality.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
53 changes: 52 additions & 1 deletion code/game/objects/items/weapons/storage/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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"
10 changes: 8 additions & 2 deletions code/game/objects/structures/loot_piles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -305,15 +309,17 @@ 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(
/obj/item/storage/box/flashbangs,
/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.
Expand Down
2 changes: 1 addition & 1 deletion code/modules/food/food/snacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions code/modules/materials/materials/plastic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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]"),
Expand Down
Binary file added icons/obj/food_nuggets.dmi
Binary file not shown.
Binary file modified icons/obj/food_syn.dmi
Binary file not shown.

0 comments on commit c22191b

Please sign in to comment.