1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/config/spells/timed.json
AlexVinS 0f5202689e Cumulative spell effects
* Added experimental support for cumulative effects for ENCHANTED bonus
* Updated and fixed SPECIAL_PECULIAR_ENCHANT processing
* Initial implementation of cumulative spell effects.
* Scheme for new spell feature - cumulative bonus.
2017-06-13 21:50:50 +03:00

1332 lines
20 KiB
JSON

{
"shield" : {
"index" : 27,
"targetType" : "CREATURE",
"animation":{
"affect":["C13SPE0"]
},
"sounds": {
"cast": "SHIELD"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
//no cumulative effect even with mods here
"effects" : {
"generalDamageReduction" : {
"type" : "GENERAL_DAMAGE_REDUCTION",
"subtype" : 0,
"duration" : "N_TURNS"
}
}
},
"expert":{
"range" : "X"
}
},
"flags" : {
"positive": true
}
},
"airShield" : {
"index" : 28,
"targetType" : "CREATURE",
"animation":{
"affect":["C01SPA0"]
},
"sounds": {
"cast": "AIRSHELD"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
//no cumulative effect even with mods here
"effects" : {
"generalDamageReduction" : {
"type" : "GENERAL_DAMAGE_REDUCTION",
"subtype" : 1,
"duration" : "N_TURNS"
}
}
},
"expert":{
"range" : "X"
}
},
"flags" : {
"positive": true
}
},
"fireShield" : {
"index" : 29,
"targetType" : "CREATURE",
"animation":{
"affect":["C05SPF0"]
},
"sounds": {
"cast": "FIRESHIE"
},
// It looks that fireshield has two separate sounds
// "soundfile":"FIRESHLD.wav"
//
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"fireShield" : {
"type" : "FIRE_SHIELD",
"duration" : "N_TURNS"
}
}
}
},
"flags" : {
"positive": true
}
},
"protectAir" : {
"index" : 30,
"targetType" : "CREATURE",
"animation":{
"affect":["C11SPE0"]
},
"sounds": {
"cast": "PROTECTA"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"spellDamageReduction" : {
"type" : "SPELL_DAMAGE_REDUCTION",
"subtype" : 0,
"duration" : "N_TURNS"
}
}
},
"expert":{
"range" : "X"
}
},
"flags" : {
"positive": true
}
},
"protectFire" : {
"index" : 31,
"targetType" : "CREATURE",
"animation":{
"affect":["C11SPW0"]
},
"sounds": {
"cast": "PROTECTF"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"spellDamageReduction" : {
"type" : "SPELL_DAMAGE_REDUCTION",
"subtype" : 1,
"duration" : "N_TURNS"
}
}
},
"expert":{
"range" : "X"
}
},
"flags" : {
"positive": true
}
},
"protectWater" : {
"index" : 32,
"targetType" : "CREATURE",
"animation":{
"affect":["C11SPF0"]
},
"sounds": {
"cast": "PROTECTW"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"spellDamageReduction" : {
"type" : "SPELL_DAMAGE_REDUCTION",
"subtype" : 2,
"duration" : "N_TURNS"
}
}
},
"expert":{
"range" : "X"
}
},
"flags" : {
"positive": true
}
},
"protectEarth" : {
"index" : 33,
"targetType" : "CREATURE",
"animation":{
"affect":["C13SPA0"]
},
"sounds": {
"cast": "PROTECTE"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"spellDamageReduction" : {
"type" : "SPELL_DAMAGE_REDUCTION",
"subtype" : 3,
"duration" : "N_TURNS"
}
}
},
"expert":{
"range" : "X"
}
},
"flags" : {
"positive": true
}
},
"antiMagic" : {
"index" : 34,
"targetType" : "CREATURE",
"animation":{
"affect":["C02SPE0"]
},
"sounds": {
"cast": "ANTIMAGK"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"levelSpellImmunity" : {
"val" : 3,
"type" : "LEVEL_SPELL_IMMUNITY",
"valueType" : "INDEPENDENT_MAX",
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"levelSpellImmunity" : {
"val" : 4
}
}
},
"expert":{
"effects" : {
"levelSpellImmunity" : {
"val" : 5
}
}
}
},
"flags" : {
"positive": true
}
},
"magicMirror" : {
"index" : 36,
"targetType" : "CREATURE",
"animation":{
"affect":["C02SPA0"]
},
"sounds": {
"cast": "BACKLASH"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"magicMirror" : {
"type" : "MAGIC_MIRROR",
"valueType" : "INDEPENDENT_MAX",
"duration" : "N_TURNS"
}
}
}
},
"flags" : {
"positive": true
}
},
"bless" : {
"index" : 41,
"targetType" : "CREATURE",
"animation":{
"affect":["C01SPW"] //C01SPW0
},
"sounds": {
"cast": "BLESS"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"alwaysMaximumDamage" : {
"val" : 0,
"type" : "ALWAYS_MAXIMUM_DAMAGE",
"subtype" : -1,
"valueType" : "INDEPENDENT_MAX",
"duration" : "N_TURNS"
}
}
},
"expert":{
"range" : "X"
}
},
"counters" : {
"spell.curse": true
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true,
"UNDEAD": true
},
"flags" : {
"positive": true
}
},
"curse" : {
"index" : 42,
"targetType" : "CREATURE",
"animation":{
"affect":["C04SPW"]//C04SPW0
},
"sounds": {
"cast": "CURSE"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"alwaysMinimumDamage" : {
"addInfo" : 0,
"val" : 0,
"type" : "ALWAYS_MINIMUM_DAMAGE",
"subtype" : -1,
"valueType" : "INDEPENDENT_MAX",
"duration" : "N_TURNS"
}
}
},
"expert":{
"range" : "X"
}
},
"counters" : {
"spell.bless": true
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true,
"UNDEAD": true
},
"flags" : {
"negative": true
}
},
"bloodlust" : {
"index" : 43,
"targetType" : "CREATURE",
"animation":{
"affect":["SP12_"] //???
},
"sounds": {
"cast": "BLOODLUS"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"primarySkill" : {
"val" : 3,
"type" : "PRIMARY_SKILL",
"subtype" : "primSkill.attack",
"effectRange" : "ONLY_MELEE_FIGHT",
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"primarySkill" : {
"val" : 6
}
}
},
"expert":{
"range" : "X",
"effects" : {
"primarySkill" : {
"val" : 6
}
}
}
},
"counters" : {
"spell.weakness": true
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true
},
"flags" : {
"positive": true
}
},
"precision" : {
"index" : 44,
"targetType" : "CREATURE",
"animation":{
"affect":["C12SPA0"]
},
"sounds": {
"cast": "PRECISON"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"primarySkill" : {
"type" : "PRIMARY_SKILL",
"subtype" : "primSkill.attack",
"val" : 3,
"effectRange" : "ONLY_DISTANCE_FIGHT",
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"primarySkill" : {
"val" : 6
}
}
},
"expert":{
"range" : "X",
"effects" : {
"primarySkill" : {
"val" : 6
}
}
}
},
"absoluteLimit" : {
"SHOOTER": true
},
"flags" : {
"positive": true
}
},
"weakness" : {
"index" : 45,
"targetType" : "CREATURE",
"animation":{
"affect":["C0ACID"]
},
"sounds": {
"cast": "WEAKNESS"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"primarySkill" : {
"type" : "PRIMARY_SKILL",
"subtype" : "primSkill.attack",
"val" : -3,
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"primarySkill" : {
"val" : -6
}
}
},
"expert":{
"range" : "X",
"effects" : {
"primarySkill" : {
"val" : -6
}
}
}
},
"counters" : {
"spell.bloodlust": true
},
"flags" : {
"negative": true
}
},
"stoneSkin" : {
"index" : 46,
"targetType" : "CREATURE",
"animation":{
"affect":["C16SPE"] //C16SPE0
},
"sounds": {
"cast": "TUFFSKIN"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"primarySkill" : {
"type" : "PRIMARY_SKILL",
"subtype" : "primSkill.defence",
"val" : 3,
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"primarySkill" : {
"val" : 6
}
}
},
"expert":{
"range" : "X",
"effects" : {
"primarySkill" : {
"val" : 6
}
}
}
},
"flags" : {
"positive": true
}
},
"disruptingRay" : {
"index" : 47,
"targetType" : "CREATURE",
"animation":{
"affect":["C07SPA1"],
"projectile":[{"defName":"C07SPA0"}]//???
},
"sounds": {
"cast": "DISRUPTR"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"cumulativeEffects" : {
"primarySkill" : {
"type" : "PRIMARY_SKILL",
"subtype" : "primSkill.defence",
"val" : -3,
"valueType" : "ADDITIVE_VALUE",
"duration" : "PERMANENT"
}
}
},
"advanced":{
"cumulativeEffects" : {
"primarySkill" : {
"val" : -4
}
}
},
"expert":{
"cumulativeEffects" : {
"primarySkill" : {
"val" : -5
}
}
}
},
"flags" : {
"negative": true
}
},
"prayer" : {
"index" : 48,
"targetType" : "CREATURE",
"animation":{
"affect":[{"defName":"C10SPW", "verticalPosition":"bottom"}]
},
"sounds": {
"cast": "PRAYER"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"attack" : {
"type" : "PRIMARY_SKILL",
"subtype" : "primSkill.attack",
"val" : 2,
"duration" : "N_TURNS"
},
"defence" : {
"type" : "PRIMARY_SKILL",
"subtype" : "primSkill.defence",
"val" : 2,
"duration" : "N_TURNS"
},
"stacksSpeed" : {
"addInfo" : 0,
"type" : "STACKS_SPEED",
"val" : 2,
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"attack" : {
"val" : 4
},
"defence" : {
"val" : 4
},
"stacksSpeed" : {
"val" : 4
}
}
},
"expert":{
"range" : "X",
"effects" : {
"attack" : {
"val" : 4
},
"defence" : {
"val" : 4
},
"stacksSpeed" : {
"val" : 4
}
}
}
},
"flags" : {
"positive": true
}
},
"mirth" : {
"index" : 49,
"targetType" : "CREATURE",
"animation":{
"affect":["C09SPW0"]
},
"sounds": {
"cast": "MIRTH"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"morale" : {
"type" : "MORALE",
"val" : 1,
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"morale" : {
"val" : 2
}
}
},
"expert":{
"range" : "X",
"effects" : {
"morale" : {
"val" : 2
}
}
}
},
"counters" : {
"spell.sorrow":true
},
"absoluteImmunity":{
"SIEGE_WEAPON": true,
"UNDEAD": true,
},
"immunity" : {
"MIND_IMMUNITY": true,
"NON_LIVING": true
},
"flags" : {
"positive": true
}
},
"sorrow" : {
"index" : 50,
"targetType" : "CREATURE",
"animation":{
"affect":["C14SPE0"]
},
"sounds": {
"cast": "SORROW"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"morale" : {
"type" : "MORALE",
"val" : -1,
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"morale" : {
"val" : -2
}
}
},
"expert":{
"range" : "X",
"effects" : {
"morale" : {
"val" : -2
}
}
}
},
"counters" : {
"spell.mirth":true
},
"absoluteImmunity":{
"SIEGE_WEAPON": true,
"UNDEAD": true,
},
"immunity" : {
"MIND_IMMUNITY": true,
"NON_LIVING": true
},
"flags" : {
"negative": true
}
},
"fortune" : {
"index" : 51,
"targetType" : "CREATURE",
"animation":{
"affect":["C09SPA0"]
},
"sounds": {
"cast": "FORTUNE"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"luck" : {
"type" : "LUCK",
"val" : 1,
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"luck" : {
"val" : 2
}
}
},
"expert":{
"range" : "X",
"effects" : {
"luck" : {
"val" : 2
}
}
}
},
"counters" : {
"spell.misfortune": true
},
"flags" : {
"positive": true
}
},
"misfortune" : {
"index" : 52,
"targetType" : "CREATURE",
"animation":{
"affect":["C10SPF0"]
},
"sounds": {
"cast": "MISFORT"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"luck" : {
"type" : "LUCK",
"val" : -1,
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"luck" : {
"val" : -2
}
}
},
"expert":{
"range" : "X",
"effects" : {
"luck" : {
"val" : -2
}
}
}
},
"counters" : {
"spell.fortune":true
},
"flags" : {
"negative": true
}
},
"haste" : {
"index" : 53,
"targetType" : "CREATURE",
"animation":{
"affect":["C15SPA0"]
},
"sounds": {
"cast": "TAILWIND"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"stacksSpeed" : {
"addInfo" : 0,
"type" : "STACKS_SPEED",
"val" : 3,
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"stacksSpeed" : {
"val" : 5
}
}
},
"expert":{
"range" : "X",
"effects" : {
"stacksSpeed" : {
"val" : 5
}
}
}
},
"counters" : {
"spell.slow": true
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true
},
"flags" : {
"positive": true
}
},
"slow" : {
"index" : 54,
"targetType" : "CREATURE",
"animation":{
"affect":[{"defName":"C09SPE0", "verticalPosition":"bottom"}]
},
"sounds": {
"cast": "MUCKMIRE"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"stacksSpeed" : {
"addInfo" : 0,
"type" : "STACKS_SPEED",
"val" : -25,
"valueType" : "PERCENT_TO_ALL",
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"stacksSpeed" : {
"val" : -50
}
}
},
"expert":{
"range" : "X",
"effects" : {
"stacksSpeed" : {
"val" : -50
}
}
}
},
"counters" : {
"spell.haste":true
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true
},
"flags" : {
"negative": true
}
},
"slayer" : {
"index" : 55,
"targetType" : "CREATURE",
"animation":{
"affect":["C13SPW0"]
},
"sounds": {
"cast": "SLAYER"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"slayer" : {
"type" : "SLAYER",
"duration" : "N_TURNS"
}
}
},
"none":{
"effects" : {
"slayer" : {
"val" : 0
}
}
},
"basic":{
"effects" : {
"slayer" : {
"val" : 1
}
}
},
"advanced":{
"effects" : {
"slayer" : {
"val" : 2
}
}
},
"expert":{
"effects" : {
"slayer" : {
"val" : 3
}
}
}
},
"flags" : {
"positive": true
}
},
"frenzy" : {
"index" : 56,
"targetType" : "CREATURE",
"animation":{
"affect":["C08SPF0"]
},
"sounds": {
"cast": "FRENZY"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"inFrenzy" : {
"type" : "IN_FRENZY",
"val" : 100,
"duration" : "N_TURNS",
"turns" : 1
}
}
},
"advanced":{
"effects" : {
"inFrenzy" : {
"val" : 150
}
}
},
"expert":{
"effects" : {
"inFrenzy" : {
"val" : 200
}
}
}
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true
},
"flags" : {
"positive": true
}
},
"counterstrike" : {
"index" : 58,
"targetType" : "CREATURE",
"animation":{
"affect":["C04SPA0"]
},
"sounds": {
"cast": "CNTRSTRK"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"additionalRetaliation" : {
"type" : "ADDITIONAL_RETALIATION",
"val" : 1,
"duration" : "N_TURNS"
}
}
},
"advanced":{
"effects" : {
"additionalRetaliation" : {
"val" : 2
}
}
},
"expert":{
"range" : "X",
"effects" : {
"additionalRetaliation" : {
"val" : 2
}
}
}
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true
},
"flags" : {
"positive": true
}
},
"berserk" : {
"index" : 59,
"targetType" : "LOCATION",
"animation":{
"affect":["C01SPF"] //C01SPF0
},
"sounds": {
"cast": "BERSERK"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":false},
"effects" : {
"attacksNearestCreature" : {
"type" : "ATTACKS_NEAREST_CREATURE",
"duration" : "STACK_GETS_TURN"
}
}
},
"advanced":{
"range" : "0-1"
},
"expert":{
"range" : "0-2"
}
},
"counters" : {
"spell.hypnotize": true
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true
},
"immunity" : {
"MIND_IMMUNITY": true,
"UNDEAD": true,
"NON_LIVING": true
},
"flags" : {
"negative": true
}
},
"hypnotize" : {
"index" : 60,
"targetType" : "CREATURE",
"animation":{
"affect":["C10SPA0"]
},
"sounds": {
"cast": "HYPNOTIZ"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"hypnotized" : {
"type" : "HYPNOTIZED",
"duration" : "N_TURNS"
}
}
},
"none":{
"effects" : {
"hypnotized" : {
"val" : 0
}
}
},
"basic":{
"effects" : {
"hypnotized" : {
"val" : 1
}
}
},
"advanced":{
"effects" : {
"hypnotized" : {
"val" : 2
}
}
},
"expert":{
"effects" : {
"hypnotized" : {
"val" : 3
}
}
}
},
"counters" : {
"spell.berserk": true
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true
},
"immunity" : {
"MIND_IMMUNITY": true,
"UNDEAD": true,
"NON_LIVING": true
},
"flags" : {
"negative": true
}
},
"forgetfulness" : {
"index" : 61,
"targetType" : "CREATURE",
"animation":{
"affect":["C06SPW"]//C06SPW0
},
"sounds": {
"cast": "FORGET"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"forgetful" : {
"type" : "FORGETFULL",
"duration" : "N_TURNS"
}
}
},
"none":{
"effects" : {
"forgetful" : {
"val" : 0
}
}
},
"basic":{
"effects" : {
"forgetful" : {
"val" : 1
}
}
},
"advanced":{
"effects" : {
"forgetful" : {
"val" : 2
}
}
},
"expert":{
"range" : "X",
"effects" : {
"forgetful" : {
"val" : 3
}
}
}
},
"absoluteLimit" : {
"SHOOTER": true
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true
},
"immunity" : {
"MIND_IMMUNITY": true,
"UNDEAD": true,
"NON_LIVING": true
},
"flags" : {
"negative": true
}
},
"blind" : {
"index" : 62,
"targetType" : "CREATURE",
"animation":{
"affect":["C02SPF0"]
},
"sounds": {
"cast": "BLIND"
},
"levels" : {
"base":{
"range" : "0",
"targetModifier":{"smart":true},
"effects" : {
"notActive" : {
"val" : 0,
"type" : "NOT_ACTIVE",
"subtype" : 62,
"duration" : [
"UNTIL_BEING_ATTACKED",
"N_TURNS"
]
},
"generalAttackReduction" : {
"type" : "GENERAL_ATTACK_REDUCTION",
"duration" : [
"UNTIL_BEING_ATTACKED",
"N_TURNS"
]
}
}
},
"expert":{
"effects" : {
"noRetaliation" : {
"val" : 0,
"type" : "NO_RETALIATION",
"duration" : [
"UNTIL_BEING_ATTACKED",
"N_TURNS"
]
}
}
}
},
"absoluteImmunity" : {
"SIEGE_WEAPON": true,
"UNDEAD": true
},
"immunity" : {
"MIND_IMMUNITY": true,
"NON_LIVING": true
},
"flags" : {
"negative": true
}
}
}