Adds style cop (#109)
This commit is contained in:
parent
3e715bcb60
commit
556a17aba8
1725 changed files with 33831 additions and 38046 deletions
|
|
@ -6,13 +6,12 @@ namespace Server.Spells.Second
|
|||
{
|
||||
public class AgilitySpell : MagerySpell, ISpellTargetingMobile
|
||||
{
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Agility", "Ex Uus",
|
||||
212,
|
||||
9061,
|
||||
Reagent.Bloodmoss,
|
||||
Reagent.MandrakeRoot
|
||||
);
|
||||
Reagent.MandrakeRoot);
|
||||
|
||||
public AgilitySpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,13 +6,12 @@ namespace Server.Spells.Second
|
|||
{
|
||||
public class CunningSpell : MagerySpell, ISpellTargetingMobile
|
||||
{
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Cunning", "Uus Wis",
|
||||
212,
|
||||
9061,
|
||||
Reagent.MandrakeRoot,
|
||||
Reagent.Nightshade
|
||||
);
|
||||
Reagent.Nightshade);
|
||||
|
||||
public CunningSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,13 +5,12 @@ namespace Server.Spells.Second
|
|||
{
|
||||
public class CureSpell : MagerySpell, ISpellTargetingMobile
|
||||
{
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Cure", "An Nox",
|
||||
212,
|
||||
9061,
|
||||
Reagent.Garlic,
|
||||
Reagent.Ginseng
|
||||
);
|
||||
Reagent.Ginseng);
|
||||
|
||||
public CureSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,13 +4,12 @@ namespace Server.Spells.Second
|
|||
{
|
||||
public class HarmSpell : MagerySpell, ISpellTargetingMobile
|
||||
{
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Harm", "An Mani",
|
||||
212,
|
||||
Core.AOS ? 9001 : 9041,
|
||||
Reagent.Nightshade,
|
||||
Reagent.SpidersSilk
|
||||
);
|
||||
Reagent.SpidersSilk);
|
||||
|
||||
public HarmSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,14 +5,13 @@ namespace Server.Spells.Second
|
|||
{
|
||||
public class MagicTrapSpell : MagerySpell, ISpellTargetingItem
|
||||
{
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Magic Trap", "In Jux",
|
||||
212,
|
||||
9001,
|
||||
Reagent.Garlic,
|
||||
Reagent.SpidersSilk,
|
||||
Reagent.SulfurousAsh
|
||||
);
|
||||
Reagent.SulfurousAsh);
|
||||
|
||||
public MagicTrapSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
|
|
@ -35,7 +34,7 @@ namespace Server.Spells.Second
|
|||
}
|
||||
else if (cont.TrapType != TrapType.None && cont.TrapType != TrapType.MagicTrap)
|
||||
{
|
||||
base.DoFizzle();
|
||||
this.DoFizzle();
|
||||
}
|
||||
else if (CheckSequence())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,22 +5,21 @@ namespace Server.Spells.Second
|
|||
{
|
||||
public class ProtectionSpell : MagerySpell
|
||||
{
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Protection", "Uus Sanct",
|
||||
236,
|
||||
9011,
|
||||
Reagent.Garlic,
|
||||
Reagent.Ginseng,
|
||||
Reagent.SulfurousAsh
|
||||
);
|
||||
Reagent.SulfurousAsh);
|
||||
|
||||
private static Dictionary<Mobile, Tuple<ResistanceMod, DefaultSkillMod>> m_Table = new Dictionary<Mobile, Tuple<ResistanceMod, DefaultSkillMod>>();
|
||||
private static readonly Dictionary<Mobile, Tuple<ResistanceMod, DefaultSkillMod>> m_Table = new Dictionary<Mobile, Tuple<ResistanceMod, DefaultSkillMod>>();
|
||||
|
||||
public ProtectionSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
}
|
||||
|
||||
public static Dictionary<Mobile, double> Registry{ get; } = new Dictionary<Mobile, double>();
|
||||
public static Dictionary<Mobile, double> Registry { get; } = new Dictionary<Mobile, double>();
|
||||
|
||||
public override SpellCircle Circle => SpellCircle.Second;
|
||||
|
||||
|
|
@ -40,7 +39,6 @@ namespace Server.Spells.Second
|
|||
|
||||
Caster.SendLocalizedMessage(1005385); // The spell will not adhere to you at this time.
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
public static void Toggle(Mobile caster, Mobile target)
|
||||
|
|
@ -63,8 +61,7 @@ namespace Server.Spells.Second
|
|||
new ResistanceMod(ResistanceType.Physical,
|
||||
-15 + Math.Min((int)(caster.Skills.Inscribe.Value / 20), 15)),
|
||||
new DefaultSkillMod(SkillName.MagicResist, true,
|
||||
-35 + Math.Min((int)(caster.Skills.Inscribe.Value / 20), 35))
|
||||
);
|
||||
-35 + Math.Min((int)(caster.Skills.Inscribe.Value / 20), 35)));
|
||||
|
||||
m_Table[target] = mods;
|
||||
Registry[target] = 100.0;
|
||||
|
|
@ -157,7 +154,7 @@ namespace Server.Spells.Second
|
|||
|
||||
private class InternalTimer : Timer
|
||||
{
|
||||
private Mobile m_Caster;
|
||||
private readonly Mobile m_Caster;
|
||||
|
||||
public InternalTimer(Mobile caster) : base(TimeSpan.FromSeconds(0))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,13 +5,12 @@ namespace Server.Spells.Second
|
|||
{
|
||||
public class RemoveTrapSpell : MagerySpell, ISpellTargetingItem
|
||||
{
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Remove Trap", "An Jux",
|
||||
212,
|
||||
9001,
|
||||
Reagent.Bloodmoss,
|
||||
Reagent.SulfurousAsh
|
||||
);
|
||||
Reagent.SulfurousAsh);
|
||||
|
||||
public RemoveTrapSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
|
|
@ -35,7 +34,7 @@ namespace Server.Spells.Second
|
|||
}
|
||||
else if (cont.TrapType != TrapType.None && cont.TrapType != TrapType.MagicTrap)
|
||||
{
|
||||
base.DoFizzle();
|
||||
this.DoFizzle();
|
||||
}
|
||||
else if (CheckSequence())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,13 +6,12 @@ namespace Server.Spells.Second
|
|||
{
|
||||
public class StrengthSpell : MagerySpell, ISpellTargetingMobile
|
||||
{
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Strength", "Uus Mani",
|
||||
212,
|
||||
9061,
|
||||
Reagent.MandrakeRoot,
|
||||
Reagent.Nightshade
|
||||
);
|
||||
Reagent.Nightshade);
|
||||
|
||||
public StrengthSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue