mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6871] Game Mode: ammunition and reloading for weapons in ruleset fights #3854
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#3854
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 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6871
Originally assigned to: @kolacheee on GitHub.
What happens now
A Game Mode ruleset's weapons fight as items (#6855), but nothing a weapon shoots is ever used up. A hunting bow fires forever whether or not its holder carries a single arrow, and the arrows in the bag never go down. A firearm has no loaded count and never needs reloading, so a six-shot pistol and a bow are the same weapon in a fight. Nothing a ruleset fight does changes the inventory: after a fight, whatever was shot is still all there.
What should happen
Slice I5-3 of the ruleset items plan (Capability API 1.57):
attackmay say what it shoots:ammo, the tag of a carried item it draws from (perAttackof it each attack, 1 by default). It is offered only while its holder carries enough, and it draws from the first stack with that tag in the holder's bag.recoverof what was shot comes back (a share, rounded down), as 5e's half of the arrows.clip, with itsmaxand the budget a reload spends. Attacks spend from what is loaded, and a Reload option on the fight menu fills it, from the ammunition it draws where it draws any. The count is kept on the inventory stack, so it lasts from one fight to the next.Plan: slice I5-3 in the ruleset items plan, split on 2026-09-29 so the part that writes to the inventory ships on its own. Follows #6857. Fire modes, off-hand attacks, a damage floor and conditions applied on a hit follow as I5-4.