While testing a spell which should increase movement by +1 for every X air shards, I discoverd a strange behavior.
a) 1 air shard. Unit has movement 2, increased by air shards/10 = 0.1.
The display in the char screen shows the right decimal value of 0.1, but UnitStat_Moves shows 3.
The movement of the unit in the world window shows 2 und indeed the unit can only move 2 sqaures.
same with 2 air shards
The display in the char screen shows the right decimal value of 0.2, but UnitStat_Moves shows 3.
Now the movement of the unit in the world window shows 3 und indeed the unit can now move 3 sqaures.
So I tested a little deeper and discovered a strange rounding behavior:
0 - 0.12 = 0
>0.12 = 1
Does this makes any sense?