mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6774] [Bug]: Regenerating or swiping a Game Mode reply applies its inventory changes again #3793
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#3793
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 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6774
Originally assigned to: @kolacheee on GitHub.
Summary
In Game Mode, a reply's
[inventory:]changes are never undone. Regenerating a reply, or switching to another swipe of it, keeps everything the earlier telling gave or took, and the new telling applies its own changes on top. A turn where the Game Master hands over a sword, regenerated twice, leaves three swords.This is not new: the browser applied every swipe's tags the same way. #6772 moves the application to the server (every tag is applied once when its reply is saved), which makes it easy to see and to fix. Ruleset sheet state does not have this problem: each message and swipe keeps its own game-state row, and a regenerated turn starts from the turn before it.
Expected behavior
Actual behavior
Every telling's changes add up. The only way back is to fix the inventory by hand.
Steps to reproduce
[inventory: action="add" item="Sword"].Environment
3ec25a04e, with #6772Logs, screenshots, or video
None needed. The stacks live in the chat's metadata (
gameInventory), which is one value per chat, while the game state is kept per message and swipe.Additional context
One possible approach, in keeping with how live sheet state works:
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: