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

@ -11,7 +11,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public ChampionSkullType Type{ get{ return m_Type; } set{ m_Type = value; InvalidateProperties(); } }
public override int LabelNumber{ get{ return 1049479 + (int)m_Type; } }
public override int LabelNumber => 1049479 + (int)m_Type;
[Constructible]
public ChampionSkull( ChampionSkullType type ) : base( 0x1AE1 )
@ -59,15 +59,15 @@ namespace Server.Items
break;
}
}
if( version == 0 )
{
if ( LootType != LootType.Cursed )
LootType = LootType.Cursed;
if ( Insured )
Insured = false;
}
}
}
}
}

View file

@ -22,7 +22,7 @@ namespace Server.Engines.CannedEvil
[CommandProperty( AccessLevel.GameMaster )]
public Item Skull{ get{ return m_Skull; } set{ m_Skull = value; if ( m_Platform != null ) m_Platform.Validate(); } }
public override int LabelNumber{ get{ return 1049489 + (int)m_Type; } }
public override int LabelNumber => 1049489 + (int)m_Type;
public ChampionSkullBrazier( ChampionSkullPlatform platform, ChampionSkullType type ) : base( 0x19BB )
{
@ -170,4 +170,4 @@ namespace Server.Engines.CannedEvil
Light = LightType.Circle300;
}
}
}
}

View file

@ -1288,7 +1288,7 @@ namespace Server.Engines.CannedEvil
{
private ChampionSpawn m_Spawn;
public ChampionSpawn Spawn { get { return m_Spawn; } }
public ChampionSpawn Spawn => m_Spawn;
public override string DefaultName
{

View file

@ -24,10 +24,10 @@ namespace Server.Engines.CannedEvil
private Type[][] m_SpawnTypes;
private string[] m_LevelNames;
public string Name { get { return m_Name; } }
public Type Champion { get { return m_Champion; } }
public Type[][] SpawnTypes { get { return m_SpawnTypes; } }
public string[] LevelNames { get { return m_LevelNames; } }
public string Name => m_Name;
public Type Champion => m_Champion;
public Type[][] SpawnTypes => m_SpawnTypes;
public string[] LevelNames => m_LevelNames;
public ChampionSpawnInfo( string name, Type champion, string[] levelNames, Type[][] spawnTypes )
{
@ -37,7 +37,7 @@ namespace Server.Engines.CannedEvil
m_SpawnTypes = spawnTypes;
}
public static ChampionSpawnInfo[] Table{ get { return m_Table; } }
public static ChampionSpawnInfo[] Table => m_Table;
private static readonly ChampionSpawnInfo[] m_Table = new ChampionSpawnInfo[]
{

View file

@ -7,7 +7,7 @@ namespace Server.Items
{
private Mobile m_Harrower;
public override int LabelNumber{ get{ return 1049498; } } // dark moongate
public override int LabelNumber => 1049498; // dark moongate
public HarrowerGate( Mobile harrower, Point3D loc, Map map, Point3D targLoc, Map targMap ) : base( targLoc, targMap )
{
@ -56,4 +56,4 @@ namespace Server.Items
Light = LightType.Circle300;
}
}
}
}

View file

@ -9,7 +9,7 @@ namespace Server.Items
private DateTime m_DecayTime;
private Timer m_Timer;
public override int LabelNumber{ get{ return 1049498; } } // dark moongate
public override int LabelNumber => 1049498; // dark moongate
[Constructible]
public StarRoomGate() : this( false )
@ -103,4 +103,4 @@ namespace Server.Items
}
}
}
}
}