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

@ -62,7 +62,7 @@ namespace Server.Items
private Timer m_Timer;
public List<Mobile> Users { get { return m_Users; } }
public List<Mobile> Users => m_Users;
private List<Mobile> m_Users;

View file

@ -5,8 +5,8 @@ namespace Server.Items
{
public class ExplosionPotion : BaseExplosionPotion
{
public override int MinDamage { get { return 10; } }
public override int MaxDamage { get { return 20; } }
public override int MinDamage => 10;
public override int MaxDamage => 20;
[Constructible]
public ExplosionPotion() : base( PotionEffect.Explosion )
@ -31,4 +31,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -5,8 +5,8 @@ namespace Server.Items
{
public class GreaterExplosionPotion : BaseExplosionPotion
{
public override int MinDamage { get { return Core.AOS ? 20 : 15; } }
public override int MaxDamage { get { return Core.AOS ? 40 : 30; } }
public override int MinDamage => Core.AOS ? 20 : 15;
public override int MaxDamage => Core.AOS ? 40 : 30;
[Constructible]
public GreaterExplosionPotion() : base( PotionEffect.ExplosionGreater )
@ -31,4 +31,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}

View file

@ -5,8 +5,8 @@ namespace Server.Items
{
public class LesserExplosionPotion : BaseExplosionPotion
{
public override int MinDamage { get { return 5; } }
public override int MaxDamage { get { return 10; } }
public override int MinDamage => 5;
public override int MaxDamage => 10;
[Constructible]
public LesserExplosionPotion() : base( PotionEffect.ExplosionLesser )
@ -31,4 +31,4 @@ namespace Server.Items
int version = reader.ReadInt();
}
}
}
}