protected override void OnEnd() { Started = false; if (Main.netMode == NetmodeID.MultiplayerClient) { return; } if (rand.elements.Count == 0) { //TwitchChat.Send("No one was selected to become chat boss"); //TwitchBoss.Boss = string.Empty; //TwitchChat.Post("No one...", Color.White); return; } var t = rand.Get(); TwitchBoss.Boss = t; assignTime = DateTimeOffset.Now; TwitchChat.Post($"New boss is @[c/{TwitchChat.TwitchColor}:{TwitchBoss.Boss}]", Color.White); if (Main.netMode != NetmodeID.MultiplayerClient) { TwitchChat.Send(EndString + $" @{TwitchBoss.Boss} you can use " + $"{string.Join(" ", (from s in TwitchBoss.Commands select s.Key))}"); } TwitchChat.Instance.Irc.ChannelMessage -= Handle; }
//protected override void OnTick() //{ // base.OnTick(); //} public override void OnWaveChange() { switch (Main.invasionProgressWave) { case 1: TwitchChat.Post("Vortex tower was awoken!", Color.ForestGreen); EventPlayer.LunarSky = LunarSkies.Vortex; if (Main.netMode != 1) { GlobalSpawnOverride.OverrideItemPool(InvadersDrop); } break; case 2: TwitchChat.Post("Vortex tower was defeated!", Color.ForestGreen); TwitchChat.Post("Solar tower was awoken!", Color.Orange); EventPlayer.LunarSky = LunarSkies.Solar; if (Main.netMode != 1) { GlobalSpawnOverride.OverrideItemPool(InvadersDrop); } break; case 3: TwitchChat.Post("Solar tower was defeated!", Color.Orange); TwitchChat.Post("Stardust tower was awoken!", Color.AliceBlue); EventPlayer.LunarSky = LunarSkies.Stardust; if (Main.netMode != 1) { GlobalSpawnOverride.OverrideItemPool(InvadersDrop); } break; case 4: TwitchChat.Post("Stardust tower was defeated!", Color.AliceBlue); TwitchChat.Post("Nebula tower was awoken!", Color.Violet); EventPlayer.LunarSky = LunarSkies.Nebula; if (Main.netMode != 1) { GlobalSpawnOverride.OverrideItemPool(InvadersDrop); } break; case 5: TwitchChat.Post("Nebula tower was defeated!", Color.Violet); TwitchChat.Post("Impeting doom approach...", Color.PaleGreen); EventPlayer.LunarSky = LunarSkies.None; if (Main.netMode != 1) { NPC.NewNPC(Main.spawnTileX, Main.spawnTileY, NPCID.MoonLordCore); GlobalSpawnOverride.OverrideItemPool(InvadersDrop); } break; } }
protected override void OnStart() { if (Main.netMode == NetmodeID.MultiplayerClient) { return; } rand.Clear(); Part.Clear(); Started = true; TwitchChat.Instance.Irc.ChannelMessage += Handle; TwitchChat.Send(StartString + " Quick write \"boss\" in chat!"); TwitchChat.Post(StartString, Color.White); }