BTS icon indicating copy to clipboard operation
BTS copied to clipboard

Dynamically get base turn duration for trade routes

Open JamieNyanchi opened this issue 1 year ago • 1 comments

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!

JamieNyanchi avatar Nov 12 '23 03:11 JamieNyanchi

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?

r3a1d3a1 avatar Jul 02 '24 17:07 r3a1d3a1