mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 05:05:53 +12:00
Add horse games
This commit is contained in:
parent
35afd32d6c
commit
83445971e0
4 changed files with 32 additions and 0 deletions
|
@ -1222,6 +1222,18 @@ namespace HISP.Game
|
|||
message += Messages.MetaTerminator;
|
||||
return message;
|
||||
}
|
||||
private static string buildHorseGame(User user, string swf)
|
||||
{
|
||||
string message = Messages.HorseGamesSelectHorse;
|
||||
int placing = 1;
|
||||
foreach(HorseInstance horse in user.HorseInventory.HorseList.OrderBy(o => o.Name).ToArray())
|
||||
{
|
||||
message += Messages.FormatHorseGamesEntry(placing, horse.Name, swf + ".swf?ID=" + horse.RandomId + "&SP=" + horse.AdvancedStats.Speed + "&ST=" + horse.AdvancedStats.Strength + "&CO=" + horse.AdvancedStats.Conformation + "&AG=" + horse.AdvancedStats.Agility + "&EN=" + horse.AdvancedStats.Endurance + "&IN=" + horse.AdvancedStats.Inteligence + "&PE=" + horse.AdvancedStats.Personality + "&");
|
||||
}
|
||||
message += Messages.ExitThisPlace;
|
||||
message += Messages.MetaTerminator;
|
||||
return message;
|
||||
}
|
||||
public static string BuildMostValuedRanches()
|
||||
{
|
||||
string message = Messages.CityHallTop25Ranches;
|
||||
|
@ -2328,6 +2340,10 @@ namespace HISP.Game
|
|||
{
|
||||
message += buildPond(user);
|
||||
}
|
||||
if(TileCode == "HORSES")
|
||||
{
|
||||
message += buildHorseGame(user, TileArg);
|
||||
}
|
||||
if (TileCode == "WORKSHOP")
|
||||
{
|
||||
message += buildWorkshop(user);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue