示例#1
0
nav = Navigation()
feature = Features()

Window.x, Window.y = i.pixel_search(coords.TOP_LEFT_COLOR, 0, 0, 400, 600)
nav.menu("inventory")
rt = feature.get_rebirth_time()
start_procedure(feature, rt)

while True:
    rt = feature.get_rebirth_time()
    feature.nuke()
    feature.gold_diggers([x for x in range(1, 13)])
    feature.merge_inventory(8)  # merge uneqipped guffs
    spells = feature.check_spells_ready()
    if spells:  # check if any spells are off CD
        feature.reclaim_ngu(True)  # take all magic from magic NGUs
        for spell in spells:
            feature.cast_spell(spell)
        feature.reclaim_bm()
        feature.assign_ngu(feature.get_idle_cap(True),
                           [x for x in range(1, 8)], True)
        feature.toggle_auto_spells()  # retoggle autospells

    if rt.days > 0:  # rebirth is at >24 hours
        print(f"rebirthing at {rt}")  # debug
        feature.nuke()
        feature.spin()
        feature.deactivate_all_diggers()
        feature.ygg(equip=1)  # harvest with equipment set 1
        feature.ygg(eat_all=True)
        feature.level_diggers()  # level all diggers
示例#2
0
    "If you currently have an active quest that either is minor or has been subcontracted, consider skipping it before starting if you intend to use butter"
)
while choice not in answers:
    choice = input("Use butter for major quests? y/n: ").lower()

while True:  # main loop
    text = feature.get_quest_text()
    majors = feature.get_available_majors()
    if majors == 0 and (coords.QUESTING_MINOR_QUEST in text.lower()
                        or coords.QUESTING_NO_QUEST_ACTIVE in text.lower()):
        feature.questing(major=True)
    else:
        if not feature.check_pixel_color(*coords.COLOR_QUESTING_USE_MAJOR):
            feature.click(*coords.QUESTING_USE_MAJOR)
        feature.questing(butter=answers[choice])
    feature.reclaim_ngu(magic=True)
    feature.reclaim_ngu()
    feature.pit()
    feature.loadout(3)
    feature.deactivate_all_diggers()
    feature.gold_diggers([9])
    feature.YGG_harvest_activate()
    feature.deactivate_all_diggers()
    feature.gold_diggers([1, 5, 6, 7, 8, 10])
    feature.loadout(4)
    idle_magic = feature.get_idle_cap(2)
    idle_energy = feature.get_idle_cap(1)
    while any([idle_magic, idle_energy]):
        print("Idle Caps not empty")
        idle_energy = feature.get_idle_cap(1)
        if idle_energy != 0: