1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Added "days since start of the game" limiter. Fixes Water Wheel

This commit is contained in:
Ivan Savenko
2023-01-24 16:54:14 +02:00
parent ca521fb129
commit c793527b44
4 changed files with 15 additions and 0 deletions

View File

@ -30,6 +30,12 @@ bool CRewardLimiter::heroAllowed(const CGHeroInstance * hero) const
return false;
}
if(daysPassed != 0)
{
if (IObjectInterface::cb->getDate(Date::DAY) < daysPassed)
return false;
}
for(auto & reqStack : creatures)
{
size_t count = 0;