mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
* artifact manipulation in exchange window works (without switching artifacts between different heroes)
* support for 3 new artifacts: - Ring of Vitality - Ring of Life - Vial of Lifeblood * restructures creature ability preparing (creature abilities are now loaded from cr_abils.txt file). It needs further work - all changes in abilities should be moved from CCreatureHandler.cpp to cr_abils.txt as it's done in this commit (I hope it's clear how it should be done as there is an example)
This commit is contained in:
@@ -1520,6 +1520,20 @@ void CPlayerInterface::heroArtifactSetChanged(const CGHeroInstance*hero)
|
||||
adventureInt->heroWindow->setHero(adventureInt->heroWindow->curHero);
|
||||
adventureInt->heroWindow->activate();
|
||||
}
|
||||
CExchangeWindow* cew = dynamic_cast<CExchangeWindow*>(listInt.front());
|
||||
if(cew) //exchange window is open
|
||||
{
|
||||
cew->deactivate();
|
||||
for(int g=0; g<ARRAY_COUNT(cew->heroInst); ++g)
|
||||
{
|
||||
if(cew->heroInst[g] == hero)
|
||||
{
|
||||
cew->artifs[g]->setHero(hero);
|
||||
}
|
||||
}
|
||||
cew->prepareBackground();
|
||||
cew->activate();
|
||||
}
|
||||
}
|
||||
|
||||
void CPlayerInterface::updateWater()
|
||||
|
||||
Reference in New Issue
Block a user