diff --git a/models/ShipComponentCondition.json b/models/ShipComponentCondition.json new file mode 100644 index 0000000..e7bee25 --- /dev/null +++ b/models/ShipComponentCondition.json @@ -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 +} \ No newline at end of file diff --git a/models/ShipComponentIntegrity.json b/models/ShipComponentIntegrity.json new file mode 100644 index 0000000..18f74e3 --- /dev/null +++ b/models/ShipComponentIntegrity.json @@ -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 +} \ No newline at end of file diff --git a/models/ShipCondition.json b/models/ShipCondition.json deleted file mode 100644 index b1b2c01..0000000 --- a/models/ShipCondition.json +++ /dev/null @@ -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 -} \ No newline at end of file diff --git a/models/ShipEngine.json b/models/ShipEngine.json index d48567d..7e80120 100644 --- a/models/ShipEngine.json +++ b/models/ShipEngine.json @@ -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" diff --git a/models/ShipFrame.json b/models/ShipFrame.json index 90bfa3f..226ae45 100644 --- a/models/ShipFrame.json +++ b/models/ShipFrame.json @@ -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", diff --git a/models/ShipReactor.json b/models/ShipReactor.json index 4c61e41..1a44847 100644 --- a/models/ShipReactor.json +++ b/models/ShipReactor.json @@ -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"