Fix Fate aging step; report Tuliyollal taxes

- FATE table test needs a zone with FATEs in it.
- Use a `byte` rather than an `int` so we don't overflow like crazy.
This commit is contained in:
Kaz Wolfe 2024-11-14 23:24:32 -08:00
parent bdc24ad23e
commit d7abf9fe0d
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4
2 changed files with 8 additions and 1 deletions

View file

@ -9,7 +9,7 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps;
/// </summary>
internal class FateTableAgingStep : IAgingStep
{
private int index = 0;
private byte index = 0;
/// <inheritdoc/>
public string Name => "Test FateTable";
@ -21,6 +21,12 @@ internal class FateTableAgingStep : IAgingStep
ImGui.Text("Checking fate table...");
if (fateTable.Length == 0)
{
ImGui.Text("Go to a zone that has FATEs currently up.");
return SelfTestStepResult.Waiting;
}
if (this.index == fateTable.Length - 1)
{
return SelfTestStepResult.Pass;

View file

@ -169,6 +169,7 @@ internal class MarketBoardAgingStep : IAgingStep
ImGui.Text($"Kugane: {this.marketTaxRate.KuganeTax.ToString()}");
ImGui.Text($"Crystarium: {this.marketTaxRate.CrystariumTax.ToString()}");
ImGui.Text($"Sharlayan: {this.marketTaxRate.SharlayanTax.ToString()}");
ImGui.Text($"Tuliyollal: {this.marketTaxRate.TuliyollalTax.ToString()}");
ImGui.Separator();
if (ImGui.Button("Looks Correct / Skip"))
{