mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Add Horse Pawneer
and Pawneer Orders.
This commit is contained in:
parent
2345b302fc
commit
d9cdd05acb
12 changed files with 653 additions and 263 deletions
|
@ -480,7 +480,7 @@ namespace HISP.Game.Horse
|
|||
private int experience;
|
||||
}
|
||||
|
||||
public struct Breed
|
||||
public class Breed
|
||||
{
|
||||
public int Id;
|
||||
public string Name;
|
||||
|
@ -491,8 +491,29 @@ namespace HISP.Game.Horse
|
|||
public string SpawnInArea;
|
||||
public string Swf;
|
||||
public string Type;
|
||||
}
|
||||
|
||||
public string[] GenderTypes()
|
||||
{
|
||||
string[] options = new string[2];
|
||||
if (Type == "camel")
|
||||
{
|
||||
options[0] = "cow";
|
||||
options[1] = "bull";
|
||||
}
|
||||
else if (Type == "llama")
|
||||
{
|
||||
options[0] = "male";
|
||||
options[1] = "female";
|
||||
}
|
||||
else
|
||||
{
|
||||
options[0] = "stallion";
|
||||
options[1] = "mare";
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
}
|
||||
public struct HorseEquips
|
||||
{
|
||||
public Item.ItemInformation Saddle;
|
||||
|
|
|
@ -16,51 +16,19 @@ namespace HISP.Game.Horse
|
|||
if (breed.Type == "camel")
|
||||
{
|
||||
name = "Wild Camel";
|
||||
if (GameServer.RandomNumberGenerator.Next(0, 100) >= 50)
|
||||
{
|
||||
Sex = "cow";
|
||||
}
|
||||
else
|
||||
{
|
||||
Sex = "bull";
|
||||
}
|
||||
|
||||
}
|
||||
else if (breed.Type == "llama")
|
||||
{
|
||||
name = "Jungle Llama";
|
||||
if (GameServer.RandomNumberGenerator.Next(0, 100) >= 50)
|
||||
{
|
||||
Sex = "male";
|
||||
}
|
||||
else
|
||||
{
|
||||
Sex = "female";
|
||||
}
|
||||
}
|
||||
else if (breed.Type == "zebra")
|
||||
{
|
||||
name = "Wild Zebra";
|
||||
if (GameServer.RandomNumberGenerator.Next(0, 100) >= 50)
|
||||
{
|
||||
Sex = "stallion";
|
||||
}
|
||||
else
|
||||
{
|
||||
Sex = "mare";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
name = "Wild Horse";
|
||||
if (GameServer.RandomNumberGenerator.Next(0, 100) >= 50)
|
||||
{
|
||||
Sex = "stallion";
|
||||
}
|
||||
else
|
||||
{
|
||||
Sex = "mare";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -68,6 +36,8 @@ namespace HISP.Game.Horse
|
|||
name = loadName;
|
||||
}
|
||||
|
||||
Sex = breed.GenderTypes()[GameServer.RandomNumberGenerator.Next(0, 1)];
|
||||
|
||||
description = loadDescription;
|
||||
Breed = breed;
|
||||
Color = breed.Colors[GameServer.RandomNumberGenerator.Next(0, breed.Colors.Length)];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue