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

@ -23,7 +23,7 @@ namespace Server.Mobiles
Hue = Utility.RandomSkinHue();
if( this.Female = Utility.RandomBool() )
if ( this.Female = Utility.RandomBool() )
{
this.Body = 0x191;
this.Name = NameList.RandomName( "female" );

View file

@ -49,7 +49,7 @@ namespace Server.Mobiles
else
AddItem( new Boots( lowHue ) );
if( Utility.RandomBool() )
if ( Utility.RandomBool() )
HairItemID = 0x203B;
else
HairItemID = 0x203C;

View file

@ -23,7 +23,7 @@ namespace Server.Mobiles
Hue = Utility.RandomSkinHue();
if( this.Female = Utility.RandomBool() )
if ( this.Female = Utility.RandomBool() )
{
this.Body = 0x191;
this.Name = NameList.RandomName( "female" );

View file

@ -23,7 +23,7 @@ namespace Server.Mobiles
Blessed = true;
if( this.Female = Utility.RandomBool() )
if ( this.Female = Utility.RandomBool() )
{
this.Body = 0x191;
this.Name = NameList.RandomName( "female" );

View file

@ -35,7 +35,7 @@ namespace Server.Mobiles
public override void InitOutfit()
{
if( Female )
if ( Female )
AddItem( new PlainDress() );
else
AddItem( new Shirt( GetRandomHue() ) );
@ -44,13 +44,13 @@ namespace Server.Mobiles
AddItem( new ThighBoots() );
if( Female )
if ( Female )
AddItem( new FancyDress( lowHue ) );
else
AddItem( new FancyShirt( lowHue ) );
AddItem( new LongPants( lowHue ) );
if( !Female )
if ( !Female )
AddItem( new BodySash( lowHue ) );

View file

@ -51,7 +51,7 @@ namespace Server.Mobiles
Utility.AssignRandomHair( this, hairHue );
if( Utility.Random( 7 ) != 0 )
if ( Utility.Random( 7 ) != 0 )
Utility.AssignRandomFacialHair( this, hairHue );
PackGold( 250, 300 );

View file

@ -67,7 +67,7 @@ namespace Server.Mobiles
Utility.AssignRandomHair( this, hairHue );
if( Utility.Random( 7 ) != 0 )
if ( Utility.Random( 7 ) != 0 )
Utility.AssignRandomFacialHair( this, hairHue );
PackGold( 250, 300 );

View file

@ -17,7 +17,7 @@ namespace Server.Mobiles
Title = "the sculptor";
Hue = Utility.RandomSkinHue();
if( this.Female = Utility.RandomBool() )
if ( this.Female = Utility.RandomBool() )
{
this.Body = 0x191;
this.Name = NameList.RandomName( "female" );

View file

@ -145,7 +145,7 @@ namespace Server.Mobiles
{
TimeSpan ts;
if( !TimeSpan.TryParse( text, out ts ) )
if ( !TimeSpan.TryParse( text, out ts ) )
{
from.SendMessage( "Value was not properly formatted. Use: <hours:minutes:seconds>" );
from.SendGump( new TownCrierGump( from, m_Owner ) );
@ -565,4 +565,4 @@ namespace Server.Mobiles
NameHue = -1;
}
}
}
}