Files
WT-Offline/packages/local-service/src/game-data/datasets/research-point-rate.ts
T
N0VAN0M4LY 7a08fff85e Implement vehicle research and purchases
Recompute unlocked ranks, prerequisites, and unit states before serving
profiles. Add research target selection, research conversion, vehicle
and slot purchases, and the price table. Support editing convertible RP
and restrict hidden vehicle visibility to eligible entries.

The client still displays zero purchase prices pending price table
integration.
2026-11-24 21:04:19 +08:00

18 lines
797 B
TypeScript

/**
* Dataset: how many free research points one golden eagle converts into a vehicle's research
* points (implementation notes, cln_convert_exp).
*
* char.vromfs.bin config/warpoints.blk playerExpToCountryFor1Gold:i (2.61.0.37: 45). The
* client reads it in wp_get_exp_convert_exp_for_gold_rate (aces.exe 0x1052af0 -> 0x916eb0),
* defaulting to 1; the price table can override it per country (exp_to_gold_rate), which the
* local service does not send.
*/
import { numberField } from './blk-fields.ts';
import type { Dataset } from './dataset.ts';
export const researchPointsPerGoldenEagle: Dataset<number> = {
id: 'research-point-rate',
version: 1,
extract: (source) => numberField(source.readBlk('char.vromfs.bin', 'config/warpoints.blk'), 'playerExpToCountryFor1Gold') ?? 1,
};