mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #994] [MERGED] feat(ruleset-5e): a turn of 5e plays like 5e (0.7.0, Capability API 1.29) #1233
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1233
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/994
Author: @kolacheee
Created: 9/20/2026
Status: ✅ Merged
Merged: 9/20/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-5e-turn📝 Commits (10+)
347a91bfeat(ruleset-5e): a turn of 5e plays like 5e (0.7.0, Capability API 1.29)c697b40feat(ruleset-5e): a creature's blow carries its second helping of damage, and no doc still says it cannot7db6fd2fix(ruleset-5e): the threat scale counts a blow's second clause, and a scaled feature says it reads the total level1b8b0e5docs(ruleset-5e): no em dashes in the package changelog headings01c9567docs(ruleset-5e): say that Loading does not cap a strike count1d04d7ddocs(ruleset-5e): record why the three shapes the review keeps flagging are what they areabfdeb9fix(ruleset-5e): a charm lifts when the charmer goes down7674dbbfeat(ruleset-5e): a crossbow fires once however many attacks you haveefab36bstyle(rulesets): format the 5e catalog builder and name 1.32 in the READMEe8a6c0efix(rulesets): ask for the Engine that reads what a turn can do📊 Changes
16 files changed (+828 additions, -303 deletions)
View changed files
➕
artifacts/ruleset-5e-2014-0.7.0.zip(+0 -0)📝
catalog/preview/catalog.json(+12 -12)📝
catalog/preview/notes.json(+6 -0)📝
catalog/preview/v2/catalog.json(+12 -12)📝
catalog/preview/v2/notes.json(+6 -0)📝
catalog/preview/v3/catalog.json(+12 -12)📝
catalog/preview/v3/notes.json(+6 -0)📝
packages/ruleset-5e-2014/CHANGELOG.md(+15 -6)📝
packages/ruleset-5e-2014/README.md(+35 -19)📝
packages/ruleset-5e-2014/catalogs/creatures.json(+154 -189)📝
packages/ruleset-5e-2014/catalogs/features.json(+36 -4)📝
packages/ruleset-5e-2014/manifest.json(+9 -9)📝
packages/ruleset-5e-2014/ruleset.json(+129 -21)📝
scripts/build-5e-srd-catalogs.mjs(+233 -19)📝
scripts/ruleset-package-checks.mjs(+87 -0)📝
scripts/tests/ruleset-package.regression.mjs(+76 -0)📄 Description
Linked issue
Closes #993. Uses the Engine keys merged as https://github.com/Pasta-Devs/Marinara-Engine/pull/6419 (Capability API 1.29).
Why this change
What changed
Package 0.7.0, on Capability API 1.32.
strikes, read off a newattacks_per_actionsheet field. The sheet has one Level and no notion of class, so this is the player's number to set rather than a table the Engine could read off anything; a character without the feature leaves it at 1 and the fight is the one it always was.rideron the rogue's own feature:on: "hit",oncePer: "turn",whenadvantage OR an ally beside the target, narrowed byrequiresto a newfinesse_or_rangedweapon column. Its dice are built from the Rogue table's own Sneak Attack column, not typed, so they cannot drift from the source: 1d6 at 1st up to 10d6 at 19th.free) and hands an action back (gives), capped where it lands so it cannot be banked.standardputs Dash, Disengage and Hide there for the bonus budget.cannot-target-sourceandendsWhenSourceDown; frightened gainscannot-approach-sourcewithwhileSourceInSightnaming only the disadvantage, because the SRD gates that half on line of sight and the other half not at all; restrained gainsown-saves-disadvantagenarrowed bysavesto Dexterity; petrified gainsresist-all.combat.standardEffects.dodge.saves, the other half of the same SRD sentence.loadingcolumn, set from the source's own Loading property and landing on exactly the four weapons that carry it, and the combat block names it asstrikesCappedBy. The same fighter readsstrikes=2on a longsword and none in hand on a heavy crossbow, through the Engine's own resolver.oralternative is still a choice a fight cannot make and stays a trait, which is the 61 the README now counts separately. The threat scale's own damage measurement counts the clauses too, which raises its floors: CR 12 to 15 collapse to a single value because Erinyes is the only creature measured there once casters are excluded, the same sparse-tier behaviour CR 30 already had.ruleset-package-checks.mjslearned the five condition effects 1.29 added, so a typo in any of them still stops the build.Two places where the Engine's reference example is not good enough for a shipped package
finessecolumn, which silently drops the "or a ranged weapon" half of the rule. One column cannot be two questions, so this addsfinesse_or_ranged, set by the build from the source's own Finesse property and its ranged weapons. It lands on exactly the thirteen weapons the SRD qualifies, with thrown melee such as Handaxe and Javelin correctly excluded.endsWhenSourceDownis the one moment a fight can see, and every way a combatant goes down runs through a single path in the resolver. The README records it as a deliberate departure rather than letting it read as a quotation.Package and security impact
ruleset-5e-2014(0.6.0 to 0.7.0).finesse_or_ranged, so Sneak Attack will not come off them until the row is picked again or the new box is ticked.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Commands run locally by the agent:
npm run build:5e-srd-catalogs -- --source <open5e srd-2014>,npm run build:rulesets, andnpm run check(0 errors; the 895 warnings are the repo's existing ones). The converter was run twice and the second run produced no diff, so the output is reproducible, and it was run once against the UNCHANGED source first to prove the fixtures still match what 0.6.0 shipped.Four local CodeRabbit sweeps against
staging, which went 6, 6, 3 and then the same 3. Everything real was fixed: the threat scale was measuring damage without the new clauses, and a feature whose mechanics scale was not carrying the package's multiclass note. Three digest findings were false positives, checked by recomputing every SHA-256 against the real bytes (all five are correct 64-character digests). The last three are the same three every pass, because all three are limitations rather than mistakes, and each is now written down in the code where the next reader will be standing:own-attacks-disadvantageineffectsAND in the sight gate. The gate names the subset to DROP when the source is out of sight, not the ungated remainder. Moving it out, which the review asked for twice, makes the Engine refuse the file with "This condition does not have the effect ... to gate"; I checked that against the real parser rather than arguing it from the schema.whenis a closedadvantage/ally-adjacentpair. Keeping the branch is the lesser error: dropping it would deny the rogue its commonest trigger, where keeping it only over-grants when the rogue attacks at disadvantage. Stated in the README.One further limitation the review found is now fixed rather than documented. SRD Loading holds a crossbow to one shot "regardless of the number of attacks you can normally make", and
strikeswas one value for a whole weapon list. https://github.com/Pasta-Devs/Marinara-Engine/issues/6452 asked the Engine for a per-row cap, https://github.com/Pasta-Devs/Marinara-Engine/pull/6454 added it asstrikesCappedByat Capability API 1.32, and this package now uses it: aloadingcolumn set from the source's own property, landing on exactly the four weapons that have it. The README entry that described the gap is gone.Checked against the Engine's real parser rather than only the repo's own checks, by importing
packages/sharedand the server's install gate from Enginestagingat 4398962ff and feeding it this package:ruleset.jsonaccepted at version 7,catalogs/spells.json(319 entries),catalogs/features.json(208) andcatalogs/creatures.json(319) all accepted, the install gate refusing the package at 1.28 with "A ruleset that says what one turn can do requires schemaVersion 2 and capabilityApi 1.29 or newer" and installing it at 1.29.And played, not just parsed. A scripted encounter was built from this package's own catalogs with a 5th-level rogue holding a rapier and Sneak Attack and a 5th-level fighter holding a longsword and Action Surge:
{ label: "Sneak Attack", on: "hit", when: ["advantage", "ally-adjacent"], oncePer: "turn", amount: 3d6 }, which is the Rogue table's own number at 5th level, and itsactionslist resolves to the rapier row alone, so the narrowing works.standard:dash@bonus,standard:disengage@bonusandstandard:hide@bonusbeside the ordinary action-budget ones: Cunning Action, and exactly the three actions the SRD allows.strikesLeft: 1on the combatant and emits astrikesevent, and the weapon is offered again: Extra Attack.Still to verify by hand:
Documentation impact
The package CHANGELOG carries the player-facing notes, including the one migration step. No repository README change: the catalog entry and its release notes are generated.
UI evidence (if applicable)
None: this is package data. Everything it adds is drawn by the Engine's existing combat menu, log and character sheet.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.