def check(self, char: Character, state: State) -> bool: item = choice(self.items) state.setItem(self.itemShort, item) return True
def check(self, char: Character, state: State) -> bool: if not self.trove.hasItems(): return False state.setItem(self.newItemShort, self.trove.loot()) return True
def check(self, char: Character, state: State) -> bool: item = self.get(char) if not item: return False state.setItem(self.itemShort, item) return True