mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
fix spell avg
This commit is contained in:
parent
6709364df6
commit
e327e81ce9
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ class DamageComponent:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def avg(self):
|
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:
|
def stringify(self) -> str:
|
||||||
string = ""
|
string = ""
|
||||||
|
@ -92,7 +92,7 @@ class HealingComponent:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def avg(self):
|
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:
|
def stringify(self) -> str:
|
||||||
string = ""
|
string = ""
|
||||||
|
|
Loading…
Reference in a new issue