mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
Removed commented part for daily income
This commit is contained in:
parent
5adafe02a2
commit
31f2af6243
@ -1331,27 +1331,6 @@ void CGameHandler::newTurn()
|
|||||||
if(!firstTurn && player < PlayerColor::PLAYER_LIMIT)//not the first day and town not neutral
|
if(!firstTurn && player < PlayerColor::PLAYER_LIMIT)//not the first day and town not neutral
|
||||||
{
|
{
|
||||||
n.res[player] = n.res[player] + t->dailyIncome();
|
n.res[player] = n.res[player] + t->dailyIncome();
|
||||||
// TResources townIncome = t->dailyIncome();
|
|
||||||
// for (auto i = Res::WOOD; i <= Res::GOLD; vstd::advance(i, 1))
|
|
||||||
// {
|
|
||||||
// n.res[player][i] += townIncome[i];
|
|
||||||
// }
|
|
||||||
|
|
||||||
// if(t->hasBuilt(BuildingID::RESOURCE_SILO)) //there is resource silo
|
|
||||||
// {
|
|
||||||
// if(t->town->primaryRes == Res::WOOD_AND_ORE) //we'll give wood and ore
|
|
||||||
// {
|
|
||||||
// n.res[player][Res::WOOD] ++;
|
|
||||||
// n.res[player][Res::ORE] ++;
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// if (t->town->primaryRes != Res::GOLD)
|
|
||||||
// n.res[player][t->town->primaryRes] ++;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// n.res[player][Res::GOLD] += t->dailyIncome();
|
|
||||||
}
|
}
|
||||||
if(t->hasBuilt(BuildingID::GRAIL, ETownType::TOWER))
|
if(t->hasBuilt(BuildingID::GRAIL, ETownType::TOWER))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user