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

@ -100,7 +100,7 @@ namespace Server.Mobiles
set{ m_IsRewardItem = value; }
}
public CharacterStatue( Mobile from, StatueType type ) : base()
public CharacterStatue( Mobile from, StatueType type )
{
m_Type = type;
m_Pose = StatuePose.Ready;

View file

@ -8,7 +8,7 @@ namespace Server.Items
{
public class CharacterStatueMaker : Item, IRewardItem
{
public override int LabelNumber{ get{ return 1076173; } } // Character Statue Maker
public override int LabelNumber => 1076173; // Character Statue Maker
private bool m_IsRewardItem;
private StatueType m_Type;

View file

@ -11,7 +11,7 @@ namespace Server.Items
public class CharacterStatuePlinth : Static, IAddon
{
public Item Deed{ get{ return new CharacterStatueDeed( m_Statue ); } }
public override int LabelNumber{ get{ return 1076201; } } // Character Statue
public override int LabelNumber => 1076201; // Character Statue
private CharacterStatue m_Statue;

View file

@ -12,7 +12,7 @@ namespace Server.Engines.VeteranRewards
public int Name{ get{ return m_Name; } }
public string NameString{ get{ return m_NameString; } }
public List<RewardEntry> Entries { get { return m_Entries; } }
public List<RewardEntry> Entries => m_Entries;
public RewardCategory( int name )
{
@ -26,4 +26,4 @@ namespace Server.Engines.VeteranRewards
m_Entries = new List<RewardEntry>();
}
}
}
}

View file

@ -39,7 +39,7 @@ namespace Server.Gumps
AddButton( 10, 294, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0 );
AddHtmlLocalized( 45, 296, 450, 20, 1060051, 0x7FFF, false, false ); // CANCEL
if ( title > 0 )
AddHtmlLocalized( 14, 12, 273, 20, title, 0x7FFF, false, false );
else
@ -50,14 +50,14 @@ namespace Server.Gumps
for ( int i = 0; i < m_Options.Count; i++ )
{
AddButton( 19, 49 + i * 24, 0x845, 0x846, m_Options[ i ].ID, GumpButtonType.Reply, 0 );
AddHtmlLocalized( 44, 47 + i * 24, 213, 20, m_Options[ i ].Cliloc, 0x7FFF, false, false );
AddHtmlLocalized( 44, 47 + i * 24, 213, 20, m_Options[ i ].Cliloc, 0x7FFF, false, false );
}
}
public override void OnResponse( NetState sender, RelayInfo info )
{
if ( m_Option != null && Contains( info.ButtonID ) )
m_Option.OnOptionSelected( sender.Mobile, info.ButtonID );
m_Option.OnOptionSelected( sender.Mobile, info.ButtonID );
}
private bool Contains( int chosen )
@ -92,7 +92,7 @@ namespace Server.Gumps
public class RewardOptionList : List<RewardOption>
{
public RewardOptionList() : base()
public RewardOptionList()
{
}