mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Estates / hero bonuses won't give resources on first day.
This commit is contained in:
parent
9a5aea6635
commit
ffe2ff9647
@ -671,6 +671,8 @@ void CGameHandler::newTurn()
|
||||
|
||||
n.heroes.insert(hth);
|
||||
|
||||
if(gs->day) //not first day
|
||||
{
|
||||
switch(h->getSecSkillLevel(13)) //handle estates - give gold
|
||||
{
|
||||
case 1: //basic
|
||||
@ -688,6 +690,7 @@ void CGameHandler::newTurn()
|
||||
if(i->type == HeroBonus::GENERATE_RESOURCE)
|
||||
r.res[i->subtype] += i->val;
|
||||
}
|
||||
}
|
||||
for(std::vector<CGTownInstance *>::iterator j=i->second.towns.begin();j!=i->second.towns.end();j++)//handle towns
|
||||
{
|
||||
if(gs->day && vstd::contains((**j).builtBuildings,15)) //not first day and there is resource silo
|
||||
|
Loading…
x
Reference in New Issue
Block a user