public override bool UseItem(Player player) { if (!MyWorld.voidInvasionUp && !Main.dayTime) { Main.NewText("You feel a wave of cold rush over you...", 182, 15, 15, false); VoidEvent.StartInvasion(); return(true); } if (Main.dayTime) { Main.NewText("Your head throbs", 182, 15, 15, false); MyWorld.willStartVoidInvasion = true; return(true); } else { return(false); } }