1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

vcmi: convert fireWall and landMine

convert fireWall and landMine to new
trigger system. Now landmines correctly removed
after exploding
This commit is contained in:
Konstantin
2023-03-19 19:46:50 +03:00
parent cd1730b1fb
commit 50dab1f049
3 changed files with 118 additions and 14 deletions

View File

@@ -237,7 +237,7 @@
"fireWallVulnerablity" : "fireWallVulnerablity" :
{ {
"type" : "MORE_DAMAGE_FROM_SPELL", "type" : "MORE_DAMAGE_FROM_SPELL",
"subtype" : "spell.fireWall", "subtype" : "spell.fireWallTrigger",
"val" : 100 "val" : 100
}, },
"armageddonVulnerablity" : "armageddonVulnerablity" :
@@ -431,7 +431,7 @@
"fireWallVulnerablity" : "fireWallVulnerablity" :
{ {
"type" : "MORE_DAMAGE_FROM_SPELL", "type" : "MORE_DAMAGE_FROM_SPELL",
"subtype" : "spell.fireWall", "subtype" : "spell.fireWallTrigger",
"val" : 100 "val" : 100
}, },
"armageddonVulnerablity" : "armageddonVulnerablity" :

View File

@@ -269,7 +269,7 @@
"specialty" : { "specialty" : {
"bonuses" : { "bonuses" : {
"fireWall" : { "fireWall" : {
"subtype" : "spell.fireWall", "subtype" : "spell.fireWallTrigger",
"type" : "SPECIFIC_SPELL_DAMAGE", "type" : "SPECIFIC_SPELL_DAMAGE",
"val" : 100, "val" : 100,
"valueType" : "BASE_NUMBER" "valueType" : "BASE_NUMBER"

View File

@@ -52,6 +52,65 @@
"indifferent": true "indifferent": true
} }
}, },
"landMineTrigger" :
{
"targetType" : "CREATURE",
"type": "combat",
"name": "Land Mine",
"school":
{
"air": false,
"earth": false,
"fire": true,
"water": false
},
"level": 3,
"power": 10,
"gainChance": {},
"animation" : {
"hit" : ["C09SPF3"]
},
"sounds" : {
"cast" : "LANDKILL"
},
"levels" : {
"base": {
"power" : 25,
"range" : "0",
"description" : "", //For validation
"cost" : 0, //For validation
"aiValue" : 0, //For validation
"battleEffects" : {
"directDamage" : {
"type":"core:damage"
}
},
"targetModifier":{"smart":false}
},
"none" : {
"power" : 25
},
"basic" : {
"power" : 25
},
"advanced" : {
"power" : 50
},
"expert" : {
"power" : 100
}
},
"flags" : {
"damage": true,
"negative": true,
"special": true
},
"targetCondition" : {
"noneOf" : {
"bonus.DIRECT_DAMAGE_IMMUNITY" : "normal"
}
}
},
"landMine" : { "landMine" : {
"index" : 11, "index" : 11,
"targetType" : "NO_TARGET", "targetType" : "NO_TARGET",
@@ -69,22 +128,19 @@
"passable" : true, "passable" : true,
"trap" : false, "trap" : false,
"trigger" : true, "trigger" : true,
"triggerAbility" : "core:landMineTrigger",
"removeOnTrigger" : true, "removeOnTrigger" : true,
"patchCount" : 4, "patchCount" : 4,
"turnsRemaining" : -1, "turnsRemaining" : -1,
"attacker" :{ "attacker" :{
"animation" : "C09SPF1", "animation" : "C09SPF1",
"appearAnimation" : "C09SPF0", "appearAnimation" : "C09SPF0",
"appearSound" : "LANDMINE", "appearSound" : "LANDMINE"
"triggerAnimation" : "C09SPF3",
"triggerSound" : "LANDKILL"
}, },
"defender" :{ "defender" :{
"animation" : "C09SPF1", "animation" : "C09SPF1",
"appearAnimation" : "C09SPF0", "appearAnimation" : "C09SPF0",
"appearSound" : "LANDMINE", "appearSound" : "LANDMINE"
"triggerAnimation" : "C09SPF3",
"triggerSound" : "LANDKILL"
} }
}, },
"damage":{ "damage":{
@@ -192,6 +248,58 @@
"indifferent": true "indifferent": true
} }
}, },
"fireWallTrigger" : {
"targetType" : "CREATURE",
"type": "combat",
"name": "Fire Wall",
"school":
{
"air": false,
"earth": false,
"fire": true,
"water": false
},
"level": 2,
"power": 10,
"gainChance": {},
"levels" : {
"base": {
"power" : 10,
"range" : "0",
"description" : "", //For validation
"cost" : 0, //For validation
"aiValue" : 0, //For validation
"battleEffects" : {
"directDamage" : {
"type":"core:damage"
}
},
"targetModifier":{"smart":false}
},
"none" : {
"power" : 10
},
"basic" : {
"power" : 10
},
"advanced" : {
"power" : 20
},
"expert" : {
"power" : 50
}
},
"flags" : {
"damage": true,
"negative": true,
"special": true
},
"targetCondition" : {
"noneOf" : {
"bonus.DIRECT_DAMAGE_IMMUNITY" : "normal"
}
}
},
"fireWall" : { "fireWall" : {
"index" : 13, "index" : 13,
"targetType" : "LOCATION", "targetType" : "LOCATION",
@@ -212,6 +320,7 @@
"passable" : true, "passable" : true,
"trap" : false, "trap" : false,
"trigger" : true, "trigger" : true,
"triggerAbility" : "core:fireWallTrigger",
"turnsRemaining" : 2, "turnsRemaining" : 2,
"attacker" :{ "attacker" :{
"shape" : [[""]], "shape" : [[""]],
@@ -225,11 +334,6 @@
"animation" : "C07SPF61", "animation" : "C07SPF61",
"appearAnimation" : "C07SPF60" "appearAnimation" : "C07SPF60"
} }
},
"damage":{
"type":"core:damage",
"optional":false,
"indirect":true
} }
} }
}, },