1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
* fix loading range attribute
* fix config for massive spells
This commit is contained in:
alexvins 2014-03-17 14:39:28 +00:00
parent 8cc586ab7f
commit 1aff899f5b
2 changed files with 6 additions and 2 deletions

View File

@ -664,6 +664,7 @@
}, },
"deathRipple" : { "deathRipple" : {
"index" : 24, "index" : 24,
"targetType" : "CREATURE",
"anim" : 8, "anim" : 8,
"sounds": { "sounds": {
"cast": "DEATHRIP" "cast": "DEATHRIP"
@ -699,6 +700,7 @@
}, },
"destroyUndead" : { "destroyUndead" : {
"index" : 25, "index" : 25,
"targetType" : "CREATURE",
"anim" : 29, "anim" : 29,
"sounds": { "sounds": {
"cast": "COLDRING" "cast": "COLDRING"
@ -735,6 +737,7 @@
}, },
"armageddon" : { "armageddon" : {
"index" : 26, "index" : 26,
"targetType" : "CREATURE",
"anim" : 12, "anim" : 12,
"sounds": { "sounds": {
"cast": "ARMGEDN" "cast": "ARMGEDN"
@ -884,8 +887,8 @@
"sounds": { "sounds": {
"cast": "FIRESHIE" "cast": "FIRESHIE"
}, },
// It looks that fireshield has two separate sounds // It looks that fireshield has two separate sounds
// "soundfile":"FIRESHLD.wav" // "soundfile":"FIRESHLD.wav"
// //
"levels" : { "levels" : {
"none":{ "none":{

View File

@ -817,6 +817,7 @@ CSpell * CSpellHandler::loadFromJson(const JsonNode& json)
levelObject.power = levelPower; levelObject.power = levelPower;
levelObject.AIValue = levelNode["aiValue"].Float(); levelObject.AIValue = levelNode["aiValue"].Float();
levelObject.smartTarget = levelNode["targetModifier"]["smart"].Bool(); levelObject.smartTarget = levelNode["targetModifier"]["smart"].Bool();
levelObject.range = levelNode["range"].String();
for(const auto & elem : levelNode["effects"].Struct()) for(const auto & elem : levelNode["effects"].Struct())
{ {