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