start work on auto sell

This commit is contained in:
SilicaAndPina 2021-03-20 16:48:44 +13:00
parent adc52f3b35
commit 770f078992
6 changed files with 94 additions and 4 deletions

View file

@ -10,6 +10,9 @@ namespace HISP.Game
{
public static int RequiredChatViolations;
// Message Queue
public static string MessageQueueHeader;
// Mod isle
public static string ModIsleMessage;
@ -677,6 +680,7 @@ namespace HISP.Game
public static string HorseProfileButtonFormat;
public static string HorseNoAutoSell;
public static string HorseAutoSellOthersFormat;
public static string HorseAutoSellFormat;
public static string HorseAutoSellPriceFormat;
public static string HorseCantAutoSellTacked;
@ -1994,6 +1998,10 @@ namespace HISP.Game
{
return HorseAutoSellPriceFormat.Replace("%MONEY%", money.ToString("N0", CultureInfo.InvariantCulture));
}
public static string FormatAutoSellOthers(int price)
{
return HorseAutoSellOthersFormat.Replace("%PRICE%", price.ToString("N0", CultureInfo.InvariantCulture));
}
public static string FormatAutoSell(string autoSellStr)
{
return HorseAutoSellFormat.Replace("%AUTOSELL%", autoSellStr);