From d957540fbdf9a0fa654d495f6f587d783955ccbd Mon Sep 17 00:00:00 2001 From: Ben C Date: Sat, 15 Feb 2025 02:54:28 +0000 Subject: [PATCH] Updated Schemas --- NewHorizons/Schemas/body_schema.json | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/NewHorizons/Schemas/body_schema.json b/NewHorizons/Schemas/body_schema.json index 357cc769..c7ccace0 100644 --- a/NewHorizons/Schemas/body_schema.json +++ b/NewHorizons/Schemas/body_schema.json @@ -6395,10 +6395,6 @@ "default": "none", "$ref": "#/definitions/NHCreditsType" }, - "gameOverText": { - "type": "string", - "description": "Text displayed in orange on game over. For localization, put translations under UI." - }, "deathType": { "description": "The type of death the player will have if they enter this volume. Don't set to have the camera just fade out.", "default": "default", @@ -6411,9 +6407,9 @@ } ] }, - "gameOverTextColour": { - "description": "Change the colour of the game over text. Leave empty to use the default orange.", - "$ref": "#/definitions/MColor" + "gameOver": { + "description": "The game over message to display. Leave empty to go straight to credits.", + "$ref": "#/definitions/GameOverModule" } } }, @@ -6433,6 +6429,24 @@ "none" ] }, + "GameOverModule": { + "type": "object", + "additionalProperties": false, + "properties": { + "text": { + "type": "string", + "description": "Text displayed in orange on game over. For localization, put translations under UI." + }, + "colour": { + "description": "Change the colour of the game over text. Leave empty to use the default orange.", + "$ref": "#/definitions/MColor" + }, + "condition": { + "type": "string", + "description": "Condition that must be true for this game over to trigger. Leave empty to always trigger this game over.\nNote this is a regular dialogue condition, not a persistent condition." + } + } + }, "CometTailModule": { "type": "object", "additionalProperties": false,