update: add integrity to ship components

This commit is contained in:
SpaceAdmiral 2024-03-06 16:14:17 -08:00
parent 43b9bcff42
commit fc1a0563e2
6 changed files with 32 additions and 9 deletions

View 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
}

View 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
}

View File

@ -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
}

View File

@ -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"

View File

@ -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",

View File

@ -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"