benilla-re systems structs docs

CGPlayer_C::CanUseItem

function · objectlayer · primitive

Address
0x5ea930 · 431 bytes, up to 0x5eaade
Signature
uint32_t __thiscall (CGPlayer_C *this, void *record, uint32_t *error)
Meaning
Tests an item record's level, class, race, proficiency, skill, spell, rank and reputation needs
Confidence
verified, proof one
Finding
objectlayer/playercombat#using-an-item

Finding: Using an item in objectlayer: player spells and combat

0x5ea930(record, &error) says whether the player can use an item record: no record is ERR_ITEM_NOT_FOUND; a missing proficiency for its class and subclass ERR_PROFICIENCY_NEEDED; too low a level, a class or race outside its masks, too low a required skill, an unknown required spell (nor a higher rank), too low an honor rank, a missing medal bit, or too low a standing with its faction, ERR_CANT_USE_ITEM.

The derivation is in the doc.

Callers 13

Callees 6

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