mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 05:05:53 +12:00
Make waypoints or "show locations" work in the libary.
This commit is contained in:
parent
abe8a8a353
commit
e3dae116dd
6 changed files with 117 additions and 7 deletions
|
@ -419,7 +419,33 @@ namespace HISP.Game
|
|||
message += Messages.MetaTerminator;
|
||||
return message;
|
||||
}
|
||||
|
||||
public static string BuildLocationsLibary()
|
||||
{
|
||||
string message = "";
|
||||
message += Messages.LocationKnownIslands;
|
||||
foreach(World.Waypoint waypoint in World.Waypoints.OrderBy(o => o.Name).ToArray())
|
||||
{
|
||||
if(waypoint.Type == "ISLE")
|
||||
{
|
||||
string mapxy = Messages.FormatMapLocation(waypoint.PosX, waypoint.PosY);
|
||||
message += Messages.FormatIslandLocation(waypoint.Name, mapxy);
|
||||
message += Messages.FormatLocationDescription(waypoint.Description);
|
||||
}
|
||||
}
|
||||
message += Messages.LocationKnownTowns;
|
||||
foreach(World.Waypoint waypoint in World.Waypoints.OrderBy(o => o.Name).ToArray())
|
||||
{
|
||||
if(waypoint.Type == "TOWN")
|
||||
{
|
||||
string mapxy = Messages.FormatMapLocation(waypoint.PosX, waypoint.PosY);
|
||||
message += Messages.FormatTownLocation(waypoint.Name, mapxy);
|
||||
message += Messages.FormatLocationDescription(waypoint.Description);
|
||||
}
|
||||
}
|
||||
message += Messages.BackToMap;
|
||||
message += Messages.MetaTerminator;
|
||||
return message;
|
||||
}
|
||||
public static string BuildHorseReleased()
|
||||
{
|
||||
string message = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue