benilla-re systems structs docs

s_merchantRows

global · ui

Address
0xbdd118 · 3584 bytes, up to 0xbddf17
Type
uint8_t[128][28]
Meaning
Holds the open vendor's item rows, slot number first and item entry next
Confidence
verified, proof one
Finding
ui/merchantcursor#grabbing-a-merchant-row

Finding: Grabbing a merchant row in ui: the vendor cursors

With anything but an item on the cursor, PickupMerchantItem(index) grabs a row. The argument must be a number (a numeric string passes), truncated toward zero and reduced by 1. A bad argument, an index outside the item count (compared signed), no open merchant, or a row whose slot word +0 is 0 each clear the cursor and return. Picking the row whose entry is already the preview entry clears the cursor too. Otherwise it puts a kind 5 preview on the cursor: entry +4, display id +8, the zero-based row index. It raises no error.

The derivation is in the doc.