From ed6725db0f4c9a16e9c6b62dfe20078e582e9ad8 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Fri, 9 May 2025 17:31:25 +0300 Subject: [PATCH] Update schemas --- config/schemas/gameSettings.json | 7 +++++++ config/schemas/rewardable.json | 26 +++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/config/schemas/gameSettings.json b/config/schemas/gameSettings.json index 3b5b208f7..ee425e660 100644 --- a/config/schemas/gameSettings.json +++ b/config/schemas/gameSettings.json @@ -111,6 +111,13 @@ "blackMarketRestockPeriod" : { "type" : "number" } } }, + "mapObjects": { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "h3BugQuestTakesEntireArmy" : { "type" : "boolean" } + } + }, "banks": { "type" : "object", "additionalProperties" : false, diff --git a/config/schemas/rewardable.json b/config/schemas/rewardable.json index 214eedbfc..95ac4e51d 100644 --- a/config/schemas/rewardable.json +++ b/config/schemas/rewardable.json @@ -119,13 +119,28 @@ "description": "List of bonuses that will be granted to visiting hero", "items": { "$ref" : "bonusInstance.json" } }, + "commanderBonuses" : { + "type":"array", + "description": "List of bonuses that will be granted to commander of a visiting hero", + "items": { "$ref" : "bonusInstance.json" } + }, + "playerBonuses" : { + "type":"array", + "description": "List of bonuses that will be granted to player that owns visiting hero", + "items": { "$ref" : "bonusInstance.json" } + }, "resources" : { "$ref" : "#/definitions/identifierWithValueList" }, "secondary" : { "$ref" : "#/definitions/identifierWithValueList" }, "creatures" : { "$ref" : "#/definitions/identifierWithValueList" }, + "takenCreatures" : { "$ref" : "#/definitions/identifierWithValueList" }, "primary" : { "$ref" : "#/definitions/identifierWithValueList" }, "artifacts" : { "$ref" : "#/definitions/identifierList" }, + "takenArtifacts" : { "$ref" : "#/definitions/identifierList" }, + "takenArtifactSlots" : { "$ref" : "#/definitions/identifierList" }, + "scrolls" : { "$ref" : "#/definitions/identifierList" }, + "takenScrolls" : { "$ref" : "#/definitions/identifierList" }, "spells" : { "$ref" : "#/definitions/identifierList" }, "spellCast" : { @@ -166,18 +181,23 @@ "manaPoints" : { "$ref" : "#/definitions/value" }, "canLearnSkills" : { "type" : "boolean" }, + "commanderAlive" : { "type" : "boolean" }, + "hasExtraCreatures" : { "type" : "boolean" }, "resources" : { "$ref" : "#/definitions/identifierWithValueList" }, "secondary" : { "$ref" : "#/definitions/identifierWithValueList" }, "creatures" : { "$ref" : "#/definitions/identifierWithValueList" }, + "canReceiveCreatures" : { "$ref" : "#/definitions/identifierWithValueList" }, "primary" : { "$ref" : "#/definitions/identifierWithValueList" }, "canLearnSpells" : { "$ref" : "#/definitions/identifierList" }, "heroClasses" : { "$ref" : "#/definitions/identifierList" }, "artifacts" : { "$ref" : "#/definitions/identifierList" }, + "scrolls" : { "$ref" : "#/definitions/identifierList" }, "spells" : { "$ref" : "#/definitions/identifierList" }, "colors" : { "$ref" : "#/definitions/identifierList" }, "heroes" : { "$ref" : "#/definitions/identifierList" }, + "availableSlots" : { "$ref" : "#/definitions/identifierList" }, "anyOf" : { "type" : "array", @@ -285,6 +305,10 @@ "type" : "boolean" }, + "forceCombat": { + "type" : "boolean" + }, + "showScoutedPreview": { "type" : "boolean" }, @@ -298,7 +322,7 @@ }, "visitMode": { - "enum" : [ "unlimited", "once", "hero", "bonus", "limiter", "player" ], + "enum" : [ "unlimited", "once", "hero", "bonus", "limiter", "player", "playerGlobal" ], "type" : "string" },