mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +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:
@@ -77,6 +77,10 @@ std::string toString(MetaString &ms)
|
||||
break;
|
||||
case 11:
|
||||
vec = &CGI->objh->advobtxt;
|
||||
break;
|
||||
case 12:
|
||||
vec = &CGI->generaltexth->artifEvents;
|
||||
break;
|
||||
}
|
||||
ret += (*vec)[ser];
|
||||
}
|
||||
@@ -366,7 +370,9 @@ void CClient::process(int what)
|
||||
*serv >> sha;
|
||||
std::cout << "Setting artifacts of hero " << sha.hid << std::endl;
|
||||
gs->apply(&sha);
|
||||
//TODO: inform interfaces
|
||||
CGHeroInstance *t = gs->getHero(sha.hid);
|
||||
if(vstd::contains(playerint,t->tempOwner))
|
||||
playerint[t->tempOwner]->heroArtifactSetChanged(t);
|
||||
break;
|
||||
}
|
||||
case 1001:
|
||||
@@ -537,3 +543,7 @@ void CClient::run()
|
||||
} HANDLE_EXCEPTION
|
||||
}
|
||||
|
||||
void CClient::close()
|
||||
{
|
||||
serv->close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user