Modernization Fixes & Updates to Default Values (#3)

This commit is contained in:
Kamron Batman 2018-10-28 00:33:16 -07:00 • committed by GitHub
parent 445eddff68
commit dcf64091b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
768 changed files with 10507 additions and 14196 deletions

View file

@ -47,9 +47,9 @@ namespace Server.Items
public override double GetDefendSkillValue(Mobile attacker, Mobile defender)
{
double wresValue = defender.Skills[SkillName.Wrestling].Value;
double anatValue = defender.Skills[SkillName.Anatomy].Value;
double evalValue = defender.Skills[SkillName.EvalInt].Value;
double wresValue = defender.Skills.Wrestling.Value;
double anatValue = defender.Skills.Anatomy.Value;
double evalValue = defender.Skills.EvalInt.Value;
double incrValue = (anatValue + evalValue + 20.0) * 0.5;
if (incrValue > 120.0)
@ -64,10 +64,10 @@ namespace Server.Items
{
if (attacker.StunReady)
{
if (attacker.CanBeginAction(typeof(Fists)))
if (attacker.CanBeginAction<Fists>())
{
if (attacker.Skills[SkillName.Anatomy].Value >= 80.0 &&
attacker.Skills[SkillName.Wrestling].Value >= 80.0)
if (attacker.Skills.Anatomy.Value >= 80.0 &&
attacker.Skills.Wrestling.Value >= 80.0)
{
if (attacker.Stam >= 15)
{
@ -104,12 +104,12 @@ namespace Server.Items
}
else if (attacker.DisarmReady)
{
if (attacker.CanBeginAction(typeof(Fists)))
if (attacker.CanBeginAction<Fists>())
{
if (defender.Player || defender.Body.IsHuman)
{
if (attacker.Skills[SkillName.ArmsLore].Value >= 80.0 &&
attacker.Skills[SkillName.Wrestling].Value >= 80.0)
if (attacker.Skills.ArmsLore.Value >= 80.0 &&
attacker.Skills.Wrestling.Value >= 80.0)
{
if (attacker.Stam >= 15)
{
@ -196,7 +196,7 @@ namespace Server.Items
private static bool CheckMove(Mobile m, SkillName other)
{
double wresValue = m.Skills[SkillName.Wrestling].Value;
double wresValue = m.Skills.Wrestling.Value;
double scndValue = m.Skills[other].Value;
/* 40% chance at 80, 80
@ -233,8 +233,8 @@ namespace Server.Items
#endregion
double armsValue = m.Skills[SkillName.ArmsLore].Value;
double wresValue = m.Skills[SkillName.Wrestling].Value;
double armsValue = m.Skills.ArmsLore.Value;
double wresValue = m.Skills.Wrestling.Value;
if (!HasFreeHands(m))
{
@ -268,8 +268,8 @@ namespace Server.Items
#endregion
double anatValue = m.Skills[SkillName.Anatomy].Value;
double wresValue = m.Skills[SkillName.Wrestling].Value;
double anatValue = m.Skills.Anatomy.Value;
double wresValue = m.Skills.Wrestling.Value;
if (!HasFreeHands(m))
{
@ -304,12 +304,12 @@ namespace Server.Items
Priority = TimerPriority.TwoFiftyMS;
m_Mobile.BeginAction(typeof(Fists));
m_Mobile.BeginAction<Fists>();
}
protected override void OnTick()
{
m_Mobile.EndAction(typeof(Fists));
m_Mobile.EndAction<Fists>();
}
}
}