Пример #1
0
def make_felix_felicis():
    '''
    Felix Felicis, also called "Liquid Luck", is a magical potion that makes
    the drinker lucky for a period of time, during which everything they attempt
    will be successful.   
    '''
    cauldron = get_cauldron()
    ingredients = get_ingredients("Felix Felicis")
    # add the first ingredient into the cauldron
    cauldron = add(cauldron, ingredients[0])
    # add the second ingredient into the cauldron
    cauldron = add(cauldron, ingredients[1])
    # add the third ingredient into the cauldron
    cauldron = add(cauldron, ingredients[2])
    # stir 10 times
    cauldron = stir(cauldron, 10)
    # add the fourth ingredient into the cauldron
    cauldron = add(cauldron, ingredients[3])
    # add the fifth ingredient into the cauldron
    cauldron = add(cauldron, ingredients[4])
    # stir once
    cauldron = stir(cauldron, 1)
    # add the sixth ingredient into the cauldron
    cauldron = add(cauldron, ingredients[5])
    # stir once
    cauldron = stir(cauldron,1)
    # add the seventh ingredient into the cauldron
    cauldron = add(cauldron, ingredients[6])
    # stir 10 times
    cauldron = stir(cauldron,10)
    # say incantation
    cauldron = say_incantation(cauldron)
    # render the cauldron into a potion (we did this for you!)
    potion = render_potion(cauldron)
    return potion
Пример #2
0
def make_elixir_to_induce_euphoria():
    '''
    The Elixir to Induce Euphoria is a sunshine-yellow potion that induces
    a sense of inexplicable, irrational happiness upon the drinker.
    '''
    cauldron = get_cauldron()
    ingredients = get_ingredients("Elixir To Induce Euphoria")
    # add the first ingredient into the cauldron
    cauldron = add(cauldron, ingredients[0])
    # add the second ingredient into the cauldron
    cauldron = add(cauldron, ingredients[1])
    # stir four times
    cauldron = stir(cauldron, 4)
    # add the third ingredient into the cauldron
    cauldron = add(cauldron, ingredients[2])
    # add the fourth ingredient into the cauldron
    cauldron = add(cauldron, ingredients[3])
    # add the fifth ingredient into the cauldron
    cauldron = add(cauldron, ingredients[4])

    # stir six times
    cauldron = stir(cauldron, 6)

    # render the cauldron into a potion (we did this for you!)
    potion = render_potion(cauldron)
    return potion
Пример #3
0
def make_elixir_to_induce_euphoria():
    '''
    The Elixir to Induce Euphoria is a sunshine-yellow potion that induces
    a sense of inexplicable, irrational happiness upon the drinker.
    '''
    cauldron = get_cauldron()
    ingredients = get_ingredients("Elixir To Induce Euphoria")
    # add the first ingredient into the cauldron

    cauldron = add(cauldron, ingredients[0])

    # add the second ingredient into the cauldron
    cauldron = add(cauldron, ingredients[1])

    # stir four times
    cauldron = stir(cauldron, 4)

    # add the third ingredient into the cauldron
    cauldron = add(cauldron, ingredients[2])

    # add the fourth ingredient into the cauldron
    cauldron = add(cauldron, ingredients[3])

    # add the fifth ingredient into the cauldron
    cauldron = add(cauldron, ingredients[4])

    # stir six times
    cauldron = stir(cauldron, 6)

    # render the cauldron into a potion (we did this for you!)
    potion = render_potion(cauldron)
    return potion
Пример #4
0
def make_felix_felicis():
    '''
    Felix Felicis, also called "Liquid Luck", is a magical potion that makes
    the drinker lucky for a period of time, during which everything they attempt
    will be successful.   
    '''
    cauldron = get_cauldron()
    ingredients = get_ingredients("Felix Felicis")
    # add the first ingredient into the cauldron
    cauldron = add(cauldron, ingredients[0])

    # add the second ingredient into the cauldron
    cauldron = add(cauldron, ingredients[1])

    # add the third ingredient into the cauldron
    cauldron = add(cauldron, ingredients[2])

    # stir 10 times
    cauldron = stir(cauldron, 10)

    # add the fourth ingredient into the cauldron
    cauldron = add(cauldron, ingredients[3])

    # add the fifth ingredient into the cauldron
    cauldron = add(cauldron, ingredients[4])

    # stir once
    cauldron = stir(cauldron, 1)

    # add the sixth ingredient into the cauldron
    cauldron = add(cauldron, ingredients[5])

    # stir once
    cauldron = stir(cauldron, 1)

    # add the seventh ingredient into the cauldron
    cauldron = add(cauldron, ingredients[6])

    # stir 10 times
    cauldron = stir(cauldron, 10)

    # say incantation
    cauldron = say_incantation(cauldron)

    # render the cauldron into a potion (we did this for you!)
    potion = render_potion(cauldron)
    return potion