def __init__(self, client): Engine.__init__(self, client) world = client.world if amount_in(world, world.backpack(), lambda x: x.item_id in (ITEMS_LOGS + ITEMS_BOARDS)) >= 20: self._success() return d = OpenBank(client).deferred d.addCallbacks(self._box_opened, self._failure)
def _walked(self, result): d = OpenBank(self._client).deferred d.addCallbacks(self._opened, self._walk_failed)