Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -5,12 +5,11 @@ namespace Server.Spells.Third
{
public class PoisonSpell : MagerySpell, ISpellTargetingMobile
{
private static SpellInfo m_Info = new SpellInfo(
private static readonly SpellInfo m_Info = new SpellInfo(
"Poison", "In Nox",
203,
9051,
Reagent.Nightshade
);
Reagent.Nightshade);
public PoisonSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
{
@ -70,9 +69,7 @@ namespace Server.Spells.Third
}
else
{
//double total = Caster.Skills.Magery.Value + Caster.Skills.Poisoning.Value;
#region Dueling
// double total = Caster.Skills.Magery.Value + Caster.Skills.Poisoning.Value;
double total = Caster.Skills.Magery.Value;
@ -86,14 +83,12 @@ namespace Server.Spells.Third
total += Caster.Skills.Poisoning.Value;
}
#endregion
double dist = Caster.GetDistanceToSqrt(m);
if (dist >= 3.0)
total -= (dist - 3.0) * 10.0;
if (total >= 200.0 && 1 > Utility.Random(10))
if (total >= 200.0 && Utility.Random(10) < 1)
level = 3;
else if (total > (Core.AOS ? 170.1 : 170.0))
level = 2;