Fix/trade manager resupply sync#442
Merged
themrdemonized merged 2 commits intothemrdemonized:prfrom Feb 28, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some mods rely on trade_manager.tm[id].resupply_time that is lost after trader is re-init - https://github.com/Tosox/STALKER-Anomaly-gamedata/blob/v1.5.2/gamedata/scripts/trade_manager.script#L44
So we need to restore it in order for trader to know when their last resupply was
Mods such as:
https://www.moddb.com/mods/stalker-anomaly/addons/trader-destockifier
https://github.com/ahuyn/anomaly-dependencies/blob/master/trader_autoinject/gamedata/scripts/trader_autoinject.script#L51
Issue on gamma discord - https://discord.com/channels/912320241713958912/1142498532444610581