feat(rynthai): enhance T11 item support and logging

- Added new command `/ra t11` for T11 loot management, including wield counters and aug overrides.
- Improved logging for item info requests and decisions, providing clearer insights into item handling.
- Updated item info processing to accommodate T11-specific attributes and conditions.
- Enhanced settings to allow for T11 item augmentation overrides.
- Adjusted various components to ensure compatibility with T11 features, including loot rules and item descriptions.

This update aims to streamline the integration of T11 mechanics into the RynthAi plugin, enhancing user experience and functionality.
This commit is contained in:
BlankenshipG 2026-10-06 00:34:28 -04:00
commit 2f38fd6baf
25 changed files with 1993 additions and 39 deletions

View file

@ -39,6 +39,8 @@ public enum LongValueKey
public enum StringValueKey
{
Name = 1,
// ACECustom puts the T11 "Modifiers:" block of armor, clothing and jewelry here.
Use = 14,
ShortDesc = 15,
LongDesc = 16,
PluralName = 20,
@ -117,13 +119,27 @@ public class WorldObject
public int Values(int key, int defaultValue)
{
// T11 virtual keys are computed from the item's text, never stored on the object.
if (RynthCore.Loot.T11.T11Keys.IsVirtual(key))
return Loot.T11ItemSupport.VirtualValue(this, key, defaultValue);
var o = Overlay;
if (o != null)
{
if (o.Ints.TryGetValue(unchecked((uint)key), out int v)) return v;
if (!o.LiveFallback) return defaultValue;
if (!o.LiveFallback) return Loot.T11ItemSupport.StrippedValue(this, key, defaultValue);
}
return Cache?.GetIntProperty(Id, (uint)key, defaultValue) ?? defaultValue;
if (Cache == null) return Loot.T11ItemSupport.StrippedValue(this, key, defaultValue);
// T11 appraisals omit the item-aug wield gate (158-160) and modifier-carried ratings
// (370-379); an absent or zero value there falls back to what the item's text says.
if (RynthCore.Loot.T11.T11Keys.IsStrippedKey(key))
{
int live = Cache.GetIntProperty(Id, (uint)key, int.MinValue);
if (live != int.MinValue && live != 0) return live;
return Loot.T11ItemSupport.StrippedValue(this, key, live == int.MinValue ? defaultValue : 0);
}
return Cache.GetIntProperty(Id, (uint)key, defaultValue);
}
public string Values(StringValueKey key, string defaultValue)