Skip to content

Commit

Permalink
Schema cleanup and validation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Dec 11, 2024
1 parent c542246 commit 9c2437d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _maps/configs/independent_dwayne.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"NATURAL",
"MERCANTILE"
],
"map_short_name": "Mk.II Dwayne-class ",
"map_short_name": "Mk.II Dwayne-class",
"map_path": "_maps/shuttles/independent/independent_dwayne.dmm",
"description": "The Dwayne is one of the older classes of ships commonly seen on the Frontier, and one of the few such classes that doesn’t also carry a reputation for nightmarish conditions or high accident rates. Originally conceived of as a “mothership” for Nanotrasen mining shuttles that could enable long-duration mining missions at minimal cost, severe budget overruns and issues with the mining shuttle docking system left Nanotrasen with a massive number of mostly-completed hulls upon the project’s cancellation. These hulls were then quickly refurbished and sold on the civilian market, where they proved an immediate success on the Frontier. Contemporary Dwaynes can typically be found carrying a variety of mining equipment and extensive modifications unique to their captains.",
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion _maps/configs/inteq_valor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"map_name": "Valor-Class Field Care Cruiser",
"map_name": "Valor-class Field Care Cruiser",
"faction": "/datum/faction/inteq",
"prefix": "IRMV",
"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.",
Expand Down
2 changes: 1 addition & 1 deletion _maps/configs/nanotrasen_heron.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"namelists": [
"WEAPONS"
],
"map_name": "Heron-Class Dreadnaught",
"map_name": "Heron-class Dreadnaught",
"map_short_name": "Heron-class",
"map_path": "_maps/shuttles/nanotrasen/nanotrasen_heron.dmm",
"map_id": "nanotrasen_heron",
Expand Down
2 changes: 1 addition & 1 deletion _maps/configs/nanotrasen_mimir.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"NATURAL_AGGRESSIVE",
"BEASTS"
],
"map_name": "Mimir-class Rehabillitation Vessel",
"map_name": "Mimir-class Rehabilitation Vessel",
"map_short_name": "Mimir-class",
"description": "The Mimir-class are Nanotrasen “patient” transfer and holding ships. Nanotrasen deploys Mimirs to hold those they’ve interned, often in ruined or otherwise out-of-the-way sectors. This both minimizes the chances of the “patients” escaping and drastically lowers the incentive to do so in the first place, as it keeps them stuck in the middle of nowhere until Central Command is ready to pick them up and process them. While “patients” are largely kept in cryogenic storage, regulations and medical necessity both require occasional thawing. As such, the Mimir comes with a host of “rehabilitative” activities for the “patients” as well as a light security detail to manage them.",
"tags": [
Expand Down
4 changes: 2 additions & 2 deletions _maps/configs/pgf_elated_bolide.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"$schema": "https://raw.githubusercontent.com/shiptest-ss13/Shiptest/master/_maps/ship_config_schema.json",
"faction": "/datum/faction/pgf",
"prefix": "PGFN",
"map_name": "Elated Bolide-Class Assault Lander",
"map_name": "Elated Bolide-class Assault Lander",
"namelists": [
"PGF"
],
"map_short_name": "Elated Bolide-Class",
"map_short_name": "Elated Bolide-class",
"description": "A somewhat stout design manufactured by the Etherbor PGFN Lihmona Navy Shipyard for service as an orbital assault ship, the Elated Bolide class has served with distinction in many minor conflicts and been sent on deployment to even more locales. Despite not carrying ship-to-ship weaponry (with the traditional mounting spot being taken up by a high-gain antenna), the Elated Bolide's Pioneers are well armed and well trained for orbital insertion, construction, and demolition.",
"tags": [
"Combat",
Expand Down
5 changes: 3 additions & 2 deletions _maps/ship_config_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
"$schema": "https://json-schema.org/draft-07/schema",
"title": "Ship Configuration Schema",
"description": "A ship configuration, used for defining new ship classes.",
"tags": "A list of tags, used for searching ships by quality.",
"type": "object",

"properties": {
"map_name": {
"title": "Class Name",
"type": "string",
"pattern": "-class",
"description": "The name of the ship class, as viewable in-game."
},
"map_short_name": {
"title": "Shortened Class Name",
"type": "string",
"pattern": "-class$",
"description": "A shortened version of the ship class name, used in things such as the manifest.",
"maxLength": 20
},
Expand Down Expand Up @@ -174,5 +175,5 @@
}
},

"required": ["map_name", "map_path"]
"required": ["map_name", "map_short_name", "map_path", "faction", "job_slots"]
}

0 comments on commit 9c2437d

Please sign in to comment.