[GH-ISSUE #6452] [Feature]: a ruleset cannot say that one weapon buys fewer strikes than the rest of its list (SRD Loading) #3612

Closed
opened 2026-10-21 06:05:05 +07:00 by bsakaguchi · 1 comment
Owner

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[].strikes is 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 carries Loading in 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

strikes is a rulesetValueRefSchema, whose keys are const, field, derived, abilityScore, abilityMod and abilityModFromField. 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's requires: { column }, which already narrow behaviour by a column of the row. Either would do:

  • let strikes take a { column } reference, so a list can carry a per-weapon number; or
  • add a cap beside it, such as strikesCappedBy: { 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.

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[].strikes` is 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 carries `Loading` in 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 `strikes` is a `rulesetValueRefSchema`, whose keys are `const`, `field`, `derived`, `abilityScore`, `abilityMod` and `abilityModFromField`. 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's `requires: { column }`, which already narrow behaviour by a column of the row. Either would do: - let `strikes` take a `{ column }` reference, so a list can carry a per-weapon number; or - add a cap beside it, such as `strikesCappedBy: { 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.
Author
Owner

@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 many strikes the list buys. Loading is a flag on the weapon rather than a number, so the cap is a flag too. It needs strikes beside 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 loading column 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.

<!-- gh-comment-id:5751426357 --> @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 many `strikes` the list buys. Loading is a flag on the weapon rather than a number, so the cap is a flag too. It needs `strikes` beside 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 `loading` column 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3612
No description provided.