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 @@ namespace Server.Mobiles
{
public class LadyJennifyr : SkeletalKnight
{
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 LadyJennifyr()
@ -54,10 +54,10 @@ namespace Server.Mobiles
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.15 )
if (Utility.RandomDouble() < 0.15)
c.DropItem( new DisintegratingThesisNotes() );
if ( Utility.RandomDouble() < 0.1 )
if (Utility.RandomDouble() < 0.1)
c.DropItem( new ParrotItem() );
}
*/
@ -107,8 +107,8 @@ namespace Server.Mobiles
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private ResistanceMod m_Mod;
private readonly Mobile m_Mobile;
private readonly ResistanceMod m_Mod;
public ExpireTimer(Mobile m, ResistanceMod mod)
: base(TimeSpan.FromSeconds(10))

View file

@ -51,10 +51,10 @@ namespace Server.Mobiles
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.15 )
if (Utility.RandomDouble() < 0.15)
c.DropItem( new DisintegratingThesisNotes() );
if ( Utility.RandomDouble() < 0.1 )
if (Utility.RandomDouble() < 0.1)
c.DropItem( new ParrotItem() );
}
*/
@ -82,4 +82,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -62,10 +62,10 @@ namespace Server.Mobiles
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.05 )
if (Utility.RandomDouble() < 0.05)
c.DropItem( new ParrotItem() );
if ( Utility.RandomDouble() < 0.15 )
if (Utility.RandomDouble() < 0.15)
c.DropItem( new DisintegratingThesisNotes() );
}
*/
@ -92,4 +92,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -61,10 +61,10 @@ namespace Server.Mobiles
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.15 )
if (Utility.RandomDouble() < 0.15)
c.DropItem( new DisintegratingThesisNotes() );
if ( Utility.RandomDouble() < 0.1 )
if (Utility.RandomDouble() < 0.1)
c.DropItem( new ParrotItem() );
}
*/
@ -90,4 +90,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -51,10 +51,10 @@ namespace Server.Mobiles
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.15 )
if (Utility.RandomDouble() < 0.15)
c.DropItem( new DisintegratingThesisNotes() );
if ( Utility.RandomDouble() < 0.05 )
if (Utility.RandomDouble() < 0.05)
c.DropItem( new AssassinChest() );
}
*/
@ -88,7 +88,7 @@ namespace Server.Mobiles
foreach (Mobile m in GetMobilesInRange(2))
{
if (m == this || !CanBeHarmful(m, false) || Core.AOS && !InLOS(m))
if (m == this || !CanBeHarmful(m, false) || (Core.AOS && !InLOS(m)))
continue;
if (m is BaseCreature bc)
@ -130,4 +130,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}