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:
@ -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;
|
||||
|
Reference in New Issue
Block a user