RynthSuite as of 2026-10-04 (internal c94715f): RynthOracle (based on Oracle of Dereth by Advis Eveldan) and RynthInventory, RynthAi patrol doorways and rooms, healing priority, strict monster priority, finish the wounded target, slayer weapons, arcs when clear, blasts like rings, learn unknown spells, looting fixes, release 2026.10.4.6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c33e24a610
commit
12ca25f911
426 changed files with 108239 additions and 7521 deletions
|
|
@ -104,6 +104,22 @@ public static class SpellDatabase
|
|||
return map;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Every id per name. Some names have several ids (Missile Weapon Mastery Self VI is
|
||||
/// 472/496/544, Light Weapon Mastery has five per tier), and BuildNameToIdMap keeps
|
||||
/// only the last, which a character may not know.
|
||||
/// </summary>
|
||||
public static Dictionary<string, List<int>> BuildNameToIdsMap()
|
||||
{
|
||||
var map = new Dictionary<string, List<int>>(StringComparer.OrdinalIgnoreCase);
|
||||
foreach (var kvp in _spellNames)
|
||||
{
|
||||
if (!map.TryGetValue(kvp.Value, out var ids)) map[kvp.Value] = ids = new List<int>();
|
||||
ids.Add(kvp.Key);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// <summary>Looks up a spell ID by exact name (case-insensitive).</summary>
|
||||
public static int GetIdByName(string name)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue