mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-06-07 07:06:57 +01:00
d89798cf7e
Implements #4434 The reason for the order can now be viewed in the cargo control application Calculate the shuttle fee per order It is now possible to pay for orders that have been approved by cargo before they are shipped to the station A mainfest spawns in the crates Schema Changes: The supplier, path and amount columns have been retired and are no longer used Instead the following columns will be used: supplier - the short name of the supplier that will be used price - the price for the items items - the items and their variables If you are storing the cargo items in the SQL DB, then you dont have to do anything. They will be migrated automatically to the new format If you are storing the cargo items in JSON Files then you have to rewrite the files to adhere to the new format. A example file of the new format is included
83 lines
2.1 KiB
JSON
83 lines
2.1 KiB
JSON
{
|
|
"categories": {
|
|
"security": {
|
|
"name": "security",
|
|
"display_name": "Security",
|
|
"description": "Security Items",
|
|
"icon": "person",
|
|
"price_modifier": 1
|
|
},
|
|
"engineering": {
|
|
"name": "engineering",
|
|
"display_name": "Engineering",
|
|
"description": "Engineering Items",
|
|
"icon": "wrench",
|
|
"price_modifier": 1
|
|
}
|
|
},
|
|
"suppliers": {
|
|
"nanotrasen": {
|
|
"name": "Nano Trasen",
|
|
"description": "Your default supplier.",
|
|
"tag_line": "For all your station supplies.",
|
|
"shuttle_time": 100,
|
|
"shuttle_price": 500,
|
|
"available": 1,
|
|
"price_modifier": 1
|
|
},
|
|
"einsteinengines": {
|
|
"name": "Einstein Engies",
|
|
"description": "Manufacturer of high tech engineering equipment.",
|
|
"tag_line": "Everything your engineers need and more.",
|
|
"shuttle_time": 200,
|
|
"shuttle_price": 200,
|
|
"available": 1,
|
|
"price_modifier": 1
|
|
},
|
|
"weaponsco": {
|
|
"name": "Weapons Co",
|
|
"description": "Mass producing weapons. Nothing too fancy, but cheap.",
|
|
"tag_line": "Need to shoot stuff badly ? - We got you covered.",
|
|
"shuttle_time": 300,
|
|
"shuttle_price": 300,
|
|
"available": 1,
|
|
"price_modifier": 1
|
|
}
|
|
},
|
|
"items": {
|
|
".45 Pistol": {
|
|
"name": ".45 Pistol",
|
|
"supplier": "weaponsco",
|
|
"description": "A standard sidearm, found pretty much everywhere humans are. Uses .45 rounds.",
|
|
"categories": ["medical", "security", "engineering", "civilian"],
|
|
"price": 100,
|
|
"items": {
|
|
".45 Pistol": {
|
|
"path": "/obj/item/weapon/gun/projectile/sec",
|
|
"vars": []
|
|
}
|
|
},
|
|
"access": 3,
|
|
"container_type": "crate",
|
|
"groupable": 1,
|
|
"item_mul": 1
|
|
},
|
|
"/obj/item/clothing/gloves/yellow": {
|
|
"name": "Insulated Gloves",
|
|
"supplier": "einsteinengines",
|
|
"description": "Rubber Insulated Gloves",
|
|
"categories": ["engineering"],
|
|
"price": 20,
|
|
"items": {
|
|
"Insulated Gloves": {
|
|
"path": "/obj/item/clothing/gloves/yellow",
|
|
"vars": []
|
|
}
|
|
},
|
|
"access": 10,
|
|
"container_type": "crate",
|
|
"groupable": 1,
|
|
"item_mul": 2
|
|
}
|
|
}
|
|
} |