1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
This commit is contained in:
Steffo 2019-02-19 00:29:20 +01:00
parent 8cf1afdd2f
commit 8fba61b5b6

View file

@ -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: