Пример #1
0
def finish():
    Mouse.click_pos(Coords.MAT)
    time.sleep(1.25)
Пример #2
0
def start_game():
    Mouse.click_pos(Coords.START_PLAY)
    Mouse.click_pos(Coords.START_CONTINUE)
    Mouse.click_pos(Coords.START_SKIP)
    Mouse.click_pos(Coords.START_CONTINUE)
Пример #3
0
def add_ingredient(ingredient):
    Inventory.stock[ingredient]['amount'] -= 1
    Mouse.click_pos(Coords.FOOD[ingredient])
Пример #4
0
def order_ingredient(ingredient):
    Mouse.click_pos(Coords.PHONE)
    if ingredient == 'rice':
        Mouse.click_pos(Coords.PHONE_RICE)
        if can_order_ingredient(ingredient):
            Mouse.click_pos(Coords.PHONE_RICE_ORDER)
            Mouse.click_pos(Coords.PHONE_ORDER_CONFIRM_FREE)
            stock[ingredient]['timeout'] = time.time()
        else:
            Mouse.click_pos(Coords.PHONE_RICE_SAKE_CANCEL)
    else:
        Mouse.click_pos(Coords.PHONE_TOPPING)
        if can_order_ingredient(ingredient):
            Mouse.click_pos(Coords.PHONE_TOPPINGS[ingredient])
            Mouse.click_pos(Coords.PHONE_ORDER_CONFIRM_FREE)
            stock[ingredient]['timeout'] = time.time()
        else:
            Mouse.click_pos(Coords.PHONE_TOPPINGS_CANCEL)