RynthSuite as of 2026-11-29 (internal 46bae49): release 2026.11.28.1
This commit is contained in:
parent
25552fa794
commit
598f49c899
131 changed files with 11825 additions and 329 deletions
|
|
@ -2054,7 +2054,16 @@ public class WorldObjectCache
|
|||
/// reported it DELETE-BEFORE-CLASSIFY when the corpse went away).
|
||||
/// </summary>
|
||||
public List<WorldObject> RescueContainedItems(int containerId, IReadOnlyCollection<WorldObject> known)
|
||||
=> RescueContainedItems(containerId, known, out _);
|
||||
|
||||
/// <summary>
|
||||
/// <see cref="RescueContainedItems(int, IReadOnlyCollection{WorldObject})"/>, and
|
||||
/// <paramref name="unread"/>: how many listed items can't be read yet (no name or position),
|
||||
/// so the caller can wait for them instead of finishing the container without them.
|
||||
/// </summary>
|
||||
public List<WorldObject> RescueContainedItems(int containerId, IReadOnlyCollection<WorldObject> known, out int unread)
|
||||
{
|
||||
unread = 0;
|
||||
var rescued = new List<WorldObject>();
|
||||
if (containerId == 0 || !_host.HasGetContainerContents) return rescued;
|
||||
|
||||
|
|
@ -2072,7 +2081,7 @@ public class WorldObjectCache
|
|||
int id = unchecked((int)buf[i]);
|
||||
if (id == 0 || have.Contains(id)) continue;
|
||||
WorldObject? wo = this[id];
|
||||
if (wo == null) continue;
|
||||
if (wo == null) { unread++; continue; }
|
||||
if (wo.ObjectClass == AcObjectClass.Corpse || wo.ObjectClass == AcObjectClass.Monster) continue;
|
||||
rescued.Add(wo);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue