Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
95
Projects/Scripts/Mobiles/Townfolk/SeekerOfAdventure.cs
Normal file
95
Projects/Scripts/Mobiles/Townfolk/SeekerOfAdventure.cs
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class SeekerOfAdventure : BaseEscortable
|
||||
{
|
||||
private static string[] m_Dungeons =
|
||||
{
|
||||
"Covetous", "Deceit", "Despise",
|
||||
"Destard", "Hythloth", "Shame", // Old Code for Pre-ML shards.
|
||||
"Wrong"
|
||||
};
|
||||
|
||||
private static string[] m_MLDestinations =
|
||||
{
|
||||
"Cove", "Serpent's Hold", "Jhelom", // ML List
|
||||
"Nujel'm"
|
||||
};
|
||||
|
||||
[Constructible]
|
||||
public SeekerOfAdventure()
|
||||
{
|
||||
Title = "the seeker of adventure";
|
||||
}
|
||||
|
||||
public SeekerOfAdventure(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool ClickTitle => false; // Do not display 'the seeker of adventure' when single-clicking
|
||||
|
||||
public override string[] GetPossibleDestinations()
|
||||
{
|
||||
if (Core.ML)
|
||||
return m_MLDestinations;
|
||||
return m_Dungeons;
|
||||
}
|
||||
|
||||
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 FancyDress(GetRandomHue()));
|
||||
else
|
||||
AddItem(new FancyShirt(GetRandomHue()));
|
||||
|
||||
int lowHue = GetRandomHue();
|
||||
|
||||
AddItem(new ShortPants(lowHue));
|
||||
|
||||
if (Female)
|
||||
AddItem(new ThighBoots(lowHue));
|
||||
else
|
||||
AddItem(new Boots(lowHue));
|
||||
|
||||
if (!Female)
|
||||
AddItem(new BodySash(lowHue));
|
||||
|
||||
AddItem(new Cloak(GetRandomHue()));
|
||||
|
||||
AddItem(new Longsword());
|
||||
|
||||
Utility.AssignRandomHair(this);
|
||||
|
||||
PackGold(100, 150);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue