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,7 +5,7 @@ using Server.Targeting;
namespace Server.SkillHandlers
{
public class Provocation
public static class Provocation
{
public static void Initialize()
{
@ -30,7 +30,7 @@ namespace Server.SkillHandlers
private class InternalFirstTarget : Target
{
private BaseInstrument m_Instrument;
private readonly BaseInstrument m_Instrument;
public InternalFirstTarget(Mobile from, BaseInstrument instrument) : base(
BaseInstrument.GetBardRange(from, SkillName.Provocation), false, TargetFlags.None) =>
@ -73,8 +73,8 @@ namespace Server.SkillHandlers
private class InternalSecondTarget : Target
{
private BaseCreature m_Creature;
private BaseInstrument m_Instrument;
private readonly BaseCreature m_Creature;
private readonly BaseInstrument m_Instrument;
public InternalSecondTarget(Mobile from, BaseInstrument instrument, BaseCreature creature) : base(
BaseInstrument.GetBardRange(from, SkillName.Provocation), false, TargetFlags.None)
@ -130,8 +130,8 @@ namespace Server.SkillHandlers
}
else
{
//from.DoHarmful( m_Creature );
//from.DoHarmful( creature );
// from.DoHarmful( m_Creature );
// from.DoHarmful( creature );
if (!from.CheckTargetSkill(SkillName.Provocation, creature, diff - 25.0, diff + 25.0))
{
@ -162,4 +162,4 @@ namespace Server.SkillHandlers
}
}
}
}
}