1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Support for Poison, Age, Disease

Partial support for Stone Gaze, Paralyze, Mana drain
Partial fix for #134 - animation triggers only for our own stacks, not enemy's
Lots of tweaks & fixes.
This commit is contained in:
DjWarmonger
2011-04-25 09:03:13 +00:00
parent 362f413b4d
commit a4d845688a
12 changed files with 232 additions and 115 deletions

View File

@@ -321,4 +321,24 @@ void CSpellHandler::loadSpells()
ast>>spellID;
}
}
ast.close();
ast.open(DATA_DIR "/config/spell_levels.txt", std::ios::binary);
if(!ast.is_open())
{
tlog1<<"lack of config/spell_levels.txt file!"<<std::endl;
}
else
{
//custom levels of spells. Level 0 seems to not be supported correctly, but we can replace it it something else
int spellID;
ast>>spellID;
int buf;
while(spellID != -1)
{
ast >> buf;
spells[spellID]->level = buf;
ast>>spellID;
}
}
ast.close();
}