Skip to content

Commit

Permalink
something
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Dec 3, 2024
1 parent 0b9c94e commit 67c7161
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
40 changes: 27 additions & 13 deletions Automaton/Features/WondrousTailsClickToOpen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private void ResetEventHandles()
}
}

private List<uint> GetInstanceListFromId(uint orderDataId)
private unsafe List<uint> GetInstanceListFromId(uint orderDataId)
{
var bingoOrderData = GetSheet<WeeklyBingoOrderData>().GetRow(orderDataId);
Svc.Log.Info($"{nameof(OnDutySlotClick)}: [row={bingoOrderData.RowId}; type={bingoOrderData.Type}; text={bingoOrderData.Text.Value.Description};]");
Expand Down Expand Up @@ -105,23 +105,37 @@ private List<uint> GetInstanceListFromId(uint orderDataId)

// Special categories
case 3:
return bingoOrderData.Unknown1 switch
// handling AgentContentsFinder here is such a hack
switch (bingoOrderData.Unknown1)
{
// Treasure Map Instances are Not Supported
1 => [],
// Treasure Maps, nothing to do
case 1:
return [];

// PvP Categories are Not Supported
2 => [],
// Frontlines
case 2:
AgentContentsFinder.Instance()->OpenRouletteDuty(7);
return [];

// Deep Dungeons
3 => _sheet
.Where(m => m.ContentType.RowId is 21)
.OrderBy(row => row.SortKey)
.Select(m => m.TerritoryType.RowId)
.ToList(),
case 3:
return _sheet
.Where(m => m.ContentType.RowId is 21)
.OrderBy(row => row.SortKey)
.Select(m => m.TerritoryType.RowId)
.ToList();

_ => [],
};
// Rival Wings
case 69: // TODO FIND
AgentContentsFinder.Instance()->OpenRegularDuty(599); // Hidden Gorge
return [];

// Crystalline Conflict
case 52:
AgentContentsFinder.Instance()->OpenRouletteDuty(40); // Casual Match
return [];
}
return [];

// Multi-instance raids
case 4:
Expand Down
1 change: 0 additions & 1 deletion Automaton/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using ECommons.Configuration;
using ECommons.SimpleGui;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Reflection;

namespace Automaton;
Expand Down

0 comments on commit 67c7161

Please sign in to comment.