Files
Aurora.3/code/modules/cargo/items/mining.dm
naut 55f4e12614 Codeside Cargo Refactor (#20030)
**NOTE TO SYSADMINS: See "SQL Details" section below for information on
SQL modifications.**

Moves the data containing cargo items (i.e. the ones you order from ops
and get in the cargo shuttle) from the online database to the codebase.
Everything from suppliers to categories to individual items is now
code-side and editable by developers/contributors.

Refactors cargo items to use `singletons` instead of `datums` for
`cargo_supplier`, `cargo_category`, and `cargo_item`. Multiple-instnace
things like cargo_orders, etc. still use `datums`.

Fixed a bunch of strange discrepancies in categories, suppliers, and
pricing for various cargo items. I did a little bit, but it's exhausting
to go through all of it right now.

Clicking the 'Details' button on the Cargo Order app now actually gives
you details instead of bluescreening. Also added some UI elements to the
Cargo Order app - Cargo Control and Delivery remain untouched.

Overhauled the Cargo Order console TGUI window. It now has tabs on the
left, displays restricted access, supplier information, and boasts
search functionality.

### SQL Details
<details>
<summary>SQL Details [Click to Expand]</summary>

The following SQL tables should be deleted or deprecated from the server
database, as they are no longer in use:

- `ss13_cargo_items`
- `ss13_cargo_categories`
- `ss13_cargo_suppliers`

The included migration file, `V011__codeside_cargo`, creates a new table
`ss13_cargo_item_orderlog` to the DB. This **replaces**
`ss13_cargo_orderlog_items`. Because of this,
`ss13_cargo_orderlog_items` is deprecated and should either be deleted
or locked & preserved for logging purposes.

</details>

## Screenshots


![image](https://github.com/user-attachments/assets/79129923-1fb6-4cee-ac8d-5505a52270a4)

![image](https://github.com/user-attachments/assets/a323be35-8ce6-4ec4-98f7-ee701d0931a3)

![image](https://github.com/user-attachments/assets/5ddb02c5-152f-4715-b2da-20903fa11c93)

![image](https://github.com/user-attachments/assets/420e45b0-6a9f-4420-beb8-a2c8423a5be4)

![image](https://github.com/user-attachments/assets/114f4755-ee51-41e6-8670-07aacc5326ae)

---------

Signed-off-by: naut <55491249+nauticall@users.noreply.github.com>
Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
2025-03-04 18:18:00 +00:00

128 lines
3.6 KiB
Plaintext

/singleton/cargo_item/miningvoidsuit
category = "mining"
name = "mining voidsuit"
supplier = "nanotrasen"
description = "A special suit that protects against hazardous, low pressure environments. Has reinforced plating."
price = 1200
items = list(
/obj/item/clothing/suit/space/void/mining
)
access = ACCESS_MINING
container_type = "crate"
groupable = TRUE
spawn_amount = 1
/singleton/cargo_item/miningvoidsuithelmet
category = "mining"
name = "mining voidsuit helmet"
supplier = "nanotrasen"
description = "A special helmet designed for work in a hazardous, low pressure environment. Has reinforced plating."
price = 850
items = list(
/obj/item/clothing/head/helmet/space/void/mining
)
access = ACCESS_MINING
container_type = "crate"
groupable = TRUE
spawn_amount = 1
/singleton/cargo_item/classakineticaccelerator
category = "mining"
name = "Class A Kinetic Accelerator"
supplier = "hephaestus"
description = "Contains a tactical KA frame, an experimental core KA power converter, a recoil reloading KA cell, and a upgrade chip - damage increase."
price = 7999
items = list(
/obj/item/gun/custom_ka/frame05/prebuilt
)
access = ACCESS_MINING
container_type = "crate"
groupable = TRUE
spawn_amount = 1
/singleton/cargo_item/classbkineticaccelerator
category = "mining"
name = "Class B Kinetic Accelerator"
supplier = "hephaestus"
description = "Contains a heavy KA frame, a planet core KA power converter, a uranium recharging KA cell, and a upgrade chip - efficiency increase."
price = 5599
items = list(
/obj/item/gun/custom_ka/frame04/prebuilt
)
access = ACCESS_MINING
container_type = "crate"
groupable = TRUE
spawn_amount = 1
/singleton/cargo_item/classckineticaccelerator
category = "mining"
name = "Class C Kinetic Accelerator"
supplier = "hephaestus"
description = "Contains a medium KA frame, a meteor core KA power converter, a kinetic KA cell, and a upgrade chip - focusing."
price = 3299
items = list(
/obj/item/gun/custom_ka/frame03/prebuilt
)
access = ACCESS_MINING
container_type = "crate"
groupable = TRUE
spawn_amount = 1
/singleton/cargo_item/classdkineticaccelerator
category = "mining"
name = "Class D Kinetic Accelerator"
supplier = "hephaestus"
description = "Contains a light KA frame, a professional core KA power converter, an advanced pump recharging KA cell, and a upgrade chip - firedelay increase."
price = 2299
items = list(
/obj/item/gun/custom_ka/frame02/prebuilt
)
access = ACCESS_MINING
container_type = "crate"
groupable = TRUE
spawn_amount = 1
/singleton/cargo_item/classekineticaccelerator
category = "mining"
name = "Class E Kinetic Accelerator"
supplier = "hephaestus"
description = "Contains a compact KA frame, a standard core KA power converter, a pump recharging KA cell, and a upgrade chip - focusing."
price = 1499
items = list(
/obj/item/gun/custom_ka/frame01/prebuilt
)
access = ACCESS_MINING
container_type = "crate"
groupable = TRUE
spawn_amount = 1
/singleton/cargo_item/industrialminingdrill
category = "mining"
name = "mining drill"
supplier = "hephaestus"
description = "A large industrial drill. Its bore does not penetrate deep enough to access the sublevels."
price = 4000
items = list(
/obj/machinery/mining/drill,
/obj/machinery/mining/brace,
/obj/machinery/mining/brace
)
access = ACCESS_MINING
container_type = "crate"
groupable = TRUE
spawn_amount = 1
/singleton/cargo_item/orebox
category = "mining"
name = "ore box"
supplier = "hephaestus"
description = "Contains a box for storing ore."
price = 250
items = list(
/obj/structure/ore_box
)
access = 0
container_type = "box"
groupable = TRUE
spawn_amount = 1