Implement Auto Sell

This commit is contained in:
SilicaAndPina 2021-03-21 11:42:54 +13:00
parent 770f078992
commit 61383e8b9f
5 changed files with 118 additions and 4 deletions

View file

@ -22,6 +22,14 @@ namespace HISP.Game
public static string AddBuddyYourNowBuddiesFormat;
public static string AddBuddyDeleteBuddyFormat;
// Auto Sell
public static string AutoSellNotStandingInSamePlace;
public static string AutoSellSuccessFormat;
public static string AutoSellInsufficentFunds;
public static string AutoSellTooManyHorses;
public static string AutoSellYouSoldHorseFormat;
public static string AutoSellYouSoldHorseOfflineFormat;
// Tag
public static string TagYourItFormat;
public static string TagOtherBuddiesOnlineFormat;
@ -1069,6 +1077,23 @@ namespace HISP.Game
// Click
public static string NothingInterestingHere;
// AUTO SELL
public static string FormatAutoSellSoldOffline(string horseName, int price, string toUsername)
{
return AutoSellYouSoldHorseOfflineFormat.Replace("%HORSE%", horseName).Replace("%PRICE%", price.ToString("N0", CultureInfo.InvariantCulture)).Replace("%USERNAME%", toUsername);
}
public static string FormatAutoSellSold(string horseName, int price, string toUsername)
{
return AutoSellYouSoldHorseFormat.Replace("%HORSE%", horseName).Replace("%PRICE%", price.ToString("N0", CultureInfo.InvariantCulture)).Replace("%USERNAME%", toUsername);
}
public static string FormatAutoSellSuccess(string horseName)
{
return AutoSellSuccessFormat.Replace("%HORSENAME%", horseName);
}
// MULTIHORSES
public static string FormatMultiHorses(int placing, string horseName, string horseBreed, string swf)
{