mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-08 23:36:33 +02:00
Gold-pressure
This commit is contained in:
parent
073c5bee45
commit
3fed58c47b
@ -165,15 +165,8 @@ void BuildAnalyzer::update()
|
|||||||
|
|
||||||
updateDailyIncome();
|
updateDailyIncome();
|
||||||
|
|
||||||
if(ai->cb->getDate(Date::DAY) == 1)
|
|
||||||
{
|
|
||||||
goldPressure = 1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
goldPressure = ai->getLockedResources()[EGameResID::GOLD] / 5000.0f
|
goldPressure = ai->getLockedResources()[EGameResID::GOLD] / 5000.0f
|
||||||
+ (float)armyCost[EGameResID::GOLD] / (1 + 2 * ai->getFreeGold() + (float)dailyIncome[EGameResID::GOLD] * 7.0f);
|
+ (float)armyCost[EGameResID::GOLD] / (1 + 2 * ai->getFreeGold() + (float)dailyIncome[EGameResID::GOLD] * 7.0f);
|
||||||
}
|
|
||||||
|
|
||||||
logAi->trace("Gold pressure: %f", goldPressure);
|
logAi->trace("Gold pressure: %f", goldPressure);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user