Skip to content

Commit

Permalink
[MIRROR] Adds a flat cardboard box (#4907)
Browse files Browse the repository at this point in the history
* Adds a flat cardboard box (#4213)

* initial

* review

* [MIRROR] Adds a flat cardboard box

---------

Co-authored-by: lila <[email protected]>
Co-authored-by: StealsThePRs <[email protected]>
  • Loading branch information
3 people authored Aug 9, 2024
1 parent c7c0b08 commit ea2d7e1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ GLOBAL_LIST_INIT(nova_wood_recipes, list(
. = ..()
. += GLOB.nova_wood_recipes

// Cardboard

GLOBAL_LIST_INIT(nova_cardboard_recipes, list(
new/datum/stack_recipe("flat box", /obj/item/storage/box/flat, crafting_flags = NONE, category = CAT_CONTAINERS),
))

/obj/item/stack/sheet/cardboard/get_main_recipes()
. = ..()
. += GLOB.nova_cardboard_recipes

// Cloth

GLOBAL_LIST_INIT(nova_cloth_recipes, list(
Expand Down
Binary file added modular_nova/modules/box_extra/_icon/box.dmi
Binary file not shown.
11 changes: 11 additions & 0 deletions modular_nova/modules/box_extra/code/boxes.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/obj/item/storage/box/flat
name = "flat box"
desc = "A cardboard box folded in a manner that is optimal for concealment, rather than for stowing your belongings."
icon = 'modular_nova/modules/box_extra/_icon/box.dmi'
icon_state = "flat"
illustration = null

/obj/item/storage/box/flat/Initialize(mapload)
. = ..()
AddElement(/datum/element/undertile, TRAIT_T_RAY_VISIBLE, INVISIBILITY_MAXIMUM, use_anchor = TRUE)
atom_storage.max_slots = 3
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
/obj/item/stack/sheet/iron = list(GLOB.nova_metal_recipes, GLOB.nova_metal_airlock_recipes),
/obj/item/stack/sheet/plasteel = list(GLOB.nova_plasteel_recipes),
/obj/item/stack/sheet/mineral/wood = list(GLOB.nova_wood_recipes),
/obj/item/stack/sheet/cardboard = list(GLOB.nova_cardboard_recipes),
/obj/item/stack/sheet/cloth = list(GLOB.nova_cloth_recipes),
/obj/item/stack/ore/glass = list(GLOB.nova_sand_recipes),
/obj/item/stack/rods = list(GLOB.nova_rod_recipes),
Expand Down
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -7097,6 +7097,7 @@
#include "modular_nova\modules\borgs\code\robot_model.dm"
#include "modular_nova\modules\borgs\code\robot_upgrade.dm"
#include "modular_nova\modules\borgs\code\update_icons.dm"
#include "modular_nova\modules\box_extra\code\boxes.dm"
#include "modular_nova\modules\bsa_overhaul\code\admin_verb.dm"
#include "modular_nova\modules\bsa_overhaul\code\bsa_cannon.dm"
#include "modular_nova\modules\bsa_overhaul\code\bsa_computer.dm"
Expand Down

0 comments on commit ea2d7e1

Please sign in to comment.