Rearranges packet code (#295)

This commit is contained in:
Kamron Batman 2020-10-30 22:49:00 -07:00 • committed by GitHub
parent 5f7e4bf050
commit a8d486a969
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 3023 additions and 2846 deletions

View file

@ -361,9 +361,9 @@ namespace Server.Items
public static void Initialize()
{
PacketHandlers.Register(0xD4, 0, true, HeaderChange);
PacketHandlers.Register(0x66, 0, true, ContentChange);
PacketHandlers.Register(0x93, 99, true, OldHeaderChange);
IncomingPackets.Register(0xD4, 0, true, HeaderChange);
IncomingPackets.Register(0x66, 0, true, ContentChange);
IncomingPackets.Register(0x93, 99, true, OldHeaderChange);
}
public static void OldHeaderChange(NetState state, CircularBufferReader reader)

View file

@ -25,7 +25,7 @@ namespace Server.Engines.Mahjong
public static void Initialize()
{
PacketHandlers.Register(0xDA, 0, true, OnPacket);
IncomingPackets.Register(0xDA, 0, true, OnPacket);
RegisterSubCommand(0x6, ExitGame);
RegisterSubCommand(0xA, GivePoints);

View file

@ -331,7 +331,7 @@ namespace Server.Items
public static void Initialize()
{
PacketHandlers.Register(0x56, 11, true, OnMapCommand);
IncomingPackets.Register(0x56, 11, true, OnMapCommand);
}
private static void OnMapCommand(NetState state, CircularBufferReader reader)

View file

@ -229,7 +229,7 @@ namespace Server.Items
public static void Initialize()
{
PacketHandlers.Register(0x71, 0, true, BBClientRequest);
IncomingPackets.Register(0x71, 0, true, BBClientRequest);
}
public static void BBClientRequest(NetState state, CircularBufferReader reader)

View file

@ -142,9 +142,9 @@ namespace Server.Items
/*
FORMULA: Displayed AR = ((Parrying Skill * Base AR of Shield) <EFBFBD> 200) + 1
FORMULA: % Chance of Blocking = parry skill - (shieldAR * 2)
FORMULA: Melee Damage Absorbed = (AR of Shield) / 2 | Archery Damage Absorbed = AR of Shield
*/
if (owner.CheckSkill(SkillName.Parry, chance))