Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -345,8 +345,8 @@ namespace Server
|
|||
|
||||
public int this[AosAttribute attribute]
|
||||
{
|
||||
get { return GetValue( (int)attribute ); }
|
||||
set { SetValue( (int)attribute, value ); }
|
||||
get => GetValue( (int)attribute );
|
||||
set => SetValue( (int)attribute, value );
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
|
@ -389,76 +389,124 @@ namespace Server
|
|||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int RegenHits { get { return this[AosAttribute.RegenHits]; } set { this[AosAttribute.RegenHits] = value; } }
|
||||
public int RegenHits { get => this[AosAttribute.RegenHits];
|
||||
set => this[AosAttribute.RegenHits] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int RegenStam { get { return this[AosAttribute.RegenStam]; } set { this[AosAttribute.RegenStam] = value; } }
|
||||
public int RegenStam { get => this[AosAttribute.RegenStam];
|
||||
set => this[AosAttribute.RegenStam] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int RegenMana { get { return this[AosAttribute.RegenMana]; } set { this[AosAttribute.RegenMana] = value; } }
|
||||
public int RegenMana { get => this[AosAttribute.RegenMana];
|
||||
set => this[AosAttribute.RegenMana] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int DefendChance { get { return this[AosAttribute.DefendChance]; } set { this[AosAttribute.DefendChance] = value; } }
|
||||
public int DefendChance { get => this[AosAttribute.DefendChance];
|
||||
set => this[AosAttribute.DefendChance] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int AttackChance { get { return this[AosAttribute.AttackChance]; } set { this[AosAttribute.AttackChance] = value; } }
|
||||
public int AttackChance { get => this[AosAttribute.AttackChance];
|
||||
set => this[AosAttribute.AttackChance] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int BonusStr { get { return this[AosAttribute.BonusStr]; } set { this[AosAttribute.BonusStr] = value; } }
|
||||
public int BonusStr { get => this[AosAttribute.BonusStr];
|
||||
set => this[AosAttribute.BonusStr] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int BonusDex { get { return this[AosAttribute.BonusDex]; } set { this[AosAttribute.BonusDex] = value; } }
|
||||
public int BonusDex { get => this[AosAttribute.BonusDex];
|
||||
set => this[AosAttribute.BonusDex] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int BonusInt { get { return this[AosAttribute.BonusInt]; } set { this[AosAttribute.BonusInt] = value; } }
|
||||
public int BonusInt { get => this[AosAttribute.BonusInt];
|
||||
set => this[AosAttribute.BonusInt] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int BonusHits { get { return this[AosAttribute.BonusHits]; } set { this[AosAttribute.BonusHits] = value; } }
|
||||
public int BonusHits { get => this[AosAttribute.BonusHits];
|
||||
set => this[AosAttribute.BonusHits] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int BonusStam { get { return this[AosAttribute.BonusStam]; } set { this[AosAttribute.BonusStam] = value; } }
|
||||
public int BonusStam { get => this[AosAttribute.BonusStam];
|
||||
set => this[AosAttribute.BonusStam] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int BonusMana { get { return this[AosAttribute.BonusMana]; } set { this[AosAttribute.BonusMana] = value; } }
|
||||
public int BonusMana { get => this[AosAttribute.BonusMana];
|
||||
set => this[AosAttribute.BonusMana] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int WeaponDamage { get { return this[AosAttribute.WeaponDamage]; } set { this[AosAttribute.WeaponDamage] = value; } }
|
||||
public int WeaponDamage { get => this[AosAttribute.WeaponDamage];
|
||||
set => this[AosAttribute.WeaponDamage] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int WeaponSpeed { get { return this[AosAttribute.WeaponSpeed]; } set { this[AosAttribute.WeaponSpeed] = value; } }
|
||||
public int WeaponSpeed { get => this[AosAttribute.WeaponSpeed];
|
||||
set => this[AosAttribute.WeaponSpeed] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int SpellDamage { get { return this[AosAttribute.SpellDamage]; } set { this[AosAttribute.SpellDamage] = value; } }
|
||||
public int SpellDamage { get => this[AosAttribute.SpellDamage];
|
||||
set => this[AosAttribute.SpellDamage] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int CastRecovery { get { return this[AosAttribute.CastRecovery]; } set { this[AosAttribute.CastRecovery] = value; } }
|
||||
public int CastRecovery { get => this[AosAttribute.CastRecovery];
|
||||
set => this[AosAttribute.CastRecovery] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int CastSpeed { get { return this[AosAttribute.CastSpeed]; } set { this[AosAttribute.CastSpeed] = value; } }
|
||||
public int CastSpeed { get => this[AosAttribute.CastSpeed];
|
||||
set => this[AosAttribute.CastSpeed] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int LowerManaCost { get { return this[AosAttribute.LowerManaCost]; } set { this[AosAttribute.LowerManaCost] = value; } }
|
||||
public int LowerManaCost { get => this[AosAttribute.LowerManaCost];
|
||||
set => this[AosAttribute.LowerManaCost] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int LowerRegCost { get { return this[AosAttribute.LowerRegCost]; } set { this[AosAttribute.LowerRegCost] = value; } }
|
||||
public int LowerRegCost { get => this[AosAttribute.LowerRegCost];
|
||||
set => this[AosAttribute.LowerRegCost] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int ReflectPhysical { get { return this[AosAttribute.ReflectPhysical]; } set { this[AosAttribute.ReflectPhysical] = value; } }
|
||||
public int ReflectPhysical { get => this[AosAttribute.ReflectPhysical];
|
||||
set => this[AosAttribute.ReflectPhysical] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int EnhancePotions { get { return this[AosAttribute.EnhancePotions]; } set { this[AosAttribute.EnhancePotions] = value; } }
|
||||
public int EnhancePotions { get => this[AosAttribute.EnhancePotions];
|
||||
set => this[AosAttribute.EnhancePotions] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Luck { get { return this[AosAttribute.Luck]; } set { this[AosAttribute.Luck] = value; } }
|
||||
public int Luck { get => this[AosAttribute.Luck];
|
||||
set => this[AosAttribute.Luck] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int SpellChanneling { get { return this[AosAttribute.SpellChanneling]; } set { this[AosAttribute.SpellChanneling] = value; } }
|
||||
public int SpellChanneling { get => this[AosAttribute.SpellChanneling];
|
||||
set => this[AosAttribute.SpellChanneling] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int NightSight { get { return this[AosAttribute.NightSight]; } set { this[AosAttribute.NightSight] = value; } }
|
||||
public int NightSight { get => this[AosAttribute.NightSight];
|
||||
set => this[AosAttribute.NightSight] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int IncreasedKarmaLoss { get { return this[AosAttribute.IncreasedKarmaLoss]; } set { this[AosAttribute.IncreasedKarmaLoss] = value; } }
|
||||
public int IncreasedKarmaLoss { get => this[AosAttribute.IncreasedKarmaLoss];
|
||||
set => this[AosAttribute.IncreasedKarmaLoss] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[Flags]
|
||||
|
|
@ -541,8 +589,8 @@ namespace Server
|
|||
|
||||
public int this[AosWeaponAttribute attribute]
|
||||
{
|
||||
get { return GetValue( (int)attribute ); }
|
||||
set { SetValue( (int)attribute, value ); }
|
||||
get => GetValue( (int)attribute );
|
||||
set => SetValue( (int)attribute, value );
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
|
@ -551,79 +599,129 @@ namespace Server
|
|||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int LowerStatReq { get { return this[AosWeaponAttribute.LowerStatReq]; } set { this[AosWeaponAttribute.LowerStatReq] = value; } }
|
||||
public int LowerStatReq { get => this[AosWeaponAttribute.LowerStatReq];
|
||||
set => this[AosWeaponAttribute.LowerStatReq] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int SelfRepair { get { return this[AosWeaponAttribute.SelfRepair]; } set { this[AosWeaponAttribute.SelfRepair] = value; } }
|
||||
public int SelfRepair { get => this[AosWeaponAttribute.SelfRepair];
|
||||
set => this[AosWeaponAttribute.SelfRepair] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitLeechHits { get { return this[AosWeaponAttribute.HitLeechHits]; } set { this[AosWeaponAttribute.HitLeechHits] = value; } }
|
||||
public int HitLeechHits { get => this[AosWeaponAttribute.HitLeechHits];
|
||||
set => this[AosWeaponAttribute.HitLeechHits] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitLeechStam { get { return this[AosWeaponAttribute.HitLeechStam]; } set { this[AosWeaponAttribute.HitLeechStam] = value; } }
|
||||
public int HitLeechStam { get => this[AosWeaponAttribute.HitLeechStam];
|
||||
set => this[AosWeaponAttribute.HitLeechStam] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitLeechMana { get { return this[AosWeaponAttribute.HitLeechMana]; } set { this[AosWeaponAttribute.HitLeechMana] = value; } }
|
||||
public int HitLeechMana { get => this[AosWeaponAttribute.HitLeechMana];
|
||||
set => this[AosWeaponAttribute.HitLeechMana] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitLowerAttack { get { return this[AosWeaponAttribute.HitLowerAttack]; } set { this[AosWeaponAttribute.HitLowerAttack] = value; } }
|
||||
public int HitLowerAttack { get => this[AosWeaponAttribute.HitLowerAttack];
|
||||
set => this[AosWeaponAttribute.HitLowerAttack] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitLowerDefend { get { return this[AosWeaponAttribute.HitLowerDefend]; } set { this[AosWeaponAttribute.HitLowerDefend] = value; } }
|
||||
public int HitLowerDefend { get => this[AosWeaponAttribute.HitLowerDefend];
|
||||
set => this[AosWeaponAttribute.HitLowerDefend] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitMagicArrow { get { return this[AosWeaponAttribute.HitMagicArrow]; } set { this[AosWeaponAttribute.HitMagicArrow] = value; } }
|
||||
public int HitMagicArrow { get => this[AosWeaponAttribute.HitMagicArrow];
|
||||
set => this[AosWeaponAttribute.HitMagicArrow] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitHarm { get { return this[AosWeaponAttribute.HitHarm]; } set { this[AosWeaponAttribute.HitHarm] = value; } }
|
||||
public int HitHarm { get => this[AosWeaponAttribute.HitHarm];
|
||||
set => this[AosWeaponAttribute.HitHarm] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitFireball { get { return this[AosWeaponAttribute.HitFireball]; } set { this[AosWeaponAttribute.HitFireball] = value; } }
|
||||
public int HitFireball { get => this[AosWeaponAttribute.HitFireball];
|
||||
set => this[AosWeaponAttribute.HitFireball] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitLightning { get { return this[AosWeaponAttribute.HitLightning]; } set { this[AosWeaponAttribute.HitLightning] = value; } }
|
||||
public int HitLightning { get => this[AosWeaponAttribute.HitLightning];
|
||||
set => this[AosWeaponAttribute.HitLightning] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitDispel { get { return this[AosWeaponAttribute.HitDispel]; } set { this[AosWeaponAttribute.HitDispel] = value; } }
|
||||
public int HitDispel { get => this[AosWeaponAttribute.HitDispel];
|
||||
set => this[AosWeaponAttribute.HitDispel] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitColdArea { get { return this[AosWeaponAttribute.HitColdArea]; } set { this[AosWeaponAttribute.HitColdArea] = value; } }
|
||||
public int HitColdArea { get => this[AosWeaponAttribute.HitColdArea];
|
||||
set => this[AosWeaponAttribute.HitColdArea] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitFireArea { get { return this[AosWeaponAttribute.HitFireArea]; } set { this[AosWeaponAttribute.HitFireArea] = value; } }
|
||||
public int HitFireArea { get => this[AosWeaponAttribute.HitFireArea];
|
||||
set => this[AosWeaponAttribute.HitFireArea] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitPoisonArea { get { return this[AosWeaponAttribute.HitPoisonArea]; } set { this[AosWeaponAttribute.HitPoisonArea] = value; } }
|
||||
public int HitPoisonArea { get => this[AosWeaponAttribute.HitPoisonArea];
|
||||
set => this[AosWeaponAttribute.HitPoisonArea] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitEnergyArea { get { return this[AosWeaponAttribute.HitEnergyArea]; } set { this[AosWeaponAttribute.HitEnergyArea] = value; } }
|
||||
public int HitEnergyArea { get => this[AosWeaponAttribute.HitEnergyArea];
|
||||
set => this[AosWeaponAttribute.HitEnergyArea] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int HitPhysicalArea { get { return this[AosWeaponAttribute.HitPhysicalArea]; } set { this[AosWeaponAttribute.HitPhysicalArea] = value; } }
|
||||
public int HitPhysicalArea { get => this[AosWeaponAttribute.HitPhysicalArea];
|
||||
set => this[AosWeaponAttribute.HitPhysicalArea] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int ResistPhysicalBonus { get { return this[AosWeaponAttribute.ResistPhysicalBonus]; } set { this[AosWeaponAttribute.ResistPhysicalBonus] = value; } }
|
||||
public int ResistPhysicalBonus { get => this[AosWeaponAttribute.ResistPhysicalBonus];
|
||||
set => this[AosWeaponAttribute.ResistPhysicalBonus] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int ResistFireBonus { get { return this[AosWeaponAttribute.ResistFireBonus]; } set { this[AosWeaponAttribute.ResistFireBonus] = value; } }
|
||||
public int ResistFireBonus { get => this[AosWeaponAttribute.ResistFireBonus];
|
||||
set => this[AosWeaponAttribute.ResistFireBonus] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int ResistColdBonus { get { return this[AosWeaponAttribute.ResistColdBonus]; } set { this[AosWeaponAttribute.ResistColdBonus] = value; } }
|
||||
public int ResistColdBonus { get => this[AosWeaponAttribute.ResistColdBonus];
|
||||
set => this[AosWeaponAttribute.ResistColdBonus] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int ResistPoisonBonus { get { return this[AosWeaponAttribute.ResistPoisonBonus]; } set { this[AosWeaponAttribute.ResistPoisonBonus] = value; } }
|
||||
public int ResistPoisonBonus { get => this[AosWeaponAttribute.ResistPoisonBonus];
|
||||
set => this[AosWeaponAttribute.ResistPoisonBonus] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int ResistEnergyBonus { get { return this[AosWeaponAttribute.ResistEnergyBonus]; } set { this[AosWeaponAttribute.ResistEnergyBonus] = value; } }
|
||||
public int ResistEnergyBonus { get => this[AosWeaponAttribute.ResistEnergyBonus];
|
||||
set => this[AosWeaponAttribute.ResistEnergyBonus] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int UseBestSkill { get { return this[AosWeaponAttribute.UseBestSkill]; } set { this[AosWeaponAttribute.UseBestSkill] = value; } }
|
||||
public int UseBestSkill { get => this[AosWeaponAttribute.UseBestSkill];
|
||||
set => this[AosWeaponAttribute.UseBestSkill] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int MageWeapon { get { return this[AosWeaponAttribute.MageWeapon]; } set { this[AosWeaponAttribute.MageWeapon] = value; } }
|
||||
public int MageWeapon { get => this[AosWeaponAttribute.MageWeapon];
|
||||
set => this[AosWeaponAttribute.MageWeapon] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int DurabilityBonus { get { return this[AosWeaponAttribute.DurabilityBonus]; } set { this[AosWeaponAttribute.DurabilityBonus] = value; } }
|
||||
public int DurabilityBonus { get => this[AosWeaponAttribute.DurabilityBonus];
|
||||
set => this[AosWeaponAttribute.DurabilityBonus] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[Flags]
|
||||
|
|
@ -685,8 +783,8 @@ namespace Server
|
|||
|
||||
public int this[AosArmorAttribute attribute]
|
||||
{
|
||||
get { return GetValue( (int)attribute ); }
|
||||
set { SetValue( (int)attribute, value ); }
|
||||
get => GetValue( (int)attribute );
|
||||
set => SetValue( (int)attribute, value );
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
|
@ -695,16 +793,24 @@ namespace Server
|
|||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int LowerStatReq { get { return this[AosArmorAttribute.LowerStatReq]; } set { this[AosArmorAttribute.LowerStatReq] = value; } }
|
||||
public int LowerStatReq { get => this[AosArmorAttribute.LowerStatReq];
|
||||
set => this[AosArmorAttribute.LowerStatReq] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int SelfRepair { get { return this[AosArmorAttribute.SelfRepair]; } set { this[AosArmorAttribute.SelfRepair] = value; } }
|
||||
public int SelfRepair { get => this[AosArmorAttribute.SelfRepair];
|
||||
set => this[AosArmorAttribute.SelfRepair] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int MageArmor { get { return this[AosArmorAttribute.MageArmor]; } set { this[AosArmorAttribute.MageArmor] = value; } }
|
||||
public int MageArmor { get => this[AosArmorAttribute.MageArmor];
|
||||
set => this[AosArmorAttribute.MageArmor] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int DurabilityBonus { get { return this[AosArmorAttribute.DurabilityBonus]; } set { this[AosArmorAttribute.DurabilityBonus] = value; } }
|
||||
public int DurabilityBonus { get => this[AosArmorAttribute.DurabilityBonus];
|
||||
set => this[AosArmorAttribute.DurabilityBonus] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class AosSkillBonuses : BaseAttributes
|
||||
|
|
@ -911,34 +1017,54 @@ namespace Server
|
|||
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public double Skill_1_Value { get { return GetBonus( 0 ); } set { SetBonus( 0, value ); } }
|
||||
public double Skill_1_Value { get => GetBonus( 0 );
|
||||
set => SetBonus( 0, value );
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public SkillName Skill_1_Name { get { return GetSkill( 0 ); } set { SetSkill( 0, value ); } }
|
||||
public SkillName Skill_1_Name { get => GetSkill( 0 );
|
||||
set => SetSkill( 0, value );
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public double Skill_2_Value { get { return GetBonus( 1 ); } set { SetBonus( 1, value ); } }
|
||||
public double Skill_2_Value { get => GetBonus( 1 );
|
||||
set => SetBonus( 1, value );
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public SkillName Skill_2_Name { get { return GetSkill( 1 ); } set { SetSkill( 1, value ); } }
|
||||
public SkillName Skill_2_Name { get => GetSkill( 1 );
|
||||
set => SetSkill( 1, value );
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public double Skill_3_Value { get { return GetBonus( 2 ); } set { SetBonus( 2, value ); } }
|
||||
public double Skill_3_Value { get => GetBonus( 2 );
|
||||
set => SetBonus( 2, value );
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public SkillName Skill_3_Name { get { return GetSkill( 2 ); } set { SetSkill( 2, value ); } }
|
||||
public SkillName Skill_3_Name { get => GetSkill( 2 );
|
||||
set => SetSkill( 2, value );
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public double Skill_4_Value { get { return GetBonus( 3 ); } set { SetBonus( 3, value ); } }
|
||||
public double Skill_4_Value { get => GetBonus( 3 );
|
||||
set => SetBonus( 3, value );
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public SkillName Skill_4_Name { get { return GetSkill( 3 ); } set { SetSkill( 3, value ); } }
|
||||
public SkillName Skill_4_Name { get => GetSkill( 3 );
|
||||
set => SetSkill( 3, value );
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public double Skill_5_Value { get { return GetBonus( 4 ); } set { SetBonus( 4, value ); } }
|
||||
public double Skill_5_Value { get => GetBonus( 4 );
|
||||
set => SetBonus( 4, value );
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public SkillName Skill_5_Name { get { return GetSkill( 4 ); } set { SetSkill( 4, value ); } }
|
||||
public SkillName Skill_5_Name { get => GetSkill( 4 );
|
||||
set => SetSkill( 4, value );
|
||||
}
|
||||
}
|
||||
|
||||
[Flags]
|
||||
|
|
@ -972,8 +1098,8 @@ namespace Server
|
|||
|
||||
public int this[AosElementAttribute attribute]
|
||||
{
|
||||
get { return GetValue( (int)attribute ); }
|
||||
set { SetValue( (int)attribute, value ); }
|
||||
get => GetValue( (int)attribute );
|
||||
set => SetValue( (int)attribute, value );
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
|
@ -982,25 +1108,39 @@ namespace Server
|
|||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Physical { get { return this[AosElementAttribute.Physical]; } set { this[AosElementAttribute.Physical] = value; } }
|
||||
public int Physical { get => this[AosElementAttribute.Physical];
|
||||
set => this[AosElementAttribute.Physical] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Fire { get { return this[AosElementAttribute.Fire]; } set { this[AosElementAttribute.Fire] = value; } }
|
||||
public int Fire { get => this[AosElementAttribute.Fire];
|
||||
set => this[AosElementAttribute.Fire] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Cold { get { return this[AosElementAttribute.Cold]; } set { this[AosElementAttribute.Cold] = value; } }
|
||||
public int Cold { get => this[AosElementAttribute.Cold];
|
||||
set => this[AosElementAttribute.Cold] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Poison { get { return this[AosElementAttribute.Poison]; } set { this[AosElementAttribute.Poison] = value; } }
|
||||
public int Poison { get => this[AosElementAttribute.Poison];
|
||||
set => this[AosElementAttribute.Poison] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Energy { get { return this[AosElementAttribute.Energy]; } set { this[AosElementAttribute.Energy] = value; } }
|
||||
public int Energy { get => this[AosElementAttribute.Energy];
|
||||
set => this[AosElementAttribute.Energy] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Chaos { get { return this[AosElementAttribute.Chaos]; } set { this[AosElementAttribute.Chaos] = value; } }
|
||||
public int Chaos { get => this[AosElementAttribute.Chaos];
|
||||
set => this[AosElementAttribute.Chaos] = value;
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Direct { get { return this[AosElementAttribute.Direct]; } set { this[AosElementAttribute.Direct] = value; } }
|
||||
public int Direct { get => this[AosElementAttribute.Direct];
|
||||
set => this[AosElementAttribute.Direct] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[PropertyObject]
|
||||
|
|
@ -1012,7 +1152,7 @@ namespace Server
|
|||
|
||||
private static int[] m_Empty = new int[0];
|
||||
|
||||
public bool IsEmpty { get { return (m_Names == 0); } }
|
||||
public bool IsEmpty => (m_Names == 0);
|
||||
public Item Owner => m_Owner;
|
||||
|
||||
public BaseAttributes( Item owner )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue