Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Changed

- **Long shop shelves stay quick.** A shelf with hundreds of lines now shows 200 at a time, with more as you scroll down, or press SHOW MORE. A line says how many there are, and filtering and sorting still cover every line. Typing in the filter no longer waits for the list to redraw. On a 1000-line shelf, sorting went from about 0.4 s to 0.15 s, and opening it from 0.6 s to 0.26 s. Saving a big catalogue is about five times faster.
- **The initiative tracker for a GM running several fights.** The tracker window now opens beside the INITIATIVE menu instead of on top of it, so ACTIVE COMBATS stays in view and the GM can jump from fight to fight with the tracker open. The menu's ACTIVE COMBATS, each COMBAT #n and the scene name on the tracker were drawn in the theme's border colour and could hardly be read in any theme; they now use its text colour. Jumping to a fight whose building has lost its battle map says NO_BATTLE_MAP_FOR_THAT_SCENE instead of doing nothing. Whose turn it is is also announced to screen readers. All found by new browser journeys: one fight with two players from START to END, two fights at once with the GM jumping between them, and one fight spread over two scenes.
- **The tracker counts ROUNDs in Generic and custom systems.** Its counter read TURN 3, though it counts laps of the whole order, which are rounds; Cities Without Number and Cyberpunk RED already said ROUND. It now says ROUND 3, a custom system's own word for a round where it renamed one (the WORDS page's ROUND, apart from its TURN), and Shadowrun still counts PASSes.
- **ID.EXE's conditions fold away.** The HEALTH folder shows a token's conditions as chips only. Clicking one opens it underneath with its rounds left, what it does and what it changes, and TAKE OFF for whoever can change the token, in place of the small ×. One is open at a time, and CLOSE or Escape folds it away again. Players looking at someone else's token can still open a chip to read what it means.
Expand Down Expand Up @@ -918,6 +919,7 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Under the hood

