Exemple #1
0
 def roll(self, mod=0):
     """Roll the skill, returning 0 for a bust
         roll(2) or roll(mod=2) for modifer"""
     if self.num == 0:
         result = roll_skill(1, self.parent.parent.size)
         return result + mod - 2
     result = roll_skill(self.num, self.parent.parent.size)
     if result == 0:
         return result
     else:
         return result + mod
Exemple #2
0
 def roll(self, mod=0):
     """Rolls the trait
         roll(2) or roll(mod=2) for modifer"""
     result = roll_skill(self.num, self.size)
     if result == 0:
         return result
     else:
         return result + mod