From d1917898a96a11662b901df03c3f3650daf6fd5f Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 20 Jun 2023 19:37:03 +0300 Subject: [PATCH] Update validation schemas --- config/schemas/creature.json | 5 +++++ config/schemas/faction.json | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/config/schemas/creature.json b/config/schemas/creature.json index 8bb15bb0c..71bc352eb 100644 --- a/config/schemas/creature.json +++ b/config/schemas/creature.json @@ -144,6 +144,11 @@ "description" : ".def file with animation of this creature on adventure map", "format" : "defFile" }, + "mapMask" : { + "type" : "array", + "items" : { "type" : "string" }, + "description" : "Object mask that describes on which tiles object is visible/blocked/activatable" + }, "iconLarge" : { "type" : "string", "description" : "Large icon for this creature, used for example in town screen", diff --git a/config/schemas/faction.json b/config/schemas/faction.json index 899c9eb09..e0a09f02d 100644 --- a/config/schemas/faction.json +++ b/config/schemas/faction.json @@ -32,7 +32,7 @@ "description" : "Json format for defining new faction (aka towns) in VCMI", "required" : [ "name", "alignment", "nativeTerrain", "creatureBackground" ], "dependencies" : { - "town" : [ "puzzleMap" ] + "town" : [ "puzzleMap", "boat" ] }, "additionalProperties" : false, "properties" : { @@ -49,6 +49,11 @@ "type" : "string", "description" : "Native terrain for creatures. Creatures fighting on native terrain receive several bonuses" }, + "boat" : { + "type" : "string", + "description" : "Identifier of boat type that is produced by shipyard in town, if any" + }, + "preferUndergroundPlacement" : { "type" : "boolean", "description" : "Random map generator places player/cpu-owned towns underground if true is specified and on the ground otherwise. Parameter is unused for maps without underground. False by default." @@ -124,10 +129,6 @@ "type" : "string", "description" : "Identifier of war machine produced by blacksmith in town" }, - "boat" : { - "type" : "string", - "description" : "Identifier of boat type that is produced by shipyard in town, if any" - }, "horde" : { "type" : "array", "maxItems" : 2,