Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: changed the high-end prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 29, 2023
1 parent 0eeba6c commit b34eb2b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions RotationSolver/Updaters/SocialUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,25 @@ static void DutyState_DutyStarted(object sender, ushort e)
if (!Service.Player.IsJobCategory(JobRole.Tank) && !Service.Player.IsJobCategory(JobRole.Healer)) return;

var territory = Service.GetSheet<TerritoryType>().GetRow(e);
if (HighEndDuties.Any(t => t.RowId == territory.RowId))
//if (HighEndDuties.Any(t => t.RowId == territory.RowId))
{
var str = territory.PlaceName?.Value?.Name.ToString() ?? "High-end Duty";
var message = string.Format(LocalizationManager.RightLang.HighEndWarning, str);
Service.ToastGui.ShowError(message);

Service.ChatGui.PrintChat(new Dalamud.Game.Text.XivChatEntry()
{
Message = message,
Type = Dalamud.Game.Text.XivChatType.ErrorMessage,
});

Task.Run(async() =>
{
for (int i = 0; i < 3; i++)
{
await Task.Delay(3000);
Service.ToastGui.ShowError(message);
}
});
}
}

Expand Down

0 comments on commit b34eb2b

Please sign in to comment.