fix(net): Clean up for mobile packets (#338)

### Breaking Change
- [X] `Mobile.GetOldPacketFlags()` no longer exists. Instead there is a flag for `Mobile.GetPacketFlags()`.

### Non-Breaking Changes
- [X] Consolidates move to world for mobiles
- [X] Consolidates mobile packets between stygian abyss and older

This PR supersedes changes in #337. That PR will need to be redone and broken out anyway.
This commit is contained in:
Kamron Batman 2020-12-10 17:46:58 -08:00 committed by GitHub
parent 4b2e4fbd36
commit d71856ddbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 234 additions and 932 deletions

View file

@ -475,16 +475,9 @@ namespace Server.Network
return;
}
if (state.StygianAbyss)
{
state.Send(new MobileUpdate(from));
}
else
{
state.Send(new MobileUpdateOld(from));
}
state.Send(new MobileUpdate(from, state.StygianAbyss));
state.Send(MobileIncoming.Create(state, from, from));
state.Send(new MobileIncoming(state, from, from));
from.SendEverything();