Пример #1
0
 def is_match(self, text):
     if text is None: return False
     for match in BaseStats.get_matches(self):
         if text.lower() == match or text.lower(
         ) == match + 's' or text.lower() == self.text_prefix + ' ' + match:
             return True
     return False
Пример #2
0
    def description(self): return BaseStats.get_matches(self)[0]

    """Roll to attack + spell modifier, Defend with saving spell throw"""
Пример #3
0
 def cost(self):
     return BaseStats.get_cost(self.__spell)
Пример #4
0
 def description(self):
     return BaseStats.get_matches(self.__spell)[0] + ' scroll'
Пример #5
0
 def cost(self):
     return BaseStats.get_cost(self) * self.count
Пример #6
0
 def single_weight(self):
     return BaseStats.get_weight(self)
Пример #7
0
 def weight(self):
     return BaseStats.get_weight(self) * self.count
Пример #8
0
 def armor_class(self):
     return BaseStats.get_armor_class(self)
Пример #9
0
 def description(self):
     return BaseStats.get_matches(self)[0]