74 lines
No EOL
1.6 KiB
C#
74 lines
No EOL
1.6 KiB
C#
using System.Collections.Generic;
|
|
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
public class GypsyMaiden : BaseVendor
|
|
{
|
|
private List<SBInfo> m_SBInfos = new List<SBInfo>();
|
|
protected override List<SBInfo> SBInfos => m_SBInfos;
|
|
|
|
[Constructible]
|
|
public GypsyMaiden() : base( "the gypsy maiden" )
|
|
{
|
|
}
|
|
|
|
public override bool GetGender()
|
|
{
|
|
return true; // always female
|
|
}
|
|
|
|
public override void InitSBInfo()
|
|
{
|
|
m_SBInfos.Add( new SBProvisioner() );
|
|
}
|
|
|
|
public override void InitOutfit()
|
|
{
|
|
base.InitOutfit();
|
|
|
|
switch ( Utility.Random( 4 ) )
|
|
{
|
|
case 0: AddItem( new JesterHat( Utility.RandomBrightHue() ) ); break;
|
|
case 1: AddItem( new Bandana( Utility.RandomBrightHue() ) ); break;
|
|
case 2: AddItem( new SkullCap( Utility.RandomBrightHue() ) ); break;
|
|
}
|
|
|
|
if ( Utility.RandomBool() )
|
|
AddItem( new HalfApron( Utility.RandomBrightHue() ) );
|
|
|
|
Item item = FindItemOnLayer( Layer.Pants );
|
|
|
|
if ( item != null )
|
|
item.Hue = Utility.RandomBrightHue();
|
|
|
|
item = FindItemOnLayer( Layer.OuterLegs );
|
|
|
|
if ( item != null )
|
|
item.Hue = Utility.RandomBrightHue();
|
|
|
|
item = FindItemOnLayer( Layer.InnerLegs );
|
|
|
|
if ( item != null )
|
|
item.Hue = Utility.RandomBrightHue();
|
|
}
|
|
|
|
public GypsyMaiden( Serial serial ) : base( serial )
|
|
{
|
|
}
|
|
|
|
public override void Serialize( GenericWriter writer )
|
|
{
|
|
base.Serialize( writer );
|
|
|
|
writer.Write( (int) 0 ); // version
|
|
}
|
|
|
|
public override void Deserialize( GenericReader reader )
|
|
{
|
|
base.Deserialize( reader );
|
|
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
} |