/// <summary> /// Send out a request to all plugins for someone to handle gem upgrading for us. /// </summary> public static async Task <bool> UpgradeGems() { if (DateTime.UtcNow.Subtract(LastRequestedGemUpgrade).TotalSeconds < 15) { return(false); } if (RiftHelper.IsInRift && RiftHelper.RiftQuest.Step == RiftQuest.RiftStep.UrshiSpawned && RiftHelper.CurrentRift.IsCompleted) { if (AutoFollow.CurrentLeader.Distance > 30f) { Log.Warn("Rift is Completed; telport to the leader"); await Coordination.TeleportToPlayer(AutoFollow.CurrentLeader, false); await Coroutine.Sleep(3000); } Log.Warn("Rift is Completed; requesting gem upgrade from other plugins."); PluginCommunicator.BroadcastGemUpgradRequest(); await Coroutine.Sleep(5000); LastRequestedGemUpgrade = DateTime.UtcNow; return(true); } return(false); }
private bool Completed() { PluginCommunicator.BroadcastGemUpgradRequest(); DisablePulse(); return(true); }