Hey !
I was wondering if anyone else was having problems with eater properties ?
Also, I wonder why the armor part is commented out in this code :
The code comes from ServUO Repository : /Scripts/Misc/AOS.cs (around line 1957)
Should I uncomment it ?
Thanks !
-Rek-
I was wondering if anyone else was having problems with eater properties ?
Also, I wonder why the armor part is commented out in this code :
Code:
public static int GetValue(Mobile m, SAAbsorptionAttribute attribute)
{
if (!Core.AOS)
return 0;
List<Item> items = m.Items;
int value = 0;
#region Enhancement
value += Enhancement.GetValue(m, attribute);
#endregion
for (int i = 0; i < items.Count; ++i)
{
Item obj = items[i];
/*if ( obj is BaseArmor )
{
SAAbsorptionAttributes attrs = ((BaseArmor)obj).AbsorptionAttributes;
if ( attrs != null )
value += attrs[attribute];
}
else */
if (obj is BaseWeapon)
{
SAAbsorptionAttributes attrs = ((BaseWeapon)obj).AbsorptionAttributes;
if (attrs != null)
value += attrs[attribute];
}
}
return value;
}
Should I uncomment it ?
Thanks !
-Rek-