mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-23 21:29:13 +02:00
Estates / hero bonuses won't give resources on first day.
This commit is contained in:
parent
9a5aea6635
commit
ffe2ff9647
@ -671,22 +671,25 @@ void CGameHandler::newTurn()
|
|||||||
|
|
||||||
n.heroes.insert(hth);
|
n.heroes.insert(hth);
|
||||||
|
|
||||||
switch(h->getSecSkillLevel(13)) //handle estates - give gold
|
if(gs->day) //not first day
|
||||||
{
|
{
|
||||||
case 1: //basic
|
switch(h->getSecSkillLevel(13)) //handle estates - give gold
|
||||||
r.res[6] += 125;
|
{
|
||||||
break;
|
case 1: //basic
|
||||||
case 2: //advanced
|
r.res[6] += 125;
|
||||||
r.res[6] += 250;
|
break;
|
||||||
break;
|
case 2: //advanced
|
||||||
case 3: //expert
|
r.res[6] += 250;
|
||||||
r.res[6] += 500;
|
break;
|
||||||
break;
|
case 3: //expert
|
||||||
}
|
r.res[6] += 500;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
for(std::list<HeroBonus>::iterator i = h->bonuses.begin(); i != h->bonuses.end(); i++)
|
for(std::list<HeroBonus>::iterator i = h->bonuses.begin(); i != h->bonuses.end(); i++)
|
||||||
if(i->type == HeroBonus::GENERATE_RESOURCE)
|
if(i->type == HeroBonus::GENERATE_RESOURCE)
|
||||||
r.res[i->subtype] += i->val;
|
r.res[i->subtype] += i->val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for(std::vector<CGTownInstance *>::iterator j=i->second.towns.begin();j!=i->second.towns.end();j++)//handle towns
|
for(std::vector<CGTownInstance *>::iterator j=i->second.towns.begin();j!=i->second.towns.end();j++)//handle towns
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user