1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

* hero placed in the town starts as visiting hero, not garrisoned

* if hero doesn't have a spell book, he can buy one in a mage guild
* improvements in closing
* fixed crash on picking artifact
* added event message when picking artifact
* fixed problems with disappearing pikemen
* InfoWindow will be properly centered
* hero portraits again visible in PreGame
* fixed problems with handling Pandora's Box
* support for Campfires
* minor changes
This commit is contained in:
Michał W. Urbańczyk
2008-08-25 10:25:16 +00:00
parent 0607ec70cf
commit 6613955463
34 changed files with 271 additions and 165 deletions

View File

@ -6,7 +6,7 @@
void CGeneralTextHandler::load()
{
std::string buf = CGI->bitmaph->getTextFile("GENRLTXT.TXT");
std::string buf = CGI->bitmaph->getTextFile("GENRLTXT.TXT"), tmp;
int andame = buf.size();
int i=0; //buf iterator
for(i; i<andame; ++i)
@ -28,7 +28,6 @@ void CGeneralTextHandler::load()
int itr=0;
while(itr<strs.length()-1)
{
std::string tmp;
loadToIt(tmp, strs, itr, 3);
arraytxt.push_back(tmp);
}
@ -37,7 +36,6 @@ void CGeneralTextHandler::load()
std::string strin = CGI->bitmaph->getTextFile("PRISKILL.TXT");
for(int hh=0; hh<4; ++hh)
{
std::string tmp;
loadToIt(tmp, strin, itr, 3);
primarySkillNames.push_back(tmp);
}
@ -46,7 +44,6 @@ void CGeneralTextHandler::load()
std::string strin2 = CGI->bitmaph->getTextFile("JKTEXT.TXT");
for(int hh=0; hh<45; ++hh)
{
std::string tmp;
loadToIt(tmp, strin2, itr, 3);
jktexts.push_back(tmp);
}
@ -55,8 +52,14 @@ void CGeneralTextHandler::load()
std::string strin3 = CGI->bitmaph->getTextFile("HEROSCRN.TXT");
for(int hh=0; hh<33; ++hh)
{
std::string tmp;
loadToIt(tmp, strin3, itr, 3);
heroscrn.push_back(tmp);
}
strin3 = CGI->bitmaph->getTextFile("ARTEVENT.TXT");
for(itr = 0; itr<strin3.size();itr++)
{
loadToIt(tmp, strin3, itr, 3);
artifEvents.push_back(tmp);
}
}