Adjust random movement wait time and implement variable wait times

This commit is contained in:
Intra
2014-10-10 19:40:58 +02:00
parent 889e82ebe4
commit 06afdeffcb

View File

@@ -99,7 +99,10 @@ void RandomMovementGenerator<Creature>::_setRandomLocation(Creature* creature)
if (is_air_ok)
i_nextMoveTime.Reset(0);
else
i_nextMoveTime.Reset(urand(500, 10000));
if (roll_chance_i(50))
i_nextMoveTime.Reset(urand(5000, 10000));
else
i_nextMoveTime.Reset(urand(50, 400));
creature->AddUnitState(UNIT_STATE_ROAMING_MOVE);