From 68d167208d8b24bbbef61854a5d6230013fd94c0 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 19 Feb 2019 00:30:57 +0100 Subject: [PATCH] eww floats --- utils/cast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/cast.py b/utils/cast.py index 7cb7d2a7..c51159cc 100644 --- a/utils/cast.py +++ b/utils/cast.py @@ -66,7 +66,7 @@ class DamageComponent: words={"number": str(self.dice_number), "type": str(self.dice_type), "constant": constant, - "avg": str(self.avg)}) + "avg": str(int(self.avg))}) for dmg_type in self.damage_types: string += s(strings.SPELL.TYPE, words={"type": dmg_type}) string += s(strings.SPELL.ACCURACY, words={"accuracy": str(self.miss_chance)}) @@ -106,7 +106,7 @@ class HealingComponent: words={"number": str(self.dice_number), "type": str(self.dice_type), "constant": constant, - "avg": str(self.avg)}) + "avg": str(int(self.avg))}) return string