GetTaxiNodeFare
function · ui · primitive
- Address
0x4dc3d0· 259 bytes, up to0x4dc4d2- Signature
int32_t __fastcall (uint32_t slot)- Meaning
- Returns a slot's fare after the flight master's discount, or 0 without a master
- Confidence
- verified, proof one
- Finding
- ui/taxiroute#fares
- Test
ui::glue_4dc_4dc3d0_fade_step
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 1
Callees 3
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGUnit_C::GetMerchantDiscount objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.