Skip to content
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

Dynamically get base turn duration for trade routes #24

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

Conversation

JamieNyanchi
Copy link

When calculating the duration of trade routes, dynamically get the base turn duration instead of using a hardcoded value of 20. Rewrote the formula slightly to divide iSpeedCostMultiplier by 100 instead of 10, as this variable is a percentage multiplier.

This allows BTS to show the correct values when using mods that change the base duration length. I use both BTS and a mod that reduces the base duration length, and this change seems to work perfect.

Let me know if you have any comments or questions!

When calculating the duration of trade routes, dynamically get the base turn duration instead of using a hardcoded value of 20
@r3a1d3a1
Copy link

r3a1d3a1 commented Jul 2, 2024

I noticed this does some extra modifications you can see here. I haven't verified but if you're familiar, can you confirm if GetInternationalYieldModifier indexing starts at 0?

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.

2 participants