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

@ -11,7 +11,7 @@ namespace Server.Items.Holiday
{
get
{
if( m_Staffer != null )
if ( m_Staffer != null )
{
return String.Format( "{0} hand painted by {1}", MaskName, m_Staffer );
}
@ -24,7 +24,7 @@ namespace Server.Items.Holiday
private string m_Staffer;
private static string[] m_Staffers =
private static string[] m_Staffers =
{
"Ryan",
"Mark",
@ -68,7 +68,7 @@ namespace Server.Items.Holiday
int version = reader.ReadInt();
if( version == 1 )
if ( version == 1 )
{
m_Staffer = Utility.Intern( reader.ReadString() );
}

View file

@ -58,7 +58,7 @@ namespace Server.Mobiles
public override void GenerateLoot()
{
if( Utility.RandomDouble() < .05 )
if ( Utility.RandomDouble() < .05 )
{
//PackItem( new TwilightLantern() ); OLD Halloween
@ -79,7 +79,7 @@ namespace Server.Mobiles
public virtual void Lifted_Callback( Mobile from )
{
if( from != null && !from.Deleted && from is PlayerMobile )
if ( from != null && !from.Deleted && from is PlayerMobile )
{
Combatant = from;
@ -100,9 +100,9 @@ namespace Server.Mobiles
public override void OnDamage( int amount, Mobile from, bool willKill )
{
if( Utility.RandomBool() )
if ( Utility.RandomBool() )
{
if( from != null && from.Map != null && Map != Map.Internal && Map == from.Map && from.InRange( this, 12 ) )
if ( from != null && from.Map != null && Map != Map.Internal && Map == from.Map && from.InRange( this, 12 ) )
{
SpillAcid( ( willKill ) ? this : from, ( willKill ) ? 3 : 1 );
}