Files

3.9 KiB

Queue 56: show the source roll slot without opening its corpse

The final correction removes the template-cache dependency from non-opener roll presentation. A source START_ROLL sent to an eligible viewer now immediately publishes the roll and permits its exact owner/slot vote, without a loot-open request or a fabricated inventory item. This applies catalogue-wide to unknown, stackable, non-stackable, zero-stack and negatively cached item definitions, under both group-loot methods.

Quantity authority and superseded proposal

The source START_ROLL has no quantity. LootMgr.cpp:370 chooses LootItem.count from loot-table min/max; AddItem:491 does not clamp this to item-template max stack. The old cached max-stack-1 inference was invalid. The first proposed metadata-resume fix 1fc0a042 inherited that assumption and was explicitly held, despite its passing integration gate. Its hooks, refresh method and new metadata requests are completely removed by this correction.

The decisive replacement authority is the pinned original client API, commit b4899085: registered GetLootRollItemInfo at4c3050 returns literal double1.0 as its third Lua result on both success and fallback, independent of stackability. The original roll packet handler reads no quantity. Therefore one is the source client's roll-slot presentation value for any item, not an inferred loot quantity. No item-specific exception or new protocol feature is needed.

Keep presentation separate from award quantity

Each Roll now records whether its quantity came from a matching genuine loot response. Non-opener presentation starts unknown. Only matching actual window rows set quantity_known; reopening a window upgrades an already published roll's exact quantity without duplicating its popup or changing its shared presentation identity. A winner's fallback receipt intent requires this explicit quantity authority. A display value of one cannot supply a received-item amount. Ordinary item-push and inventory-delta receipt authority remain unchanged.

Actual opener rows still supply their real counts. The new regression includes a max-stack-1 template with a real loot row count3: the popup initially represents one roll slot, opening upgrades its exact quantity to3 without repeating the popup, and only then can a source winner create a quantity3 receipt intent. Existing selection, terminal, deadline, group and generation behavior remains in the same state machine.

Verification and limits

The same final existing native_loot_roll_test.cpp fails against copied baseline native code at the first unknown-template roll assertion and passes with the changed loot unit: 206 new checks plus the existing lifecycle checks. Tests use actual world dispatch and the matching e603 original-writer codec, compare complete native StartLootRoll bodies against an independent writer-layout golden (only the bounded remaining timer varies), and verify exact source votes, send retirement, selections, duplicate suppression, all-pass/winner handling, shared IDs and quantity-safe receipt intents. Five cache conditions are tested under both group and need-before-greed.

The fixture's synthetic world initializes the ordinary inventory receipt baseline before testing receipt intents. Without that fixture initialization, first observation correctly clears pre-session intents; the final test uses the established-session state it intends to assess.

Report224743 describes delayed rolls but supplies no roll payload or item identity. This is a reproducible source/native contract defect matching the complaint, not a claimed replay of the reporter's exact traffic. Native UI/live acceptance belongs to Claude. The prior454 gate tested the superseded proposal and must not be used as validation for this final correction; a fresh integration gate follows. No codec changes, client actions or publication are included. All consumers of the changed Roll definition must be rebuilt together.