public override bool UseItem(Player player) { if (!wartinyfall76World.ScorchedInvasionUp) { Main.NewText("The Scorched respond to your radio call........", 175, 75, 255, false); ScorchedEarth.StartCustomInvasion(); return(true); } else { return(false); } }
//Allow to update invasion while game is running public override void PostUpdate() { if (ScorchedInvasionUp) { if (Main.invasionX == (double)Main.spawnTileX) { //Checks progress and reports progress only if invasion at spawn ScorchedEarth.CheckCustomInvasionProgress(); } //Updates the custom invasion while it heads to spawn point and ends it ScorchedEarth.UpdateCustomInvasion(); } }