Removes implicit this.
This commit is contained in:
parent
04b4cfe75b
commit
83dcf536d8
533 changed files with 2804 additions and 2806 deletions
|
|
@ -35,8 +35,8 @@ namespace Server.Items
|
|||
get => m_Charges;
|
||||
set
|
||||
{
|
||||
if ( value > this.MaxCharges )
|
||||
m_Charges = this.MaxCharges;
|
||||
if ( value > MaxCharges )
|
||||
m_Charges = MaxCharges;
|
||||
else if ( value < 0 )
|
||||
m_Charges = 0;
|
||||
else
|
||||
|
|
@ -52,8 +52,8 @@ namespace Server.Items
|
|||
get => m_Recharges;
|
||||
set
|
||||
{
|
||||
if ( value > this.MaxRecharges )
|
||||
m_Recharges = this.MaxRecharges;
|
||||
if ( value > MaxRecharges )
|
||||
m_Recharges = MaxRecharges;
|
||||
else if ( value < 0 )
|
||||
m_Recharges = 0;
|
||||
else
|
||||
|
|
@ -83,9 +83,9 @@ namespace Server.Items
|
|||
|
||||
switch ( value )
|
||||
{
|
||||
case BagOfSendingHue.Yellow: this.Hue = 0x8A5; break;
|
||||
case BagOfSendingHue.Blue: this.Hue = 0x8AD; break;
|
||||
case BagOfSendingHue.Red: this.Hue = 0x89B; break;
|
||||
case BagOfSendingHue.Yellow: Hue = 0x8A5; break;
|
||||
case BagOfSendingHue.Blue: Hue = 0x8AD; break;
|
||||
case BagOfSendingHue.Red: Hue = 0x89B; break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -100,7 +100,7 @@ namespace Server.Items
|
|||
{
|
||||
Weight = 2.0;
|
||||
|
||||
this.BagOfSendingHue = hue;
|
||||
BagOfSendingHue = hue;
|
||||
|
||||
m_Charges = Utility.RandomMinMax( 3, 9 );
|
||||
}
|
||||
|
|
@ -157,11 +157,11 @@ namespace Server.Items
|
|||
{
|
||||
from.SendMessage( "You may not do that in jail." );
|
||||
}
|
||||
else if ( !this.IsChildOf( from.Backpack ) )
|
||||
else if ( !IsChildOf( from.Backpack ) )
|
||||
{
|
||||
MessageHelper.SendLocalizedMessageTo(this, from, 1062334, 0x59); // The bag of sending must be in your backpack.
|
||||
}
|
||||
else if ( this.Charges == 0 )
|
||||
else if ( Charges == 0 )
|
||||
{
|
||||
MessageHelper.SendLocalizedMessageTo( this, from, 1042544, 0x59 ); // This item is out of charges.
|
||||
}
|
||||
|
|
@ -213,7 +213,7 @@ namespace Server.Items
|
|||
{
|
||||
MessageHelper.SendLocalizedMessageTo( m_Bag, from, 1054108, 0x59 ); // The bag of sending rejects the cursed item.
|
||||
}
|
||||
else if ( !item.VerifyMove( from ) || item is Server.Engines.Quests.QuestItem || item.Nontransferable )
|
||||
else if ( !item.VerifyMove( from ) || item is Engines.Quests.QuestItem || item.Nontransferable )
|
||||
{
|
||||
MessageHelper.SendLocalizedMessageTo( m_Bag, from, 1054109, 0x59 ); // The bag of sending rejects that item.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue