Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splits storage.dmi into multiple files #6964

Merged
merged 4 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion code/game/objects/effects/spawners/wo_spawners/supplies.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@


/obj/effect/landmark/wo_supplies/storage
icon = 'icons/obj/items/storage.dmi'
icon_state = null
amount = list(1,5)

Expand All @@ -117,6 +116,7 @@

/obj/effect/landmark/wo_supplies/storage/machete
icon_state = "machete_holster_full"
icon = 'icons/obj/items/storage/holsters.dmi'
stuff = list(/obj/item/storage/large_holster/machete/full)

/obj/effect/landmark/wo_supplies/storage/m56d
Expand All @@ -126,15 +126,18 @@

/obj/effect/landmark/wo_supplies/storage/mines
icon_state = "minebox"
icon = 'icons/obj/items/storage/packets.dmi'
stuff = list(/obj/item/storage/box/explosive_mines)

/obj/effect/landmark/wo_supplies/storage/grenades
amount = list(0,2)
icon_state = "nade_placeholder"
icon = 'icons/obj/items/storage/packets.dmi'
stuff = list(/obj/item/storage/box/nade_box)

/obj/effect/landmark/wo_supplies/storage/m37holster
icon_state = "m37_holster"
icon = 'icons/obj/items/storage/holsters.dmi'
stuff = list(/obj/item/storage/large_holster/m37)

/obj/effect/landmark/wo_supplies/storage/belts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
name = "\improper Boots! PDT/L Battle Buddy kit"
desc = "Contains a PDT/L set, consisting of the PDT bracelet and its sister locator tube, alongside a spare cell seemingly wedged into the kit."
desc_lore = "This kit was distributed in the 200th (Season 4) Issue of the Boots! magazine, 'Privates die without their battlebuddy!', to drive up sales. Many have noted the poor battery life of these units, leading many to speculate that these were faulty units that were repackaged and shipped off to various USCM-adjacent mil-surplus good stores. The Department of the Navy Observation in Photographs (DNOP) has not released a statement regarding these theories."
icon = 'icons/obj/items/storage/kits.dmi'
icon_state = "pdt_box"
can_hold = list(/obj/item/device/pdt_locator_tube, /obj/item/clothing/accessory/pdt_bracelet)
foldable = /obj/item/stack/sheet/cardboard
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/portable_vendor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/obj/item/device/portable_vendor
name = "\improper Automated Storage Briefcase"
desc = "A suitcase-sized automated storage and retrieval system. Designed to efficiently store and selectively dispense small items."
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/briefcases.dmi'
icon_state = "secure"
flags_atom = FPRINT|CONDUCT
force = 8
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/items/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
desc = "A debug item for research."

/obj/item/moneybag
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/bags.dmi'
name = "Money bag"
icon_state = "moneybag"
force = 10
Expand All @@ -178,7 +178,7 @@
/obj/item/evidencebag
name = "evidence bag"
desc = "An empty evidence bag."
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/bags.dmi'
icon_state = "evidenceobj"
item_state = ""
w_class = SIZE_SMALL
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/items/storage/bags.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
// -----------------------------

/obj/item/storage/bag/plants
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/bags.dmi'
icon_state = "plantbag"
name = "Plant Bag"
storage_slots = 50; //the number of plant pieces it can carry.
Expand Down Expand Up @@ -253,7 +253,7 @@
// -----------------------------

