The login server now sends live checks.

This should stop server providers from kicking tutorial players as
inactive TCP connections. The interval is generous for that reason.

Also snuck in a change that makes mobs retreat all the way to their
spawn points, to aid during mob gruntwork with /toggleai.
This commit is contained in:
2020-10-08 01:21:48 +02:00
parent 1fe23b97fd
commit bae834fefa
3 changed files with 40 additions and 3 deletions

View File

@@ -419,7 +419,8 @@ void MobManager::retreatStep(Mob *mob, time_t currTime) {
}
// if we got there
if (distance <= mob->data["m_iIdleRange"]) {
//if (distance <= mob->data["m_iIdleRange"]) {
if (distance <= 10) { // retreat back to the spawn point
mob->state = MobState::ROAMING;
mob->appearanceData.iHP = mob->maxHealth;
mob->killedTime = 0;