Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue