public override void UpdateDead() { EventWorld world = ModContent.GetInstance <EventWorld>(); WorldEvent e = world.CurrentEvent; if (e is ZergRushEvent && Main.rand.NextFloat() < 0.2f) { e.TimeLeft -= 1; } }
public override void PostUpdate() { EventWorld world = ModContent.GetInstance <EventWorld>(); if (Teleportationpotion) { Teleportationpotion = false; player.TeleportationPotion(); } if (Main.netMode == 1) { world.CurrentEvent?.PerformTick(world, (TwitchChat)mod); } }