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 @@
/**
* Removing classic items whose time is up (items/<uid>/expiredTimeH, implementation notes section
* 4.2), together with their place in the active lists. Run whenever a profile is handed out
* Removing classic items whose time is up (items/<uid>/expiredTimeH), together with their place in the active lists. Run whenever a profile is handed out
* or changed, so the client never gets an expired item.
*/
import type { BlkBlock } from '@wto/blk';
+1 -1
View File
@@ -49,7 +49,7 @@ function newItem(item: ItemDefinition, count: number, now: ServerTime): NewItem
};
}
/** Per-type fields a new item starts with (the client's readers: implementation notes). */
/** Default fields included when creating each item type. */
function typeFields(item: ItemDefinition): { params?: BlkParam[]; blocks?: BlkBlock[] } {
if (item.type === 'wager') return { params: [intParam('numWins', 0), intParam('numBattles', 0), intParam('wager', 0)] };
if (item.type === 'personalDiscounts' && item.discount) {
+1 -1
View File
@@ -1,5 +1,5 @@
/**
* Buying classic items (cln_buy_item, implementation notes; scripts items/itemsBase.nut
* Buying classic items (cln_buy_item; scripts items/itemsBase.nut
* _requestBuy): name:t count:i cost:i costGold:i.
*
* The client prices a purchase as the price-table price of one piece times the pieces it buys