mirror of
https://github.com/SpaceTradersAPI/api-docs.git
synced 2024-12-25 06:10:14 +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."
|
||||
},
|
||||
"condition": {
|
||||
"$ref": "./ShipCondition.json"
|
||||
"$ref": "./ShipComponentCondition.json"
|
||||
},
|
||||
"integrity": {
|
||||
"$ref": "./ShipComponentIntegrity.json"
|
||||
},
|
||||
"speed": {
|
||||
"type": "integer",
|
||||
@ -35,6 +38,8 @@
|
||||
"required": [
|
||||
"symbol",
|
||||
"name",
|
||||
"condition",
|
||||
"performance",
|
||||
"description",
|
||||
"speed",
|
||||
"requirements"
|
||||
|
@ -32,7 +32,10 @@
|
||||
"description": "Description of the frame."
|
||||
},
|
||||
"condition": {
|
||||
"$ref": "./ShipCondition.json"
|
||||
"$ref": "./ShipComponentCondition.json"
|
||||
},
|
||||
"integrity": {
|
||||
"$ref": "./ShipComponentIntegrity.json"
|
||||
},
|
||||
"moduleSlots": {
|
||||
"type": "integer",
|
||||
@ -56,6 +59,8 @@
|
||||
"required": [
|
||||
"symbol",
|
||||
"name",
|
||||
"condition",
|
||||
"performance",
|
||||
"description",
|
||||
"moduleSlots",
|
||||
"mountingPoints",
|
||||
|
@ -22,7 +22,10 @@
|
||||
"description": "Description of the reactor."
|
||||
},
|
||||
"condition": {
|
||||
"$ref": "./ShipCondition.json"
|
||||
"$ref": "./ShipComponentCondition.json"
|
||||
},
|
||||
"integrity": {
|
||||
"$ref": "./ShipComponentIntegrity.json"
|
||||
},
|
||||
"powerOutput": {
|
||||
"type": "integer",
|
||||
@ -36,6 +39,8 @@
|
||||
"required": [
|
||||
"symbol",
|
||||
"name",
|
||||
"condition",
|
||||
"performance",
|
||||
"description",
|
||||
"powerOutput",
|
||||
"requirements"
|
||||
|
Loading…
Reference in New Issue
Block a user