When moving from cell A to cell B, the larger penalty is taken into account.
I really didn't know that. I always thought that the penalty was taken from the territory you were entering, which caused confusion.
Message from FireTosky:
I always calculate the moves, and often have to calculate them cell by cell for precise convergence of chains or other situations. For this, I created a precise analysis for each type of terrain and roads using the editor.
Can I see your calculations somehow? :)