From 8a2faf24e37c13c850f8978678c3883d46f9b802 Mon Sep 17 00:00:00 2001 From: Iris Morelle Date: Thu, 8 Apr 2021 18:05:54 -0400 Subject: [PATCH] wmlunits: Units may have movement cost == max mp and be able to move This applies to the Walking Corpse in particular, which has 4 MP and 4 movement cost to enter shallow water. In practice this means that it can move into shallow water only if it's not slowed and hasn't spent any movement points this turn, and then it cannot move any further until the next turn. Closes #5689. --- data/tools/unit_tree/html_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/tools/unit_tree/html_output.py b/data/tools/unit_tree/html_output.py index 5dd612e46ae..aa5472847d7 100644 --- a/data/tools/unit_tree/html_output.py +++ b/data/tools/unit_tree/html_output.py @@ -1327,7 +1327,7 @@ class HTMLOutput: classes_cost.append('rating-' + cost_rating) if defense_rating: classes_defense.append('rating-' + defense_rating) - if move_cost == '-' or int_fallback(total_movement) <= int_fallback(move_cost, 99): + if move_cost == '-' or int_fallback(total_movement) < int_fallback(move_cost, 99): move_cost = HTML_ENTITY_FIGURE_DASH else: move_cost = cleantext(move_cost, quote=False)