예제 #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
파일: spells.py 프로젝트: jinxo13/QuestGame
    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]