Adds style cop (#109)
This commit is contained in:
parent
3e715bcb60
commit
556a17aba8
1725 changed files with 33831 additions and 38046 deletions
|
|
@ -7,7 +7,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
public class BakeKitsune : BaseCreature
|
||||
{
|
||||
private static Dictionary<Mobile, ExpireTimer> m_Table = new Dictionary<Mobile, ExpireTimer>();
|
||||
private static readonly Dictionary<Mobile, ExpireTimer> m_Table = new Dictionary<Mobile, ExpireTimer>();
|
||||
|
||||
[Constructible]
|
||||
public BakeKitsune() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
|
|
@ -44,7 +44,6 @@ namespace Server.Mobiles
|
|||
ControlSlots = 2;
|
||||
MinTameSkill = 80.7;
|
||||
|
||||
|
||||
if (Utility.RandomDouble() < .25)
|
||||
PackItem(Seed.RandomBonsaiSeed());
|
||||
}
|
||||
|
|
@ -88,7 +87,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
if (0.1 <= Utility.RandomDouble())
|
||||
if (Utility.RandomDouble() >= 0.1)
|
||||
return;
|
||||
|
||||
/* Blood Bath
|
||||
|
|
@ -150,8 +149,8 @@ namespace Server.Mobiles
|
|||
private class ExpireTimer : Timer
|
||||
{
|
||||
private int m_Count;
|
||||
private Mobile m_From;
|
||||
private Mobile m_Mobile;
|
||||
private readonly Mobile m_From;
|
||||
private readonly Mobile m_Mobile;
|
||||
|
||||
public ExpireTimer(Mobile m, Mobile from) : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
|
||||
{
|
||||
|
|
@ -186,8 +185,6 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
#region Disguise
|
||||
|
||||
private Timer m_DisguiseTimer;
|
||||
|
||||
public void Disguise()
|
||||
|
|
@ -263,7 +260,5 @@ namespace Server.Mobiles
|
|||
{
|
||||
FindItemOnLayer(layer)?.Delete();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue