caewok / fvtt-terrain-mapper

Paint coded terrain values on Foundry maps
MIT License
4 stars 4 forks source link

PF2e difficult terrain should be +5 / +10 per square #34

Closed caewok closed 3 days ago

caewok commented 2 months ago

https://2e.aonprd.com/Rules.aspx?ID=2366

caewok commented 3 days ago

The math works out like this for adjusting token speed:

Move 5 feet, costs 10. So 50% of normal movement. Move 5 feet, costs 15. So 33% of normal movement.

E.g. Speed 50. Can move 10 squares. 50' of "movement" Difficult: Can move 5 squares. 25' of "movement" Greater Difficulty: Can move 5+10, 5+10, 5+10, 3.3 squares. 50 * 0.33 = 16.5. 3.3 x 5 = 16.5

Fails for diagonal 1:2:1: Speed 50. Can move 5, 10, 5, 10, 5, 10, 5 = 5 squares, 50' Difficult. Can move 5+5, 10+5, 5+5, 10+5 = 4 squares, 50'. 30' of "movement". At 50% move, only get 3 squares. Greater Difficulty. Can move 5+10, 10+10, 5+10 = 3 squares, 50'. 20' of "movement" At 33% move, only get 2 squares.