Adds more packets (#177)
This commit is contained in:
parent
c0805850c1
commit
5052bf9af3
15 changed files with 609 additions and 109 deletions
|
|
@ -72,9 +72,7 @@ namespace Server.Tests.Network.Packets
|
|||
expectedData.Write(ref pos, (byte)0x77); // Packet ID
|
||||
expectedData.Write(ref pos, m.Serial);
|
||||
expectedData.Write(ref pos, (ushort)m.Body);
|
||||
expectedData.Write(ref pos, (ushort)m.X);
|
||||
expectedData.Write(ref pos, (ushort)m.Y);
|
||||
expectedData.Write(ref pos, (byte)m.Z);
|
||||
expectedData.Write(ref pos, m.Location);
|
||||
expectedData.Write(ref pos, (byte)m.Direction);
|
||||
expectedData.Write(ref pos, (ushort)m.Hue);
|
||||
expectedData.Write(ref pos, (byte)m.GetPacketFlags());
|
||||
|
|
@ -99,9 +97,7 @@ namespace Server.Tests.Network.Packets
|
|||
expectedData.Write(ref pos, (byte)0x77); // Packet ID
|
||||
expectedData.Write(ref pos, m.Serial);
|
||||
expectedData.Write(ref pos, (ushort)m.Body);
|
||||
expectedData.Write(ref pos, (ushort)m.X);
|
||||
expectedData.Write(ref pos, (ushort)m.Y);
|
||||
expectedData.Write(ref pos, (byte)m.Z);
|
||||
expectedData.Write(ref pos, m.Location);
|
||||
expectedData.Write(ref pos, (byte)m.Direction);
|
||||
expectedData.Write(ref pos, (ushort)m.Hue);
|
||||
expectedData.Write(ref pos, (byte)m.GetOldPacketFlags());
|
||||
|
|
@ -478,10 +474,10 @@ namespace Server.Tests.Network.Packets
|
|||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("None", 0)]
|
||||
[InlineData("Lesser", 1)]
|
||||
[InlineData("Lethal", 5)]
|
||||
public void TestHealthbarPoison(string pName, int level)
|
||||
[InlineData("None")]
|
||||
[InlineData("Lesser")]
|
||||
[InlineData("Lethal")]
|
||||
public void TestHealthbarPoison(string pName)
|
||||
{
|
||||
var p = Poison.GetPoison(pName);
|
||||
Mobile m = new Mobile(0x1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue