mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6607] [Feature]: Game Mode: let a ruleset reaction name the moment it waits for #3700
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#3700
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 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6607
Originally assigned to: @kolacheee on GitHub.
What problem does this solve?
A Game Mode ruleset can mark a catalog entry as a reaction with
mechanics.reaction: true, but that only says the entry is not taken on a turn. It does not say what the entry is waiting for, so the Engine has nowhere to offer it. Every entry marked that way sits on no menu at all.The 5e package shows the cost: it ships Counterspell, Hellish Rebuke, Shield and Feather Fall as reactions, and none of them can ever be cast in a fight.
The window a reaction would be answered in exists as of #6525. What is missing is a way for an entry to say which moment it belongs to.
Proposed solution
Let
mechanics.reactionbe an object that names the moment, as well astrue:onis a closed list of the moments the Engine notices.aimedis before something lands on the entry's holder;harmedis after something has hurt them. Naming one puts the entry on that window's menu.atissource(whoever caused the moment, filled in rather than picked) orchosen(the entry's own targets, and the holder picks).cancelsstops what the window was holding from happening at all. Only anaimedreaction may say it, because a moment that has already happened cannot be called off.What the held action cost is paid before anybody is asked, so cancelling it stops it from happening rather than from having been bought. An entry that says only
trueorfalsebehaves exactly as it does today. Packages that name a moment would need a new Capability API minor, because an older Engine refuses the whole strict catalog file if it cannot read the object.Alternatives considered
Model each reaction spell by name. Rejected: rulesets must never be 5e-shaped. A moment is something any system has; a spell name is something one system has.
Let a reaction change a number on what it answers, so Shield's "+5 to your AC until your next turn" works. Left out: that is a condition question rather than a reaction one. Conditions are a closed list of names, not modifiers, so "harder to hit until your next turn" is not something a ruleset can say whether a reaction says it or anything else does.
Nest windows, so a counter can itself be countered. Left out: the fight keeps one window rather than a stack, and the bounded stack described in
docs/development/game-combat-rulesets-implementation.mdis the upgrade path once something needs it.Additional context
Slice C5c of the ruleset combat arc. Of the four 5e reaction spells, Counterspell and Hellish Rebuke become expressible; Shield needs numeric condition modifiers and Feather Fall needs falling, neither of which the Engine has.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: