CGTooltip::AddStudiedCreatureLines
function · ui · primitive
- Address
0x529a40· 1152 bytes, up to0x529ebf- Signature
void __thiscall (CGTooltip *this, void *unit, char *buffer, uint32_t size)- Meaning
- Adds the damage, armor, health, resistance, diet and pet ability lines of a studied creature
- Confidence
- verified, proof one
- Finding
- ui/tooltipunitstatus#the-studied-creature-lines
Finding: The studied-creature lines in ui: Unit tooltip status lines
A unit with the special-info dynamic flag (fields+0x224, bit 4), which a creature has after it has been
studied, adds a block: its damage, armor and health, then one line per nonzero resistance, then the
pet diet and the pet abilities. The first block is DAMAGE_TEMPLATE of the unit's minimum and maximum
damage (the minimum truncated, the maximum rounded up), or SINGLE_DAMAGE_TEMPLATE when they are equal,
ARMOR_TEMPLATE with its armor, HP_TEMPLATE with its health and RESISTANCE_TEMPLATE with the value and the
school's name for each other resistance above 0. All are white.
The derivation is in the doc.
Callers 1
Callees 9
- __ftol crt
- GameTooltipAddLine ui
- GetArmorSchoolIndex unassigned
- CGUnit_C::GetCreatureFamily objectlayer
- SStrLen storm
- SStrPack storm
- SStrPrintf storm
- FrameScript_GetText ui
- ceil crt
Calls and jumps by a bare address, from tables/calls.tsv.