Removes implicit this.

This commit is contained in:
Kamron Batman 2018-09-14 12:56:58 -07:00
parent 04b4cfe75b
commit 83dcf536d8
533 changed files with 2804 additions and 2806 deletions

View file

@ -19,18 +19,18 @@ namespace Server.Items
switch( Utility.RandomList( 0, 1, 2 ) )
{
case 0:// Large Crate
this.ItemID = ( UseFirstItemId ? 0xe3c : 0xe3d );
this.GumpID = 0x44;
ItemID = ( UseFirstItemId ? 0xe3c : 0xe3d );
GumpID = 0x44;
break;
case 1:// Medium Crate
this.ItemID = ( UseFirstItemId ? 0xe3e : 0xe3f );
this.GumpID = 0x44;
ItemID = ( UseFirstItemId ? 0xe3e : 0xe3f );
GumpID = 0x44;
break;
case 2:// Small Crate
this.ItemID = ( UseFirstItemId ? 0x9a9 : 0xe7e );
this.GumpID = 0x44;
ItemID = ( UseFirstItemId ? 0x9a9 : 0xe7e );
GumpID = 0x44;
break;
}
}
@ -45,7 +45,7 @@ namespace Server.Items
public TreasureChestLevel1()
: base( 0xE41 )
{
this.SetChestAppearance();
SetChestAppearance();
Movable = false;
TrapType = TrapType.DartTrap;
@ -53,8 +53,8 @@ namespace Server.Items
Locked = true;
RequiredSkill = 57;
LockLevel = this.RequiredSkill - Utility.Random( 1, 10 );
MaxLockLevel = this.RequiredSkill + Utility.Random( 1, 10 );
LockLevel = RequiredSkill - Utility.Random( 1, 10 );
MaxLockLevel = RequiredSkill + Utility.Random( 1, 10 );
// According to OSI, loot in level 1 chest is:
// Gold 25 - 50

View file

@ -19,43 +19,43 @@ namespace Server.Items
switch( Utility.RandomList( 0, 1, 2, 3, 4, 5, 6, 7 ) )
{
case 0:// Large Crate
this.ItemID = ( UseFirstItemId ? 0xe3c : 0xe3d );
this.GumpID = 0x44;
ItemID = ( UseFirstItemId ? 0xe3c : 0xe3d );
GumpID = 0x44;
break;
case 1:// Medium Crate
this.ItemID = ( UseFirstItemId ? 0xe3e : 0xe3f );
this.GumpID = 0x44;
ItemID = ( UseFirstItemId ? 0xe3e : 0xe3f );
GumpID = 0x44;
break;
case 2:// Small Crate
this.ItemID = ( UseFirstItemId ? 0x9a9 : 0xe7e );
this.GumpID = 0x44;
ItemID = ( UseFirstItemId ? 0x9a9 : 0xe7e );
GumpID = 0x44;
break;
case 3:// Wooden Chest
this.ItemID = ( UseFirstItemId ? 0xe42 : 0xe43 );
this.GumpID = 0x49;
ItemID = ( UseFirstItemId ? 0xe42 : 0xe43 );
GumpID = 0x49;
break;
case 4:// Metal Chest
this.ItemID = ( UseFirstItemId ? 0x9ab : 0xe7c );
this.GumpID = 0x4A;
ItemID = ( UseFirstItemId ? 0x9ab : 0xe7c );
GumpID = 0x4A;
break;
case 5:// Metal Golden Chest
this.ItemID = ( UseFirstItemId ? 0xe40 : 0xe41 );
this.GumpID = 0x42;
ItemID = ( UseFirstItemId ? 0xe40 : 0xe41 );
GumpID = 0x42;
break;
case 6:// Keg
this.ItemID = ( UseFirstItemId ? 0xe7f : 0xe7f );
this.GumpID = 0x3e;
ItemID = ( UseFirstItemId ? 0xe7f : 0xe7f );
GumpID = 0x3e;
break;
case 7:// Barrel
this.ItemID = ( UseFirstItemId ? 0xe77 : 0xe77 );
this.GumpID = 0x3e;
ItemID = ( UseFirstItemId ? 0xe77 : 0xe77 );
GumpID = 0x3e;
break;
}
}
@ -70,7 +70,7 @@ namespace Server.Items
public TreasureChestLevel2()
: base( 0xE41 )
{
this.SetChestAppearance();
SetChestAppearance();
Movable = false;
TrapType = TrapType.ExplosionTrap;
@ -78,8 +78,8 @@ namespace Server.Items
Locked = true;
RequiredSkill = 72;
LockLevel = this.RequiredSkill - Utility.Random( 1, 10 );
MaxLockLevel = this.RequiredSkill + Utility.Random( 1, 10 ); ;
LockLevel = RequiredSkill - Utility.Random( 1, 10 );
MaxLockLevel = RequiredSkill + Utility.Random( 1, 10 ); ;
// According to OSI, loot in level 2 chest is:
// Gold 80 - 150

View file

@ -18,18 +18,18 @@ namespace Server.Items
switch( Utility.RandomList( 0, 1, 2 ) )
{
case 0:// Wooden Chest
this.ItemID = ( UseFirstItemId ? 0xe42 : 0xe43 );
this.GumpID = 0x49;
ItemID = ( UseFirstItemId ? 0xe42 : 0xe43 );
GumpID = 0x49;
break;
case 1:// Metal Chest
this.ItemID = ( UseFirstItemId ? 0x9ab : 0xe7c );
this.GumpID = 0x4A;
ItemID = ( UseFirstItemId ? 0x9ab : 0xe7c );
GumpID = 0x4A;
break;
case 2:// Metal Golden Chest
this.ItemID = ( UseFirstItemId ? 0xe40 : 0xe41 );
this.GumpID = 0x42;
ItemID = ( UseFirstItemId ? 0xe40 : 0xe41 );
GumpID = 0x42;
break;
}
}
@ -44,7 +44,7 @@ namespace Server.Items
public TreasureChestLevel3()
: base( 0xE41 )
{
this.SetChestAppearance();
SetChestAppearance();
Movable = false;
TrapType = TrapType.PoisonTrap;
@ -52,8 +52,8 @@ namespace Server.Items
Locked = true;
RequiredSkill = 84;
LockLevel = this.RequiredSkill - Utility.Random( 1, 10 );
MaxLockLevel = this.RequiredSkill + Utility.Random( 1, 10 ); ;
LockLevel = RequiredSkill - Utility.Random( 1, 10 );
MaxLockLevel = RequiredSkill + Utility.Random( 1, 10 ); ;
// According to OSI, loot in level 3 chest is:
// Gold 250 - 350

View file

@ -19,23 +19,23 @@ namespace Server.Items
switch( Utility.Random( 4 ) )
{
case 0:// Wooden Chest
this.ItemID = ( UseFirstItemId ? 0xe42 : 0xe43 );
this.GumpID = 0x49;
ItemID = ( UseFirstItemId ? 0xe42 : 0xe43 );
GumpID = 0x49;
break;
case 1:// Metal Chest
this.ItemID = ( UseFirstItemId ? 0x9ab : 0xe7c );
this.GumpID = 0x4A;
ItemID = ( UseFirstItemId ? 0x9ab : 0xe7c );
GumpID = 0x4A;
break;
case 2:// Metal Golden Chest
this.ItemID = ( UseFirstItemId ? 0xe40 : 0xe41 );
this.GumpID = 0x42;
ItemID = ( UseFirstItemId ? 0xe40 : 0xe41 );
GumpID = 0x42;
break;
case 3:// Keg
this.ItemID = 0xe7f;
this.GumpID = 0x3e;
ItemID = 0xe7f;
GumpID = 0x3e;
break;
}
}
@ -50,7 +50,7 @@ namespace Server.Items
public TreasureChestLevel4()
: base( 0xE41 )
{
this.SetChestAppearance();
SetChestAppearance();
Movable = false;
TrapType = TrapType.ExplosionTrap;
@ -58,8 +58,8 @@ namespace Server.Items
Locked = true;
RequiredSkill = 92;
LockLevel = this.RequiredSkill - Utility.Random( 1, 10 );
MaxLockLevel = this.RequiredSkill + Utility.Random( 1, 10 ); ;
LockLevel = RequiredSkill - Utility.Random( 1, 10 );
MaxLockLevel = RequiredSkill + Utility.Random( 1, 10 ); ;
// According to OSI, loot in level 4 chest is:
// Gold 500 - 900