瀏覽代碼

vcmi: move demon summoning ability to separate file

Konstantin 2 年之前
父節點
當前提交
b59ee5fecc
共有 3 個文件被更改,包括 52 次插入49 次删除
  1. 2 1
      config/gameConfig.json
  2. 1 48
      config/spells/ability.json
  3. 49 0
      config/spells/vcmiAbility.json

+ 2 - 1
config/gameConfig.json

@@ -78,7 +78,8 @@
 		"config/spells/offensive.json",
 		"config/spells/other.json",
 		"config/spells/timed.json",
-		"config/spells/ability.json"
+		"config/spells/ability.json",
+		"config/spells/vcmiAbility.json"
 	],
 	"skills" :
 	[

+ 1 - 48
config/spells/ability.json

@@ -428,52 +428,5 @@
 				"bonus.DIRECT_DAMAGE_IMMUNITY" : "normal"
 			}
 		}
-	},
-	"summonDemons" : {
-		"type": "ability",
-		"targetType" : "CREATURE",
-		"name": "Summon Demons",
-		"school" : {},
-		"level": 2,
-		"power": 50,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"animation":{
-		},
-		"sounds": {
-			"cast": "RESURECT"
-		},
-		"levels" : {
-			"base": {
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 40,
-				"cost" : 1,
-				"range" : "0",
-				"battleEffects":{
-					"demonSummon":{
-						"id":"demon",
-						"permanent":true,
-						"type":"core:demonSummon"
-					}
-				}
-			},
-			"none" :{},
-			"basic" :{},
-			"advanced" :{},
-			"expert" :{}
-		},
-		"flags" : {
-			"rising": true,
-			"positive": true
-		},
-		"targetCondition" : {
-			"noneOf" : {
-				"bonus.NON_LIVING" : "absolute",
-				"bonus.SIEGE_WEAPON" : "absolute",
-				"bonus.UNDEAD" : "absolute",
-				"bonus.GARGOYLE" : "absolute"
-			}
-		}
-	},
+	}
 }

+ 49 - 0
config/spells/vcmiAbility.json

@@ -0,0 +1,49 @@
+{
+    "summonDemons" : {
+		"type": "ability",
+		"targetType" : "CREATURE",
+		"name": "Summon Demons",
+		"school" : {},
+		"level": 2,
+		"power": 50,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"animation":{
+		},
+		"sounds": {
+			"cast": "RESURECT"
+		},
+		"levels" : {
+			"base": {
+				"description" : "",
+				"aiValue" : 0,
+				"power" : 40,
+				"cost" : 1,
+				"range" : "0",
+				"battleEffects":{
+					"demonSummon":{
+						"id":"demon",
+						"permanent":true,
+						"type":"core:demonSummon"
+					}
+				}
+			},
+			"none" :{},
+			"basic" :{},
+			"advanced" :{},
+			"expert" :{}
+		},
+		"flags" : {
+			"rising": true,
+			"positive": true
+		},
+		"targetCondition" : {
+			"noneOf" : {
+				"bonus.NON_LIVING" : "absolute",
+				"bonus.SIEGE_WEAPON" : "absolute",
+				"bonus.UNDEAD" : "absolute",
+				"bonus.GARGOYLE" : "absolute"
+			}
+		}
+    }
+}