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

Adds manufacturer field to ship config and Autowiki #3930

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions _maps/configs/independent_atoll.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"faction": "/datum/faction/independent",
"prefix": "IMV",
"manufacturer": "Ihejirika Civ. Manufacturing",
"job_slots": {
"Captain": {
"outfit": "/datum/outfit/job/independent/captain",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/independent_bubble.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"faction": "/datum/faction/independent",
"prefix": "ISV",
"manufacturer": "Nanotrasen Spaceworks",
"limit": 1,
"job_slots": {
"Captain": {
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/independent_dwayne.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Mark.II Dwayne-class Long Range Mining Transport",
"faction": "/datum/faction/independent",
"prefix": "SV",
"manufacturer": "Nanotrasen Spaceworks",
"namelists": [
"GENERAL",
"SPACE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/independent_kilo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
],
"faction": "/datum/faction/independent",
"prefix": "SV",
"manufacturer": "Miskilamo Spacefaring",
"namelists": [
"GENERAL",
"SPACE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/independent_mudskipper.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"map_short_name": "Mudskipper-class",
"faction": "/datum/faction/independent",
"prefix": "ISV",
"manufacturer": "Miskilamo Spacefaring",
"description": "One of the cheapest (and yet, inexplicably popular) offerings from Miskilamo Spacefaring, the Mudskipper-class is a vessel purpose-built for enterprising scrappers and looters looking to salvage bombed-out ruins and harvest boatloads of materials. Featuring a diverse set of multipurpose rooms, a charitable supply of EVA/ruin raiding equipment, and a set of anti-radiation gear for dealing with industrial accidents, the Mudskipper-class just keeps on chuggin’!",
"tags": [
"Combat",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/independent_raleigh.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Raleigh-class Corvette",
"faction": "/datum/faction/independent",
"prefix": "ISV",
"manufacturer": "Kasagi-Fischer Partnership",
"namelists": [
"SPACE",
"BEASTS",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/independent_rigger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Riggs-class Sloop",
"faction": "/datum/faction/independent",
"prefix": "SV",
"manufacturer": "Kasagi-Fischer Partnership",
"namelists": [
"GENERAL",
"SPACE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/independent_scarab.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Scarab-class Heavy Mining Ship",
"faction": "/datum/faction/independent",
"prefix": "SV",
"manufacturer": "Hardline Salvage and Mining",
"namelists": [
"GENERAL",
"SPACE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/independent_shetland.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"map_name": "Shetland-class Multipurpose Frigate",
"faction": "/datum/faction/independent",
"prefix": "SV",
"manufacturer": "Miskilamo Spacefaring",
"namelists": [
"GENERAL",
"SPACE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/independent_sunskipper.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Sunskipper-class Culinary Vessel",
"faction": "/datum/faction/independent",
"prefix": "SV",
"manufacturer": "Ihejirika Civ. Manufacturing",
"namelists": ["CRUISE", "NATURAL"],
"map_short_name": "Sunskipper-class",
"map_path": "_maps/shuttles/independent/independent_sunskipper.dmm",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/inteq_colossus.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Colossus-class Armored Frigate",
"faction": "/datum/faction/inteq",
"prefix": "IRMV",
"manufacturer": "Hardline Salvage and Mining",
"description": "The mainstay of Inteq’s mercenary fleet, the Colossus is a professionally-militarized freighter like most of Inteq’s ships, and is designed to operate independently for some time, serving IRMG’s interests and providing vital mercenary services wherever they are needed. Key features include a secure and well-stocked armory and ample crew space, as well as a spacious cargo bay, which crews often refurbish into additional recreational or training space.",
"tags": [
"Combat",
Expand Down
3 changes: 2 additions & 1 deletion _maps/configs/inteq_talos.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Talos-class Command Clipper",
"faction": "/datum/faction/inteq",
"prefix": "IRMV",
"manufacturer": "Hardline Salvage and Mining",
"description": "The Talos is a command and support ship, and a rare example of a purpose-built Inteq ship. Outfitted with an abundance of construction and engineering equipment and a private bluespace communications suite capable of networking IRMG ships across any given system, Taloses are often the lynchpin of coordinated IRMG operations in a system, and offer construction and repair services as part of IRMG’s mercenary offerings. As Talos crews place a larger emphasis on support personnel, they tend to be less well-armed than other Inteq crews. One unusual feature of the Talos is its depressurized “wings” filled with redundant baffles, intended to provide extra durability in the case of impacts or weapons fire. They also double as auxiliary storage space and potential room for modification by their enterprising Artificer crews.",
"tags": [
"Engineer",
Expand Down Expand Up @@ -47,7 +48,7 @@
},
"Recruit": {
"outfit": "/datum/outfit/job/inteq/assistant",
"slots": 4
"slots": 4
}
},
"enabled": true
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/inteq_valor.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Valor-Class Field Care Cruiser",
"faction": "/datum/faction/inteq",
"prefix": "IRMV",
"manufacturer": "Hardline Salvage and Mining",
"description": "The Valor is the dedicated medical vessel of the Inteq fleet, suitable for treatment both for Inteq combat casualties, or paid treatment of outsiders. It's equipped with high-end medical equipment and a small ambulance for patient transport for this purpose.",
"tags": ["Medical", "Subshuttle"],
"namelists": [
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/inteq_vaquero.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Vaquero-class Light Frigate",
"faction": "/datum/faction/inteq",
"prefix": "IRMV",
"manufacturer": "Hardline Salvage and Mining",
"description": "The Vaquero is a flexible and cheap military conversion of a light commercial freighter, widely used by Inteq Risk Management Group for picket, reconnaissance, and light escort duty, or for contracts that don't warrant a larger, more specialized ship. Unlike most Inteq ships, the Vaquero features basic medical, engineering, and military equipment all in one package, and its minimal crew requirements are an excellent fit for Vanguards with a smaller command and for training missions. Like its peers, it features a large cargo bay, which can be reconfigured as needed.",
"tags": [
"Generalist"
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/minutemen_atlas.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"map_name": "Atlas-class Light Armored Crusier",
"prefix": "CMSV",
"manufacturer": "Lanchester Shipyards",
"namelists": ["GENERAL", "CLIP MINUTEMEN", "NATURAL_AGGRESSIVE"],
"description": "The Atlas-Class is the designation for some of the oldest serving vessels in the Confederated League's military fleet. Originally the Atlantas-class, the design of the Atlantas was taken by the Colonial Militia just before the beginning of the war with the Old Frontiersmen, playing a pivotal role in multiple skirmishes. It is small in size and crew, well-rounded, and well-suited as an unexpensive hit-and-run vessel. Despite its age, the Atlas continues to serve the Confederated League for peacekeeping missions and driving off small crews of pirates from colonies.",
"tags": [
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/nanotrasen_delta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Delta-class Frigate",
"faction": "/datum/faction/nt/ns_logi",
"prefix": "NSSV",
"manufacturer": "Nanotrasen Spaceworks",
"namelists": [
"GENERAL",
"SPACE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/nanotrasen_harrier.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"map_name": "Harrier-class Exploration Cruiser",
"prefix": "NTSV",
"manufacturer": "Nanotrasen Spaceworks",
"faction": "/datum/faction/nt",
"namelists": [
"NANOTRASEN",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/nanotrasen_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Meta-class Freighter",
"faction": "/datum/faction/nt",
"prefix": "NTSV",
"manufacturer": "Nanotrasen Spaceworks",
"map_short_name": "Meta-class",
"description": "The Meta-class is a medium freight vessel designed for comfort and sustainability over long journeys of delivering cargo. Most, if not all of these ships are no longer under the direct management of the Company, leaving regulation and professionalism at the behest of individual captains. They can be found running independent contracts, delivering cargo, smuggling illicit goods, and generally trying to stay afloat ever since the collapse of Nanotrasen's operations in the frontier.",
"tags": [
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/nanotrasen_ranger.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"prefix": "VISV",
"manufacturer": "Nanotrasen Spaceworks",
"map_name": "Ranger-class Aid Vessel",
"faction": "/datum/faction/nt/vigilitas",
"namelists": [
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/nanotrasen_tegu.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Tegu-class Communications Freighter",
"faction": "/datum/faction/nt",
"prefix": "NTSV",
"manufacturer": "Nanotrasen Spaceworks",
"namelists": [
"NANOTRASEN",
"SPACE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/pgf_crying_sun.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"faction": "/datum/faction/pgf",
"prefix": "PGFN",
"manufacturer": "Etherbor Lihmona Shipyards",
"map_name": "Crying Sun-class Light Frigate",
"namelists": [
"PGF"
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/pgf_elated_bolide.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"faction": "/datum/faction/pgf",
"prefix": "PGFN",
"manufacturer": "Etherbor Lihmona Shipyards",
"map_name": "Elated Bolide-Class Assault Lander",
"namelists": [
"PGF"
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/pgf_woeful_cthonian.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"faction": "/datum/faction/pgf",
"prefix": "PGFN",
"manufacturer": "Axilai Orbital Works",
"map_name": "Woeful Cthonian-class Patrol Cutter",
"namelists": [
"PGF"
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/pirate_libertatia.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
],
"faction": "/datum/faction/frontier",
"prefix": "ISV",
"manufacturer": "Miskilamo Spacefaring",
"namelists": [
"PIRATES",
"NATURAL_AGGRESSIVE"
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/pirate_tortuga.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Tortuga-class Converted Cargo Freighter",
"faction": "/datum/faction/frontier",
"prefix": "ISV",
"manufacturer": "Miskilamo Spacefaring",
"namelists": [
"PIRATES",
"BRITISH_NAVY"
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/syndicate_cybersun_kansatsu.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"faction": "/datum/faction/syndicate/cybersun",
"prefix": "CSSV",
"manufacturer": "Cybersun",
"namelists": [
"CYBERSUN",
"SPACE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/syndicate_cybersun_litieguai.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"map_name": "Li Tieguai-class Rescue Ship",
"faction": "/datum/faction/syndicate/cybersun",
"prefix": "CSSV",
"manufacturer": "ISF Spacecraft",
"map_short_name": "Li Tieguai-class",
"description": "A small, nimble, and exceptionally well-built medical response vessel, the Li Tieguai is a recent addition to Cybersun’s fleet, forming a critical component of their Frontier stabilization program. Li Tieguais come equipped with high-end medical equipment, including a selection of Cybersun augments and prosthetics, as well as weaponry and armor sufficient to protect its personnel in the often-dangerous Frontier sectors, so that they can offer premium healthcare (at premium prices) in even the most dangerous of scenarios.",
"tags": [
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/syndicate_gorlex_komodo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"faction": "/datum/faction/syndicate/hardliners",
"prefix": "ISV",
"manufacturer": "Cybersun",
"namelists": [
"GORLEX",
"NATURAL_AGGRESSIVE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/syndicate_ngr_derecho.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"faction": "/datum/faction/syndicate/ngr",
"prefix": "NGRV",
"manufacturer": "Hardline Salvage and Mining",
"namelists": [
"GORLEX",
"NATURAL_AGGRESSIVE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/syndicate_ngr_kaliandhi.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"faction": "/datum/faction/syndicate/ngr",
"prefix": "NGRV",
"manufacturer": "Hardline Salvage and Mining",
"namelists": [
"GORLEX",
"NATURAL_AGGRESSIVE",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/syndicate_panacea.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"prefix": "SUNS",
"manufacturer": "Cybersun",
"map_name": "Panacea-class Infirm Vessel",
"map_short_name": "Panacea-class",
"map_path": "_maps/shuttles/syndicate/syndicate_panacea.dmm",
Expand Down
1 change: 1 addition & 0 deletions _maps/configs/syndicate_twinkleshine.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"faction": "/datum/faction/syndicate",
"prefix": "SSV",
"manufacturer": "Cybersun",
"namelists": [
"GORLEX",
"SPACE",
Expand Down
1 change: 1 addition & 0 deletions _maps/example_ship_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"map_short_name": "Test-class",
"faction": "/datum/faction/independent",
"prefix": "STSV",
"manufacturer": "Ihejirika Civ. Manufacturing",
"namelists": ["GENERAL", "SPACE", "MYTHOLOGICAL", "WEAPONS"],
"map_path": "_maps/shuttles/shiptest/null.dmm",
"limit": 1,
Expand Down
5 changes: 5 additions & 0 deletions _maps/ship_config_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
"description": "The prefix of the ship class, appended to randomly generated names when they're first purchased.",
"maxLength": 5
},
"manufacturer": {
"title": "Ship Manufacturer",
"type": [ "null", "string" ],
"description": "The manufacturer of the ship class, used in autowiki templates."
},
"namelists": {
"title": "Namelists",
"type": "array",
Expand Down
3 changes: 3 additions & 0 deletions code/controllers/subsystem/mapping.dm
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ SUBSYSTEM_DEF(mapping)
if(istext(data["prefix"]))
S.prefix = data["prefix"]

if(istext(data["manufacturer"]))
S.manufacturer = data["manufacturer"]

if(istext(data["faction"]))
S.faction_path = text2path(data["faction"])
if(S.faction_path)
Expand Down
2 changes: 2 additions & 0 deletions code/datums/shuttles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
var/list/name_categories = list("GENERAL")
/// The prefix of the ship's name.
var/prefix = "ISV"
/// The name of the ship's manufacturer.
var/manufacturer = "Unknown"
/// The full name of the ship's faction.
var/faction_name = "Independent"
var/faction_path = /datum/faction/independent
Expand Down
1 change: 1 addition & 0 deletions code/modules/autowiki/pages/ships.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"name" = ship_name,
"shortname" = escape_value(ship.short_name) || ship_name,
"description" = escape_value(ship.description),
"manufacturer" = escape_value(ship.manufacturer),
"prefix" = escape_value(ship.prefix),
"tags" = escape_value(ship.tags?.Join(", ")),
"limit" = ship.limit,
Expand Down
Loading