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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Under the hood

- **Who changed a gear line from its item, and when.** When a line named like one of a system's items is given a value of its own in a column (the Cutlass made 2d8), the server now notes who changed it and when: the player from their sheet, or the GM on a player's or an NPC's. It is worked out from what was saved before, never taken from the sheet, kept while the value stays, and dropped when it is put back to the item's. The sheet shows this as UNIQUE next.
- **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.
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ CITY_NET/
│ ├── sockets/
│ │ ├── tokenControl.js # Who may move a token, in one place because two move handlers ask it. An admin always may; the owner may; a friendly NPC may name players, or open to everyone. Only friendly NPCs can carry a grant, enforced here rather than by the caller, so one that reaches an enemy row through an import or a restore is inert — and anything unreadable in the column means nobody, since a malformed grant must never open a token up
│ │ ├── choices.js # Picking on a custom system's sheet (7a3a): choicesAction ({ kind: pick | drop | level | use }) for the caller's own character, or the player the GM names; systemBuilder/picking.js says what may be done, this stores it through the sheet queue, works the numbers out again and tells every screen; a refusal goes back to the one who asked, in words. recoverySpend ({ pool, count }, R2a) spends recovery dice with a roll (sheets/recover.js), and kind recovery ticks them off; where the system leaves spending to the GM, a player is refused while the GM has it closed. restTake ({ rest }, R3a): a player rests their own character from their sheet where rests are finished on each sheet; the GM anyone's, always. ROLL FOR IT (7a5b2): { kind: 'roll', list, from } rolled on the secure dice, a dice-log line for everyone and the roll thrown in the tray; kits going ONLY IF not met worked out with the rest (7c4b); what an option gives, stored on it (7c4e); itemAction, wearing and attuning an item, the token following (7e3a); an install's limit read on the sheet as it is now (7e4a); spendAction, XP spent and the GM settling it (7f2a2); improveAction, an IMPROVE BY USE mark by hand (7f3a1); countAction (8a4a), a gear line's COUNT spent by its button or filled by RELOAD, answered by ack alone with the lines to ask between or why not (8a4b: said on the line that asked); FIRE and RELOAD worked out as any save is (8a5d1)
│ │ ├── index.js # All Socket.IO event handlers. Every write to a character sheet goes through sheets/mutate.js: rolls, damage, death saves, stabilisation, spell effort and vehicle hulls all touch sheets their owner is very likely looking at, and anything relative is worked out inside the write so two of them landing together both count. Sheet rolls and sheet attacks can come from an NPC's sheet (rollSheetOf): the GM's for any NPC, a player's for a friendly NPC the GM gave them, the log naming the NPC. requestTokenConditions answers a token's conditions with rounds left and modifiers to whoever may change them, and which conditions to anyone else A custom system's stat rolled as IMPROVE BY USE's MARKED BY says is marked (7f3a1).; requestSheetRoll also rolls a line of gear's DAMAGE or DICE (8a3b, { gear: { line, column } }); a band's condition following every sheet write (8a5d1); a battle map floor's start positions, SAVE and LOAD, the GM's alone: a save with no list refused rather than thrown, a player's token made once however many places are saved (8a9c2)
│ │ ├── index.js # All Socket.IO event handlers. Every write to a character sheet goes through sheets/mutate.js: rolls, damage, death saves, stabilisation, spell effort and vehicle hulls all touch sheets their owner is very likely looking at, and anything relative is worked out inside the write so two of them landing together both count. Sheet rolls and sheet attacks can come from an NPC's sheet (rollSheetOf): the GM's for any NPC, a player's for a friendly NPC the GM gave them, the log naming the NPC. requestTokenConditions answers a token's conditions with rounds left and modifiers to whoever may change them, and which conditions to anyone else A custom system's stat rolled as IMPROVE BY USE's MARKED BY says is marked (7f3a1).; requestSheetRoll also rolls a line of gear's DAMAGE or DICE (8a3b, { gear: { line, column } }); a band's condition following every sheet write (8a5d1); a battle map floor's start positions, SAVE and LOAD, the GM's alone: a save with no list refused rather than thrown, a player's token made once however many places are saved (8a9c2); an inventory written by updateSheetField keeps which lines are their item made unique, by whom and when (G5a)
│ │ ├── initiativeOrder.js # Where a combatant stands in the initiative order, so a drag stands when later rolls are sorted in: a hidden place only where its roll doesn't already put it (keepDrag, worked out from the roll every time, never from an earlier place, and every place no longer needed let go), a late joiner kept at the bottom (atBottom), Shadowrun's pass taking the place down with the roll (lowered); the roll stays the one shown
│ │ ├── sceneQueue.js # One scene's initiative changes one after another (found by 8i2's journey on CI): inTurn(key, work) runs work(done) once the one before has said done; other scenes never wait; work that throws or never says done lets the next go after 5 s
│ │ ├── turnAsks.js # A condition's EACH TURN rolled by the player, or the GM for an NPC (8a9a2): requestTurnAsks (every ask for the GM, a player's own for them) and turnRoll, answered by ack
Expand Down Expand Up @@ -482,6 +482,7 @@ CITY_NET/
│ │ ├── healthLevels.js # MAX HEALTH: PER LEVEL (7d5a): level 1 the full die, each level after what it kept or the average, EACH LEVEL ADDS read now, never less than 1 a level; the token's base; REROLL ALL, KEEP HIGHER, a level's gain kept outright (7d5c); ROLL TO BEAT, a pool or a die per level against the maximum, a gain of 0 kept (7d5d); each level saying how it was kept (rolled, set, cleared), level 1 set by the GM, a level averaging its own die (7d7b1); an uploaded sheet's maximum the base for its levels, and a whole upload's health (7d7c)
│ │ ├── items.js # A system's items (7e2a): slots each character has so many of, items whose features need carrying, wearing or wearing in a slot, checked; at the table (7e3a): carried by a readied or stowed gear line of its name, WEAR and TAKE OFF, ATTUNE with a slot free or the GM's anyway, END, the GM's count for one character, what works; GIVE.EXE's list of them, each with what it needs and its words (itemsGivable, 7e3b); INSTALLS (7e4a): each costing against a stat or formula, ADDING TO it up to a limit or TAKING FROM it down to one, an item needing one with a COST; INSTALL with room or the GM's anyway, REMOVE, the line kept in the gear wherever it is, the cost one of its modifiers (overlaid, never written in), each install's cost, value and limit for the sheet; checks the item types and each item's type and values (8a1); encumbrance beside them, and an install's WEIGHS (8a5a); an item's PRICE and IN SHOPS, checked, one IN SHOPS needing a price (8a7a3a)
│ │ ├── itemTypes.js # Item types (8a1; approved mockup item-types, 2026-11-14): each type's columns, NUMBER (a unit), TEXT, DAMAGE, DICE, COUNT (a button, a rest that refills it, the items it reloads from) and PICK ONE (its words), checked; GEAR, WEIGHT and PRICE, where a system makes none; an item's values checked against its type's columns; the types as the sheet is shown them; a line of gear's type, values and counts, from the item it is named like or its own; linesOf, the gear read as the sheet stores it, shared with gearRolls, gearCounts and encumbrance; SOLD AT (8a7a2), the kinds of shop a type's lines are sold at, the General Store where unsaid, and the type shelves a kind of building sells (typeShelvesAt); an item's price (its own, else its type's PRICE column) and whether it is IN SHOPS, one saved before the switch by whether it has a price (8a7a3a); a type's band on the sheet, EQUIPPED, USABLE or PACK, PACK where unsaid (bandOf, G1)
│ │ ├── uniqueLines.js # UNIQUE, the server's half (G5a; decided 2026-11-20): a gear line named like an item, of its type, with a column of its own that isn't the item's, is that item made unique; who changed each such column and when (`changed: { damage: { by, gm?, at } }`) worked out on every inventory write from what was stored, never from what the sheet sends; kept as it was, the writer's when changed, gone when put back
│ │ ├── encumbrance.js # Encumbrance (8a5a; approved mockup item-types, 2026-11-14, decision 7; shown, never enforced): COUNTED BY a NUMBER column, one of each times how many over the lines READIED or STOWED, an installed item only where its install WEIGHS; CAN CARRY a formula among the others (@capacity), what is carried read as @carried; bands as words at a share of it; the checks; each band and the word past them saying WHAT IT MEANS and naming an optional condition (8a5d1), the band as the sheet is told it; BAND_KEY, and CARRYING given CAN CARRY as the band reads it (8a5e1); the bands, the word past them and the condition's name given to the sheet for CARRYING on GEAR (8a6a)
│ │ ├── wornSums.js # What is worn, summed by column (8a5b; approved mockup item-types, 2026-11-14, decision 6): each NUMBER column of a system's own types read as @type_column, the worn items of that type together (@armor_defense), each worn item once as its line has it; no name a stat's, formula's or level's
│ │ ├── itemsImport.js # A system's items from a file (8aL3a; approved mockup items-layout, 2026-11-14): a section per type by its id or name, each column by its name or id, needs, cost where the system has an install, words, and [features]; read against the draft, matched by name, never deleting; one there under another type made it, keeping the values both have; each mistake skipped by its line, the rest going in; nothing saved. In a game with types of its own, PRICE (an item's own, where its type has no column holding it) and IN SHOPS, yes or no (8a7a3b2)
Expand Down Expand Up @@ -632,6 +633,7 @@ CITY_NET/
│ ├── system_builder_items_worn.test.js # Items at the table (7e3a): carried, WEAR and TAKE OFF, ATTUNE and END, the GM's anyway and own count, taken off still attuned, a working item's bonuses (named by it), has() and uses, what the sheet is told; over the socket, the token following; the render copy's items and slots, and a pick's features read as before (7e3b); GIVE.EXE listing them for the GM only, giving one as a stowed line that is then worn, more joining it, the notice, one not had refused
│ ├── system_builder_items_installed.test.js # Installed items (7e4a): the checks, INSTALL and REMOVE within and past the limit (ADDS TO and TAKES FROM), the GM's anyway, the cost on its stat and a formula named by the item, has(), the line gone or kept stashed, what the sheet is told, the system file, no shop buying one, over the socket
│ ├── system_builder_item_types.test.js # Item types (8a1): the list, each type and column checked, each kind's own parts, each item's type and values, what the sheet is shown, a line of gear's columns from its item or its own, the system file and back unchanged
│ ├── system_builder_unique_lines.test.js # UNIQUE on the server (G5a): which columns are unique (read loosely, none for a thing made by hand or of another type), the writer's when changed, kept as it was, gone put back, never what the sheet sends, the line found where lines moved, as stored; kept by the player's socket, the GM on a player's sheet and on an NPC's; a built-in system's written as sent
│ ├── system_builder_ranks.test.js # Ranks with names (7f1a): the lists and the stats held as them checked, a ranked stat's worth at its step (the ends holding, a formula reading it, one read after it, a loop said), a bonus moving the step, the system file, a sheet saved working it out; the rank picker on the sheet a browser draws, an NPC's, and the import by name or step (7f1c1)
│ ├── system_builder_ranks_start.test.js # Ranks making a character and levelling up (7f1c2): a ranked stat asked with its ranks and AT START, never locked as a number placed; a player's rank past AT START refused over the socket, one field or a batch, the GM's kept; an INCREASE raising a rank to its top and never stopped by a number's cap
│ ├── system_builder_spend_xp.test.js # SPEND XP's price list (7f2a1): every check, the list told to the sheet by name and with the template, a stat's price from @old and @new to UP TO, a rank's to its top, an option's on the sheet as it reads, never one held or not met; the system file carrying it, a new version naming it; XP given, uploaded and on the form where it is spent
Expand Down
Loading
Loading