AllocItemSwap
function · objectlayer · primitive
- Address
0x5e1110· 245 bytes, up to0x5e1204- Meaning
- Returns a free ITEMSWAP entry's index, growing the table by one when none is free
- Confidence
- verified, proof one
- Finding
- objectlayer/inventory#bind-on-equip-confirmation
Finding: Bind-on-equip confirmation in objectlayer: inventory
Equipping or swapping an item into an equipment slot asks first when the item is not yet bound,
binds on equip, and the player could use it. The move is parked in an ITEMSWAP table and
EQUIP_BIND_CONFIRM or AUTOEQUIP_BIND_CONFIRM is signalled with its index; an item record not
yet cached parks the move and replays it on arrival. 0x5e1be0(index, accept) replays an
accepted move with the confirmation set, or releases both slots' items, and frees the entry.
The derivation is in the doc.
Callers 2
- CGPlayer_C::SwapItems objectlayer
- CGPlayer_C::AutoEquipCursorItem objectlayer
Callees 1
- GrowItemSwapArray objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.