mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Open thieves guild if building provides corresponding bonus
This commit is contained in:
parent
408a632002
commit
4c84379110
@ -712,8 +712,6 @@ bool CCastleBuildings::buildingTryActivateCustomUI(BuildingID buildingToTest, Bu
|
||||
return true;
|
||||
}
|
||||
|
||||
// FIXME: implement correct visiting of thieves guild
|
||||
|
||||
if (!b->marketModes.empty())
|
||||
{
|
||||
switch (*b->marketModes.begin())
|
||||
@ -825,11 +823,18 @@ bool CCastleBuildings::buildingTryActivateCustomUI(BuildingID buildingToTest, Bu
|
||||
enterBank();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
for (auto const & bonus : b->buildingBonuses)
|
||||
{
|
||||
if (bonus->type == BonusType::THIEVES_GUILD_ACCESS)
|
||||
{
|
||||
enterAnyThievesGuild();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void CCastleBuildings::enterBlacksmith(BuildingID building, ArtifactID artifactID)
|
||||
|
Loading…
Reference in New Issue
Block a user