/obj/item/storage/bag/cash
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/bags.dmi'
icon_state = "cashbag"
name = "Cash bag"
desc = "A bag for carrying lots of cash. It's got a big dollar sign printed on the front."
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/storage/bible.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/obj/item/storage/bible
name = "bible"
desc = "Apply to head repeatedly."
icon = 'icons/obj/items/books.dmi'
icon_state ="bible"
throw_speed = SPEED_FAST
throw_range = 5
Expand Down
10 changes: 9 additions & 1 deletion code/game/objects/items/storage/boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
name = "box"
desc = "It's just an ordinary box."
icon_state = "box"
icon = 'icons/obj/items/storage/boxes.dmi'
item_state = "syringe_kit"
foldable = TRUE
storage_slots = null
Expand Down Expand Up @@ -150,6 +151,7 @@
/obj/item/storage/box/flashbangs
name = "box of flashbangs (WARNING)"
desc = "<B>WARNING: These devices are extremely dangerous and can cause blindness or deafness in repeated use.</B>"
icon = 'icons/obj/items/storage/packets.dmi'
icon_state = "flashbang"
can_hold = list(/obj/item/explosive/grenade/flashbang)
w_class = SIZE_MEDIUM
Expand Down Expand Up @@ -181,6 +183,7 @@
/obj/item/storage/box/emps
name = "box of emp grenades"
desc = "A box with 5 emp grenades."
icon = 'icons/obj/items/storage/packets.dmi'
icon_state = "emp"

/obj/item/storage/box/emps/fill_preset_inventory()
Expand Down Expand Up @@ -500,7 +503,7 @@

/obj/item/storage/box/lights
name = "box of replacement bulbs"
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/boxes.dmi'
icon_state = "light"
desc = "This box is shaped on the inside so that only light tubes and bulbs fit."
item_state = "syringe_kit"
Expand Down Expand Up @@ -548,6 +551,7 @@
/obj/item/storage/box/twobore
name = "box of 2 bore shells"
icon_state = "twobore"
icon = 'icons/obj/items/storage/kits.dmi'
desc = "A box filled with enormous slug shells, for hunting only the most dangerous game. 2 Bore."
storage_slots = 5
can_hold = list(/obj/item/ammo_magazine/handful/shotgun/twobore)
Expand All @@ -562,6 +566,7 @@
/obj/item/storage/box/explosive_mines
name = "\improper M20 mine box"
desc = "A secure box holding five M20 anti-personnel proximity mines."
icon = 'icons/obj/items/storage/packets.dmi'
icon_state = "minebox"
w_class = SIZE_MEDIUM
max_storage_space = 10
Expand All @@ -582,6 +587,7 @@
name = "\improper M94 marking flare pack"
desc = "A packet of eight M94 Marking Flares. Carried by USCM soldiers to light dark areas that cannot be reached with the usual TNR Shoulder Lamp."
icon_state = "m94"
icon = 'icons/obj/items/storage/packets.dmi'
w_class = SIZE_MEDIUM
storage_slots = 8
max_storage_space = 8
Expand Down Expand Up @@ -618,6 +624,7 @@
name = "\improper M40 HEDP grenade box"
desc = "A secure box holding 25 M40 High-Explosive Dual-Purpose grenades. High explosive, don't store near the flamer fuel."
icon_state = "nade_placeholder"
icon = 'icons/obj/items/storage/packets.dmi'
w_class = SIZE_LARGE
storage_slots = 25
max_storage_space = 50
Expand Down Expand Up @@ -758,6 +765,7 @@
name = "\improper USCM MRE"
desc = "A Meal, Ready-to-Eat. A single-meal combat ration designed to provide a soldier with enough nutrients for a day of strenuous work. Its expiration date is at least 20 years ahead of your combat life expectancy."
icon_state = "mealpack"
icon = 'icons/obj/items/storage/mre.dmi'
w_class = SIZE_SMALL
can_hold = list()
storage_slots = 7
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/storage/briefcase.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/obj/item/storage/briefcase
name = "briefcase"
desc = "It's made of AUTHENTIC faux-leather and has a price-tag still attached. Its owner must be a real professional."
icon = 'icons/obj/items/storage/briefcases.dmi'
icon_state = "briefcase"
item_state = "briefcase"
flags_atom = FPRINT|CONDUCT
Expand Down
4 changes: 3 additions & 1 deletion code/game/objects/items/storage/firstaid.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/obj/item/storage/firstaid
name = "first-aid kit"
desc = "It's an emergency medical kit for those serious boo-boos. With medical training you can fit this in a backpack."
icon = 'icons/obj/items/storage/medical.dmi'
icon_state = "firstaid"
throw_speed = SPEED_FAST
throw_range = 8
Expand Down Expand Up @@ -254,6 +255,7 @@
/obj/item/storage/syringe_case
name = "syringe case"
desc = "It's a medical case for storing syringes and bottles."
icon = 'icons/obj/items/storage/medical.dmi'
icon_state = "syringe_case"
throw_speed = SPEED_FAST
throw_range = 8
Expand Down Expand Up @@ -308,7 +310,7 @@
\nStep three: Draw back the skin with the retracter.\
\nStep four: Patch the damaged vein with a surgical line.\
\nStep five: Close the incision with a surgical line."