- **A stress test for the shops.** 200 items and a 1500-line catalogue, saved, sent to players, bought from with a 100-line cart and sold to with 300 lines at once, each within a time limit; and a 1000-line shelf opened, filtered and sorted in a real browser.
- **Condition rolls asked of the player, or the GM for an NPC, on the server (8a9a2).** A condition's EACH TURN set to be rolled by the player is now asked of them when it fires (and of the GM for an NPC), said in the dice log, and kept until rolled, even across a reload. Rolled, it does what the table's roll would and the log says who rolled it ("rolled by KES", "rolled by the GM"). Only that player or the GM may roll a player's, and only the GM an NPC's; two clicks roll it once. An ask goes when its condition comes off, when a newer turn asks again, or when the fight ends. Where a token is in two fights, the log names the scene. The ROLL buttons on the sheet and the tracker come with 8a9c.
- **Conditions on initiative turns, on the server (8a9a).** A condition can now do up to three things on initiative turns: at the start or end of its turn, or of the round, it rolls DAMAGE, HEAL, a save that takes it off (ROLL TO END), or a roll for the log. Damage and healing change the token's HP on their own unless the GM chooses to apply them by hand, and every roll is a line in the dice log saying whose, what, when, who rolled it and what it did. A condition can also end AT THE END OF ITS NEXT TURN. NEXT fires them in the agreed order (the turn ending, the round ending, the countdown, the round starting, the next turn starting), a new BEGIN starts round 1, and the table can switch them off. The builder's boxes, the tracker's BEGIN button, the GAME tab's switch and asking a player to roll come in the next pieces.
- **What is worn, added up by column (8a5b).** Formulas can read what a character's worn items have in a NUMBER column of their type, added together: @armor_defense is the DEFENSE of everything worn of type ARMOR, so AC can be 10 + @armor_defense + @agi_mod and follow the armor as it goes on and off. Each worn item counts once, as its line has it; a line made by hand is never worn.
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ CITY_NET/
│ │ ├── catalogueParse.js # Reads a catalogue a GM pasted or uploaded: CSV, TSV or JSON, real RFC-4180 quoting, per-line problems rather than exceptions. The only reader - the preview is a round trip to it; a section per item type (8a7a1): [GUNS], [gun] or [MELEE WEAPONS] is lines of the system's own type, a type winning over a shelf of its name, each column read as it holds (numbers, PICK ONE's own word) and checked as the builder checks an item's, a row that doesn't fit left out and said, blanks kept and noted once a row; a section that is neither a type nor a shelf said, its rows not saved
│ │ ├── catalogueStore.js # Uploaded catalogues in memory, added on top of the built-in ones, never replacing them. Holds one system at a time, and consults the built-in book only when that system is CWN - every other game's shops carry only what their GM uploaded. Requires nothing, so priceOf stays synchronous and the lot stays importable from a frontend test
│ │ ├── ownItems.js # The game's own items on the shelves (8a7a3a; decided 2026-11-21): each priced and IN SHOPS a line of its type's catalogue, its values and words as fields; the names of those turned off. Pure, worked out once per definition. A catalogue file held against them (againstItems, 8a7a3c1): an exact copy of an item left out, one kept out of the shops left out, one of an item's name overruling it, and how many sell themselves besides; the items turned off with a price, bought back by a shop of their type (8a7a3c2). The running game's own items (8a7a3a, ownItems.js, set by the sockets) sit under the uploaded lines: a line uploaded with an item's name wins, an item turned off keeps a line of its name off the shelves
│ │ └── catalogueDb.js # The only piece that knows uploaded catalogues live in SQLite. A save replaces one catalogue wholesale, in a transaction
│ │ └── catalogueDb.js # The only piece that knows uploaded catalogues live in SQLite. A save replaces one catalogue wholesale, in a transaction, a hundred rows a statement (8n3: a 1500-line save took a round trip a row)
│ ├── tokens/
│ │ ├── conditions.js # A token's conditions as stored ([{ id, left }]): read safely, checked against what the running system offers (one twice, an unknown one, rounds out of 1 to 99 refused by name; one that ends after rounds starting at its own), shown to everyone without the rounds left, a hidden one (a house rule off) kept as it was, and counted down a round at a time for a combat's tokens (tickCombat), coming off at none; `started` kept for one ending AT THE END OF ITS NEXT TURN, through an edit too (8a9a)
│ │ ├── poolHealth.js # One pool of hit points changed by an amount (8a9a): TEMP first, never below 0 nor past MAX; the HEALTH route and a condition's EACH TURN alike
Expand Down Expand Up @@ -606,6 +606,7 @@ CITY_NET/
│ ├── shop_buy_sockets.test.js # Buying through the socket as a cart of one, the old buy handler's cases moved across whole
│ ├── shop_sell_sockets.test.js # Selling through the socket as a cart with nothing to buy, the old sell handler's cases moved across whole
│ ├── shop_items_on_sale.test.js # The game's own items on the shelves (8a7a3a): a price, its own or its type's PRICE column's; IN SHOPS, one saved before it by its price; checked and carried by the system file; the lines they make; under the uploads in the store (a line of an item's name wins, one turned off never sold); bought, sold back at the BUYBACK rate, not again in GIVE's type folders; a catalogue file held against them, its preview and its save (8a7a3c1)
│ ├── shop_stress.test.js # The shops under load (8n3): 200 items and a 1500-line catalogue previewed and saved, every catalogue sent to a player (its size said), a 100-line cart checked out and 300 lines sold back at once, each in time and each answer right
│ ├── shop_typed_lines.test.js # Lines of an item type sold and given (8a7a2): SOLD AT, the General Store unsaid, checked and carried by the system file; a typed line placed and stacked only onto the same thing untouched; bought at a shop that sells the type and refused at one that doesn't, sold back at exactly the app's 45%, given from GIVE
│ ├── shop_catalogue_types.test.js # A catalogue section per item type (8a7a1): by name, one or id in any case, spaces, columns by name; a value that doesn't fit said in the builder's words; blanks one note; a type over a shelf of its name; JSON; a section that is neither said; through the sockets, the preview by the type's name, saved under it, sent to players
│ ├── shop_catalogue_parse.test.js # Reading a GM's catalogue: commas inside names, semicolons from a European Excel, a byte-order mark, a price with its symbol; problems per line, never a throw
Expand Down Expand Up @@ -876,7 +877,7 @@ CITY_NET/
│ │ │ ├── SheetRenderer.tsx # Template-driven sheet renderer (any game system); sections may declare groupSize to collapse repeated entries, rowHidden to drop a row of one, and fields may declare presetFill (one select writing a whole stat block, as one save), fullWidth, startsRow or the tag_list type (an add/remove list stored as JSON) — only entries holding data render, plus one blank and a reveal button, so what you filled in comes back after a reload without anything storing that it should; MORTALLY WOUNDED / FRAIL banners, ability_list layout (dynamic add/remove rows with attr dropdown, cost, die, roll), hidden-tab gating; a ranked stat's picker with its worth beside it, starting at the lowest (7f1c1); a SPEND XP section where the sheet has one (7f2c1); IMPROVE BY USE's mark beside each stat that improves (7f3b); the conditions on the token said under a number they change, a stat's box and a skill's line, a typed stat's changed value the big number, clicked to edit what is typed (8a5e3); CARRYING (CarryingBlock) at the top of the tab a custom system's INVENTORY is on (8a6a)
│ │ │ ├── ImportSheetDialog.tsx # Sheet import — fillable PDF, a Companion code (Cyberpunk only), or pasted JSON / stat block, plus a download of the blank form that upload expects; for a custom system the blank PDF and its JSON template side by side and UPLOAD JSON FILE; its boxes in the theme's colors, drawn inside the theme
│ │ │ ├── CyberwareWindow.tsx # The body diagram and the table. Wires are measured from the live layout, since panels grow as chrome is added and where a wire starts is only knowable once laid out. Portalled to the body — rendered in place it inherits the character sheet's bounds and half the diagram is clipped away
│ │ │ ├── ShopWindow.tsx # A building that trades, on the terminal layout: BUY, SELL and CART folders, the building in the corner. One shelf tab per catalogue the shop sells, with the filter above the list. CWN shelves come from the book with CWN's own placement rules; every other system's are what the GM uploaded, placed through shopPlacement. + CART on either list fills the cart; CHECK OUT settles it on the server in one go, then places what was bought one at a time and shows a receipt. A checkout nobody answers gives up after 15 seconds. In a custom system's currencies, every price is in its catalogue's currency and the cart totals, asks and receipts per currency; never offers to buy an item installed (7e4c). A shelf of an item type (8a7a2) is named as the type and shows the type's own columns, and a line bought from it lands as one of the type
│ │ │ ├── ShopWindow.tsx # A building that trades, on the terminal layout: BUY, SELL and CART folders, the building in the corner. One shelf tab per catalogue the shop sells, with the filter above the list. CWN shelves come from the book with CWN's own placement rules; every other system's are what the GM uploaded, placed through shopPlacement. + CART on either list fills the cart; CHECK OUT settles it on the server in one go, then places what was bought one at a time and shows a receipt. A checkout nobody answers gives up after 15 seconds. In a custom system's currencies, every price is in its catalogue's currency and the cart totals, asks and receipts per currency; never offers to buy an item installed (7e4c). A shelf of an item type (8a7a2) is named as the type and shows the type's own columns, and a line bought from it lands as one of the type. A long shelf drawn 200 rows at a time, more on scrolling or SHOW MORE, and filtered a step behind the typing (8n3: a 1000-line shelf took 400 ms to sort in Chromium)
│ │ │ ├── shopCart.ts # The cart's arithmetic, pure: one line per thing bought (with a count), one per thing sold, totals both ways and the net, the sell half grouped as the server takes it, and what the character would carry afterwards. What the player is shown - the server works the money out again. In a custom system's currencies, one total per currency with its shortfall and the ways it may be covered
│ │ │ ├── TerminalWindow.tsx # The shared terminal layout: the picture and folders down the left, the open folder on the right, buttons along the bottom. Folders switch by click or the arrow keys, and one can blink for attention; the panel is as tall as what it holds, or in 'list' mode keeps its top still while a table scrolls under it. What goes in the folders is the caller's
│ │ │ ├── TokenWindow.tsx # A token's window on TerminalWindow: INFO (headed with the player's name, their public handle and role first), HEALTH, QUICK ACTIONS on your own token, GM NOTES for the main admin on NPCs. Health panels and the GM's defense and initiative sections come in as slots; which ones a viewer gets is tokenView()
Expand Down Expand Up @@ -1075,7 +1076,7 @@ CITY_NET/
│ │ │ ├── BuildingExtrasEditor.test.tsx # The photo and GM notes staged until UPDATE_DATA_POINT, sending exactly what was staged, reporting every failure, never overwriting notes it couldn't load
│ │ │ ├── CatalogueWindow.test.tsx # Adding to the shops: SAVE only ever stores text that was previewed; DOWNLOAD ITEMS and the item lines and near misses in a preview, none on a game without items (7e3c); a type's section by its name, its problem, a blank noted, the save (8a7a1); the file held against the game's items: the count, overrules, left out (8a7a3c1)
│ │ │ ├── EmptyShopSteps.test.tsx # An empty shop telling the GM how to stock it, where the shop is set up
│ │ │ ├── ShopWindow.test.tsx # The shop: what a building carries, and nothing reaching a sheet until the server says the account was charged
│ │ │ ├── ShopWindow.test.tsx # The shop: what a building carries, and nothing reaching a sheet until the server says the account was charged; a 1000-line shelf paged, filtered and sorted in time, the last page's count, 300 lines of gear on SELL (8n3)
│ │ │ ├── CyberwareWindow.cybermods.test.tsx # Fitting a cyberware mod the way a player reaches it, the UI honouring the server's fitting rules
│ │ │ ├── SheetCyberware.test.tsx # The sheet showing what the chrome does, so a correct effects layer is actually read
│ │ │ ├── InventorySection.test.tsx # The inventory table editing one field cleanly, though every keystroke rewrites the whole list
Expand Down Expand Up @@ -1558,6 +1559,7 @@ CITY_NET/
│ ├── catalogue-and-items.spec.ts # A catalogue held against the game's items (8a7a3c1): the Pistol overruling 200 → 260, an exact Cutlass and a ring kept out of the shops left out, ALSO ON SALE FROM ITEMS; saved, the game's Cutlass behind a # in DOWNLOAD CURRENT
│ ├── shop-typed-lines.spec.ts # Lines of an item type at the table (8a7a2): a [GUNS] catalogue saved, the General Store's GUNS shelf in the type's columns, a Pistol bought and landing as a Gun with its damage and ammo, another given from GIVE.EXE stacked onto it
│ ├── shop-items-on-sale.spec.ts # The game's own items at the table (8a7a3a): a Pistol priced on ITEMS, no catalogue saved, on the General Store's WEAPONS shelf at 200 and a ring kept out of the shops not; bought, a Weapon on the gear with its damage; sold back from the window at the store's 50%, 900 left and off the sheet (8a7a3c2)
│ ├── shop-stress.spec.ts # A 1000-line shelf in the browser (8n3): saved, opened 200 at a time, scrolled for more, filtered as typed and sorted both ways, each in time, the times logged
│ ├── shop-items-catalogue.spec.ts # Items in the shops (7e3c): DOWNLOAD ITEMS, a price filled in, the preview naming the ring and a near miss, saved, on sale in GIVE.EXE's catalogue
│ ├── sheet-level-up.spec.ts # Going up a level (7d2b): XP reaches it and the player goes up, one class of two, the rest carrying over; milestone's level given by the GM and taken by the player; LEVEL_DOWN; an uploaded sheet bringing its XP (7d2c); LEVEL_UP.EXE: which class, left and come back to, what it unlocks, FINISH (7d3a); a pick the new level opens, then a new class (7d3b)
│ ├── sheet-level-record.spec.ts # What each level gained (7d7b2): the GM clears a past roll, the player rolls it again, the maximum follows; the GM sets one; an uploaded HP MAX the base, one line, cleared by the GM (7d7c)
Expand Down
Loading
Loading