Fixes casting checks
This commit is contained in:
parent
7ea00fbf4f
commit
03dd5f1926
431 changed files with 5616 additions and 6250 deletions
|
|
@ -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" );
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace Server.Mobiles
|
|||
else
|
||||
AddItem( new Boots( lowHue ) );
|
||||
|
||||
if( Utility.RandomBool() )
|
||||
if ( Utility.RandomBool() )
|
||||
HairItemID = 0x203B;
|
||||
else
|
||||
HairItemID = 0x203C;
|
||||
|
|
|
|||
|
|
@ -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" );
|
||||
|
|
|
|||
|
|
@ -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" );
|
||||
|
|
|
|||
|
|
@ -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 ) );
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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" );
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue