mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 23:10:45 +00:00

Covers the math for [attack]add=, [attack]divide=, [attack]multiply= and [attack]sub=. The behavior is the same in 1.16. * 5 + 2 = 7 * 5 - 3 = 2 * 5 + 2 - 3 = 2. Yes it does, that's half of why this unit test exists ... * 5 + 2 + 3 = 8 * 5 + 3 + 2 = 8 * 5 + 2 - (-3) = 7 * 3 * 3.34 = 10 * 3 * 3.334 = 9. ... and that's the other half of why this unit test exists.