icon = 'icons/obj/items/storage/medical.dmi'
icon_state = "surgical_case"
throw_speed = SPEED_FAST
throw_range = 8
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/storage/large_holster.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/obj/item/storage/large_holster
name = "\improper Rifle Holster"
desc = "holster"
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/holsters.dmi'
icon_state = "m37_holster"
w_class = SIZE_LARGE
flags_equip_slot = SLOT_BACK
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/storage/lockbox.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/obj/item/storage/lockbox
name = "lockbox"
desc = "A locked box."
icon = 'icons/obj/items/storage/briefcases.dmi'
icon_state = "lockbox+l"
item_state = "syringe_kit"
w_class = SIZE_LARGE
Expand Down
7 changes: 4 additions & 3 deletions code/game/objects/items/storage/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
*/

/obj/item/storage/mateba_case
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/kits.dmi'
icon_state = "matebacase"
name = "mateba customization kit case"
desc = "A wooden case used for storing the tools and parts needed to customize a Mateba revolver. Comes with three barrel lengths and the necessary key to swap them out."
Expand Down Expand Up @@ -114,7 +114,7 @@
/obj/item/storage/box/clf
name = "D18-storing box"
desc = "A fairly decorated and ceremonial box containing a CLF D18 and a single additional magazine for it. I guess those CLF folk really care about their craftsmanship and prose rather than practicality, eh?"
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/kits.dmi'
icon_state = "m43case"
w_class = SIZE_SMALL
max_w_class = SIZE_TINY
Expand All @@ -128,7 +128,7 @@
/obj/item/storage/box/upp //war trophy luger
name = "Type 73 storing case"
desc = "A small case containing the once-standard sidearm of the UPP, the Type 73, and two additional magazines. The contained sidearm is probably looted off a dead officer or from a captured stockpile, either way this thing is worth a pretty penny."
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/kits.dmi'
icon_state = "matebacase"
w_class = SIZE_MEDIUM
max_w_class = SIZE_MEDIUM
Expand All @@ -143,6 +143,7 @@
/obj/item/storage/box/co2_knife
name = "M8 cartridge bayonet packaging"
desc = "Contains one M8 Cartridge Bayonet and two sister CO2 cartridges. Thanks for being a dedicated Boots magazine subscriber!"
icon = 'icons/obj/items/storage/kits.dmi'
icon_state = "co2_box"
foldable = TRUE
storage_slots = 3
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/storage/pouch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@
/obj/item/storage/pouch/machete
name = "\improper H6B pattern M2132 machete scabbard"
desc = "A large leather scabbard used to carry a M2132 machete. It can be strapped to the pouch slot."
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/holsters.dmi'
icon_state = "macheteB_holster"
item_state = "machete_holster"
max_w_class = SIZE_LARGE
Expand Down
8 changes: 4 additions & 4 deletions code/game/objects/items/storage/secure.dm
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
else if ((code == l_code) && (l_set == 1))
locked = 0
overlays = null
overlays += image('icons/obj/items/storage.dmi', icon_opened)
overlays += image('icons/obj/items/storage/briefcases.dmi', icon_opened)
code = null
else
code = "ERROR"
Expand All @@ -123,7 +123,7 @@
// -----------------------------
/obj/item/storage/secure/briefcase
name = "secure briefcase"
icon = 'icons/obj/items/storage.dmi'
icon = 'icons/obj/items/storage/briefcases.dmi'
icon_state = "secure"
item_state = "sec-case"
desc = "A large briefcase with a digital locking system."
Expand Down Expand Up @@ -155,8 +155,8 @@

