1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

- support for new heroes and hero classes

- moved hero-specific data from text handler to CHero
- moved hero classes-specific data into heroClasses.json
This commit is contained in:
Ivan Savenko
2012-12-16 13:47:53 +00:00
parent 99e7177d57
commit e36bc50504
18 changed files with 572 additions and 430 deletions

View File

@ -189,25 +189,6 @@ void CGeneralTextHandler::load()
}
while (parser.endLine());
}
{
CLegacyConfigParser parser("DATA/HEROSPEC.TXT");
CLegacyConfigParser bioParser("DATA/HEROBIOS.TXT");
//skip header
parser.endLine();
parser.endLine();
do
{
HeroTexts texts;
texts.bonusName = parser.readString();
texts.shortBonus = parser.readString();
texts.longBonus = parser.readString();
texts.biography = bioParser.readString();
hTxts.push_back(texts);
}
while (parser.endLine() && bioParser.endLine());
}
{
CLegacyConfigParser nameParser("DATA/MINENAME.TXT");
CLegacyConfigParser eventParser("DATA/MINEEVNT.TXT");