mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-27 21:49:10 +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);
|
n.heroes.insert(hth);
|
||||||
|
|
||||||
|
if(gs->day) //not first day
|
||||||
|
{
|
||||||
switch(h->getSecSkillLevel(13)) //handle estates - give gold
|
switch(h->getSecSkillLevel(13)) //handle estates - give gold
|
||||||
{
|
{
|
||||||
case 1: //basic
|
case 1: //basic
|
||||||
@ -688,6 +690,7 @@ void CGameHandler::newTurn()
|
|||||||
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
|
||||||
{
|
{
|
||||||
if(gs->day && vstd::contains((**j).builtBuildings,15)) //not first day and there is resource silo
|
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