mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6361] [Feature]: Game Mode: battles resolved by the ruleset's own math (data-driven combat kinds, design proposal) #3557
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#3557
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?
Originally created by @kolacheee on GitHub (Sep 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6361
Originally assigned to: @kolacheee on GitHub.
What problem does this solve?
The combat bridge (#6348) lends a ruleset sheet to a battle, but the battle still runs on Marinara's own model: about 60 health, damage as a multiplier on an attack stat, no attack rolls and no saving throws. The sheet's real numbers (8 hit points, Fireball 8d6, a Dexterity save for half, Armor Class 15) only exist outside the fight, and health has to travel as a share of the maximum. People who pick a real system want the fight itself to be that system, with its own numbers on screen.
This is a design proposal that needs the maintainer's answer before anyone builds it, because
docs/development/game-combat-rulesets-implementation.mdalready reserves this ground: a ruleset pin per encounter with a closed id list (engine-legacy | traditional | 5e-2014 | v20), and a5e-2014combat adapter written in Engine TypeScript as its slice 5, behind groundwork slices 1 to 4. The sheets plan (§ Relationship to the combat handoff) asked whether that closed registry could be resolution KINDS and combat ADAPTERS instead of ruleset ids, and that question is still open.Proposed solution
The same principle as checks (
dice-sum,dice-pool) and sheets: the Engine knows a small closed set of combat kinds, a ruleset fills one in with data, and a community system gets real combat without code. Nothing is hard-wired to 5e. The first kind,attack-vs-defense:battle.healthpool in the sheet's own numbers. No share conversion: the combatant's hit points are the pool.acfield). Natural results are declared the wayresolution.naturalsdeclares them.mechanics.amountdice (or the attack row's damage dice) plus a declared modifier, typed bydamageType, with optional resist, vulnerable and immune lists on a stat block.mechanics.savealready names a sheet save andonSuccess: none | half | negates. The difficulty is a value reference (5e: the derived spell save DC), and the defender rolls with the ruleset's ownresolutionrules.mechanics.costspends the real pools throughapplyRulesetSheetOpDURING the fight, so there is no write-back step: a battle edits live state the way the Game Master's[sheet:]commands do, per turn, with the same rewind behaviour.perCostStepfinally means something (paying more for a bigger effect).dice-poolresolution kind, which is built and waiting for review), roll-under, opposed rolls.Enemies need stat blocks on the ruleset's scale:
srd-2014data the 5e package already builds from (CC-BY-4.0) carries the SRD creatures, so the 5e package can ship them the way it ships spells.Presentation: Classic and Tactical show the real numbers ("hits AC 15", "8d6 fire, Dexterity save for half: 14"). Tactical converts the ruleset's distance unit to cells with the catalog's
units.distance.perCell, which the bridge already does. Reaction entries (Shield, Counterspell) land on the combat director's reaction windows. The interim bridge switches itself off for a ruleset the moment it declares a combat kind.Suggested slices: C1 the
combatblock schema and a pure resolver with regressions on 5e and on a second non-d20 example, no UI; C2 the encounter pin, bestiary catalogs, the threat tier clamp and the 5e package's SRD creatures; C3 Classic on real numbers, spending live pools per action; C4 Tactical ranges and areas in the ruleset's unit; C5 conditions, concentration and reactions on the combat director.What needs an answer before any code:
5e-2014adapter in TypeScript, or alongside it?Alternatives considered
Additional context
Part of #6314. Builds on #6345 (catalogs and their
mechanicsblock, which already carrieskind,range,area,amount,damageType,attackRoll,save,cost,perCostStep,concentration,reaction) and #6348 (thebattleblock and the bridge). I would build it, slice by slice, once the shape is agreed.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@kolacheee commented on GitHub (Sep 19, 2026):
Decision recorded (kolacheee, 2026-09-19), so the three open questions are settled and work can start:
5e-2014adapter reserved bydocs/development/game-combat-rulesets-implementation.md. The Engine gets a small closed set of combat kinds; a ruleset fills one in with data. Nothing in the Engine is hard-wired to 5e. The goal for the first kind is the truest 5e combat the Engine can run: initiative, attack rolls against a defense with advantage, disadvantage and critical hits, typed damage with resistances, vulnerabilities and immunities, saving throws against a difficulty, slots and paying more for a bigger effect, concentration, conditions, the action economy (action, bonus action, reaction, movement), opportunity attacks, temporary hit points, death saves, and stat blocks for enemies.The interim combat bridge (#6348) keeps working for a ruleset until that ruleset declares a combat kind, and then switches itself off for it. A design record comes first, and the plan documents will be updated in the first PR of the arc.