Changes properties to use automatic property initializers

This commit is contained in:
Kamron Batman 2018-09-14 15:23:29 -07:00
parent f0a48ad431
commit 06fa31a7bf
623 changed files with 13072 additions and 19304 deletions

View file

@ -316,16 +316,11 @@ namespace Server.Mobiles
public class StainedOoze : Item
{
private bool m_Corrosive;
private Timer m_Timer;
private int m_Ticks;
[CommandProperty( AccessLevel.GameMaster )]
public bool Corrosive
{
get => m_Corrosive;
set => m_Corrosive = value;
}
public bool Corrosive { get; set; }
[Constructible]
public StainedOoze()
@ -340,7 +335,7 @@ namespace Server.Mobiles
Movable = false;
Hue = 0x95;
m_Corrosive = corrosive;
Corrosive = corrosive;
m_Timer = Timer.DelayCall( TimeSpan.Zero, TimeSpan.FromSeconds( 1 ), OnTick );
m_Ticks = 0;
}
@ -387,7 +382,7 @@ namespace Server.Mobiles
public void Damage( Mobile m )
{
if ( m_Corrosive )
if ( Corrosive )
{
List<Item> items = m.Items;
bool damaged = false;
@ -422,7 +417,7 @@ namespace Server.Mobiles
writer.Write( (int) 0 ); // version
writer.Write( m_Corrosive );
writer.Write( Corrosive );
}
public override void Deserialize( GenericReader reader )
@ -431,7 +426,7 @@ namespace Server.Mobiles
int version = reader.ReadInt();
m_Corrosive = reader.ReadBool();
Corrosive = reader.ReadBool();
m_Timer = Timer.DelayCall( TimeSpan.Zero, TimeSpan.FromSeconds( 1 ), OnTick );
m_Ticks = ( ItemID == 0x122A ) ? 0 : 30;