浏览代码

Added missing option to schemas and docs

Ivan Savenko 1 年之前
父节点
当前提交
a09a0d41c3
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 6 0
      config/schemas/objectType.json
  2. 3 0
      docs/modders/Map_Object_Format.md

+ 6 - 0
config/schemas/objectType.json

@@ -40,6 +40,12 @@
 				"$ref" : "objectTemplate.json"
 			}
 		},
+
+		"battleground" : {
+			"description" : "Battleground that will be used for combats in this object. Overrides terrain this object was placed on",
+			"type" : "string"
+		},
+
 		"sounds" : {
 			"type" : "object",
 			"additionalProperties" : false,

+ 3 - 0
docs/modders/Map_Object_Format.md

@@ -58,6 +58,9 @@ Full object consists from 3 parts:
 		// How valuable this object is to AI
 		"aiValue" : 1000,
 		
+		// Battleground that will be used for combats in this object. Overrides terrain this object was placed on
+		"battleground" : "cursed_ground",
+		
 		// Sounds assigned to this object
 		"sounds" : {
 			// Ambient sounds that plays when current hero is near this object