Пример #1
0
 def check(self, char: Character, state: State) -> bool:
     item = choice(self.items)
     state.setItem(self.itemShort, item)
     return True
Пример #2
0
 def check(self, char: Character, state: State) -> bool:
     if not self.trove.hasItems():
         return False
     state.setItem(self.newItemShort, self.trove.loot())
     return True
Пример #3
0
 def check(self, char: Character, state: State) -> bool:
     item = self.get(char)
     if not item: return False
     state.setItem(self.itemShort, item)
     return True