mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8170] [MERGED] feat(rulesets): let a ruleset name its combat styles (combat.styles, 1.379) #8138
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#8138
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/8170
Author: @kolacheee
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-qbf4fp📝 Commits (6)
888a4d3feat(rulesets): let a ruleset name its combat styles (combat.styles, 1.379)2b1389cdocs(rulesets): regenerate ruleset.schema.json for combat.styles42bf201Merge remote-tracking branch 'origin/staging' into claude/project-thread-qbf4fpd9805d9fix(rulesets): a combat.styles fallback is always a style the client draws7fdd777docs(rulesets): the published schema says combat.styles names each style once, one built in72b79c9docs(rulesets): read the schema's built-in combat styles off the shared constant📊 Changes
20 files changed (+458 additions, -71 deletions)
View changed files
📝
docs/extending/ruleset.schema.json(+16 -0)📝
docs/extending/writing-rulesets.md(+22 -1)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+16 -5)📝
packages/client/src/components/game/GameSetupWizard.tsx(+53 -36)📝
packages/client/src/components/game/GameSurface.tsx(+10 -2)📝
packages/client/src/features/chat-settings/sections/CombatStyleSection.tsx(+18 -5)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/server/src/routes/chats.routes.ts(+17 -0)📝
packages/server/src/routes/encounter.routes.ts(+18 -14)📝
packages/server/src/routes/game.routes.ts(+12 -1)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+4 -0)📝
packages/server/src/services/generation/game-gm-prompt-runtime.ts(+6 -1)➕
packages/shared/src/features/rulesets/combat-styles.ts(+46 -0)📝
packages/shared/src/index.ts(+1 -0)📝
packages/shared/src/schemas/capability-package.schema.ts(+3 -1)📝
packages/shared/src/schemas/ruleset.schema.ts(+20 -0)📝
packages/shared/src/types/game.ts(+4 -0)📝
scripts/generate-ruleset-schema.mjs(+14 -0)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+7 -5)➕
scripts/regressions/ruleset-combat-styles.regression.ts(+169 -0)📄 Description
Linked issue
Closes #8169
Why this change
What changed
combatblock can now carry an optionalstyleslist of combat style ids, for example["tactical"]. It takes up to 8 ids, each listed once. Leaving it out allows every style, as before.combat.distanceand the style is Tactical.combat_style_not_allowed).gameCombatStylein the metadata PATCH to such a style is refused.combat.stylesmust declare capabilityApi 1.379.rulesetCombatStyles,rulesetAllowsCombatStyleandrulesetCombatStyle. A sharedGAME_COMBAT_STYLE_ID_PATTERNis now used by both the setup schema and the ruleset schema.writing-rulesets.mdexplains which styles a game may play.Validation
pnpm check: format, lint and type checks passed locally. The build and full regression run are running locally now.CONTRIBUTING.mdManual verification notes
scripts/regressions/ruleset-combat-styles.regression.tscovers:capability-package-lifecycle,ruleset-sheet-wordsandcombat-style-registry, each with its minor updated.Docs and release impact
docs/extending/writing-rulesets.mdUI evidence (if applicable)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.