mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +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_qty = random.sample(self.damage_types_distribution, 1)[0]
|
||||||
self.damage_types = random.sample(self.all_damage_types, self.damage_types_qty)
|
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:
|
def stringify(self) -> str:
|
||||||
string = ""
|
string = ""
|
||||||
if self.constant > 0:
|
if self.constant > 0:
|
||||||
|
|
Loading…
Reference in a new issue