add %RULES command, fix bugs in random events

This commit is contained in:
SilicaAndPina 2021-05-14 12:18:11 +12:00
parent e600554555
commit 1ad0783f8f
7 changed files with 62 additions and 4 deletions

View file

@ -17,6 +17,10 @@ namespace HISP.Game
public static string PlaytimeMessageFormat;
public static string[] RngMessages;
// Rules Isle
public static string RulesIsleSentMessage;
public static string RulesIsleCommandMessageFormat;
// Mod
public static string ModIsleMessage;
public static string ModSplatterballEarnedYouFormat;
@ -1244,6 +1248,12 @@ namespace HISP.Game
return EventWonRealTimeRiddleForYouFormat.Replace("%PRIZE%", prize.ToString("N0", CultureInfo.InvariantCulture));
}
// Rules Command
public static string FormatRulesCommandMessage(string username)
{
return RulesIsleCommandMessageFormat.Replace("%USERNAME%", username.ToUpper());
}
// Mute Command
public static string FormatStoppedMutingPlayer(string username)
{