From 35e13defb22754b518743d30964512f56fcf060d Mon Sep 17 00:00:00 2001 From: Athanasius <github@miggy.org> Date: Wed, 7 Apr 2021 15:23:48 +0100 Subject: [PATCH] edshipyard.py: Fix erroneous trailing comma Also, although we should perhaps make some attempt to ensure the decimal separator is always a full-stop... it turns out edsy.org doesn't currently support importing this style anyway, so it's moot. --- edshipyard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/edshipyard.py b/edshipyard.py index 4acbee93..384f4548 100644 --- a/edshipyard.py +++ b/edshipyard.py @@ -171,8 +171,10 @@ def export(data, filename=None) -> None: # noqa: C901, CCR001 multiplier = pow(min(fuel, fsd['maxfuel']) / fsd['fuelmul'], 1.0 / fsd['fuelpower']) * fsd['optmass'] - range_unladen = multiplier / (mass + fuel) + jumpboost, + range_unladen = multiplier / (mass + fuel) + jumpboost range_laden = multiplier / (mass + fuel + cargo) + jumpboost + # As of 2021-04-07 edsy.org says text import not yet implemented, so ignore the possible issue with + # a locale that uses comma for decimal separator. string += f'Range : {range_unladen:.2f} LY unladen\n {range_laden:.2f} LY laden\n' except Exception: