Fixes casting checks

This commit is contained in:
Kamron Batman 2018-08-19 01:38:55 +08:00
parent 7ea00fbf4f
commit 03dd5f1926
431 changed files with 5616 additions and 6250 deletions

View file

@ -64,7 +64,7 @@ namespace Server.Items
{
case 1: // Okay
{
if( info.Switches.Length > 0 )
if ( info.Switches.Length > 0 )
{
m_Callback( m_From, m_State, info.Switches[ 0 ] );
}
@ -79,4 +79,4 @@ namespace Server.Items
}
}
}
}
}

View file

@ -77,7 +77,7 @@ namespace Server.Items
public virtual void SetTubHue( Mobile from, object state, int hue )
{
if( state is DyeTub )
if ( state is DyeTub )
{
DyeTub tub = state as DyeTub;
@ -95,11 +95,11 @@ namespace Server.Items
if ( tub.Redyable )
{
if( tub.MetallicHues ) /* OSI has three metallic tubs now */
if ( tub.MetallicHues ) /* OSI has three metallic tubs now */
{
from.SendGump( new MetallicHuePicker( from, new MetallicHuePicker.MetallicHuePickerCallback( SetTubHue ), tub ) );
}
else if( tub.CustomHuePicker != null )
else if ( tub.CustomHuePicker != null )
{
from.SendGump( new CustomHuePickerGump( from, tub.CustomHuePicker, new CustomHuePickerCallback( SetTubHue ), tub ) );
}
@ -124,4 +124,4 @@ namespace Server.Items
}
}
}
}
}

View file

@ -63,7 +63,7 @@ namespace Server.Items
from.SendLocalizedMessage( 502440 ); // Scissors can not be used on that to produce anything.
}
else */
if( Core.AOS && targeted == from )
if ( Core.AOS && targeted == from )
{
from.SendLocalizedMessage( 1062845 + Utility.Random( 3 ) ); //"That doesn't seem like the smartest thing to do." / "That was an encounter you don't wish to repeat." / "Ha! You missed!"
}
@ -71,9 +71,9 @@ namespace Server.Items
{
from.SendLocalizedMessage( 1063305 ); // Didn't your parents ever tell you not to run with scissors in your hand?!
}
else if( targeted is Item && !((Item)targeted).Movable )
else if ( targeted is Item && !((Item)targeted).Movable )
{
if( targeted is IScissorable && ( targeted is PlagueBeastInnard || targeted is PlagueBeastMutationCore ) )
if ( targeted is IScissorable && ( targeted is PlagueBeastInnard || targeted is PlagueBeastMutationCore ) )
{
IScissorable obj = (IScissorable) targeted;