Fixes casting checks
This commit is contained in:
parent
7ea00fbf4f
commit
03dd5f1926
431 changed files with 5616 additions and 6250 deletions
|
|
@ -19,7 +19,7 @@ namespace Server.Items
|
|||
|
||||
private static int[] m_Hues = new int[]
|
||||
{
|
||||
0x0, 0x455, 0x47E, 0x89F, 0x8A5, 0x8AB,
|
||||
0x0, 0x455, 0x47E, 0x89F, 0x8A5, 0x8AB,
|
||||
0x966, 0x96D, 0x972, 0x973, 0x979
|
||||
};
|
||||
|
||||
|
|
@ -76,14 +76,14 @@ namespace Server.Items
|
|||
min = 10; max = 20;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void Flip()
|
||||
{
|
||||
switch ( ItemID )
|
||||
{
|
||||
case 0x9AB : ItemID = 0xE7C; break;
|
||||
case 0xE7C : ItemID = 0x9AB; break;
|
||||
|
||||
|
||||
case 0xE40 : ItemID = 0xE41; break;
|
||||
case 0xE41 : ItemID = 0xE40; break;
|
||||
}
|
||||
|
|
@ -165,11 +165,11 @@ namespace Server.Items
|
|||
|
||||
DropItem( item );
|
||||
}
|
||||
else if( item is BaseHat )
|
||||
else if ( item is BaseHat )
|
||||
{
|
||||
BaseHat hat = (BaseHat)item;
|
||||
|
||||
if( Core.AOS )
|
||||
if ( Core.AOS )
|
||||
{
|
||||
int attributeCount;
|
||||
int min, max;
|
||||
|
|
@ -181,7 +181,7 @@ namespace Server.Items
|
|||
|
||||
DropItem( item );
|
||||
}
|
||||
else if( item is BaseJewel )
|
||||
else if ( item is BaseJewel )
|
||||
{
|
||||
int attributeCount;
|
||||
int min, max;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue