Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
 def _walked(self, result):
     d = OpenBank(self._client).deferred
     d.addCallbacks(self._opened, self._walk_failed)
Beispiel #4
0
 def _walked(self, result):
     d = OpenBank(self._client).deferred
     d.addCallbacks(self._opened, self._walk_failed)