コード例 #1
0
def show_pulls():
    global gacha_show

    print('`~`' * 3, ' Obtained ', '`~`' * 3)
    for _ in gacha_show:
        print(f'{_}')
    wishes.init()
コード例 #2
0
def show_inventory():
    # Color fonts!
    char5 = wishes.Color.YELLOW + '\n5 Star Characters owned:' + wishes.Color.END
    char4 = wishes.Color.PURPLE + '\n4 Star Characters owned:' + wishes.Color.END
    weap5 = wishes.Color.YELLOW + '\n5 Star Weapons owned:' + wishes.Color.END
    weap4 = wishes.Color.PURPLE + '\n4 Star Weapons owned:' + wishes.Color.END
    weap3 = wishes.Color.CYAN + '\n3 Star Weapons owned:' + wishes.Color.END

    # 5 Star Characters
    print('\n', '`~`' * 9, f'{char5}')
    if not inv_five_star_characters:
        print('None')
    else:
        # Where key is name, value is amount of
        for key, value in inv_five_star_characters.items():
            if value <= 7:
                print(f'{key} - C{value - 1} -- Amount Pulled = x{value}')
            elif value > 7:
                print(f'{key} - C6 -- Amount Pulled = x{value}')
    print('')
    # 5 Star Weapons
    print('`~`' * 9, f'{weap5}')
    if not inv_five_star_weapons:
        print('None')
    else:
        # Where key is name, value is amount of
        for key, value in inv_five_star_weapons.items():
            if value <= 5:
                print(f'{key} - R{value} -- Amount Pulled = x{value}')
            elif value > 5:
                print(f'{key} - R5 -- Amount Pulled = x{value}')
    print('')
    # 4 Star Characters
    print('`~`' * 9, f'{char4}')
    if not inv_four_star_characters:
        print('None')
    else:
        # Where key is name, value is amount of
        for key, value in inv_four_star_characters.items():
            if value <= 7:
                print(f'{key} - C{value - 1} -- Amount Pulled = x{value}')
            elif value > 7:
                print(f'{key} - C6 -- Amount Pulled = x{value}')
    print('')
    # 4 Star Weapons
    print('`~`' * 9, f'{weap4}')
    if not inv_four_star_weapons:
        print('None')
    else:
        # Where key is name, value is amount of
        for key, value in inv_four_star_weapons.items():
            if value <= 5:
                print(f'{key} - R{value} -- Amount Pulled = x{value}')
            elif value > 5:
                print(f'{key} - R5 -- Amount Pulled = x{value}')
    print('')
    # 3 Star Weapons
    print('`~`' * 9, f'{weap3}')
    if not inv_three_star_weapons:
        print('None')
    else:
        # Where key is name, value is amount of
        for key, value in inv_three_star_weapons.items():
            if value <= 5:
                print(f'{key} - R{value} -- Amount Pulled = x{value}')
            elif value > 5:
                print(f'{key} - R5 -- Amount Pulled = x{value}')
    wishes.init()
コード例 #3
0
# Permanent Banner by Default.
# Type help for instructions

from Wish import wishes


if __name__ == '__main__':
    n_help = wishes.Color.RED + 'help' + wishes.Color.END
    print('`~`' * 4, wishes.Color.CYAN + 'Genshin Impact Wish Simulator' + wishes.Color.END, '`~`' * 4)
    print('   ', '`~`' * 3, f'Type {n_help} for instructions', '`~`' * 3, '\n', ' ' * 10, '`~`' * 10)
    wishes.init()