Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -8,7 +8,7 @@ namespace Server.Items
|
|||
{
|
||||
public class RewardPottedCactus : Item, IRewardItem
|
||||
{
|
||||
public override bool ForceShowProperties{ get { return ObjectPropertyList.Enabled; } }
|
||||
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
|
||||
|
||||
private bool m_IsRewardItem;
|
||||
|
||||
|
|
@ -21,12 +21,12 @@ namespace Server.Items
|
|||
|
||||
[Constructible]
|
||||
public RewardPottedCactus() : this( Utility.RandomMinMax( 0x1E0F, 0x1E14 ) )
|
||||
{
|
||||
{
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public RewardPottedCactus( int itemID ) : base( itemID )
|
||||
{
|
||||
{
|
||||
Weight = 5.0;
|
||||
}
|
||||
|
||||
|
|
@ -55,13 +55,13 @@ namespace Server.Items
|
|||
m_IsRewardItem = reader.ReadBool();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class PottedCactusDeed : Item, IRewardItem
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1080407; } } // Potted Cactus Deed
|
||||
public override int LabelNumber => 1080407; // Potted Cactus Deed
|
||||
|
||||
private bool m_IsRewardItem;
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ namespace Server.Items
|
|||
else
|
||||
from.SendLocalizedMessage( 1042038 ); // You must have the object in your backpack to use it.
|
||||
}
|
||||
|
||||
|
||||
|
||||
public override void GetProperties( ObjectPropertyList list )
|
||||
{
|
||||
|
|
@ -120,14 +120,14 @@ namespace Server.Items
|
|||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
|
||||
m_IsRewardItem = reader.ReadBool();
|
||||
}
|
||||
|
||||
private class InternalGump : Gump
|
||||
{
|
||||
{
|
||||
private PottedCactusDeed m_Cactus;
|
||||
|
||||
|
||||
public InternalGump( PottedCactusDeed cactus ) : base( 100, 200 )
|
||||
{
|
||||
m_Cactus = cactus;
|
||||
|
|
@ -145,30 +145,30 @@ namespace Server.Items
|
|||
|
||||
AddItem( 45, 75, 0x1E0F );
|
||||
AddButton( 55, 50, 0x845, 0x846, 0x1E0F, GumpButtonType.Reply, 0 );
|
||||
|
||||
|
||||
AddItem( 105, 75, 0x1E10 );
|
||||
AddButton( 115, 50, 0x845, 0x846, 0x1E10, GumpButtonType.Reply, 0 );
|
||||
|
||||
AddItem( 160, 75, 0x1E14 );
|
||||
AddButton( 175, 50, 0x845, 0x846, 0x1E14, GumpButtonType.Reply, 0 );
|
||||
|
||||
|
||||
AddItem( 220, 75, 0x1E11 );
|
||||
AddButton( 235, 50, 0x845, 0x846, 0x1E11, GumpButtonType.Reply, 0 );
|
||||
|
||||
|
||||
AddItem( 280, 75, 0x1E12 );
|
||||
AddButton( 295, 50, 0x845, 0x846, 0x1E12, GumpButtonType.Reply, 0 );
|
||||
|
||||
AddItem( 340, 75, 0x1E13 );
|
||||
AddButton( 355, 50, 0x845, 0x846, 0x1E13, GumpButtonType.Reply, 0 );
|
||||
}
|
||||
|
||||
|
||||
public override void OnResponse( NetState sender, RelayInfo info )
|
||||
{
|
||||
if ( m_Cactus == null | m_Cactus.Deleted )
|
||||
return;
|
||||
|
||||
Mobile m = sender.Mobile;
|
||||
|
||||
return;
|
||||
|
||||
Mobile m = sender.Mobile;
|
||||
|
||||
if ( info.ButtonID >= 0x1E0F && info.ButtonID <= 0x1E14 )
|
||||
{
|
||||
RewardPottedCactus cactus = new RewardPottedCactus( info.ButtonID );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue