Updated Schemas

This commit is contained in:
Ben C 2025-02-16 22:53:14 +00:00
parent 3270580422
commit bbb25d99f6

View File

@ -110,6 +110,13 @@
"$ref": "#/definitions/CuriosityColorInfo" "$ref": "#/definitions/CuriosityColorInfo"
} }
}, },
"conditionalChecks": {
"type": "array",
"description": "A list of conditional checks to be performed while in this star system.",
"items": {
"$ref": "#/definitions/ConditionalCheckInfo"
}
},
"extras": { "extras": {
"type": "object", "type": "object",
"description": "Extra data that may be used by extension mods", "description": "Extra data that may be used by extension mods",
@ -451,6 +458,117 @@
"minimum": 0.0 "minimum": 0.0
} }
} }
},
"ConditionalCheckInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"check": {
"description": "The conditions that must be met for the check to pass",
"$ref": "#/definitions/ConditionalCheckConditionsInfo"
},
"then": {
"description": "The effects of the check if it passes",
"$ref": "#/definitions/ConditionalCheckEffectsInfo"
}
}
},
"ConditionalCheckConditionsInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"allConditionsSet": {
"type": "array",
"description": "The check will only pass if all of these dialogue conditions are set",
"items": {
"type": "string"
}
},
"anyConditionsSet": {
"type": "array",
"description": "The check will only pass if any of these dialogue conditions are set",
"items": {
"type": "string"
}
},
"allPersistentConditionsSet": {
"type": "array",
"description": "The check will only pass if all of these persistent conditions are set",
"items": {
"type": "string"
}
},
"anyPersistentConditionsSet": {
"type": "array",
"description": "The check will only pass if any of these persistent conditions are set",
"items": {
"type": "string"
}
},
"allFactsRevealed": {
"type": "array",
"description": "The check will only pass if all of these ship log facts are revealed",
"items": {
"type": "string"
}
},
"anyFactsRevealed": {
"type": "array",
"description": "The check will only pass if any of these ship log facts are revealed",
"items": {
"type": "string"
}
},
"invert": {
"type": "boolean",
"description": "If the check should pass only if the conditions are not met"
}
}
},
"ConditionalCheckEffectsInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"setConditions": {
"type": "array",
"description": "The check will set these dialogue conditions if it passes",
"items": {
"type": "string"
}
},
"unsetConditions": {
"type": "array",
"description": "The check will unset these dialogue conditions if it passes",
"items": {
"type": "string"
}
},
"setPersistentConditions": {
"type": "array",
"description": "The check will set these persistent conditions if it passes",
"items": {
"type": "string"
}
},
"unsetPersistentConditions": {
"type": "array",
"description": "The check will unset these persistent conditions if it passes",
"items": {
"type": "string"
}
},
"revealFacts": {
"type": "array",
"description": "The check will reveal these ship log facts if it passes",
"items": {
"type": "string"
}
},
"reversible": {
"type": "boolean",
"description": "If the check should undo its effects if the conditions are not met anymore (unset the set conditions, etc.). Note: ship log facts cannot currently be unrevealed."
}
}
} }
}, },
"$docs": { "$docs": {