Exemple #1
0
 def value(self):
     "The value of a damage is the combined dice roll with modifiers."
     return Die(
         self.default.number, 
         multiplicator=self.default.multiplicator, 
         modifier=self.default.modifier + calculate_modifier_sum(self._modifiers)
     )
Exemple #2
0
 def value(self):
     mods = filter(self._no_armor, self._modifiers)
     return self._initial + calculate_modifier_sum(mods)
Exemple #3
0
 def value(self):
     mods = [m for m in self._modifiers if m.source.id is not "dexterity"]
     return self._initial + calculate_modifier_sum(mods)