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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user