mirror of
https://github.com/SpaceTradersAPI/api-docs.git
synced 2024-11-14 22:30:51 +01:00
update: add integrity to ship components
This commit is contained in:
parent
43b9bcff42
commit
fc1a0563e2
7
models/ShipComponentCondition.json
Normal file
7
models/ShipComponentCondition.json
Normal file
@ -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
|
||||||
|
}
|
7
models/ShipComponentIntegrity.json
Normal file
7
models/ShipComponentIntegrity.json
Normal file
@ -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
|
||||||
|
}
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"type": "integer",
|
|
||||||
"description": "Condition is a range of 0 to 100 where 0 is completely worn out and 100 is brand new.",
|
|
||||||
"minimum": 0,
|
|
||||||
"maximum": 100
|
|
||||||
}
|
|
@ -21,7 +21,10 @@
|
|||||||
"description": "The description of the engine."
|
"description": "The description of the engine."
|
||||||
},
|
},
|
||||||
"condition": {
|
"condition": {
|
||||||
"$ref": "./ShipCondition.json"
|
"$ref": "./ShipComponentCondition.json"
|
||||||
|
},
|
||||||
|
"integrity": {
|
||||||
|
"$ref": "./ShipComponentIntegrity.json"
|
||||||
},
|
},
|
||||||
"speed": {
|
"speed": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@ -35,6 +38,8 @@
|
|||||||
"required": [
|
"required": [
|
||||||
"symbol",
|
"symbol",
|
||||||
"name",
|
"name",
|
||||||
|
"condition",
|
||||||
|
"performance",
|
||||||
"description",
|
"description",
|
||||||
"speed",
|
"speed",
|
||||||
"requirements"
|
"requirements"
|
||||||
|
@ -32,7 +32,10 @@
|
|||||||
"description": "Description of the frame."
|
"description": "Description of the frame."
|
||||||
},
|
},
|
||||||
"condition": {
|
"condition": {
|
||||||
"$ref": "./ShipCondition.json"
|
"$ref": "./ShipComponentCondition.json"
|
||||||
|
},
|
||||||
|
"integrity": {
|
||||||
|
"$ref": "./ShipComponentIntegrity.json"
|
||||||
},
|
},
|
||||||
"moduleSlots": {
|
"moduleSlots": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@ -56,6 +59,8 @@
|
|||||||
"required": [
|
"required": [
|
||||||
"symbol",
|
"symbol",
|
||||||
"name",
|
"name",
|
||||||
|
"condition",
|
||||||
|
"performance",
|
||||||
"description",
|
"description",
|
||||||
"moduleSlots",
|
"moduleSlots",
|
||||||
"mountingPoints",
|
"mountingPoints",
|
||||||
|
@ -22,7 +22,10 @@
|
|||||||
"description": "Description of the reactor."
|
"description": "Description of the reactor."
|
||||||
},
|
},
|
||||||
"condition": {
|
"condition": {
|
||||||
"$ref": "./ShipCondition.json"
|
"$ref": "./ShipComponentCondition.json"
|
||||||
|
},
|
||||||
|
"integrity": {
|
||||||
|
"$ref": "./ShipComponentIntegrity.json"
|
||||||
},
|
},
|
||||||
"powerOutput": {
|
"powerOutput": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@ -36,6 +39,8 @@
|
|||||||
"required": [
|
"required": [
|
||||||
"symbol",
|
"symbol",
|
||||||
"name",
|
"name",
|
||||||
|
"condition",
|
||||||
|
"performance",
|
||||||
"description",
|
"description",
|
||||||
"powerOutput",
|
"powerOutput",
|
||||||
"requirements"
|
"requirements"
|
||||||
|
Loading…
Reference in New Issue
Block a user