Implement "Read Books"

This commit is contained in:
SilicaAndPina 2021-02-03 17:27:34 +13:00
parent 0b06cd1810
commit 6c42c57bfe
6 changed files with 243 additions and 1 deletions

View file

@ -185,6 +185,11 @@ namespace HISP.Game
public static string MaxJewelryMessage;
public static string RemoveJewelry;
// Books (Libary)
public static string BooksOfHorseIsle;
public static string BookEntryFormat;
public static string BookReadFormat;
// Awards (Libary)
public static string AwardsAvalible;
public static string AwardEntryFormat;
@ -542,6 +547,15 @@ namespace HISP.Game
// Click
public static string NothingInterestingHere;
public static string FormatBookReadMeta(string author, string title, string bookText)
{
return BookReadFormat.Replace("%AUTHOR%", author).Replace("%TITLE%", title).Replace("%TEXT%", bookText);
}
public static string FormatBookEntry(string title, string author, int id)
{
return BookEntryFormat.Replace("%TITLE%", title).Replace("%AUTHOR%", author).Replace("%ID%", id.ToString());
}
public static string FormatIpBannedMessage(string Ip)
{
return LoginFailedReasonBannedIpFormat.Replace("%IP%", Ip);