1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

eww floats

This commit is contained in:
Steffo 2019-02-19 00:30:57 +01:00
parent 8fba61b5b6
commit 68d167208d

View file

@ -66,7 +66,7 @@ class DamageComponent:
words={"number": str(self.dice_number), words={"number": str(self.dice_number),
"type": str(self.dice_type), "type": str(self.dice_type),
"constant": constant, "constant": constant,
"avg": str(self.avg)}) "avg": str(int(self.avg))})
for dmg_type in self.damage_types: for dmg_type in self.damage_types:
string += s(strings.SPELL.TYPE, words={"type": dmg_type}) string += s(strings.SPELL.TYPE, words={"type": dmg_type})
string += s(strings.SPELL.ACCURACY, words={"accuracy": str(self.miss_chance)}) string += s(strings.SPELL.ACCURACY, words={"accuracy": str(self.miss_chance)})
@ -106,7 +106,7 @@ class HealingComponent:
words={"number": str(self.dice_number), words={"number": str(self.dice_number),
"type": str(self.dice_type), "type": str(self.dice_type),
"constant": constant, "constant": constant,
"avg": str(self.avg)}) "avg": str(int(self.avg))})
return string return string