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

@ -7,7 +7,7 @@ namespace Server.Mobiles
[CorpseName( "a corporeal brume corpse" )]
public class CorporealBrume : BaseCreature
{
public override string DefaultName { get { return "a corporeal brume"; } }
public override string DefaultName => "a corporeal brume";
[Constructible]
public CorporealBrume()
@ -48,13 +48,13 @@ namespace Server.Mobiles
}
// TODO: Verify area attack specifics
public override bool HasAura { get { return ( Combatant != null ); } }
public override TimeSpan AuraInterval { get { return TimeSpan.FromSeconds( 20 ); } }
public override int AuraRange { get { return 10; } }
public override bool HasAura => ( Combatant != null );
public override TimeSpan AuraInterval => TimeSpan.FromSeconds( 20 );
public override int AuraRange => 10;
public override int AuraBaseDamage { get { return Utility.RandomMinMax( 25, 35 ); } }
public override int AuraFireDamage { get { return 0; } }
public override int AuraColdDamage { get { return 100; } }
public override int AuraBaseDamage => Utility.RandomMinMax( 25, 35 );
public override int AuraFireDamage => 0;
public override int AuraColdDamage => 100;
public override void AuraEffect( Mobile m )
{
@ -81,4 +81,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,7 +7,7 @@ namespace Server.Mobiles
[CorpseName( "a crystal daemon corpse" )]
public class CrystalDaemon : BaseCreature
{
public override string DefaultName { get { return "a crystal daemon"; } }
public override string DefaultName => "a crystal daemon";
[Constructible]
public CrystalDaemon()

View file

@ -7,7 +7,7 @@ namespace Server.Mobiles
[CorpseName( "a Crystal Lattice Seeker corpse" )]
public class CrystalLatticeSeeker : BaseCreature
{
public override string DefaultName { get { return "Crystal Lattice Seeker"; } }
public override string DefaultName => "Crystal Lattice Seeker";
[Constructible]
public CrystalLatticeSeeker()
@ -123,8 +123,8 @@ namespace Server.Mobiles
}
*/
public override int Feathers { get { return 100; } }
public override int TreasureMapLevel { get { return 5; } }
public override int Feathers => 100;
public override int TreasureMapLevel => 5;
public override int GetAttackSound() { return 0x2F6; }
public override int GetDeathSound() { return 0x2F7; }

View file

@ -7,7 +7,7 @@ namespace Server.Mobiles
[CorpseName( "a crystal sea serpent corpse" )]
public class CrystalSeaSerpent : SeaSerpent
{
public override string DefaultName { get { return "a crystal sea serpent"; } }
public override string DefaultName => "a crystal sea serpent";
[Constructible]
public CrystalSeaSerpent()

View file

@ -7,7 +7,7 @@ namespace Server.Mobiles
[CorpseName( "a crystal vortex corpse" )]
public class CrystalVortex : BaseCreature
{
public override string DefaultName { get { return "a crystal vortex"; } }
public override string DefaultName => "a crystal vortex";
[Constructible]
public CrystalVortex()

View file

@ -6,7 +6,7 @@ namespace Server.Mobiles
{
public class CrystalWisp : Wisp
{
public override string DefaultName { get { return "a crystal wisp"; } }
public override string DefaultName => "a crystal wisp";
[Constructible]
public CrystalWisp()