#W# Added: Armor and shields now show ACTUAL AR rating.
This commit is contained in:
parent
e463db2955
commit
1efa69c9f4
1 changed files with 11 additions and 0 deletions
|
|
@ -1525,6 +1525,17 @@ namespace Server.Items
|
|||
|
||||
// 2. --- Sovereign Realm: Custom UOR Stat Display ---
|
||||
|
||||
// Armor Rating
|
||||
double displayAR = ArmorRatingScaled;
|
||||
if (this is BaseShield && Parent as Mobile == null)
|
||||
{
|
||||
displayAR = (from.Skills.Parry.Value * ArmorRating / 200.0) + 1.0;
|
||||
}
|
||||
if (displayAR > 0)
|
||||
{
|
||||
LabelTo(from, $"Armor Rating: {(int)Math.Round(displayAR, MidpointRounding.AwayFromZero)}");
|
||||
}
|
||||
|
||||
// Show Strength Requirement
|
||||
int strReq = ComputeStatReq(StatType.Str);
|
||||
if (strReq > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue