mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9108] Adjust max nextMoveTime to 10000+totalTravelTime for random movement
This is apparently closer to how the world should look like, which is still of course a best guesstimate. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
ebb063beb9
commit
e34f136314
2 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature)
|
||||||
//else if (is_water_ok) // Swimming mode to be done with more than this check
|
//else if (is_water_ok) // Swimming mode to be done with more than this check
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
i_nextMoveTime.Reset(urand(500+i_destinationHolder.GetTotalTravelTime(),5000+i_destinationHolder.GetTotalTravelTime()));
|
i_nextMoveTime.Reset(urand(500+i_destinationHolder.GetTotalTravelTime(),10000+i_destinationHolder.GetTotalTravelTime()));
|
||||||
creature.AddMonsterMoveFlag(MONSTER_MOVE_WALK);
|
creature.AddMonsterMoveFlag(MONSTER_MOVE_WALK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9107"
|
#define REVISION_NR "9108"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue