Reorganizes Project (#41)

This commit is contained in:
Kamron Batman 2019-08-02 18:13:40 -07:00 • committed by GitHub
parent 08bf44af9a
commit 3614a66aee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3499 changed files with 79 additions and 55 deletions

View file

@ -0,0 +1,72 @@
using Server.Items;
namespace Server.Mobiles
{
public class Messenger : BaseEscortable
{
[Constructible]
public Messenger()
{
Title = "the messenger";
}
public Messenger(Serial serial) : base(serial)
{
}
public override bool CanTeach => true;
public override bool ClickTitle => false; // Do not display 'the messenger' when single-clicking
private static int GetRandomHue()
{
switch (Utility.Random(6))
{
default:
case 0: return 0;
case 1: return Utility.RandomBlueHue();
case 2: return Utility.RandomGreenHue();
case 3: return Utility.RandomRedHue();
case 4: return Utility.RandomYellowHue();
case 5: return Utility.RandomNeutralHue();
}
}
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));
int randomHair = Utility.Random(4);
HairItemID = randomHair == 4 ? 0x203B : 0x2048 + randomHair;
HairHue = Race.RandomHairHue();
PackGold(200, 250);
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}