Make waypoints or "show locations" work in the libary.

This commit is contained in:
SilicaPi 2021-02-02 01:01:28 +13:00
parent abe8a8a353
commit e3dae116dd
6 changed files with 117 additions and 7 deletions

View file

@ -185,6 +185,13 @@ namespace HISP.Game
public static string MaxJewelryMessage;
public static string RemoveJewelry;
// Locations (Libary)
public static string LocationKnownIslands;
public static string LocationKnownTowns;
public static string LocationIslandFormat;
public static string LocationTownFormat;
public static string LocationDescriptionFormat;
// Minigames (Libary)
public static string MinigameSingleplayer;
public static string MinigameTwoplayer;
@ -526,8 +533,18 @@ namespace HISP.Game
// Click
public static string NothingInterestingHere;
public static string FormatLocationDescription(string description)
{
return LocationDescriptionFormat.Replace("%AREADESC%", description);
}
public static string FormatIslandLocation(string isleName, string mapXy)
{
return LocationIslandFormat.Replace("%ISLENAME%", isleName).Replace("%MAPXY%",mapXy);
}
public static string FormatTownLocation(string townName, string mapXy)
{
return LocationTownFormat.Replace("%TOWNNAME%", townName).Replace("%MAPXY%",mapXy);
}
public static string FormatMinigameEntry(string gameName, string mapXy)
{
return MinigameEntryFormat.Replace("%GAMENAME%",gameName).Replace("%MAPXY%",mapXy);