mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7563] [MERGED] feat(game): add ruleset combat, starting gear and ruleset package files #7801
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7801
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-Engine/pull/7563
Author: @kolacheee
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @kolacheee
Base:
staging← Head:feat/worlds-and-ruleset-combat📝 Commits (10+)
6938d43feat(rulesets): import a ruleset package zip, as data6da4e4cfix(rulesets): ruleset package zip review fixesca5c660test(rulesets): a damaged checksum, and a check from an untrusted host040600dtest(rulesets): trailing data, a decompression bomb and the shared parsers' own guard12935c2fix(rulesets): count a ruleset's lists before copying them out9a62669fix(rulesets): a ruleset's notes as long as shipped ones, each issue where it isf4a5e5efix(security): read archives from outside through one strict zip reader0bdfcc0fix(security): a .charx whose card is not JSON fails its import, said20fef99fix(security): zip reader review fixes3bd8f34feat(rulesets): the ruleset schema, for editors to build forms from📊 Changes
144 files changed (+14638 additions, -704 deletions)
View changed files
📝
docs/development/game-combat-ai-design.md(+5 -5)📝
docs/development/game-combat-roadmap.md(+2 -2)📝
docs/development/game-combat-rulesets-implementation.md(+2 -2)📝
docs/development/game-rulesets-and-sheets-implementation.md(+7 -6)📝
docs/development/ruleset-5e-2014.example.json(+1 -1)📝
docs/extending/ruleset.schema.json(+966 -100)➕
docs/extending/writing-creature-packs.md(+121 -0)📝
docs/extending/writing-rulesets.md(+201 -11)📝
e2e/core-flows.e2e.ts(+1 -1)➕
e2e/game-combat-height.e2e.ts(+149 -0)➕
e2e/game-combat-initiative.e2e.ts(+261 -0)➕
e2e/game-combat-sight.e2e.ts(+148 -0)➕
e2e/game-creature-art.e2e.ts(+236 -0)📝
e2e/game-hybrid-terrain.e2e.ts(+4 -1)📝
e2e/game-ruleset-fight-fixture.ts(+1 -0)📝
e2e/game-ruleset-markets.e2e.ts(+2 -0)➕
e2e/game-ruleset-package-import.e2e.ts(+105 -0)➕
e2e/game-ruleset-seller-honesty.e2e.ts(+201 -0)➕
e2e/game-ruleset-starting-gear.e2e.ts(+167 -0)📝
e2e/game-ruleset-wearing.e2e.ts(+68 -0)...and 80 more files
📄 Description
Linked issue
Part of #7469
This follows #7568 (merged), the worlds half of what was PR 8, split out so each half stays under CodeRabbit's file limit. This branch is up to date with staging and holds only the work below. Staging's avatar agents took Capability API 1.73, so this PR's versions are 1.74 through 1.79. PRs for the sheet builder, the GM rules, maps and the rest follow it, one at a time.
Why this change
What changed
combat.elevationsays what higher ground gives an attack or a shot and what a fall does (1.75).sheet.migrationssay how a sheet stored on an older layout reads on the new one, so a renamed or split value keeps its number. A rest may also share a pool group's restore across its pools (1.77).riskyor fakes that pass for another item, and a merchant can be dishonest. A fake shows as what it passes for until something reveals it on the sheet, in a fight or in a sale (1.79).<name>.ruleset.jsonfile. It holds the package manifest and the ruleset and catalog documents as base64 bytes, each listed by size and sha256. Nothing in it is compressed, and it carries no code. Import agents → Game Mode ruleset shows the same review as for a ruleset file, with each catalog's entry count, and keeps it as data underlocal/<id>. An editor can check a ruleset or a package file without saving it (POST /api/game-rulesets/check), open an installed ruleset's files (GET /api/game-rulesets/source), and read the ruleset JSON Schema the Engine publishes (GET /api/game-rulesets/schema,docs/extending/ruleset.schema.json).docs/extending/writing-creature-packs.md, covers the format.Validation
pnpm checkpasses locallyCONTRIBUTING.mdf8d34df3f:pnpm checkgreen, and thecapability(19),game-ruleset(59),package(7),creature(4),import(13),world(28),rate-limit(2),avatar(10),professor-mari(18),open-issuesandzip-readerregression lanes pass. In thecombatlane 25 of 26 pass within the runner's 30-second cap;ruleset-combat-directortakes about 31 seconds in this container and passes with a longer cap.game-combat-sight,game-combat-height,game-combat-initiative,game-ruleset-starting-gear,game-ruleset-seller-honesty,game-ruleset-package-import,ruleset-sheet-migrationsandgame-creature-art. The ruleset and creature specs were rerun after the renumber.dad362f7a:pnpm check, thegame-ruleset-packages,game-ruleset-starting-gear,world-save-state,creature,capability,avatarandprofessor-marilanes, and thegame-creature-art,game-combat-initiative,game-combat-sight,game-combat-height,game-terrain-restore,game-hybrid-terrainandgame-world-journale2e specs.Manual verification notes
Changed test expectations
No maintainer asked for these; each follows a behaviour change this PR makes, and the check it replaces is kept or tightened:
generatorVersion1 to 2 (e2e/game-terrain-restore.e2e.ts,hybrid-terrainandhybrid-terrain-routeregressions): height changes what the battlefield generator makes, so boards saved by the old generator are rebuilt. The tests still check that the version is stored and that a restore keeps it.capability-package-lifecycle): staging's avatar agents took 1.73, so this PR's versions are 1.74-1.79 and the supported version is 1.79. The same features are checked at their new numbers.combat-directorregression: bare test boards clear generated height so the distance checks still measure flat ground. The Counterspell-through-a-wall assertion is replaced because a wall now blocks sight: Fireball can no longer be cast through it, and the test checks that the cast is refused and nothing is spent.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/extending/writing-creature-packs.mdis new.docs/extending/writing-rulesets.mdand severaldocs/developmentpages changed, anddocs/extending/ruleset.schema.jsonis regenerated. The translations are tracked on #7512.UI evidence (if applicable)
No screenshots attached. The e2e specs above drive these screens.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.