/obj/item/storage/secure/safe
name = "secure safe"
icon = 'icons/obj/items/storage.dmi'
icon_state = "safe"
icon = 'icons/obj/structures/structures.dmi'
icon_state = "wallsafe"
icon_opened = "safe0"
icon_locking = "safeb"
icon_sparking = "safespark"
Expand Down
1 change: 0 additions & 1 deletion code/game/objects/items/storage/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

/obj/item/storage
name = "storage"
icon = 'icons/obj/items/storage.dmi'
w_class = SIZE_MEDIUM
var/list/can_hold = new/list() //List of objects which this item can store (if set, it can't store anything else)
var/list/cant_hold = new/list() //List of objects which this item can't store (in effect only if can_hold isn't set)
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/storage/surgical_tray.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/obj/item/storage/surgical_tray
name = "surgical tray"
desc = "A small metallic tray covered in sterile tarp. Intended to store surgical tools in a neat and clean fashion."
icon = 'icons/obj/items/storage/medical.dmi'
icon_state = "surgical_tray"
flags_atom = FPRINT|CONDUCT
w_class = SIZE_LARGE //Should not fit in backpacks
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/storage/toolbox.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/obj/item/storage/toolbox
name = "toolbox"
desc = "Danger. Very robust."
icon = 'icons/obj/items/storage/toolbox.dmi'
icon_state = "red"
item_state = "toolbox_red"
pickup_sound = 'sound/handling/toolbox_pickup.ogg'
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/storage/toolkit.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/obj/item/storage/toolkit
name = "engineer kit"
desc = "An combat engineering toolkit intended to carry electrical and mechanical supplies into combat. With engineering training you can fit this in a backpack."
icon = 'icons/obj/items/storage/kits.dmi'
icon_state = "toolkit"
item_state = "fulton"
throw_speed = SPEED_FAST
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/storage/wallets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
desc = "It can hold a few small and personal things."
storage_slots = 10
icon_state = "wallet"
icon = 'icons/obj/items/storage/bags.dmi'
w_class = SIZE_TINY
can_hold = list(
/obj/item/spacecash,
Expand Down
9 changes: 0 additions & 9 deletions code/game/objects/structures/crates_lockers/crates.dm
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,6 @@
new /obj/item/storage/box/donkpockets(src)
new /obj/item/storage/box/donkpockets(src)

/* CM doesn't use this.
/obj/structure/closet/crate/bin
desc = "A large bin."
name = "Large bin"
icon_state = "largebin"
icon_opened = "largebinopen"
icon_closed = "largebin"
*/

/obj/structure/closet/crate/radiation
name = "radioactive gear crate"
desc = "A crate with a radiation sign on it."
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/structures/inflatable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
/obj/item/storage/briefcase/inflatable
name = "inflatable barrier box"
desc = "Contains inflatable walls and doors."
icon = 'icons/obj/items/storage/boxes.dmi'
icon_state = "inf_box"
item_state = "syringe_kit"
max_storage_space = 21
Expand Down
1 change: 1 addition & 0 deletions code/modules/cm_marines/Donator_Kits.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/obj/item/storage/box/donator_kit
name = "donated box"
desc = "A cardboard box stamped with a dollar sign and filled with trinkets. Appears to have been donated by a wealthy sponsor."
icon = 'icons/obj/items/storage/kits.dmi'
icon_state = "donator_kit"
item_state = "giftbag"
var/list/donor_gear = list()
Expand Down
1 change: 1 addition & 0 deletions code/modules/cm_marines/equipment/guncases.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/obj/item/storage/box/guncase
name = "\improper gun case"
desc = "It has space for firearm(s). Sometimes magazines or other munitions as well."
icon = 'icons/obj/items/storage/kits.dmi'
icon_state = "guncase"
w_class = SIZE_HUGE
max_w_class = SIZE_HUGE //shouldn't be a problem since we can only store the guns and ammo.
Expand Down
Loading
Loading