benilla-re systems structs docs

CanHoldBoth

function · ui · orchestration

Address
0x504bc0 · 52 bytes, up to 0x504bf3
Signature
uint8_t __fastcall (uint32_t mainType, uint32_t offType, uint8_t dualWield)
Meaning
Says whether a main-hand and an off-hand inventory type can be held together
Confidence
verified, proof one
Finding
ui/dressup#held-items

Finding: Held items in ui: trying items on the dressing room model

A held item goes to the main-hand lane (bodyslot 0xf) or the off-hand lane (0x10). A one-hand weapon takes the main hand, or the off hand when the main hand holds a one-hand weapon and dual wield is allowed. Two-hand, main-hand, thrown and right-hand ranged types take the main hand; shields, bows and other ranged weapons (type 15), holdables and off-hand weapons the off hand. Before the install, an incompatible item in the other lane is detached, then the target lane's own occupant, and the new record is stored in the lane. The weapon is always installed at the hand, never a sheath point.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.