feat(saves): seed new saves and reveal eligible hidden vehicles

Set initial Silver Lions and Golden Eagles balances and add a save
editing command. Open rank I for each nation and branch and migrate
older saves to format 3. Reveal eligible hidden vehicles while keeping
split air-defense launchers out of the tech tree.

Document the currency, rank, and unit status fields observed in the offline client.
This commit is contained in:
N0VAN0M4LY committed 2026-11-24 14:45:28 +08:00
1 parent ed0136f5fc
commit e5452e925f
12 files changed
+282 -12

No files matched your search

@@ -0,0 +1,18 @@
/**
* Dataset: the tech-tree branches of each country.
*
* char.vromfs.bin config/shop.blk has one top-level block per country, and under it one block
* per branch: army, helicopters, aviation, ships, boats (2.61.0.37: China, Sweden and Israel
* have no naval branches).
*/
import type { Dataset } from './dataset.ts';
const SHOP = 'config/shop.blk';
export type ShopBranches = Readonly<Record<string, readonly string[]>>;
export const shopBranches: Dataset<ShopBranches> = {
id: 'shop-branches',
version: 1,
extract: (source) => Object.fromEntries(source.readBlk('char.vromfs.bin', SHOP).blocks.map((country) => [country.name, country.blocks.map((branch) => branch.name)])),
};