Modernization Fixes & Updates to Default Values (#3)
This commit is contained in:
parent
445eddff68
commit
dcf64091b1
768 changed files with 10507 additions and 14196 deletions
|
|
@ -2,13 +2,11 @@ namespace Server.Items
|
|||
{
|
||||
public class ElvenGlasses : BaseArmor
|
||||
{
|
||||
private AosWeaponAttributes m_AosWeaponAttributes;
|
||||
|
||||
[Constructible]
|
||||
public ElvenGlasses() : base(0x2FB8)
|
||||
{
|
||||
Weight = 2;
|
||||
m_AosWeaponAttributes = new AosWeaponAttributes(this);
|
||||
WeaponAttributes = new AosWeaponAttributes(this);
|
||||
}
|
||||
|
||||
public ElvenGlasses(Serial serial) : base(serial)
|
||||
|
|
@ -36,11 +34,7 @@ namespace Server.Items
|
|||
public override ArmorMeditationAllowance DefMedAllowance => ArmorMeditationAllowance.All;
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public AosWeaponAttributes WeaponAttributes
|
||||
{
|
||||
get => m_AosWeaponAttributes;
|
||||
set { }
|
||||
}
|
||||
public AosWeaponAttributes WeaponAttributes{ get; private set; }
|
||||
|
||||
public override void AppendChildNameProperties(ObjectPropertyList list)
|
||||
{
|
||||
|
|
@ -48,49 +42,49 @@ namespace Server.Items
|
|||
|
||||
int prop;
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitColdArea) != 0)
|
||||
if ((prop = WeaponAttributes.HitColdArea) != 0)
|
||||
list.Add(1060416, prop.ToString()); // hit cold area ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitDispel) != 0)
|
||||
if ((prop = WeaponAttributes.HitDispel) != 0)
|
||||
list.Add(1060417, prop.ToString()); // hit dispel ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitEnergyArea) != 0)
|
||||
if ((prop = WeaponAttributes.HitEnergyArea) != 0)
|
||||
list.Add(1060418, prop.ToString()); // hit energy area ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitFireArea) != 0)
|
||||
if ((prop = WeaponAttributes.HitFireArea) != 0)
|
||||
list.Add(1060419, prop.ToString()); // hit fire area ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitFireball) != 0)
|
||||
if ((prop = WeaponAttributes.HitFireball) != 0)
|
||||
list.Add(1060420, prop.ToString()); // hit fireball ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitHarm) != 0)
|
||||
if ((prop = WeaponAttributes.HitHarm) != 0)
|
||||
list.Add(1060421, prop.ToString()); // hit harm ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitLeechHits) != 0)
|
||||
if ((prop = WeaponAttributes.HitLeechHits) != 0)
|
||||
list.Add(1060422, prop.ToString()); // hit life leech ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitLightning) != 0)
|
||||
if ((prop = WeaponAttributes.HitLightning) != 0)
|
||||
list.Add(1060423, prop.ToString()); // hit lightning ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitLowerAttack) != 0)
|
||||
if ((prop = WeaponAttributes.HitLowerAttack) != 0)
|
||||
list.Add(1060424, prop.ToString()); // hit lower attack ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitLowerDefend) != 0)
|
||||
if ((prop = WeaponAttributes.HitLowerDefend) != 0)
|
||||
list.Add(1060425, prop.ToString()); // hit lower defense ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitMagicArrow) != 0)
|
||||
if ((prop = WeaponAttributes.HitMagicArrow) != 0)
|
||||
list.Add(1060426, prop.ToString()); // hit magic arrow ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitLeechMana) != 0)
|
||||
if ((prop = WeaponAttributes.HitLeechMana) != 0)
|
||||
list.Add(1060427, prop.ToString()); // hit mana leech ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitPhysicalArea) != 0)
|
||||
if ((prop = WeaponAttributes.HitPhysicalArea) != 0)
|
||||
list.Add(1060428, prop.ToString()); // hit physical area ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitPoisonArea) != 0)
|
||||
if ((prop = WeaponAttributes.HitPoisonArea) != 0)
|
||||
list.Add(1060429, prop.ToString()); // hit poison area ~1_val~%
|
||||
|
||||
if ((prop = m_AosWeaponAttributes.HitLeechStam) != 0)
|
||||
if ((prop = WeaponAttributes.HitLeechStam) != 0)
|
||||
list.Add(1060430, prop.ToString()); // hit stamina leech ~1_val~%
|
||||
}
|
||||
|
||||
|
|
@ -113,12 +107,12 @@ namespace Server.Items
|
|||
|
||||
SaveFlag flags = SaveFlag.None;
|
||||
|
||||
SetSaveFlag(ref flags, SaveFlag.WeaponAttributes, !m_AosWeaponAttributes.IsEmpty);
|
||||
SetSaveFlag(ref flags, SaveFlag.WeaponAttributes, !WeaponAttributes.IsEmpty);
|
||||
|
||||
writer.Write((int)flags);
|
||||
|
||||
if (GetSaveFlag(flags, SaveFlag.WeaponAttributes))
|
||||
m_AosWeaponAttributes.Serialize(writer);
|
||||
WeaponAttributes.Serialize(writer);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
|
|
@ -130,9 +124,9 @@ namespace Server.Items
|
|||
SaveFlag flags = (SaveFlag)reader.ReadInt();
|
||||
|
||||
if (GetSaveFlag(flags, SaveFlag.WeaponAttributes))
|
||||
m_AosWeaponAttributes = new AosWeaponAttributes(this, reader);
|
||||
WeaponAttributes = new AosWeaponAttributes(this, reader);
|
||||
else
|
||||
m_AosWeaponAttributes = new AosWeaponAttributes(this);
|
||||
WeaponAttributes = new AosWeaponAttributes(this);
|
||||
}
|
||||
|
||||
private enum SaveFlag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue