1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

fix spell avg

This commit is contained in:
Fabio De Simone 2019-02-23 11:13:36 +01:00
parent 6709364df6
commit e327e81ce9

View file

@ -52,7 +52,7 @@ class DamageComponent:
@property
def avg(self):
return self.dice_number * (self.dice_type + 1) / 2
return (self.dice_number * (self.dice_type + 1) / 2) + self.constant
def stringify(self) -> str:
string = ""
@ -92,7 +92,7 @@ class HealingComponent:
@property
def avg(self):
return self.dice_number * (self.dice_type + 1) / 2
return (self.dice_number * (self.dice_type + 1) / 2) + self.constant
def stringify(self) -> str:
string = ""