mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #959] [MERGED] feat(ruleset-5e-2014): 0.5.0, 5e combat is played: the combat block, the SRD bestiary and a measured threat scale #1210
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#1210
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/959
Author: @kolacheee
Created: 9/19/2026
Status: ✅ Merged
Merged: 9/19/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-5e-combat📝 Commits (10+)
51dd6c8feat(ruleset-5e-2014): the combat block, the SRD bestiary and a measured threat scale53a938bfeat(ruleset-5e-2014): 0.5.0 ships the combat block, the bestiary and the checks that hold thembbd6b65fix(ruleset-5e-2014): a creature applies only what its own saving throw brings138aa9abuild(ruleset-5e-2014): the build report says what each trait stands in forbc5ed6adocs: the repository guides cover the combat block and bestiariesdb421b5docs(ruleset-5e-2014): the coverage summary says the fight is described but not played79c834cbuild(ruleset-5e-2014): the build report counts what the spell entries can resolve699f77afix(ruleset-5e-2014): the threat scale measures damage from creatures that swing, and never allows less as the rating rises08eb4c9fix(ruleset-5e-2014): a creature that cannot walk moves at its fastest printed speed, and two SRD gaps are stated from the page2614ca8refactor(ruleset-5e-2014): the converter reads the Engine's limits from the package checks instead of keeping a second copy📊 Changes
22 files changed (+22075 additions, -153 deletions)
View changed files
📝
CONTRIBUTING.md(+4 -0)📝
README.md(+1 -1)➕
artifacts/ruleset-5e-2014-0.5.0.zip(+0 -0)📝
catalog/preview/catalog.json(+20 -14)📝
catalog/preview/notes.json(+6 -0)📝
catalog/preview/v2/catalog.json(+20 -14)📝
catalog/preview/v2/notes.json(+6 -0)📝
catalog/preview/v3/catalog.json(+20 -14)📝
catalog/preview/v3/notes.json(+6 -0)📝
packages/ruleset-5e-2014/CHANGELOG.md(+9 -0)📝
packages/ruleset-5e-2014/README.md(+157 -20)➕
packages/ruleset-5e-2014/catalogs/creatures.json(+18019 -0)📝
packages/ruleset-5e-2014/catalogs/features.json(+1 -1)📝
packages/ruleset-5e-2014/catalogs/spells.json(+180 -41)📝
packages/ruleset-5e-2014/locales/en.json(+1 -1)📝
packages/ruleset-5e-2014/manifest.json(+17 -11)📝
packages/ruleset-5e-2014/ruleset.json(+417 -5)📝
scripts/build-5e-srd-catalogs.mjs(+1915 -29)📝
scripts/build-ruleset-packages.mjs(+5 -0)📝
scripts/ruleset-package-checks.mjs(+486 -2)...and 2 more files
📄 Description
Pull request
Linked issue
Closes #952
Why this change
combatblock and its resolver (Capability API 1.26, Pasta-Devs/Marinara-Engine#6372), bestiaries, creature actions and the threat scale (Capability API 1.27, Pasta-Devs/Marinara-Engine#6377), the fight on the server (Pasta-Devs/Marinara-Engine#6382) and the fight on the battle screen (Pasta-Devs/Marinara-Engine#6386) are all merged to the Engine'sstaging. What was missing is something 5e for it to play. This release is that data.combat, with the combat director on (new games have it on), fights by it. Socoverage.combatbecomes true in this release, and every sentence that said "battles still use Marinara's combat" now says what a battle does and, plainly, what it does not do yet.What changed
ruleset-5e-20140.5.0, Capability API 1.27, rulesetversion5,builtAgainst.engineCommite3599679043c0070b995f9be5d5aca85edacbdb5 (the merge of the battle screen). Still pure data: no code, no permissions, no agent.combatblock, generated onto the package's own sheet: hit points with temporary points, armor class, initiative, the d20 attack roll with advantage, disadvantage, the natural 1 and 20 and doubled dice on a critical hit, the action, bonus action and reaction (which comes back on the holder's own turn), weapons as attacks, spells and features as abilities with the spell attack bonus and save DC, the standard actions, the SRD conditions as far as the Engine's closed effect list can say them, concentration (Constitution save, DC 10 or half the damage), death saves, the thirteen damage types.catalogs/creatures.json: 319 SRD creatures built from the Open5e data. Of the 325 source records, four print no action a fight could resolve (listed by the build), and two are the SRD's alphabetical index entries ("Elf, Drow" for Drow, "Gnome, Deep (Svirfneblin)" for Deep Gnome), left out through a small alias map whose guards fail the build if an alias ever stops being a stub.thunderon 532 of 542 rows and carry a wrong or missing flat bonus on most; their to-hit numbers agree with the text on every row. The build reports every disagreement.sequence, alternatives included (139 of the 142 printed Multiattacks, from nine generic sentence shapes; a creature that prints "three melee attacks or two ranged attacks" carries both; the three that stay single attacks say something a sequence cannot: a second strike only if the first hits, 1d4 strikes, a rider "if it can"), recharge and per-day uses are carried, legendary actions become the Engine's neutral signature actions with three points, hit dice are shipped as dice so a fight rolls them.scripts/ruleset-package-checks.mjsgainsassertRulesetCombatandassertRulesetCreatures(the Engine's own rules restated, never stricter), with regression cases for each refusal. The converter reads the Engine's limits and dice pattern from there instead of keeping a second copy.coverage.combatis true, and the coverage summary, the manifest description, the README, the package README and its changelog say what a player gets (a battle fought with attack rolls against Armor Class, advantage and disadvantage, criticals, saves, conditions, concentration, death saves, spell slots spent off the sheet, against the bestiary or an opponent built on the measured scale) and the ceilings: no positions or movement, no reactions, legendary actions carried with nothing yet opening the window they are spent in, one damage roll per action, one Level field, spellcasting monsters as traits, Extra Attack, Action Surge, Cunning Action and Sneak Attack not resolved yet. Thebattleblock stays for a game without the combat director, and the past changelog entries are left as the history they are.ruleset.json, the manifest hashes, the locale,artifacts/ruleset-5e-2014-0.5.0.zipand the preview overlay entries. The package stays staging-only.Package and security impact
ruleset-5e-2014stagingat or after e931f956c). An older Engine refuses the update cleanly and keeps 0.4.0. An Engine that has 1.27 but not the battle screen yet (before e35996790) installs it and simply keeps fighting the old way.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Commands run locally by the agent, all passing:
node scripts/validate-catalog.mjs,node scripts/tests/ruleset-package.regression.mjs,node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locale-keys.mjs,node scripts/validate-package-locales.mjs, the generatedAt determinism and release notes regressions,npm run check(0 errors),git diff --check, the converter run twice with byte-identical output, andnpm run build:rulesets.Six complete local CodeRabbit reviews were run before opening (3, 1, 2, 1, 1 and 1 findings). What they changed: creatures that cannot walk shipped with speed 0 (they now move at their fastest printed mode and carry the printed speed line); the SRD's two index entries had been shipped as second creatures (they are left out through the alias map, and an earlier attempt to "fill their gaps" with overrides was removed, because it had made them full duplicates); 22 of the 24 Multiattacks that fell back to single attacks were honestly parseable and now are sequences, which also turned up two WRONG sequences (the behir had lost its Constrict, the gibbering mouther had a one-strike "sequence"); the package checks mirror the Engine's newer rules (real dice, a sequence may not name a points-bought action, a written repeat count is 1 to 10). One finding was declined: the Ancient Green Dragon's claw ships 4d6 + 8 because that is what the SRD prints for that one dragon, and the README says so.
Proof against the Engine's own code (its shared package built from the merged commit):
parseRulesetDefinitionacceptsruleset.json,parseRulesetCatalogFileaccepts all three catalog files and the inline weapons with zero issues. A scripted fight through the Engine's resolver: a level 5 fighter's Longsword at +7 for 1d8+4 off the sheet, Second Wind as a bonus action, a natural 20 doubling the dice;findRulesetCreaturefinds all 319 creatures by their printed name with no two answering to the same one, finds "Drow" and "Deep Gnome (Svirfneblin)", and finds nothing for "Elf, Drow"; Goblin AC 15, 2d6, Scimitar +4 for 1d6+2; Ogre 7d10+21 averaging the printed 59; Adult Red Dragon 19d12+133, three strikes for one action at +14, Fire Breath DC 21 Dexterity for 18d6 on recharge 5, three signature points. The Medusa's melee Multiattack resolves as one snake hair strike and two shortsword strikes for one action, with its ranged alternative on the same menu. The Engine'sclampRulesetStatBlockagainst the shipped scale: an absurd proposal is allowed more at every one of the 29 ratings than at the one below (19.5 damage a round at rating 1, 36.5 at 5, 66 at 12, 144 at 30). Every guard in the converter was mutation-tested against a copy of the fixtures.Still to verify by hand:
battleblock.Documentation impact
The root README row, the package README and changelog, and
CONTRIBUTING.mdare updated. The Engine side is documented in Pasta-Devs/Marinara-Engine#6372 and Pasta-Devs/Marinara-Engine#6377 (the authoring guide's Combat and Creatures sections).UI evidence (if applicable)
None: the package ships no UI.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.