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

@ -57,7 +57,7 @@ namespace Server.Mobiles
public override string CorpseName => "a plague beast corpse";
[CommandProperty(AccessLevel.GameMaster)]
public int TotalDevoured{ get; set; }
public int TotalDevoured { get; set; }
[CommandProperty(AccessLevel.GameMaster)]
public int DevourGoal
@ -67,15 +67,13 @@ namespace Server.Mobiles
}
[CommandProperty(AccessLevel.GameMaster)]
public bool HasMetalChest{ get; private set; }
public bool HasMetalChest { get; private set; }
public override string DefaultName => "a plague beast";
public override bool AutoDispel => true;
public override Poison PoisonImmune => Poison.Lethal;
#region IDevourer Members
public bool Devour(Corpse corpse)
{
if (corpse?.Owner == null) // sorry we can't devour because the corpse's owner is null
@ -99,8 +97,6 @@ namespace Server.Mobiles
return true;
}
#endregion
public override void GenerateLoot()
{
AddLoot(LootPack.FilthyRich);
@ -119,7 +115,7 @@ namespace Server.Mobiles
public override void OnDamagedBySpell(Mobile caster)
{
if (Map != null && caster != this && 0.25 > Utility.RandomDouble())
if (Map != null && caster != this && Utility.RandomDouble() < 0.25)
{
BaseCreature spawn = new PlagueSpawn(this);
@ -135,7 +131,7 @@ namespace Server.Mobiles
public override void OnGotMeleeAttack(Mobile attacker)
{
if (Map != null && attacker != this && 0.25 > Utility.RandomDouble())
if (Map != null && attacker != this && Utility.RandomDouble() < 0.25)
{
BaseCreature spawn = new PlagueSpawn(this);
@ -175,12 +171,12 @@ namespace Server.Mobiles
switch (version)
{
case 1:
{
HasMetalChest = reader.ReadBool();
TotalDevoured = reader.ReadInt();
m_DevourGoal = reader.ReadInt();
break;
}
{
HasMetalChest = reader.ReadBool();
TotalDevoured = reader.ReadInt();
m_DevourGoal = reader.ReadInt();
break;
}
}
}