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

@ -44,7 +44,7 @@ namespace Server.Mobiles
else
PackItem(new BlackPearl(4));
//PackItem( new SpecialFishingNet() );
// PackItem( new SpecialFishingNet() );
}
public DeepSeaSerpent(Serial serial) : base(serial)

View file

@ -6,8 +6,7 @@ namespace Server.Mobiles
public class Leviathan : BaseCreature
{
[Constructible]
public Leviathan(Mobile fisher = null) :
base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
public Leviathan(Mobile fisher = null) : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Fisher = fisher;
@ -66,7 +65,7 @@ namespace Server.Mobiles
public override string CorpseName => "a leviathan corpse";
public Mobile Fisher{ get; set; }
public Mobile Fisher { get; set; }
public override string DefaultName => "a leviathan";
@ -81,7 +80,7 @@ namespace Server.Mobiles
public override int TreasureMapLevel => 5;
public static Type[] Artifacts{ get; } =
public static Type[] Artifacts { get; } =
{
// Decorations
typeof(CandelabraOfSouls),
@ -161,7 +160,7 @@ namespace Server.Mobiles
{
base.OnDeath(c);
if (Fisher != null && 25 > Utility.Random(100))
if (Fisher != null && Utility.Random(100) < 25)
GiveArtifactTo(Fisher);
Fisher = null;

View file

@ -3,7 +3,7 @@ namespace Server.Mobiles
[TypeAlias("Server.Mobiles.OphidianJusticar", "Server.Mobiles.OphidianZealot")]
public class OphidianArchmage : BaseCreature
{
private static string[] m_Names =
private static readonly string[] m_Names =
{
"an ophidian justicar",
"an ophidian zealot"

View file

@ -3,7 +3,7 @@ namespace Server.Mobiles
[TypeAlias("Server.Mobiles.OphidianShaman")]
public class OphidianMage : BaseCreature
{
private static string[] m_Names =
private static readonly string[] m_Names =
{
"an ophidian apprentice mage",
"an ophidian shaman"

View file

@ -47,7 +47,7 @@ namespace Server.Mobiles
PackItem(new RawFishSteak());
//PackItem( new SpecialFishingNet() );
// PackItem( new SpecialFishingNet() );
}
public SeaSerpent(Serial serial) : base(serial)

View file

@ -82,7 +82,7 @@ namespace Server.Mobiles
{
base.OnGotMeleeAttack(attacker);
if (!Core.SE && 0.2 > Utility.RandomDouble() && attacker is BaseCreature c && c.Controlled &&
if (!Core.SE && Utility.RandomDouble() < 0.2 && attacker is BaseCreature c && c.Controlled &&
c.ControlMaster != null)
{
c.ControlTarget = c.ControlMaster;