Removes implicit this.
This commit is contained in:
parent
04b4cfe75b
commit
83dcf536d8
533 changed files with 2804 additions and 2806 deletions
|
|
@ -81,7 +81,7 @@ namespace Server.Mobiles
|
|||
#region Faction
|
||||
public virtual int GetPriceScalar()
|
||||
{
|
||||
Town town = Town.FromRegion( this.Region );
|
||||
Town town = Town.FromRegion( Region );
|
||||
|
||||
if ( town != null )
|
||||
return ( 100 + town.Tax );
|
||||
|
|
@ -160,7 +160,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
LoadSBInfo();
|
||||
|
||||
this.Title = title;
|
||||
Title = title;
|
||||
InitBody();
|
||||
InitOutfit();
|
||||
|
||||
|
|
@ -297,7 +297,7 @@ namespace Server.Mobiles
|
|||
|
||||
public virtual bool CheckTokuno()
|
||||
{
|
||||
if ( this.Map != Map.Tokuno )
|
||||
if ( Map != Map.Tokuno )
|
||||
return false;
|
||||
|
||||
NameList n;
|
||||
|
|
@ -307,7 +307,7 @@ namespace Server.Mobiles
|
|||
else
|
||||
n = NameList.GetNameList( "tokuno male" );
|
||||
|
||||
if ( !n.ContainsName( this.Name ) )
|
||||
if ( !n.ContainsName( Name ) )
|
||||
TurnToTokuno();
|
||||
|
||||
return true;
|
||||
|
|
@ -316,14 +316,14 @@ namespace Server.Mobiles
|
|||
public virtual void TurnToTokuno()
|
||||
{
|
||||
if ( Female )
|
||||
this.Name = NameList.RandomName( "tokuno female" );
|
||||
Name = NameList.RandomName( "tokuno female" );
|
||||
else
|
||||
this.Name = NameList.RandomName( "tokuno male" );
|
||||
Name = NameList.RandomName( "tokuno male" );
|
||||
}
|
||||
|
||||
public virtual bool CheckGargoyle()
|
||||
{
|
||||
Map map = this.Map;
|
||||
Map map = Map;
|
||||
|
||||
if ( map != Map.Ilshenar )
|
||||
return false;
|
||||
|
|
@ -339,7 +339,7 @@ namespace Server.Mobiles
|
|||
|
||||
public virtual bool CheckNecromancer()
|
||||
{
|
||||
Map map = this.Map;
|
||||
Map map = Map;
|
||||
|
||||
if ( map != Map.Malas )
|
||||
return false;
|
||||
|
|
@ -379,9 +379,9 @@ namespace Server.Mobiles
|
|||
|
||||
public virtual void TurnToNecromancer()
|
||||
{
|
||||
for ( int i = 0; i < this.Items.Count; ++i )
|
||||
for ( int i = 0; i < Items.Count; ++i )
|
||||
{
|
||||
Item item = this.Items[i];
|
||||
Item item = Items[i];
|
||||
|
||||
if ( item is Hair || item is Beard )
|
||||
item.Hue = 0;
|
||||
|
|
@ -397,9 +397,9 @@ namespace Server.Mobiles
|
|||
|
||||
public virtual void TurnToGargoyle()
|
||||
{
|
||||
for ( int i = 0; i < this.Items.Count; ++i )
|
||||
for ( int i = 0; i < Items.Count; ++i )
|
||||
{
|
||||
Item item = this.Items[i];
|
||||
Item item = Items[i];
|
||||
|
||||
if ( item is BaseClothing || item is Hair || item is Beard )
|
||||
item.Delete();
|
||||
|
|
@ -417,7 +417,7 @@ namespace Server.Mobiles
|
|||
|
||||
public virtual void CapitalizeTitle()
|
||||
{
|
||||
string title = this.Title;
|
||||
string title = Title;
|
||||
|
||||
if ( title == null )
|
||||
return;
|
||||
|
|
@ -435,7 +435,7 @@ namespace Server.Mobiles
|
|||
split[i] = Char.ToUpper( split[i][0] ).ToString();
|
||||
}
|
||||
|
||||
this.Title = String.Join( " ", split );
|
||||
Title = String.Join( " ", split );
|
||||
}
|
||||
|
||||
public virtual int GetHairHue()
|
||||
|
|
@ -493,7 +493,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
m_LastRestock = DateTime.UtcNow;
|
||||
|
||||
IBuyItemInfo[] buyInfo = this.GetBuyInfo();
|
||||
IBuyItemInfo[] buyInfo = GetBuyInfo();
|
||||
|
||||
foreach ( IBuyItemInfo bii in buyInfo )
|
||||
bii.OnRestock();
|
||||
|
|
@ -522,11 +522,11 @@ namespace Server.Mobiles
|
|||
|
||||
int count = 0;
|
||||
List<BuyItemState> list;
|
||||
IBuyItemInfo[] buyInfo = this.GetBuyInfo();
|
||||
IShopSellInfo[] sellInfo = this.GetSellInfo();
|
||||
IBuyItemInfo[] buyInfo = GetBuyInfo();
|
||||
IShopSellInfo[] sellInfo = GetSellInfo();
|
||||
|
||||
list = new List<BuyItemState>( buyInfo.Length );
|
||||
Container cont = this.BuyPack;
|
||||
Container cont = BuyPack;
|
||||
|
||||
List<ObjectPropertyList> opls = null;
|
||||
|
||||
|
|
@ -781,7 +781,7 @@ namespace Server.Mobiles
|
|||
|
||||
private GenericBuyInfo LookupDisplayObject( object obj )
|
||||
{
|
||||
IBuyItemInfo[] buyInfo = this.GetBuyInfo();
|
||||
IBuyItemInfo[] buyInfo = GetBuyInfo();
|
||||
|
||||
for ( int i = 0; i < buyInfo.Length; ++i ) {
|
||||
GenericBuyInfo gbi = (GenericBuyInfo)buyInfo[i];
|
||||
|
|
@ -938,7 +938,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
ProcessSinglePurchase( buy, gbi, validBuy, ref controlSlots, ref fullPurchase, ref totalCost );
|
||||
}
|
||||
else if ( item != this.BuyPack && item.IsChildOf( this.BuyPack ) )
|
||||
else if ( item != BuyPack && item.IsChildOf( BuyPack ) )
|
||||
{
|
||||
if ( amount > item.Amount )
|
||||
amount = item.Amount;
|
||||
|
|
@ -1055,7 +1055,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
else
|
||||
{
|
||||
buyItem = Mobile.LiftItemDupe( item, item.Amount - amount );
|
||||
buyItem = LiftItemDupe( item, item.Amount - amount );
|
||||
|
||||
if ( buyItem == null )
|
||||
buyItem = item;
|
||||
|
|
@ -1108,12 +1108,12 @@ namespace Server.Mobiles
|
|||
|
||||
public virtual bool CheckVendorAccess( Mobile from )
|
||||
{
|
||||
GuardedRegion reg = (GuardedRegion)this.Region.GetRegion( typeof( GuardedRegion ) );
|
||||
GuardedRegion reg = (GuardedRegion)Region.GetRegion( typeof( GuardedRegion ) );
|
||||
|
||||
if ( reg != null && !reg.CheckVendorAccess( this, from ) )
|
||||
return false;
|
||||
|
||||
if ( this.Region != from.Region )
|
||||
if ( Region != from.Region )
|
||||
{
|
||||
reg = (GuardedRegion)from.Region.GetRegion( typeof( GuardedRegion ) );
|
||||
|
||||
|
|
@ -1141,7 +1141,7 @@ namespace Server.Mobiles
|
|||
seller.PlaySound( 0x32 );
|
||||
|
||||
IShopSellInfo[] info = GetSellInfo();
|
||||
IBuyItemInfo[] buyInfo = this.GetBuyInfo();
|
||||
IBuyItemInfo[] buyInfo = GetBuyInfo();
|
||||
int GiveGold = 0;
|
||||
int Sold = 0;
|
||||
Container cont;
|
||||
|
|
@ -1202,11 +1202,11 @@ namespace Server.Mobiles
|
|||
|
||||
if ( !found )
|
||||
{
|
||||
cont = this.BuyPack;
|
||||
cont = BuyPack;
|
||||
|
||||
if ( amount < resp.Item.Amount )
|
||||
{
|
||||
Item item = Mobile.LiftItemDupe( resp.Item, resp.Item.Amount - amount );
|
||||
Item item = LiftItemDupe( resp.Item, resp.Item.Amount - amount );
|
||||
|
||||
if ( item != null )
|
||||
{
|
||||
|
|
@ -1274,7 +1274,7 @@ namespace Server.Mobiles
|
|||
|
||||
writer.Write( (int)1 ); // version
|
||||
|
||||
List<SBInfo> sbInfos = this.SBInfos;
|
||||
List<SBInfo> sbInfos = SBInfos;
|
||||
|
||||
for ( int i = 0; sbInfos != null && i < sbInfos.Count; ++i )
|
||||
{
|
||||
|
|
@ -1317,7 +1317,7 @@ namespace Server.Mobiles
|
|||
|
||||
LoadSBInfo();
|
||||
|
||||
List<SBInfo> sbInfos = this.SBInfos;
|
||||
List<SBInfo> sbInfos = SBInfos;
|
||||
|
||||
switch ( version )
|
||||
{
|
||||
|
|
@ -1416,7 +1416,7 @@ namespace Server.ContextMenus
|
|||
|
||||
public override void OnClick()
|
||||
{
|
||||
m_Vendor.VendorBuy( this.Owner.From );
|
||||
m_Vendor.VendorBuy( Owner.From );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1433,7 +1433,7 @@ namespace Server.ContextMenus
|
|||
|
||||
public override void OnClick()
|
||||
{
|
||||
m_Vendor.VendorSell( this.Owner.From );
|
||||
m_Vendor.VendorSell( Owner.From );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue