benilla-re systems structs docs

Script::TaxiNodeCost

function · ui · orchestration

Address
0x4dcc20 · 126 bytes, up to 0x4dcc9d
Signature
int __fastcall (lua_State *L)
Meaning
Returns a slot's fare in copper, raising for a bad slot
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/taxiroute#fares

Finding: Fares in ui: taxi routes, fares and the flight

A slot's fare is its price times one minus the flight master's discount, as a float, then converted to an integer with fistp. The price is the TaxiPath price from the current node when a direct path exists, otherwise the route's fare sum. The discount comes from the flight master for the player (0x612b80). With no active player, no unit for the master's GUID or neither source, the fare is 0. TaxiNodeCost(slot) raises Invalid taxi node slot past the count.

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.