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

real unlimited movement (like in OH3)

This commit is contained in:
Laserlicht
2023-12-09 01:37:11 +01:00
parent d612e61f0c
commit a24e78a210
4 changed files with 20 additions and 4 deletions

View File

@ -234,7 +234,10 @@ int CGHeroInstance::movementPointsRemaining() const
void CGHeroInstance::setMovementPoints(int points)
{
movement = std::max(0, points);
if(getBonusBearer()->hasBonusOfType(BonusType::UNLIMITED_MOVEMENT))
movement = 1000000;
else
movement = std::max(0, points);
}
int CGHeroInstance::movementPointsLimit(bool onLand) const