Skip to content

feat: scale load/discharge speed proportionally to capacity changes#8

Merged
rittermod merged 1 commit intomainfrom
rittermod/issue6
Jan 19, 2026
Merged

feat: scale load/discharge speed proportionally to capacity changes#8
rittermod merged 1 commit intomainfrom
rittermod/issue6

Conversation

@rittermod
Copy link
Copy Markdown
Owner

When storage capacity is modified, automatically scale the loading and discharge speeds proportionally. Example: 8000L -> 80000L (10x) means speed also becomes 10x faster.

Placeables (silos, productions, husbandries):

  • Capture original loadTrigger.fillLitersPerMS on load
  • Apply proportional speed via getMaxCapacityMultiplier()
  • Reset speed when capacity is reset to original

Vehicles (trailers, tankers):

  • Capture original dischargeNode.emptySpeed on load
  • Apply proportional speed when capacity changes
  • Reset speed when capacity is reset to original

Fixes #6

When storage capacity is modified, automatically scale the loading and
discharge speeds proportionally. Example: 8000L -> 80000L (10x) means
speed also becomes 10x faster.

Placeables (silos, productions, husbandries):
- Capture original loadTrigger.fillLitersPerMS on load
- Apply proportional speed via getMaxCapacityMultiplier()
- Reset speed when capacity is reset to original

Vehicles (trailers, tankers):
- Capture original dischargeNode.emptySpeed on load
- Apply proportional speed when capacity changes
- Reset speed when capacity is reset to original

Fixes #6
@rittermod rittermod merged commit 617746a into main Jan 19, 2026
@rittermod rittermod deleted the rittermod/issue6 branch March 2, 2026 19:46
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.

Add ability to alter discharge speed for vehicles & silos?

1 participant