Script::GetPetFoodTypes
function · ui · primitive
- Address
0x4bea10· 243 bytes, up to0x4beb02- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the names of the food types the pet's family eats
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/petbar#other-pet-functions
Finding: Other pet functions in ui: the pet bar and the form bar
GetPetTimeRemaining (0x4be600) pushes nil when the expiry tick 0xb714a8 is 0, else tick - now in
milliseconds (no scaling to seconds). It pushes 0 only when the tick equals the clock; a tick that has
passed pushes 2^32 minus the milliseconds since it passed. GetPetFoodTypes (0x4bea10) returns, as
strings, the localized name of each food type whose bit (the type minus 1) is set in the word at
+0x1c of the pet's creature family record, in table order; it returns no value for a pet that fails
0x6116e0. GetPetIcon (0x4beb10) pushes the string at +0x44 of that family record, or nil.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- ClntObjMgrObjectPtr objectlayer
- CGUnit_C::GetCreatureFamily objectlayer
- CGUnit_C::IsPlayerOrHunterPet objectlayer
- lua_checkstack lua
- lua_pushstring lua
Calls and jumps by a bare address, from tables/calls.tsv.