mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
* support for build grail victory condition
* improved formula for necromancy to match better OH3 * Support for new town structures: - Lighthouse - Colossus - Guardian Spirit - Necromancy Amplifier - Soul Prison
This commit is contained in:
@ -3061,10 +3061,10 @@ int CGameState::victoryCheck( ui8 player ) const
|
||||
break;
|
||||
|
||||
case buildGrail:
|
||||
for(size_t i = 0; i < map->towns.size(); i++)
|
||||
if(map->towns[i]->pos == map->victoryCondition.pos
|
||||
&& map->towns[i]->tempOwner == player
|
||||
&& vstd::contains(map->towns[i]->builtBuildings, 26))
|
||||
BOOST_FOREACH(const CGTownInstance *t, map->towns)
|
||||
if((t == map->victoryCondition.obj || !map->victoryCondition.obj)
|
||||
&& t->tempOwner == player
|
||||
&& vstd::contains(t->builtBuildings, 26))
|
||||
return 1;
|
||||
break;
|
||||
|
||||
@ -3760,6 +3760,10 @@ void PlayerState::getParents(TCNodes &out, const CBonusSystemNode *root /*= NULL
|
||||
//TODO: global effects
|
||||
}
|
||||
|
||||
void PlayerState::getBonuses(BonusList &out, const CSelector &selector, const CBonusSystemNode *root /*= NULL*/) const
|
||||
{
|
||||
}
|
||||
|
||||
InfoAboutHero::InfoAboutHero()
|
||||
{
|
||||
details = NULL;
|
||||
|
Reference in New Issue
Block a user