benilla-re systems structs docs

Script::UnitIsTrivial

function · ui · orchestration

Address
0x519d70 · 104 bytes, up to 0x519dd7
Signature
int __fastcall (lua_State *L)
Meaning
Implements the Lua function UnitIsTrivial
Confidence
inferred
Name from
the community database (idb)
Finding
ui/unitlevels#trivial-units

Finding: Trivial units in ui: unit levels and the gray range

0x5f0700(unit) answers whether a unit is below the active player's level by more than the table entry: the unit is not a player object (type bit 0x10 clear), the active player exists and playerLevel - unitLevel is above gap[playerLevel / 5] (12 from index 20), both raw levels. UnitIsTrivial(unit) pushes 1 for a true answer and nil otherwise, with a Usage: check; the civilian test (unitinfo#flag-predicates) and the plate's skull rule call the same function.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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