Skip to content

Commit

Permalink
Fix identifying items
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman committed Jan 11, 2025
1 parent 7dc4910 commit 0c031d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Projects/UOContent/Items/Armor/BaseArmor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ public int OnCraft(

Resource = CraftResources.GetFromType(resourceType);
PlayerConstructed = true;
Identified = true;

var context = craftSystem.GetContext(from);

Expand Down Expand Up @@ -1490,13 +1491,12 @@ public override void OnSingleClick(Mobile from)
attrs.Add(new EquipInfoAttribute(1038000 + (int)_durability));
}

if (_protectionLevel > ArmorProtectionLevel.Regular && _protectionLevel <= ArmorProtectionLevel.Invulnerability)
if (_protectionLevel != ArmorProtectionLevel.Regular)
{
attrs.Add(new EquipInfoAttribute(1038005 + (int)_protectionLevel));
}
}
else if (_durability != ArmorDurabilityLevel.Regular ||
_protectionLevel is > ArmorProtectionLevel.Regular and <= ArmorProtectionLevel.Invulnerability)
else if (_durability != ArmorDurabilityLevel.Regular || _protectionLevel != ArmorProtectionLevel.Regular)
{
attrs.Add(new EquipInfoAttribute(1038000)); // Unidentified
}
Expand Down

0 comments on commit 0c031d9

Please sign in to comment.