benilla-re systems structs docs

CGTooltip::OnLockKeyItem

function · ui · primitive

Address
0x52ad10 · 88 bytes, up to 0x52ad67
Signature
void __stdcall (CGTooltip *tooltip, uint8_t found)
Meaning
Builds the game object tooltip again from its stored GUID when the key item arrives
Confidence
verified, proof one
Finding
ui/tooltipobject#the-game-object-lock-lines

Finding: The game object lock lines in ui: Tooltips of world objects

An object with the locked flag (GAMEOBJECT_FLAGS bit 1) adds LOCKED, red when the player has no way to meet the lock, green when the opener is a key item or no skill spell, and the difficulty colour of a known skill spell. One more line follows from the first slot of the object's lock row, when that slot's action is valid for the object's state. A key slot gives LOCKED_WITH_ITEM with the key item's name, in white. A skill slot gives LOCKED_WITH_SPELL_KNOWN with the lock type's name in the difficulty colour when the player knows a spell that opens that lock type; else LOCKED_WITH_SPELL in red, but only for an object not flagged locked.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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