benilla-re systems structs docs

MerchantCanRepair

function · ui · primitive

Address
0x4fadb0 · 62 bytes, up to 0x4faded
Signature
uint32_t __cdecl (void)
Meaning
Returns 1 when the open vendor's NPC flags have the repair bit
Confidence
verified, proof one
Finding
ui/merchantcursor#the-repair-cursor

Finding: The repair cursor in ui: the vendor cursors

ShowRepairCursor() does nothing while a spell awaits a target or when no vendor that repairs is open. Otherwise it clears the cursor payload, sets both the base and the shown picture to Repair (17), and returns nothing. HideRepairCursor() sets both back to Point (1) when the base is Repair. InRepairMode() returns the number 1 when the base is Repair and nil otherwise; CanMerchantRepair() returns 1 when the open vendor's NPC flags have bit 14 and nil otherwise.

The derivation is in the doc.

Callers 8

Callees 1

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