feat: SK backlog from test through 2026.11.22.48 (Trade Shop, Oracle, quests, loot, nav)
Squash of test/main-merge-2026-10-25 onto aelrynth main 2026.11.19.1 for the standing sk PR. Includes Trade Shop, Oracle wiki/ILT tracker, quest runs, loot checklist, RynthNav, VTank import. HandWrittenVersion remains 0.5.0-legacy-ui. See Changelog/2026-11-22-sk-backlog-test-merge.md.
This commit is contained in:
parent
660e6b5b1c
commit
dc08e1abba
521 changed files with 47247 additions and 795 deletions
|
|
@ -6,7 +6,7 @@ using System.Reflection;
|
|||
|
||||
namespace RynthCore.Plugin.RynthInventory.Scanning;
|
||||
|
||||
internal readonly record struct SpellInfo(string Name, double Duration, bool IsDebuff);
|
||||
internal readonly record struct SpellInfo(string Name, double Duration, bool IsDebuff, int Family = 0, int Power = 0);
|
||||
|
||||
/// <summary>
|
||||
/// Spell names and base durations from RynthAi's embedded spell table (SpellData.txt, linked
|
||||
|
|
@ -25,6 +25,15 @@ internal static class SpellTable
|
|||
|
||||
public static string Name(uint id) => TryGet(id, out SpellInfo s) ? s.Name : $"Spell {id}";
|
||||
|
||||
/// <summary>Every spell in the table with its family and power (Global Inventory's filter spell lists).</summary>
|
||||
public static List<RynthCore.Loot.Editing.LootSpellEntry> AllSpells()
|
||||
{
|
||||
EnsureLoaded();
|
||||
var list = new List<RynthCore.Loot.Editing.LootSpellEntry>(_spells!.Count);
|
||||
foreach (SpellInfo s in _spells.Values) list.Add(new RynthCore.Loot.Editing.LootSpellEntry(s.Name, s.Family, s.Power));
|
||||
return list;
|
||||
}
|
||||
|
||||
public static int Count
|
||||
{
|
||||
get { EnsureLoaded(); return _spells!.Count; }
|
||||
|
|
@ -46,7 +55,9 @@ internal static class SpellTable
|
|||
if (c.Length < 2 || !uint.TryParse(c[0].Trim(), NumberStyles.None, CultureInfo.InvariantCulture, out uint id)) continue;
|
||||
double duration = c.Length > 5 && double.TryParse(c[5].Trim(), NumberStyles.Float | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture, out double d) ? d : -1;
|
||||
bool debuff = c.Length > 8 && c[8].Trim().Equals("True", StringComparison.OrdinalIgnoreCase);
|
||||
map[id] = new SpellInfo(c[1].Trim(), duration, debuff);
|
||||
int family = c.Length > 2 && int.TryParse(c[2].Trim(), NumberStyles.Integer, CultureInfo.InvariantCulture, out int fam) ? fam : 0;
|
||||
int power = c.Length > 6 && int.TryParse(c[6].Trim(), NumberStyles.Integer, CultureInfo.InvariantCulture, out int pw) ? pw : 0;
|
||||
map[id] = new SpellInfo(c[1].Trim(), duration, debuff, family, power);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue