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

Quick implementation of stack experience details. Minor fixes.

Man, it's ugly.
This commit is contained in:
DjWarmonger
2011-03-21 08:14:23 +00:00
parent f88ac50a44
commit 70b21fc9eb
5 changed files with 70 additions and 4 deletions

View File

@ -536,6 +536,16 @@ void CGeneralTextHandler::load()
} while (nameBuf.size());
}
buf = bitmaph->getTextFile ("ZCREXP.TXT");
it = 0;
loadToIt (dump, buf, it, 3); //comment
for (int i = 0; i < 459; ++i) //some texts seem to be empty
{
loadToIt(dump, buf, it, 4); //description, usually useless
loadToIt(nameBuf, buf, it, 3);
zcrexp.push_back(nameBuf);
}
std::ifstream ifs(DATA_DIR "/config/threatlevel.txt", std::ios::in | std::ios::binary);
getline(ifs, buf); //skip 1st line
for (int i = 0; i < 13; ++i)