mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Minor fixes. Support for resource generation special.
This commit is contained in:
@ -976,11 +976,10 @@ void CGameHandler::newTurn()
|
||||
n.res[i->first][6] += 500;
|
||||
break;
|
||||
}
|
||||
|
||||
for(std::list<Bonus>::iterator j = h->bonuses.begin(); j != h->bonuses.end(); j++)
|
||||
if(j->type == Bonus::GENERATE_RESOURCE)
|
||||
n.res[i->first][j->subtype] += j->val;
|
||||
|
||||
for (int k = 0; k < RESOURCE_QUANTITY; k++)
|
||||
{
|
||||
n.res[i->first][k] += h->valOfBonuses(Bonus::GENERATE_RESOURCE, k);
|
||||
}
|
||||
//TODO player bonuses
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user