mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6452] [Feature]: a ruleset cannot say that one weapon buys fewer strikes than the rest of its list (SRD Loading) #3612
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#3612
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 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6452
Originally assigned to: @kolacheee on GitHub.
combat.attacks[].strikesis one value for a whole weapon list, so a ruleset cannot say that a particular weapon buys fewer strikes than the rest. Several systems need exactly that.The case that found it
SRD 5.1's Loading property reads: "you can fire only one piece of ammunition when you use an action, bonus action, or reaction to fire it, regardless of the number of attacks you can normally make." It is on the hand, light and heavy crossbows and on the blowgun.
The 5e package declares
strikes: { field: "attacks_per_action" }on its weapon list, which is right for swords and bows. A fighter with Extra Attack who picks up a crossbow is therefore offered two strikes where the SRD allows one. The package carriesLoadingin each weapon's properties already, so the data is there; there is simply nothing the format can do with it.Why it cannot be expressed today
strikesis arulesetValueRefSchema, whose keys areconst,field,derived,abilityScore,abilityModandabilityModFromField. Every one of those reads the SHEET. None reads a column on the row being swung, and the strike count is decided once for the source rather than per row.What would fix it
A way for the count to come off the row, in the same spirit as
toHit.proficiency: { column }and the rider'srequires: { column }, which already narrow behaviour by a column of the row. Either would do:strikestake a{ column }reference, so a list can carry a per-weapon number; orstrikesCappedBy: { column }, where a truthy column holds that row to one strike whatever the source says.The second is smaller and matches the shape of the problem: Loading is a flag on the weapon, not a number.
Not urgent
The overcount is one extra shot for a character who chose a loading weapon despite the property, and the 5e package's README now states the limitation rather than letting a player assume the count is right. Filing it so the gap is recorded where somebody designing the next combat slice will find it, rather than only in a package README.
@kolacheee commented on GitHub (Sep 20, 2026):
Fixed in https://github.com/Pasta-Devs/Marinara-Engine/pull/6454 and already used.
The Engine gained
combat.attacks[].strikesCappedBy, the second of the two shapes suggested above: a boolean column of the list's own rows that holds ITS row to a single strike however manystrikesthe list buys. Loading is a flag on the weapon rather than a number, so the cap is a flag too. It needsstrikesbeside it and is refused without one, because a list that buys one strike a spend already holds every row to one. Capability API 1.32, with the install gate beside it.The 5e package uses it in https://github.com/Pasta-Devs/Marinara-Agents/pull/994: a
loadingcolumn set from the Open5e source's own Loading property, landing on exactly the four weapons that have it (hand, heavy and light crossbows, and the blowgun). Through the Engine's resolver the same fighter with Extra Attack now reads two strikes on a longsword and none in hand on a heavy crossbow.Leaving this open for the maintainer to close with whichever PR lands, rather than closing it from here.