mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Give hero move points at day of visiting stable, fixes #2598
This commit is contained in:
@ -206,7 +206,15 @@ DLL_LINKAGE void SetMana::applyGs(CGameState *gs)
|
||||
DLL_LINKAGE void SetMovePoints::applyGs(CGameState *gs)
|
||||
{
|
||||
CGHeroInstance *hero = gs->getHero(hid);
|
||||
hero->movement = val;
|
||||
|
||||
assert(hero);
|
||||
|
||||
if(absolute)
|
||||
hero->movement = val;
|
||||
else
|
||||
hero->movement += val;
|
||||
|
||||
vstd::amax(hero->movement, 0); //not less than 0
|
||||
}
|
||||
|
||||
DLL_LINKAGE void FoWChange::applyGs(CGameState *gs)
|
||||
|
Reference in New Issue
Block a user