Ivan Savenko пре 2 година
родитељ
комит
d1917898a9
2 измењених фајлова са 11 додато и 5 уклоњено
  1. 5 0
      config/schemas/creature.json
  2. 6 5
      config/schemas/faction.json

+ 5 - 0
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",

+ 6 - 5
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,