Skip to content

Commit

Permalink
fix(Monster): MonsterRecord field names
Browse files Browse the repository at this point in the history
  • Loading branch information
matigramirez committed Nov 30, 2023
1 parent fce9264 commit 6d6cb9f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/Parsec/Shaiya/Monster/MonsterRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public sealed class MonsterRecord : ISerializable

public short Level { get; set; }

public byte AI { get; set; }
public byte Ai { get; set; }

public int HP { get; set; }
public int Hp { get; set; }

public byte Day { get; set; }

Expand All @@ -31,17 +31,17 @@ public sealed class MonsterRecord : ISerializable

public byte AttackType1 { get; set; }

public byte AttackElement1 { get; set; }
public byte AttackAni1 { get; set; }

public byte AttackType2 { get; set; }

public byte AttackRange2 { get; set; }
public byte AttackAni2 { get; set; }

public byte AttackType3 { get; set; }

public byte Unknown1 { get; set; }
public byte AttackAni3 { get; set; }

public byte Unknown2 { get; set; }
public byte AttackPlus3 { get; set; }

public short QuestItemId { get; set; }

Expand All @@ -50,8 +50,8 @@ public void Read(SBinaryReader binaryReader)
MobName = binaryReader.ReadString();
ModelId = binaryReader.ReadInt16();
Level = binaryReader.ReadInt16();
AI = binaryReader.ReadByte();
HP = binaryReader.ReadInt32();
Ai = binaryReader.ReadByte();
Hp = binaryReader.ReadInt32();
Day = binaryReader.ReadByte();
Size = binaryReader.ReadByte();
Element = binaryReader.ReadByte();
Expand All @@ -60,12 +60,12 @@ public void Read(SBinaryReader binaryReader)
ChaseTime = binaryReader.ReadInt32();
ChaseStep = binaryReader.ReadByte();
AttackType1 = binaryReader.ReadByte();
AttackElement1 = binaryReader.ReadByte();
AttackAni1 = binaryReader.ReadByte();
AttackType2 = binaryReader.ReadByte();
AttackRange2 = binaryReader.ReadByte();
AttackAni2 = binaryReader.ReadByte();
AttackType3 = binaryReader.ReadByte();
Unknown1 = binaryReader.ReadByte();
Unknown2 = binaryReader.ReadByte();
AttackAni3 = binaryReader.ReadByte();
AttackPlus3 = binaryReader.ReadByte();
QuestItemId = binaryReader.ReadInt16();
}

Expand All @@ -74,8 +74,8 @@ public void Write(SBinaryWriter binaryWriter)
binaryWriter.Write(MobName);
binaryWriter.Write(ModelId);
binaryWriter.Write(Level);
binaryWriter.Write(AI);
binaryWriter.Write(HP);
binaryWriter.Write(Ai);
binaryWriter.Write(Hp);
binaryWriter.Write(Day);
binaryWriter.Write(Size);
binaryWriter.Write(Element);
Expand All @@ -84,12 +84,12 @@ public void Write(SBinaryWriter binaryWriter)
binaryWriter.Write(ChaseTime);
binaryWriter.Write(ChaseStep);
binaryWriter.Write(AttackType1);
binaryWriter.Write(AttackElement1);
binaryWriter.Write(AttackAni1);
binaryWriter.Write(AttackType2);
binaryWriter.Write(AttackRange2);
binaryWriter.Write(AttackAni2);
binaryWriter.Write(AttackType3);
binaryWriter.Write(Unknown1);
binaryWriter.Write(Unknown2);
binaryWriter.Write(AttackAni3);
binaryWriter.Write(AttackPlus3);
binaryWriter.Write(QuestItemId);
}
}

0 comments on commit 6d6cb9f

Please sign in to comment.