mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-21 12:19:15 +12:00
Fully implement horse whisperer.
This commit is contained in:
parent
70e5a33637
commit
ba7a40641d
3 changed files with 77 additions and 3 deletions
|
@ -6,6 +6,7 @@ using HISP.Server;
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Drawing;
|
||||
|
||||
namespace HISP.Game
|
||||
{
|
||||
|
@ -727,6 +728,31 @@ namespace HISP.Game
|
|||
message += Messages.MetaTerminator;
|
||||
return message;
|
||||
}
|
||||
public static string BuildWhisperSearchResults(WildHorse[] results)
|
||||
{
|
||||
string message = Messages.WhispererSearchingAmoungHorses;
|
||||
if(results.Length <= 0)
|
||||
{
|
||||
message = Messages.WhispererNoneFound;
|
||||
}
|
||||
else
|
||||
{
|
||||
List<Point> locations = new List<Point>();
|
||||
foreach(WildHorse result in results)
|
||||
{
|
||||
Point location = new Point();
|
||||
location.X = result.X;
|
||||
location.Y = result.Y;
|
||||
locations.Add(location);
|
||||
}
|
||||
string mapxys = Messages.FormatMapLocations(locations.ToArray());
|
||||
message += Messages.FormatWhispererHorseFoundMeta(mapxys);
|
||||
}
|
||||
message += Messages.BackToMap;
|
||||
message += Messages.MetaTerminator;
|
||||
return message;
|
||||
}
|
||||
|
||||
private static string buildFountain()
|
||||
{
|
||||
return Messages.FountainMeta;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue