Irkalla
ENTP POWWWEEEEEER
For example, I'm trying to change a tile's movement cost by hooking into Plot.MovementCost and returning what I want the movement cost to be.
In this case, I'm asking the method to return 0.334 if Machinery is researched (0.334 supports units with up to 50 something moves before it starts short-changing them) and 0.501 otherwise (0.5 is a repeating decimal that gets rounded down in binary, should support units with up to 250 moves.)
I'm also returning true for Plot.IsTradeRoute() to try and make certain tiles for a trade route.
Will either of these affect gameplay, or will they just affect UI stuff that relies on that?
On a side note, I'm worried about float precision and it giving units extra moves either because of binary repeating decimals, or because they have an infinitesimal amount of moves left (such as 0.000000000000000000000000001.) Anything to ease my worries?
In this case, I'm asking the method to return 0.334 if Machinery is researched (0.334 supports units with up to 50 something moves before it starts short-changing them) and 0.501 otherwise (0.5 is a repeating decimal that gets rounded down in binary, should support units with up to 250 moves.)
I'm also returning true for Plot.IsTradeRoute() to try and make certain tiles for a trade route.
Will either of these affect gameplay, or will they just affect UI stuff that relies on that?
On a side note, I'm worried about float precision and it giving units extra moves either because of binary repeating decimals, or because they have an infinitesimal amount of moves left (such as 0.000000000000000000000000001.) Anything to ease my worries?