Snapshot for release 2026.10.11.1 (internal d20160b)
This commit is contained in:
parent
e6fffb0f42
commit
504a6f080a
66 changed files with 7865 additions and 310 deletions
|
|
@ -380,13 +380,16 @@ public sealed partial class RynthAiPlugin
|
|||
return "no-state";
|
||||
}
|
||||
|
||||
private ConsumableRule? FindLockpickInConsumables()
|
||||
/// <summary>The first listed lockpick still carried: its own stack, else one of the same name (ConsumableLookup).</summary>
|
||||
private WorldObject? FindLockpickInConsumables()
|
||||
{
|
||||
var settings = _dashboard?.Settings;
|
||||
if (settings == null || _objectCache == null) return null;
|
||||
|
||||
return settings.ConsumableRules
|
||||
.Where(r => r.Type.Equals("Lockpick", StringComparison.OrdinalIgnoreCase))
|
||||
.FirstOrDefault(r => _objectCache[r.Id] != null);
|
||||
foreach (var r in settings.ConsumableRules)
|
||||
if (r.Type.Equals("Lockpick", StringComparison.OrdinalIgnoreCase)
|
||||
&& ConsumableLookup.Resolve(_objectCache, r) is WorldObject pick)
|
||||
return pick;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue