Adds assemblies config, fixes crash bugs. (#134)
This commit is contained in:
parent
0140eb73b4
commit
8ec166bcd0
3223 changed files with 191 additions and 191 deletions
|
|
@ -1,74 +0,0 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Peasant : BaseEscortable
|
||||
{
|
||||
[Constructible]
|
||||
public Peasant() => Title = "the peasant";
|
||||
|
||||
public Peasant(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool CanTeach => true;
|
||||
public override bool ClickTitle => false; // Do not display 'the peasant' when single-clicking
|
||||
|
||||
private static int GetRandomHue()
|
||||
{
|
||||
return Utility.Random(6) switch
|
||||
{
|
||||
0 => 0,
|
||||
1 => Utility.RandomBlueHue(),
|
||||
2 => Utility.RandomGreenHue(),
|
||||
3 => Utility.RandomRedHue(),
|
||||
4 => Utility.RandomYellowHue(),
|
||||
5 => Utility.RandomNeutralHue(),
|
||||
_ => 0
|
||||
};
|
||||
}
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
if (Female)
|
||||
AddItem(new PlainDress());
|
||||
else
|
||||
AddItem(new Shirt(GetRandomHue()));
|
||||
|
||||
int lowHue = GetRandomHue();
|
||||
|
||||
AddItem(new ShortPants(lowHue));
|
||||
|
||||
if (Female)
|
||||
AddItem(new Boots(lowHue));
|
||||
else
|
||||
AddItem(new Shoes(lowHue));
|
||||
|
||||
// if (!Female)
|
||||
// AddItem( new BodySash( lowHue ) );
|
||||
|
||||
// AddItem( new Cloak( GetRandomHue() ) );
|
||||
|
||||
// if (!Female)
|
||||
// AddItem( new Longsword() );
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
PackGold(200, 250);
|
||||
}
|
||||
|
||||
public override void Serialize(IGenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(IGenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue