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

@ -30,7 +30,7 @@ namespace Server.Items
LootType = LootType.Blessed;
}
public override int LabelNumber{ get{ return 1041280; } } // an interior decorator
public override int LabelNumber => 1041280; // an interior decorator
public InteriorDecorator( Serial serial ) : base( serial )
{
@ -62,7 +62,7 @@ namespace Server.Items
{
if ( !CheckUse( this, from ) )
return;
if ( from.FindGump( typeof( InteriorDecorator.InternalGump ) ) == null )
from.SendGump( new InternalGump( this ) );
@ -154,7 +154,7 @@ namespace Server.Items
{
BaseHouse house = BaseHouse.FindHouseAt( from );
Item item = (Item)targeted;
bool isDecorableComponent = false;
if ( item is AddonComponent || item is AddonContainerComponent || item is BaseAddonContainer )
@ -228,10 +228,10 @@ namespace Server.Items
}
}
}
from.Target = new InternalTarget( m_Decorator );
}
protected override void OnTargetCancel( Mobile from, TargetCancelType cancelType )
{
if ( cancelType == TargetCancelType.Canceled )
@ -314,4 +314,4 @@ namespace Server.Items
}
}
}
}
}