build(repo): make source comments and build tools self-contained

This commit is contained in:
N0VAN0M4LY committed 2026-11-29 08:46:08 +08:00
1 parent 5b5c59ab08
commit 44190e4544
106 files changed
+152 -183

No files matched your search

@@ -1,5 +1,5 @@
/**
* Buying a crew slot (cln_buy_slot, implementation notes).
* Buying a crew slot (cln_buy_slot).
*
* The price of a country's next slot is config/rank.blk crew_slots slot<N>, N being the
* number of crews the country has, as the client shows it (get_crew_slot_cost, aces.exe
@@ -1,6 +1,5 @@
/**
* Choosing what to research and putting research points into a vehicle (implementation notes
* sections 1.2, 4.3 and 5).
* Choosing what to research and putting research points into a vehicle.
*
* - Choosing a research target (cln_set_researchable) makes a researchable vehicle the
* target of its country and type and closes the "research finished" prompt.
+1 -1
View File
@@ -1,6 +1,6 @@
/**
* Static facts used by vehicle research and purchase rules, loaded once at startup from game
* files (implementation notes; implementation notes).
* files.
*/
import type { DatasetCache } from '../game-data/datasets/dataset-cache.ts';
import { crewSlotPrices, eraRequirements, type CrewSlotPrices, type EraRequirements } from '../game-data/datasets/rank-settings.ts';
@@ -1,6 +1,6 @@
/**
* Squadron vehicle (`researchType:t="clanVehicle"`) research and Golden-Eagle early purchase
* rules (implementation notes; aces.exe 0xec0b70..0xec0c6f; scripts/unit/unitActions.nut).
* rules (aces.exe 0xec0b70..0xec0c6f; scripts/unit/unitActions.nut).
*/
import type { BlkBlock } from '@wto/blk';
import { canAfford, pay, type Price } from '../profile/profile-currency.ts';
+2 -3
View File
@@ -1,10 +1,9 @@
/**
* Buying a vehicle (cln_buy_aircraft, implementation notes).
* Buying a vehicle (cln_buy_aircraft).
*
* The vehicle must be buyable (status "can buy"). Its price is config/wpcost.blk value
* (silver lions) and costGold (golden eagles), less the best active personal discount: the
* client prices it the same way (wp_get_cost / wp_get_cost_gold, aces.exe 2.61.0.37 0x9158a0;
* implementation notes; the price table itself has no discounts). The client sends the price
* client prices it the same way (wp_get_cost / wp_get_cost_gold, aces.exe 2.61.0.37 0x9158a0; the price table itself has no discounts). The client sends the price
* it showed; a different one is refused, as when a discount ended online. A purchase made with
* a discount counts against that discount item. The parts of a split vehicle come with it.
*/