mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
avg?
This commit is contained in:
parent
8cf1afdd2f
commit
8fba61b5b6
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ class DamageComponent:
|
|||
self.damage_types_qty = random.sample(self.damage_types_distribution, 1)[0]
|
||||
self.damage_types = random.sample(self.all_damage_types, self.damage_types_qty)
|
||||
|
||||
@property
|
||||
def avg(self):
|
||||
return self.dice_number * (self.dice_type + 1) / 2
|
||||
|
||||
def stringify(self) -> str:
|
||||
string = ""
|
||||
if self.constant > 0:
|
||||
|
|
Loading…
Reference in a new issue