Skip to content

Commit

Permalink
Merge pull request #14 from kelhor/master
Browse files Browse the repository at this point in the history
Superior level is for all equipment, not just armor.
  • Loading branch information
z16 committed Jul 27, 2015
2 parents 48e13e4 + d646685 commit 4b3c9cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PlayOnline.FFXI/Things/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public static List<string> AllFields
// UsableItem-Specific
"activation-time",
// Equipment-Specific
"level", "iLevel", "slots", "races", "jobs",
"level", "iLevel", "slots", "races", "jobs", "superior-level",
// Armor-Specific
"superior-level", "shield-size",
"shield-size",
// Weapon-Specific
"damage", "delay", "dps", "skill", "jug-size",
// Enchantment Info
Expand Down Expand Up @@ -98,8 +98,8 @@ public static List<string> AllFields
private EquipmentSlot? Slots_;
private Race? Races_;
private Job? Jobs_;
// Armor-Specific
private ushort? SuperiorLevel_;
// Armor-Specific
private ushort? ShieldSize_;
// Weapon-Specific
private ushort? Damage_;
Expand Down Expand Up @@ -712,15 +712,15 @@ public bool Read(BinaryReader BR, Type T)
this.Slots_ = (EquipmentSlot)BR.ReadUInt16();
this.Races_ = (Race)BR.ReadUInt16();
this.Jobs_ = (Job)BR.ReadUInt32();
this.SuperiorLevel_ = BR.ReadUInt16();
if (T == Type.Armor)
{
this.SuperiorLevel_ = BR.ReadUInt16();
this.ShieldSize_ = BR.ReadUInt16();
}
else
{
// Weapon
this.Unknown4_ = BR.ReadUInt32();
this.Unknown4_ = BR.ReadUInt16();
this.Damage_ = BR.ReadUInt16();
this.Delay_ = BR.ReadInt16();
this.DPS_ = BR.ReadUInt16();
Expand Down

0 comments on commit 4b3c9cc

Please sign in to comment.