From 679382e220f446439d65af48ec980ec9146109ff Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Fri, 15 Nov 2019 20:19:23 +0300 Subject: [PATCH] Do not separate number and unit in range tooltip, for consistency with other fields --- gui/builtinViewColumns/maxRange.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/builtinViewColumns/maxRange.py b/gui/builtinViewColumns/maxRange.py index b91465efc..02a5be5d9 100644 --- a/gui/builtinViewColumns/maxRange.py +++ b/gui/builtinViewColumns/maxRange.py @@ -83,12 +83,12 @@ class MaxRange(ViewColumn): lines.append('Missile flight range') lowerRange, higherRange, higherChance = missileRangeData if roundToPrec(higherChance, 3) not in (0, 1): - lines.append('{}% chance to fly {}'.format( + lines.append('{}% chance to fly {}m'.format( formatAmount((1 - higherChance) * 100, prec=3, lowest=0, highest=0), - formatAmount(lowerRange, prec=3, lowest=0, highest=3, unitName='m'))) - lines.append('{}% chance to fly {}'.format( + formatAmount(lowerRange, prec=3, lowest=0, highest=3))) + lines.append('{}% chance to fly {}m'.format( formatAmount(higherChance * 100, prec=3, lowest=0, highest=0), - formatAmount(higherRange, prec=3, lowest=0, highest=3, unitName='m'))) + formatAmount(higherRange, prec=3, lowest=0, highest=3))) else: lines.append("Optimal + Falloff") return '\n'.join(lines)