1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Merge pull request #5844 from IvanSavenko/bonus_fixes

Fixes to bonus system functionality
This commit is contained in:
Ivan Savenko
2025-06-30 11:58:42 +03:00
committed by GitHub
92 changed files with 565 additions and 295 deletions

View File

@@ -1476,6 +1476,13 @@ CCastleInterface::~CCastleInterface()
GAME->interface()->castleInt = nullptr;
}
void CCastleInterface::updateArtifacts()
{
// handle equipping / unequipping Legion pieces
for(auto creatureInfoBox : creainfo)
creatureInfoBox->update();
}
void CCastleInterface::updateGarrisons()
{
garr->setArmy(town->getUpperArmy(), EGarrisonType::UPPER);