mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-11-17 15:30:06 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user