-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from SpaceTradersAPI/sa/ship-condition
Ship Condition Update
- Loading branch information
Showing
10 changed files
with
396 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"waypointSymbol": { | ||
"$ref": "./WaypointSymbol.json" | ||
}, | ||
"shipSymbol": { | ||
"type": "string", | ||
"description": "The symbol of the ship." | ||
}, | ||
"totalPrice": { | ||
"type": "integer", | ||
"description": "The total price of the transaction.", | ||
"minimum": 0 | ||
}, | ||
"timestamp": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "The timestamp of the transaction." | ||
} | ||
}, | ||
"required": [ | ||
"waypointSymbol", | ||
"shipSymbol", | ||
"totalPrice", | ||
"timestamp" | ||
], | ||
"description": "Result of a repair transaction." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"waypointSymbol": { | ||
"$ref": "./WaypointSymbol.json" | ||
}, | ||
"shipSymbol": { | ||
"type": "string", | ||
"description": "The symbol of the ship." | ||
}, | ||
"totalPrice": { | ||
"type": "integer", | ||
"description": "The total price of the transaction.", | ||
"minimum": 0 | ||
}, | ||
"timestamp": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "The timestamp of the transaction." | ||
} | ||
}, | ||
"required": [ | ||
"waypointSymbol", | ||
"shipSymbol", | ||
"totalPrice", | ||
"timestamp" | ||
], | ||
"description": "Result of a scrap transaction." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "number", | ||
"format": "double", | ||
"description": "The repairable condition of a component. A value of 0 indicates the component needs significant repairs, while a value of 1 indicates the component is in near perfect condition. As the condition of a component is repaired, the overall integrity of the component decreases.", | ||
"minimum": 0, | ||
"maximum": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "number", | ||
"format": "double", | ||
"description": "The overall integrity of the component, which determines the performance of the component. A value of 0 indicates that the component is almost completely degraded, while a value of 1 indicates that the component is in near perfect condition. The integrity of the component is non-repairable, and represents permanent wear over time.", | ||
"minimum": 0, | ||
"maximum": 1 | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"type": "object", | ||
"description": "An event that represents damage or wear to a ship's reactor, frame, or engine, reducing the condition of the ship.", | ||
"properties": { | ||
"symbol": { | ||
"type": "string", | ||
"enum": [ | ||
"REACTOR_OVERLOAD", | ||
"ENERGY_SPIKE_FROM_MINERAL", | ||
"SOLAR_FLARE_INTERFERENCE", | ||
"COOLANT_LEAK", | ||
"POWER_DISTRIBUTION_FLUCTUATION", | ||
"MAGNETIC_FIELD_DISRUPTION", | ||
"HULL_MICROMETEORITE_STRIKES", | ||
"STRUCTURAL_STRESS_FRACTURES", | ||
"CORROSIVE_MINERAL_CONTAMINATION", | ||
"THERMAL_EXPANSION_MISMATCH", | ||
"VIBRATION_DAMAGE_FROM_DRILLING", | ||
"ELECTROMAGNETIC_FIELD_INTERFERENCE", | ||
"IMPACT_WITH_EXTRACTED_DEBRIS", | ||
"FUEL_EFFICIENCY_DEGRADATION", | ||
"COOLANT_SYSTEM_AGEING", | ||
"DUST_MICROABRASIONS", | ||
"THRUSTER_NOZZLE_WEAR", | ||
"EXHAUST_PORT_CLOGGING", | ||
"BEARING_LUBRICATION_FADE", | ||
"SENSOR_CALIBRATION_DRIFT", | ||
"HULL_MICROMETEORITE_DAMAGE", | ||
"SPACE_DEBRIS_COLLISION", | ||
"THERMAL_STRESS", | ||
"VIBRATION_OVERLOAD", | ||
"PRESSURE_DIFFERENTIAL_STRESS", | ||
"ELECTROMAGNETIC_SURGE_EFFECTS", | ||
"ATMOSPHERIC_ENTRY_HEAT" | ||
] | ||
}, | ||
"component": { | ||
"type": "string", | ||
"enum": [ | ||
"FRAME", | ||
"REACTOR", | ||
"ENGINE" | ||
] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the event." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "A description of the event." | ||
} | ||
}, | ||
"required": [ | ||
"symbol", | ||
"component", | ||
"name", | ||
"description" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.