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 -2
View File
@@ -1,6 +1,5 @@
/**
* External Silver-Lion supply chests and their keyless open generators (implementation notes sections
* 6-8). Which chests exist, their prices and prizes are tuning (tuning/supply-chests.jsonc);
* External Silver-Lion supply chests and their keyless open generators. Which chests exist, their prices and prizes are tuning (tuning/supply-chests.jsonc);
* prize groups resolve deterministically against the game data.
*/
import type { CatalogueVehicle } from '../game-data/datasets/vehicle-catalogue.ts';
@@ -1,6 +1,6 @@
/**
* Marketplace vehicle coupon definitions (`shop.blk` `marketplaceItemdefId`, 233 vehicles in
* 2.61.0.37; implementation notes).
* 2.61.0.37).
*/
import type { LocalizedText } from '../../game-data/datasets/unit-names.ts';
import type { CatalogueVehicle } from '../../game-data/datasets/vehicle-catalogue.ts';
+1 -2
View File
@@ -1,7 +1,6 @@
/**
* Pure domain rules for external inventory coupon consumption, item recycling, generator
* exchanges (chest opening and workshop/recycle crafting), and GJN marketplace coupon purchases
*. Wire JSON formatting lives in `inventory-wire.ts`.
* exchanges (chest opening and workshop/recycle crafting), and GJN marketplace coupon purchases. Wire JSON formatting lives in `inventory-wire.ts`.
*/
import type { BlkBlock, BlkParam } from '@wto/blk';
import type { ItemCatalogue } from '../items/item-catalogue.ts';
@@ -1,5 +1,5 @@
/**
* External inventory HTTP service (`inventory-proxy-0{1,2}.gaijin.net/char`; implementation notes).
* External inventory HTTP service (`inventory-proxy-0{1,2}.gaijin.net/char`).
*
* Unlike CharService (which prepends the `0x69` uncompressed marker to binary BLK answers),
* `charsq` (`0x459cac0 -> 0x459e020`) parses the raw HTTP body directly as UTF-8 JSON unless
@@ -1,6 +1,5 @@
/**
* Local GJN Marketplace web service (`/trade.gaijin.net` and `trade.gaijin.net` host;
* implementation notes). Lets players browse and buy all 466 stock marketplace coupons
* Local GJN Marketplace web service (`/trade.gaijin.net` and `trade.gaijin.net` host). Lets players browse and buy all 466 stock marketplace coupons
* (vehicles, skins, decals, attachables, pilot/unlocks) with GJN, depositing coupons into
* `extInventory` and pushing `mrpc.generic_notify` (`inventory.changed`) to active game clients.
*/
@@ -1,6 +1,6 @@
/**
* Classic trophies (`cln_get_price_ex` top-level `trophy{}` + `Common/trophy/<id>` prices)
* and `cln_buy_trophy` rules (implementation notes; scripts/items/itemsClasses/itemTrophy.nut):
* and `cln_buy_trophy` rules (scripts/items/itemsClasses/itemTrophy.nut):
* 1. Silver-Lion supply chests with native drop-chance display (`showChances:b=yes`, calculated
* by `calcTrophiesDropChance` at 0x1554dc0), using deterministic rank-and-country selection;
* 2. Golden-Eagle direct-purchase prize-pool vehicles (`numTotal:i=1`, single `i{ unit:t }` prize,
+1 -2
View File
@@ -1,5 +1,4 @@
// Local marketplace page (implementation notes; layout after the official Gaijin Market,
// implementation notes), shown in the game's built-in browser.
// Local marketplace page (layout after the official Gaijin Market), shown in the game's built-in browser.
// The game opens it as <marketplaceURL>?a=<app id>[&viewitem&n=<market_hash_name>] (inventoryClient.nut);
// with `n` the page opens that item's card directly.
'use strict';
+1 -2
View File
@@ -1,5 +1,4 @@
/* Local marketplace page, laid out like the official Gaijin Market (implementation notes
section 4; Chromium 100: no :has(), container queries or CSS nesting). Fonts fall back to system fonts. */
/* The in-game marketplace runs in Chromium 100. Use compatible CSS and system font fallbacks. */
:root {
--bg: #1c1f23; --surface: #272a2e; --lift: #2e3238; --cyan: #31e3ee; --red: #bf2d36; --green: #2a826d;
--text: #cbd7dc; --muted: #ffffff80; --hair: #ffffff0d; --disabled: #ffffff24;