Skip to content

Commit

Permalink
PROBABLY fixes certain deferred boxes being an obnoxious meme. (#4759)
Browse files Browse the repository at this point in the history
storage set their own inventory size/max itm size based on what's in them, cool right? Well, this means things like the tool-mods kit from lonestar is the most potent storage item ever because it comes with 12 normal size slots. They can now only hold the kinda items they come with, I'm very likely missing some stuff but oh well.
  • Loading branch information
cdb-is-not-good authored Sep 8, 2023
1 parent 1db7a25 commit b3d14ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/game/objects/items/weapons/storage/deferred.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,39 +58,46 @@
item_state = "irp_box"
w_class = ITEM_SIZE_HUGE
desc = "A box of preserved, ready-to-eat food for soldiers and spacefarers on the go."
can_hold = list(/obj/item/storage/ration_pack)
initial_contents = list(/obj/item/storage/ration_pack = 7)


/obj/item/storage/deferred/toolmod
name = "tool modifications kit"
desc = "A sturdy container full of contraptions, bits of material, components and add-ons for modifying tools."
icon_state = "box_tools"
can_hold = list(/obj/random/tool_upgrade, /obj/random/tool_upgrade/rare)
initial_contents = list(/obj/random/tool_upgrade = 12,
/obj/random/tool_upgrade/rare = 3)


/obj/item/storage/deferred/pouches
name = "uniform modification kit"
desc = "A box full of hard-wearing pouches designed for easy attachment to clothing and armor. Good for carrying extra ammo or tools in the field."
can_hold = list(/obj/random/pouch, /obj/item/storage/pouch/pistol_holster)
initial_contents = list(/obj/random/pouch = 8, /obj/item/storage/pouch/pistol_holster = 1)
//One guaranteed holster and plenty of randoms

/obj/item/storage/deferred/comms
name = "communications kit"
desc = "A box full of radios and beacons"
can_hold = list(/obj/item/device/radio/beacon, /obj/item/device/radio)
initial_contents = list(/obj/item/device/radio/beacon = 6, /obj/item/device/radio = 6)

/obj/item/storage/deferred/lights
name = "illumination kit"
desc = "A box of flares and flashlights"
can_hold = list(/obj/item/device/lighting/glowstick/flare, /obj/item/device/lighting/toggleable/flashlight/heavy)
initial_contents = list(/obj/item/device/lighting/glowstick/flare = 20, /obj/item/device/lighting/toggleable/flashlight/heavy = 6)

/obj/item/storage/deferred/music
name = "morale kit"
desc = "All that's required to unite nation, compacted within single box."
icon_state = "box_serbian"
can_hold = list(/obj/item/device/synthesized_instrument/trumpet)
initial_contents = list(/obj/item/device/synthesized_instrument/trumpet = 1) //TODO: Add an accordian to this, sprites already made.


//Medical
/obj/item/storage/deferred/surgery
name = "combat surgery kit"
Expand Down

0 comments on commit b3d14ae

Please sign in to comment.