Add Random Events

This commit is contained in:
SilicaAndPina 2021-05-12 10:11:53 +12:00
parent d7e350fef6
commit 9add26a6fa
5 changed files with 165 additions and 4 deletions

View file

@ -69,6 +69,9 @@ namespace HISP.Game
public static string SocialTypeFormat;
public static string SocialPlayerNoLongerNearby;
// Random Event
public static string RandomEventPrefix;
// Events : Mods Revenge
public static string EventStartModsRevenge;
public static string EventEndModsRevenge;
@ -1171,6 +1174,12 @@ namespace HISP.Game
return itemFormat.Replace("%USERNAME%", username);
}
// Random Events
public static string FormatRandomEvent(string txt, int moneyEarned, string horseName)
{
return txt.Replace("%HORSENAME%", horseName).Replace("%MONEYEARNED%", "$" + moneyEarned.ToString("N0", CultureInfo.InvariantCulture).Replace("-", ""));
}
// Event : Water Ballon Game
public static string FormatWaterBalloonGameWinner(string username, int timesHit)
{