mirror of
https://github.com/islehorse/HISP.git
synced 2025-07-20 14:01:31 +12:00
Add Random Events
This commit is contained in:
parent
d7e350fef6
commit
9add26a6fa
5 changed files with 165 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue