Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 • committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -8,7 +8,7 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.DeathWatchBeetleHatchling" )]
public class DeathwatchBeetleHatchling : BaseCreature
{
public override string DefaultName { get { return "a deathwatch beetle hatchling"; } }
public override string DefaultName => "a deathwatch beetle hatchling";
[Constructible]
public DeathwatchBeetleHatchling() : base( AIType.AI_Melee, Core.ML ? FightMode.Aggressor : FightMode.Closest, 10, 1, 0.2, 0.4 )
@ -47,7 +47,7 @@ namespace Server.Mobiles
i.Amount = 3;
PackItem( i );
}
switch ( Utility.Random( 12 ) )
{
case 0: PackItem( new LeatherGorget() ); break;
@ -93,7 +93,7 @@ namespace Server.Mobiles
public DeathwatchBeetleHatchling( Serial serial ) : base( serial )
{
}
public override int Hides{ get{ return 8; } }
public override int Hides => 8;
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
@ -106,4 +106,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}