Skip to content

Keep placeable load speed in sync with capacity overrides - #25

Open
user01010111 wants to merge 1 commit into
rittermod:mainfrom
user01010111:agent/fix-placeable-load-speed-refresh
Open

Keep placeable load speed in sync with capacity overrides#25
user01010111 wants to merge 1 commit into
rittermod:mainfrom
user01010111:agent/fix-placeable-load-speed-refresh

Conversation

@user01010111

Copy link
Copy Markdown

Placeable load speed was recalculated from only the capacity fields passed to the current update. On storage with more than one override, changing or resetting one fill type could ignore a larger override that was still active.

Returning a capacity to its original value also produced a multiplier of 1.0, which the speed update treated as a no-op. This could leave the previous faster speed in place. Runtime changes to husbandry-food capacity did not refresh load speed either.

This adds one load-speed refresh path that uses the complete stored override state. It restores the original speed when no expanded capacity remains and runs after resets and husbandry-food changes as well as normal storage updates. The existing policy of not scaling below the original speed is unchanged.

Tested with Lua syntax checks, XML validation, and local checks covering multiple fill-type overrides, specific resets, reset-all, shared storage, husbandry food, disabled scaling, and load-time fallback data.

This has not been tested in a live game session.

@user01010111
user01010111 marked this pull request as ready for review July 29, 2026 05:17
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.

1 participant