Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RollCommand.cs
Go to the documentation of this file.
3
5
6[ChatCommand("Roll")]
8{
9 private static readonly Color RESPONSE_COLOR = new Color(255, 240, 20);
10
11 public void ProcessIncomingMessage(string text, byte clientId)
12 {
13 int num = Main.rand.Next(1, 101);
14 ChatHelper.BroadcastChatMessage(NetworkText.FromFormattable("*{0} {1} {2}", Main.player[clientId].name, Lang.mp[9].ToNetworkText(), num), RESPONSE_COLOR);
15 }
16
18 {
19 }
20}
static void BroadcastChatMessage(NetworkText text, Color color, int excludedPlayer=-1)
Definition ChatHelper.cs:46
void ProcessOutgoingMessage(ChatMessage message)
void ProcessIncomingMessage(string text, byte clientId)
static readonly Color RESPONSE_COLOR
Definition RollCommand.cs:9
static LocalizedText[] mp
Definition Lang.cs:34
static NetworkText FromFormattable(string text, params object[] substitutions)
static UnifiedRandom rand
Definition Main.cs:1387
static Player[] player
Definition Main.cs:1803