mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #899] [Feature]: Support quantity values in Game Mode inventory tags #436
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#436
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 @cha1latte on GitHub (May 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/899
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Game Mode already has inventory add/remove tags, but there does not appear to be a concise way for the GM to add or remove multiple counts of an item in one command. If the GM needs to remove 10 coins, the workaround may be to emit the remove tag 10 times, or it may incorrectly create a separate item such as
Coin x10instead of updating the built-in quantity.Proposed solution
Add explicit count/quantity support to existing Game Mode inventory tags.
Example:
The count should update the built-in quantity for the matching item rather than creating a new item whose name includes the amount.
Alternatives considered
The current basic add/remove behavior is already possible with tags such as:
That works for single-count changes, but it is awkward for larger amounts and can lead the GM to encode the quantity in the item name instead.
Additional context
Discord source: drakonbane asked whether removing 10 coins requires printing the remove command 10 times after being told the basic add/remove tags already exist.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (May 15, 2026):
Triage note: labeling this as \
ormal-scope\ because it is a focused extension to existing Game Mode inventory tags rather than a new inventory system.\n\nThe least risky next step is to define the accepted count/quantity attribute shape and verify add/remove/update behavior against existing inventory quantities.
@SpicyMarinara commented on GitHub (May 17, 2026):
Gonna add.
@SpicyMarinara commented on GitHub (May 17, 2026):
Fixed on staging in
fd93b257: Game Mode inventory tags now accept count/quantity/qty attributes and apply stacked add/remove operations to both visible inventory and canonical player stats.