Skip to content

Fix for possible zombie items from MakePermanent action #2745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TwelveEyes
Copy link

@TwelveEyes TwelveEyes commented Jun 5, 2025

This was somewhat addressed in the past, but it only resyncs permanency between the virtual quest item and the inventory item with item transfer (e.g. foe has quest items; those quest items are made permanent; foe is killed and player loots those quest items). It doesn't cover items already in the player inventory when a MakePermanent action happens, potentially leading to a desynced state — the dreaded "zombie" item.

This workaround should fix the issue in a low impact way by resyncing permanency when the inventory window is setup and when it refreshes.

Changed to be much cleaner, though it won't fix bugged items already made permanent in saves retroactively.

Fixes #2720

@TwelveEyes TwelveEyes marked this pull request as draft June 5, 2025 21:05
@TwelveEyes TwelveEyes force-pushed the fix-make-permanent-desync branch from 5083d3e to 942f2af Compare June 5, 2025 21:44
@TwelveEyes TwelveEyes marked this pull request as ready for review June 5, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quest action "make X permanent" refuses to trigger in S0000503
1 participant