From 417db2a19d12e35de26cd8505b8959a6854902ca Mon Sep 17 00:00:00 2001 From: Phantastic-Swan Date: Mon, 5 May 2025 11:27:14 +0200 Subject: [PATCH] added large donut boxes --- .../code/game/objects/items/storage/fancy.dm | 22 +++++++++++++++++++ .../code/modules/cargo/packs/organic.dm | 6 +++++ .../items/stacks/sheets/sheet_types.dm | 3 +++ tgstation.dme | 5 +++++ 4 files changed, 36 insertions(+) create mode 100644 GainStation13/code/game/objects/items/storage/fancy.dm diff --git a/GainStation13/code/game/objects/items/storage/fancy.dm b/GainStation13/code/game/objects/items/storage/fancy.dm new file mode 100644 index 0000000000..3362ce02ae --- /dev/null +++ b/GainStation13/code/game/objects/items/storage/fancy.dm @@ -0,0 +1,22 @@ +/obj/item/storage/fancy/large_donut_box // not inheriting from a regular box of donuts for now because I don't want the icon changes... + name = "large donut box" + desc = "For when security just can't get enough." + icon = 'GainStation13/icons/obj/food/containers.dmi' + icon_state = "large_donut_box" + spawn_type = /obj/item/reagent_containers/food/snacks/donut + fancy_open = FALSE + custom_price = PRICE_NORMAL + appearance_flags = KEEP_TOGETHER + +/obj/item/storage/fancy/large_donut_box/ComponentInitialize() + . = ..() + var/datum/component/storage/STR = GetComponent(/datum/component/storage) + STR.max_items = 16 + STR.max_combined_w_class = WEIGHT_CLASS_SMALL * 16 + STR.can_hold = typecacheof(list(/obj/item/reagent_containers/food/snacks/donut)) + +/obj/item/storage/fancy/large_donut_box/update_icon_state() + if(fancy_open) + icon_state = "large_donut_box_open" + else + icon_state = "large_donut_box" \ No newline at end of file diff --git a/GainStation13/code/modules/cargo/packs/organic.dm b/GainStation13/code/modules/cargo/packs/organic.dm index e69de29bb2..d3fcebc432 100644 --- a/GainStation13/code/modules/cargo/packs/organic.dm +++ b/GainStation13/code/modules/cargo/packs/organic.dm @@ -0,0 +1,6 @@ +/datum/supply_pack/organic/large_donut_boxes + name = "Large Donut Boxes" + desc = "Tired of eating pizza all day? Security ate all the donuts and keeps asking for more? Fear not! This crate contains 2 large boxes of donuts, 16 donuts each! That'll be sure to stave off those hungry seccies... for a while." + cost = 5500 + contains = list(/obj/item/storage/fancy/large_donut_box, + /obj/item/storage/fancy/large_donut_box) diff --git a/code/game/objects/items/stacks/sheets/sheet_types.dm b/code/game/objects/items/stacks/sheets/sheet_types.dm index 041f02168e..832995ded8 100644 --- a/code/game/objects/items/stacks/sheets/sheet_types.dm +++ b/code/game/objects/items/stacks/sheets/sheet_types.dm @@ -487,6 +487,9 @@ GLOBAL_LIST_INIT(cardboard_recipes, list ( \ // holy fuck why are there so many boxes new/datum/stack_recipe_list("fancy boxes", list ( \ new /datum/stack_recipe("donut box", /obj/item/storage/fancy/donut_box), \ + // GS13 EDIT + new /datum/stack_recipe("large donut box", /obj/item/storage/fancy/large_donut_box, 2), \ + // GS13 END EDIT new /datum/stack_recipe("egg box", /obj/item/storage/fancy/egg_box), \ new /datum/stack_recipe("donk-pockets box", /obj/item/storage/box/donkpockets), \ new /datum/stack_recipe("monkey cube box", /obj/item/storage/box/monkeycubes), \ diff --git a/tgstation.dme b/tgstation.dme index eacade08ce..9ca459aedc 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -4043,6 +4043,11 @@ #include "GainStation13\code\modules\hydroponics\grown\berries.dm" #include "GainStation13\code\modules\loadout\backpack.dm" #include "GainStation13\code\modules\loadout\gloves.dm" +#include "GainStation13\code\game\objects\items\storage\fancy.dm" +#include "GainStation13\code\modules\cargo\packs\engineering.dm" +#include "GainStation13\code\modules\cargo\packs\materials.dm" +#include "GainStation13\code\modules\cargo\packs\organic.dm" +#include "GainStation13\code\modules\cargo\packs\science.dm" #include "GainStation13\code\modules\loadout\neck.dm" #include "GainStation13\code\modules\loadout\tablet.dm" #include "GainStation13\code\modules\mapping\areas.dm"