Skip to content

Commit

Permalink
feat: add v and c dungeon category
Browse files Browse the repository at this point in the history
  • Loading branch information
PartyLich committed Jan 2, 2024
1 parent c6c8f00 commit 3f219fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BetterPartyFinder/PluginUi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class PluginUi : IDisposable {
21,
26,
28,
30, // V&C Dungeon Finder
};

private Plugin Plugin { get; }
Expand Down Expand Up @@ -676,6 +677,7 @@ public enum UiCategory {
GatheringForays,
DeepDungeons,
AdventuringForays,
VCDungeon,
}

internal static class UiCategoryExt {
Expand All @@ -699,6 +701,7 @@ internal static class UiCategoryExt {
UiCategory.GatheringForays => addon.GetRow(2_306)?.Text.ToString(),
UiCategory.DeepDungeons => ct.GetRow((uint) ContentType2.DeepDungeons)?.Name.ToString(),
UiCategory.AdventuringForays => addon.GetRow(2_307)?.Text.ToString(),
UiCategory.VCDungeon => ct.GetRow((uint)ContentType2.VCDungeon)?.Name.ToString(),
_ => null,
};
}
Expand Down Expand Up @@ -728,6 +731,7 @@ internal static class UiCategoryExt {
UiCategory.GatheringForays => isNormal && listing.Category == DutyCategory.GatheringForays,
UiCategory.DeepDungeons => isOther && listing.Category == DutyCategory.DeepDungeons,
UiCategory.AdventuringForays => isNormal && listing.Category == DutyCategory.AdventuringForays,
UiCategory.VCDungeon => isNormal && listing.Duty.Value.ContentType.Row == (uint) ContentType2.VCDungeon,
_ => false,
};
}
Expand Down Expand Up @@ -757,6 +761,7 @@ private enum ContentType2 {
CustomDeliveries = 25,
Eureka = 26,
UltimateRaids = 28,
VCDungeon = 30,
}
}
}

0 comments on commit 3f219fb

Please sign in to comment.