#TODO Fix posing/positioning and CG in polyjuice events
#All scenes (cat/Luna) needs posing, add ending where it fails, whoring level requirements.
#Character is incorectly positioned in some segments (infront of textbox) - done
#The image segment changing when she swallows looks a bit weird

# Cat polyjuice start
label potion_scene_1_1_1:
    # Genie is trying to transform her into another girl, but...
    gen "[hermione_name]?" ("base", xpos="far_left", ypos="head")
    her "Yes, [genie_name]?" ("base", "base", "base", "mid")
    if not her_potions_drunk:
        gen "So, are you ready to try out one of my potions?" ("base", xpos="far_left", ypos="head")
        her "As ready as I'll ever be..."
        gen "great!" ("base", xpos="far_left", ypos="head")
        gen "I have this potion for you to try out." ("base", xpos="far_left", ypos="head")
    else:
        gen "I have another potion for you to try out today..." ("base", xpos="far_left", ypos="head")
        if "polyjuice" in her_potions_drunk:
            her "Is this another polyjuice potion?"
            gen "...{w}no?" ("base", xpos="far_left", ypos="head")
            if her_whoring < 12:
                her "I'm not drinking another one... I remember what happened last time."
                gen "(Damn, looks like she wont be as keen now that she knows what she's drinking...)" ("base", xpos="far_left", ypos="head")
                jump hermione_requests
            else:
                her "You're lying..."
                her "Do I have to?"
                gen "You don't have to do anything [hermione_name]..." ("base", xpos="far_left", ypos="head")
                gen "But if you do decide to, it would make me very happy..." ("base", xpos="far_left", ypos="head")
                her "..."
                gen "And there's some points in it for you as well..." ("base", xpos="far_left", ypos="head")
        else:
            if her_whoring >= 12:
                her "If it makes you happy, [genie_name]." ("smile", "base", "base", "mid")
                her "..." ("annoyed", "narrow", "base", "down")
            elif her_whoring >= 6:
                her "And what kind of potion is it? It looks gross..." ("normal", "squint", "angry", "mid")
                gen "Well, wouldn't it spoil half the enjoyment of it if I told you?" ("base", xpos="far_left", ypos="head")
                her "Depends whose enjoyment you're talking about..." ("open", "squint", "base", "mid")
                gen "Twenty points." ("base", xpos="far_left", ypos="head")
                her "Hmmm, can't you tell me what kind of potion it is?" ("annoyed", "squint", "base", "mid")
                her "Polyjuice? Amortentia? Babbling Beverage? Felix Felicis?" ("grin", "happyCl", "worried", "mid",emote="sweat")
                gen "That's going to have to stay a secret [hermione_name]." ("base", xpos="far_left", ypos="head")
                her "..." ("annoyed", "narrow", "worried", "down")
                gen "Well [hermione_name], what do you say? Will you drink a harmless little potion?" ("base", xpos="far_left", ypos="head")
                gen "For Gryffindor?" ("base", xpos="far_left", ypos="head")
                her "Fine..." ("open", "closed", "base", "mid")
            else: #Fail
                her "And what kind of potion is it? It looks gross..." ("normal", "squint", "angry", "mid")
                gen "Well, wouldn't it spoil half the enjoyment of it if I told you?" ("base", xpos="far_left", ypos="head")
                her "I'm not going to drink some random potion for your amusement."
                gen "There's some points in it for you of course." ("base", xpos="far_left", ypos="head")
                her "..."
                her "No thanks..."
                jump hermione_requests

    $ renpy.sound.play("sounds/sniff.ogg")
    call nar(">Hermione takes a whiff of the thick potion.")
    her "It smells disgusting. Like mud and wet dog fur." ("disgust", "slit", "low", "stare")
    her "Do I really have to drink this?" ("open", "base", "worried", "mid")
    gen "You do. I suggest holding your nose if the smell is too much." ("base", xpos="far_left", ypos="head")
    her "For Gryffindor." ("mad", "happyCl", "worried", "mid",tears="soft_blink")

    hide hermione_main
    with d3
    pause.2

    $ renpy.sound.play("sounds/gulp.ogg")
    call her_chibi("drink_potion","mid","base")
    pause 2
    call nar(">She downs the thick potion.")
    pause.5
    call her_chibi("stand","mid","base")
    pause.2
    her "Blehgh." ("disgust", "slit", "low", "stare")
    gen "Well done." ("base", xpos="far_left", ypos="head")

    if "polyjuice" in her_potions_drunk:
        her "Here we go again I suppose..."
        her "Nothing's happening..."
        gen "You'll just have to wait a minute remember?" ("base", xpos="far_left", ypos="head")
        her "In that case I'll be back after class..."
        her "Can't wait for the effects to kick in... it was bad enough the first time..."
        gen "I'm sure another extra ten points should make it worth it, [hermione_name], thirty points to Gryffindor." ("base", xpos="far_left", ypos="head")
        her "Thank you [genie_name]." ("base", "base", "base", "mid")
        call nar(">Hermione heads off to class.")
        $ gryffindor += 30
    else:
        her "Now will you at least tell me what this potion does?" ("angry", "base", "base", "mid",tears="soft")
        gen "It should be noticeable any second now..." ("base", xpos="far_left", ypos="head")
        her "Well? Is it supposed to make my breasts bigger? They don't feel any bigger." ("annoyed", "narrow", "worried", "down")
        gen "No. Hmmmm, it mustn't have worked." ("base", xpos="far_left", ypos="head")
        her "What was it supposed to do?" ("annoyed", "narrow", "annoyed", "up")
        gen "There's no point in telling you now. It was going to be a surprise." ("base", xpos="far_left", ypos="head")
        her "Is that all [genie_name]?" ("soft", "base", "base", "mid")
        gen "Yes, [hermione_name], twenty points to Gryffindor." ("base", xpos="far_left", ypos="head")
        her "Thank you [genie_name]." ("base", "base", "base", "mid")
        call nar(">Hermione heads off to class.")
        $ gryffindor += 20

    call her_walk(action="leave")

    #TODO Fix: setting cat appearance
    # Equip cat ears
    $ h_ears = "cat_ears"
    $ h_request_wear_ears = True
    $ hermione_wear_ears = True
    call update_her_uniform

    # Note: potion drinking flags are set in the return event

    $ her_cat_polyjuice_return = True
    $ hermione_busy = True

    jump main_room

# Cat polyjuice return event
label potion_scene_1_1_2:
    $ her_cat_polyjuice_return = False
    call her_walk(action="enter", xpos="mid", ypos="base")

    her "How could you do this to me [genie_name]?" ("angry", "base", "angry", "mid", xpos="mid", ypos="base", trans=hpunch)
    her "Try and turn me into a cat!"
    her "In the middle of class!" ("annoyed", "base", "worried", "R")
    gen "I didn't try and turn you into a cat [hermione_name]." ("base", xpos="far_left", ypos="head")
    her "Then why do I have ears and a tail?" ("scream", "closed", "angry", "mid")
    gen "I have no idea. The potion I gave you was supposed to turn you into a different girl." ("base", xpos="far_left", ypos="head")
    her "What!? You didn't use polyjuice potion did you [genie_name]?" ("shock", "wide", "base", "stare")
    gen "What's that?" ("base", xpos="far_left", ypos="head")
    her "There's no point playing dumb [genie_name]." ("annoyed", "narrow", "annoyed", "mid")
    her "Well at least I know that it will wear off by morning." ("annoyed", "narrow", "angry", "R")

    if her_whoring >= 17:
        call her_walk("door")
        "You see Hermione reaching for the door knob but an idea strikes you."
        menu:
            "-Make her suck you off-":
                gen "Wait, [hermione_name]!" ("base", xpos="far_left", ypos="head")
                call her_chibi("stand","door",flip=False)
                with d3
                her ".......?"
                call her_walk("desk")
                her "What is it, [genie_name]?" ("upset", "base", "angry", "mid")
                her "Haven't you humiliated me enough?" ("annoyed", "closed", "base", "mid")
                her "" ("annoyed", "base", "base", "R")
                gen "Would you like to earn seventy-five additional points?" ("base", xpos="far_left", ypos="head")
                her "Seventy-five points? How?" ("annoyed", "squint", "base", "mid")

                gen "By sucking my cock, obviously." ("grin", xpos="far_left", ypos="head")
                her "Right now? I look like a cat! Why would you ask me at a time like this?" ("angry", "wide", "base", "stare")
                her "You're not some sort of pervert who likes animals are you?" ("angry", "base", "base", "mid")
                gen "Of course not, I just think that you have a very unique look at the moment and that it would be a shame not to do anything with it." ("base", xpos="far_left", ypos="head")
                her "Fine, just promise me you aren't going to do anything weird." ("upset", "closed", "base", "mid")
                gen "I promise. Now, kneel." ("base", xpos="far_left", ypos="head")

                #Fade to black
                show screen blkfade with d3
                pause.5
                ">Hermione walks over and kneels before you."

                show screen chair_left
                call her_chibi_scene("bj_pause")
                hide hermione_main
                hide screen blkfade
                with d5

                gen "Good girl." ("base", xpos="far_left", ypos="head")
                gen "Now open wide." ("base", xpos="far_left", ypos="head")
                her "..." ("open_wide_tongue", "base", "base", "mid")
                call her_chibi_scene("bj")

                ">Hermione takes you into her mouth"
                hide hermione_main
                call ctc
                gen "Good god what is with your tongue?! It feels like velcro." ("base", xpos="far_left", ypos="head")
                her "*Slurp?*"

                call her_chibi_scene("bj_pause")

                her "It's because of your stupid potion, it made my tongue all rough." ("open_wide_tongue", "base", "angry", "mid")
                her "Do you want to stop?" ("grin", "base", "base", "R")
                hide hermione_main
                gen "No, keep going, just try not to focus on the tongue work too much." ("base", xpos="far_left", ypos="head")
                her "Okay, [genie_name]." ("annoyed", "narrow", "angry", "R")
                hide hermione_main

                call her_chibi_scene("bj")

                call nar(">Hermione swallows your cock again, taking care not to apply too much pressure with her tongue.") #start sucking scene. might insert more sucking noises for a little while or add pauses
                gen "So...{w=1.0} did you attend all your classes today?" ("base", xpos="far_left", ypos="head")

                call her_chibi_scene("bj_pause")

                her "Of course [genie_name]." ("base", "narrow", "base", "mid_soft")

                hide hermione_main
                call her_chibi_scene("bj")

                gen "Even looking like this?" ("base", xpos="far_left", ypos="head")
                gen "What would everyone have thought? Would they just assume that you were a victim of a prank?" ("base", xpos="far_left", ypos="head")
                gen "Or would they think that slutty little Miss Granger was just begging for attention again." ("base", xpos="far_left", ypos="head")
                gen "Wearing skimpy outfits and trying to look like a pussycat." ("base", xpos="far_left", ypos="head")
                call nar(">You try to place your hand on the back of her head but her new ears are in the way.")
                gen "These are quite soft." ("base", xpos="far_left", ypos="head")
                call nar(">You start feeling and petting her brand new ears.","start")
                call nar(">Hermione starts purring involuntarily..","end")
                #
                # Add a purr sound? :D
                #
                pause 1.0
                gen "Oh good heavens!" ("angry", xpos="far_left", ypos="head")
                gen "It's like your whole mouth has become a vibrator." ("base", xpos="far_left", ypos="head")
                call her_chibi_scene("bj_pause")
                her "I can't help it [genie_name], when someone touches my ears I just purr." ("base", "happyCl", "base", "mid")
                hide hermione_main
                gen "It feels amazing, now cock back in the mouth girl." ("base", xpos="far_left", ypos="head")
                her "Yes [genie_name]." ("smile", "happyCl", "base", "mid",emote="happy")
                call her_chibi_scene("bj")
                hide hermione_main
                with d3
                call nar(">You immediately put your hands back on her ears and start stroking them as she sucks you off.")
                her "*Slurp!* *Purr* *Slurp!*"
                gen "Oh god yes. This is Fantastic." ("base", xpos="far_left", ypos="head")
                her "*Purr* *Slurp!* *Purr*"
                gen "Get ready girl... Here it comes." ("base", xpos="far_left", ypos="head")
                her "*Purr* *Purr* *Purr*"
                call nar(">You grab her ears and pull her head into you causing the tip of your cock to rest in her vibrating throat.")
                gen "{size=+10}ARGH!!!!!!!!!!!!!!!!{/size}" ("angry", xpos="far_left", ypos="head")

                call her_chibi_scene("bj_cum_in")
                call cum_block
                her "*Purr* *Purr* *Purr*"
                call nar(">You shoot you load directly down her throat.")
                call ctc

                with d3
                her "" ("full_cum", "narrow", "base", "dead")
                pause .1
                her "*gulp* *Purr* *Purr*" ("cum", "happyCl", "worried", "mid")
                her "" ("full_cum", "narrow", "base", "dead")
                pause .1
                her "*gulp* *Purr* *gulp*" ("cum", "happyCl", "worried", "mid")
                her "" ("full_cum", "narrow", "base", "dead")
                pause .1
                her "*Purr* *gulp* *gulp*" ("cum", "happyCl", "worried", "mid")

                call her_chibi_scene("bj_pause")
                call nar(">You pull your cock out of her purring mouth.")
                her "Mmmmm, it might be this potion but that tasted good..." ("base", "narrow", "base", "mid_soft")
                hide hermione_main
                gen "Well, you certainly earned your seventy-five points." ("base", xpos="far_left", ypos="head")
                $ gryffindor += 75
                with d3
                her "Thank you [genie_name]. Will that be all?" ("base", "narrow", "base", "up")
                gen "One last thing." ("base", xpos="far_left", ypos="head")
                gen "Who's a good girl?" ("base", xpos="far_left", ypos="head")
                her ".........." ("annoyed", "base", "worried", "R")
                her "I am..." ("smile", "base", "base", "R")

                show screen blkfade with d3

                call hide_characters
                call her_chibi(xpos="desk")
                call gen_chibi("sit_behind_desk")

                hide screen blkfade
                with d5
                pause 1.0
            "-Let her go-":
                gen "Maybe next time.." ("base", xpos="far_left", ypos="head")
                #TODO Fix: Chibi flips and walks when choosing this option, it should just exit the room

    call her_walk(action="leave")

    # Unequip cat ears
    $ h_ears = "blank"
    $ h_request_wear_ears = False
    $ hermione_wear_ears = False
    call update_her_uniform

    # Set flags
    $ her_potions_drunk.add("polyjuice")
    $ her_potions_drunk.add("cat_polyjuice")

    $ hermione_busy = True
    jump main_room

# Alternative cat polyjuice return scene, not used
#TODO This event needs to be checked before/if it is going to be used again
label potion_scene_1_1_2_alt:
    $ her_cat_polyjuice_return = False

    call her_walk(action="enter", xpos="mid", ypos="base")

    if "cat_polyjuice" in her_potions_drunk:
        her "I can't believe you had me drink this again..."
        gen "What's the problem? I think you look cute..." ("base", xpos="far_left", ypos="head")
        if her_whoring < 6:
            her "The problem?"
            her "People kept making fun of me and pulling my tail!"
            gen "And how did that make you feel?" ("base", xpos="far_left", ypos="head")
            her "Humiliated!"
            her "They kept asking if I was a good kitty and if I wanted scratches..."
            her "And you know the worst thing?"
            gen "What?" ("base", xpos="far_left", ypos="head")
            her "The darn potion sort of made me want scratches..."
            gen "I see...{w} then we at least learnt something new here today." ("base", xpos="far_left", ypos="head")
        else:
            her "My class members had very similar thoughts..."
            her "One of the boys were entranced by the motion of my tail..."
            her "It seemed to have its own mind..."
            gen "And how did that make you feel?" ("base", xpos="far_left", ypos="head")
            her "I'm not sure..."
    else:
        her "How could you do this to me [genie_name]?" ("angry", "base", "angry", "mid", xpos="mid", ypos="base", trans=hpunch)
        her "Try and turn me into a cat!"
        her "In the middle of class!" ("annoyed", "base", "worried", "R")
        gen "I didn't try and turn you into a cat [hermione_name]." ("base", xpos="far_left", ypos="head")
        her "Then why do I have ears and a tail?" ("scream", "closed", "angry", "mid")
        gen "I have no idea. The potion I gave you was supposed to turn you into a different girl." ("base", xpos="far_left", ypos="head")
        her "What!? You didn't use polyjuice potion did you [genie_name]?" ("shock", "wide", "base", "stare")
        gen "What's that?" ("base", xpos="far_left", ypos="head")
        her "There's no point playing dumb [genie_name]." ("annoyed", "narrow", "annoyed", "mid")
        her "Well at least I know that it will wear off by morning." ("annoyed", "narrow", "angry", "R")

    menu:
        "-Let her go-":
            gen "Goodnight [hermione_name]." ("base", xpos="far_left", ypos="head")
            her "Goodnight [genie_name]." ("upset", "closed", "base", "mid")

            call her_walk(action="leave")

            $ h_request_wear_ears = False
            $ hermione_wear_ears = False
            call update_her_uniform

            # Set flags
            $ her_potions_drunk.add("polyjuice")
            $ her_potions_drunk.add("cat_polyjuice")

            $ hermione_busy = True

            jump main_room

        "-Make her suck you off-" if her_whoring >= 17:
            pass

    gen "Wait [hermione_name], how would you like to earn seventy-five additional points?" ("base", xpos="far_left", ypos="head")
    her "Seventy-five points? How?" ("annoyed", "squint", "base", "mid")
    gen "By sucking my cock." ("base", xpos="far_left", ypos="head")
    if "cat_polyjuice" in her_potions_drunk:
        her "Again?"
        her "I thought you found my tongue way to rough in this state?"
        gen "Well, the purring certainly made well up for that aspect." ("base", xpos="far_left", ypos="head")
        her "Okay then..."
    else:
        her "Like this? I look like a cat! Why would you ask me at a time like this?" ("angry", "wide", "base", "stare")
        her "You're not some sort of pervert who likes animals are you?" ("angry", "base", "base", "mid")
        gen "Of course not, I just think that you have a very unique look at the moment and that it would be a shame not to do anything with it." ("base", xpos="far_left", ypos="head")
        her "Fine, just promise me you aren't going to do anything weird." ("upset", "closed", "base", "mid")
        gen "I promise. Now, kneel." ("base", xpos="far_left", ypos="head")
    call blkfade
    pause.5

    ">Hermione walks over and kneels before you."
    call her_chibi_scene("bj_pause")
    gen "Good girl." ("base", xpos="far_left", ypos="head")
    her "..." ("open_wide_tongue", "base", "base", "mid")
    ">Hermione takes you into her mouth"
    hide hermione_main

    show screen chair_left
    call her_chibi_scene("bj")

    hide screen blkfade
    hide screen blktone
    hide screen bld1
    with fade
    call ctc

    if "cat_polyjuice" in her_potions_drunk:
        call bld
        her "*Lick*"
        gen "There's that tongue again...{w} could you try using your throat a bit more?" ("base", xpos="far_left", ypos="head")
        her "*Slurp*" #annoyed eyes
        call her_chibi_scene("bj_pause")
        with d3
        her "You sure you want me to continue?"
        gen "Yes!" ("base", xpos="far_left", ypos="head")

    else:
        call bld
        gen "Good god what is with your tongue?! It feels like velcro." ("base", xpos="far_left", ypos="head")
        her "*Slurp?*"
        call her_chibi_scene("bj_pause")
        with d3
        her "It's because of your stupid potion, it's made my tongue all rough." ("open_wide_tongue", "base", "angry", "mid")
        her "Do you want to stop?" ("grin", "base", "base", "R")
        hide hermione_main
        gen "No, keep going, just try not to focus on the tongue work too much." ("base", xpos="far_left", ypos="head")

    her "Of course [genie_name]." ("annoyed", "narrow", "angry", "R")
    hide hermione_main
    call her_chibi_scene("bj")
    with d3

    call nar(">Hermione swallows your cock again, taking care\nnot to apply too much pressure with her tongue.") #start sucking scene. might insert more sucking noises for a little while or add pauses
    gen "So you still went to all your classes?" ("base", xpos="far_left", ypos="head")
    call her_chibi_scene("bj_pause")
    with d3
    her "Of course [genie_name]." ("base", "narrow", "base", "mid_soft")
    hide hermione_main
    call her_chibi_scene("bj")
    with d3
    gen "Even looking like this?" ("base", xpos="far_left", ypos="head")                         ###start sucking
    if "cat_polyjuice" in her_potions_drunk:
        her "You had me do it before... at least I knew what to expect this time..."
        gen "Slutty little Miss Granger... begging for attention..." ("base", xpos="far_left", ypos="head")
        gen "making herself look like a cat for attention..." ("base", xpos="far_left", ypos="head")
        call nar(">You place your hands on her ears once again and give them a soft patting.","start")
        call nar(">Hermione starts purring as her pupils expands looking into yours.","end")
        gen "There it is!" ("base", xpos="far_left", ypos="head")
        gen "Keep going girl, this feels amazing..." ("base", xpos="far_left", ypos="head")
        call nar(">You momentarily stop patting her as you close your eyes with pleasure.")
        gen "Don't stop!" ("base", xpos="far_left", ypos="head")
        call her_chibi_scene("bj_pause")
        with d3
        her "You stopped patting me!"
        gen "Oh, sorry..." ("base", xpos="far_left", ypos="head")
        call her_chibi_scene("bj")
        with d3
        hide hermione_main
        with d3
        call nar(">You gently stroke the back of Hermiones ears as she begins purring once again.")

    else:
        gen "What would everyone have thought? Would they just assume that you were under an evil slytherin spell?" ("base", xpos="far_left", ypos="head")
        gen "Or would they just think that slutty little Miss Granger was just begging for attention again." ("base", xpos="far_left", ypos="head")
        gen "Wearing skimpy outfits and trying to look like a cat." ("base", xpos="far_left", ypos="head")
        call nar(">You go to place your hand on the back of her head but her new ears block the way.")
        gen "These are quite soft." ("base", xpos="far_left", ypos="head")
        call nar(">You start feeling and patting the ears.","start")
        call nar(">Hermione starts involuntary purring","end")
        gen "Oh good heavens!" ("base", xpos="far_left", ypos="head")
        gen "It's like your whole mouth has become a vibrator." ("base", xpos="far_left", ypos="head")
        call her_chibi_scene("bj_pause")
        with d3
        her "I can't help it [genie_name], whenever \nanything touches my ears I just purr." ("base", "happyCl", "base", "mid")
        hide hermione_main
        gen "It feels amazing, now cock back in the mouth girl." ("base", xpos="far_left", ypos="head")
        her "Yes [genie_name]." ("smile", "happyCl", "base", "mid",emote="happy")
        call her_chibi_scene("bj")
        with d3
        hide hermione_main
        with d3
        call nar(">You immediately put your hands back on her ears and start stroking them as she sucks you.")### start sucking

    her "*Slurp!* *Purr* *Slurp!*"
    gen "Oh god yes. This is Fantastic." ("base", xpos="far_left", ypos="head")
    her "*Purr* *Slurp!* *Purr*"
    gen "Get ready girl... Here it comes." ("base", xpos="far_left", ypos="head")
    her "*Purr* *Purr* *Purr*"
    call nar(">You grab her ears and pull her head into you causing the tip of your cock to rest on her purring throat.") #show genie climax scene
    gen "{size=+10}ARGH!!!!!!!!!!!!!!!!{/size}" ("angry", xpos="far_left", ypos="head")
    her "*Purr* *Purr* *Purr*"
    call nar(">You shoot you load directly down her throat.")
    call ctc

    #This scene looks a bit weird
    call her_chibi_scene("bj_cum_in")
    with d3
    her "" ("full_cum", "narrow", "base", "dead")
    pause .1
    her "*gulp* *Purr* *Purr*" ("cum", "happyCl", "worried", "mid")
    her "" ("full_cum", "narrow", "base", "dead")
    pause .1
    her "*gulp* *Purr* *gulp*" ("cum", "happyCl", "worried", "mid")
    her "" ("full_cum", "narrow", "base", "dead")
    pause .1
    her "*Purr* *gulp* *gulp*" ("cum", "happyCl", "worried", "mid")
    call nar(">You pull your cock out of her purring mouth.")
    call her_chibi_scene("bj_pause")
    with d3
    her "Mmmmm, it might be this potion but that tasted \ngood..." ("base", "narrow", "base", "mid_soft")
    hide hermione_main
    with d3
    gen "Well, you certainly earned your seventy-five points." ("base", xpos="far_left", ypos="head")
    $ gryffindor += 75

    her "Thank you [genie_name]. Will that be all." ("base", "narrow", "base", "up")
    gen "One last thing." ("base", xpos="far_left", ypos="head")
    gen "Who's a good girl?" ("base", xpos="far_left", ypos="head")
    her ".........." ("annoyed", "base", "worried", "R")
    her "I am..." ("smile", "base", "base", "R")

    call hide_characters
    call her_chibi("hide")
    call gen_chibi("sit_behind_desk")
    hide screen bld1
    hide screen blktone
    with fade

    $ her_cat_polyjuice_return = False #Triggers Hermione return
    $ hermione_wear_ears = False
    call update_her_uniform

    $ hermione_busy = True

    jump main_room

    #Tick that adds that she has drunk any sort of polyjuice potion so she will now recognize it.

# Luna transformation
label potion_scene_1_2:
    #TODO Some of Hermione's lines still need posing
    gen "Might I offer you a drink?" ("base", xpos="far_left", ypos="head")
    her "You're not trying to get me drunk on Butterbeer again are you?" ("normal", "base", "base", "mid",xpos="right",ypos="base")
    gen "Nothing of the sort, just a harmless little potion." ("base", xpos="far_left", ypos="head")
    call nar(">You hand her the potion bottle.")

    if not her_potions_drunk:
        her "I can't believe you're making me drink random potions..."
    else:
        her "Another of your mysterious potions?" ("open", "squint", "base", "mid")

    if "polyjuice" in her_potions_drunk:
        her "Yuck... another polyjuice potion..."
        her "Do I really have to drink it again?"
        gen "If you'd like to continue our favour trading it would certainly be in your best interest [hermione_name]." ("base", xpos="far_left", ypos="head")
        her "..."
        her "Can you at least tell me what you've put in it?"
        gen "What's the fun in that? You're going to have to drink it and find out..." ("base", xpos="far_left", ypos="head")
        if her_whoring <= 12:
            her "I'm not going to drink it again, especially since I have no idea who... or what it might turn me into."
            her "You know what... I think I'd better leave."
            call her_walk(action="leave")
            $ her_mood += 10
            $ hermione_busy = True
            jump main_room
            # End Scene
        else:
            her "Well, I might be a little bit curious..."
            her "Okay then..."
    else:
        her "Let me guess, you won't tell me what it does and I'll embarrass myself in front of the whole class?"
        gen "Not at all." ("base", xpos="far_left", ypos="head")
        her "That's new." ("annoyed", "squint", "base", "mid")
        her "... and somehow worrying"
        her "So what exactly is it then?"
        gen "It's your regular, run-off-the-mill Polyjuice Potion." ("base", xpos="far_left", ypos="head")
        her "Ugh. Those taste like muck." ("normal", "happyCl", "worried", "mid")
        her "... and what will it turn me into?"
        gen "That, Miss Granger, is a secret." ("base", xpos="far_left", ypos="head")
        her "Typical." ("base", "base", "worried", "R",tears="soft")
        gen "It'll taste a lot sweeter if you imagine all the points you'll earn for Gryffindor." ("base", xpos="far_left", ypos="head")
        gen "How much of a lead did Slytherin have on you again?" ("base", xpos="far_left", ypos="head")
        her "You're right, [genie_name]. I can't let Gryffindor down!"
    hide hermione_main
    with d3
    pause.2

    $ renpy.sound.play("sounds/gulp.ogg")
    call her_chibi("drink_potion","mid","base")
    pause 2

    call nar(">She downs the thick potion.")
    pause.5

    call her_chibi("stand","mid","base")
    pause.2

    her "Blehgh.","disgust","narrow"
    if "polyjuice" in her_potions_drunk:
        her "Pinching my nose barely helps..."
        her "So, do I leave or?"
        gen "No, just wait here for a moment..." ("base", xpos="far_left", ypos="head")
        gen "Why don't you tell me a little bit about how your day's been going." ("base", xpos="far_left", ypos="head")
        her "Okay..."
        if her_whoring <= 13:
            her "Well, there's not much to tell you that you don't already know."
            her "Lately I've been questioning my previous outlook on life in general."
            gen "In what way exactly?" ("base", xpos="far_left", ypos="head")
            her "Well, since we started our... mutually beneficial... what ever we call this..."
            her "The general atmosphere in our common room has been in an all time high because of how many house points we're racking in."
            gen "That's good, you must feel a great sense of pride and accomplishment..." ("base", xpos="far_left", ypos="head")
            her "Of course, the only issue is that I would never be able to tell them I'm the one to thank for it..."
            her "If they just had one look of my face they'd be able to tell what was up."
            gen "Speaking of face..." ("base", xpos="far_left", ypos="head")
        else:
            her "Well, generally it's been quite dull up until now."
            her "I would be lying if I said I wasn't a little bit excited when you called on me."
            gen "Oh, you'll be getting your fair share of excitement soon enough... Well, not this version of you." ("base", xpos="far_left", ypos="head")
            her "What version of me will be..."
    else:
        her "I was wrong, not muck. Snot. It's as thick as Trollsnot."
        gen "As long as you keep it down, you'll earn Gryffindor a great deal of points." ("base", xpos="far_left", ypos="head")
        her "And I will."
        her "So what now? I just go to class?" ("upset", "wink", "base", "mid")
        gen "Not yet, tell me something about yourself." ("base", xpos="far_left", ypos="head")
        her "Well, ever since I started my \"Extracurricular activities\" with you my attendance and grades have started slipping." ("open", "closed", "base", "mid")
        gen "Troubling indeed." ("base", xpos="far_left", ypos="head")

        if her_whoring <= 13:
            her "It is! [genie_name], I used to be at the top of the class. My scores were impeccable." ("scream", "closed", "angry", "mid")
            gen "And how are your scores now?" ("base", xpos="far_left", ypos="head")
            her "Well I'm still at the top... Just not by as much." ("annoyed", "narrow", "angry", "R")
            gen "Well, there are times when academic excellence shouldn't be your primary concern." ("base", xpos="far_left", ypos="head")
            her "Hmmph, and what /should/ be my primary concern then?" ("annoyed", "squint", "base", "mid")
            gen "Currently. I'd say your face is pretty high on the list" ("base", xpos="far_left", ypos="head")
            her "Excuse me. That is hardly appropriate for a headmaster." ("open_tongue", "narrow", "base", "mid_soft")
            gen "No, I'm serious. You should really see the look on your face." ("base", xpos="far_left", ypos="head")
        else:
            her "Not really. I realise there are other things I can excel in." ("base", "base", "base", "mid")
            gen "Like sucking cocks for house points" ("base", xpos="far_left", ypos="head")
            her "Professor!" ("scream", "closed", "angry", "mid")
            gen "Oh don't be so modest. If sucking dick was a class, you'd be Magna Cum Laude." ("base", xpos="far_left", ypos="head")
            her "Thank you professor. You know, there's time to earn some more points before class. If you're feeling generous I could..." ("scream", "closed", "angry", "mid")
            gen "I'd have to know on whose face I'll be cumming though " ("base", xpos="far_left", ypos="head")
            her "What do you mean?... My face of course... I mean... *urp*" ("scream", "closed", "angry", "mid")

    hide hermione_main
    with hpunch
    call her_chibi("hide")
    call lun_chibi("stand","base","base")
    pause.5

    "*POOF*"

    $ luna_xpos = 400 #400 = "right"
    $ changeLuna("base","base","sad","mid")
    show screen luna_main
    with d3

    if "luna_polyjuice" in her_potions_drunk:
        her "*urgh*... Every time..."
        her "Did it work?"
        gen "Perfectly..." ("base", xpos="far_left", ypos="head")
        call nar(">Hermione starts examining herself, feeling out her outfit and pausing at her breasts.")
        $ changeLuna("base","seductive","raised","mid")
        her "Well, At least I appear to be a girl.... A ravenclaw."
        gen "I'm surprised you expected something different." ("base", xpos="far_left", ypos="head")
        call nar(">Hermione grabs a lock of her hair")
        $ changeLuna("pout","base","base","crossed")
        her "Hmm, a blonde... that narrows things down. Not a good sign..."
        gen "And why might that be?" ("base", xpos="far_left", ypos="head")
        call nar(">Hermione reaches up into her fair and finds a thin wooden object lodge in the mess.")
        $ changeLuna("base","wide","angry","mid")
        her "..."
        her "I'm...{w} You...{w} You turned me into Luna Lovegood again?"
        gen "Yeah!" ("base", xpos="far_left", ypos="head")
        $ changeLuna("pout","wide","angry","mid")
        her "What is your obsession with this crazy blonde girl?"
        gen "Now now, you're the one looking like her remember." ("base", xpos="far_left", ypos="head")
        gen "Unless you're referring to yourself there's nothing wrong with the way she looks." ("base", xpos="far_left", ypos="head")
        $ changeLuna("pout","base","sad","mid")
        her "..."
        gen "Now, I'd like to see those great assets of hers..." ("base", xpos="far_left", ypos="head")
        if her_whoring <= 13:# Lowish
            her "This again? I already told you, I'm not going to flaunt another students... assets."
            gen "Then why would you drink the potion?" ("base", xpos="far_left", ypos="head")
            her "You didn't tell me what it was going to do [genie_name]."
            gen "Oh, yeah..." ("base", xpos="far_left", ypos="head")
            her "I'm not going bare my... her chest... for you."
            gen "Well you wont be receiving any of those points..." ("base", xpos="far_left", ypos="head")
            her "..."
            her "Yeah, that's still going to be a no, bye [genie_name]."
            call her_walk(action="leave")
            $ her_mood += 10
            $ hermione_busy = True
            jump main_room
            # End Scene
    else:
        her "Ughhh... I feel like I'm going to throw up! Did the Polyjuice work??"
        gen "Like a charm." ("base", xpos="far_left", ypos="head")
        call nar(">Hermione starts examining herself, feeling out her outfit and pausing at her breasts.")
        $ changeLuna("base","seductive","raised","mid")
        her "Apparently I'm still a girl. Someone from Ravenclaw?"
        gen "Keen powers of observation, Miss Granger" ("base", xpos="far_left", ypos="head")
        call nar(">Hermione grabs a lock of her hair")
        $ changeLuna("pout","base","base","crossed")
        her "Definitely a blonde, though she could absolutely use a comb"
        $ changeLuna("base","base","base","crossed")
        call nar(">Suddenly Hermione feels something stuck in the mess of blonde. On closer examination it appears to be a wand.")
        $ changeLuna("base","wide","angry","mid")
        her "..."
        her "You turned me into Loony... I mean Luna Lovegood!?!"
        gen "Very astute, [hermione_name]." ("base", xpos="far_left", ypos="head")
        if not luna_known:
            # Do not set luna_known here, it could prevent her normal intro sequence
            gen "(No idea who that is, but she looks good.)" ("base", xpos="far_left", ypos="head")
        $ changeLuna("pout","wide","angry","mid")
        her "Why on earth would you want me to look like Luna? She's completely mental!"
        gen "I'm not seeing anything wrong with her." ("base", xpos="far_left", ypos="head")
        $ changeLuna("pout","base","sad","mid")
        her "She has... imaginary friends and believes in things that can't possibly exist [genie_name]. She is absolutely mad."
        gen "Fortunately, I'm not really interested in her mental health. I am interested in her impressive, and quite real, chest." ("base", xpos="far_left", ypos="head")
        if her_whoring <= 13: # Lowish
            her "I can't believe what you're suggesting, you're asking me to show off another students breasts?"
            gen "Well, what else would you have me do? Look at your face?" ("base", xpos="far_left", ypos="head")
            her "That's crossing the line [genie_name], I might not think very highly of Loony... Luna..."
            her "But I'm not going bare my... her chest... for you."
            gen "Then you wont be receiving any of those points..." ("base", xpos="far_left", ypos="head")
            her "..."
            her "Yeah, that's still going to be a no, bye [genie_name]."
            call her_walk(action="leave")
            $ her_mood += 10
            $ hermione_busy = True
            jump main_room
            # End scene
        else:
            $ changeLuna("base","seductive","raised","mid")
            her "You can't possibly be interested in that... that girl's paltry breasts."
            gen "Currently they're yours. And they don't look so paltry from where I'm sitting [hermione_name]. Do I detect a hint of jealousy?" ("base", xpos="far_left", ypos="head")
            $ changeLuna("base","base","angry","mid")
            her "Not at all, I suppose it is only natural that someone of your advanced age has trouble with their eyesight."
            gen "(definitely struck a nerve there.) Is that any way to talk to your elders, [hermione_name]? Perhaps you need a good spanking to remind you of your manners. We old people are good at giving those." ("base", xpos="far_left", ypos="head")
            $ changeLuna("disgust","base","sad","mid")
            her "I..I apologise, [genie_name]. I don't know what came over me."
            gen "Apology accepted. I'm sure they can't hold a candle to the brilliance of your boobs." ("base", xpos="far_left", ypos="head")
            $ changeLuna("pout","base","base","R")
            her "I'd like to think I'm more than just a pair of breasts... but thank you [genie_name]. That was flattering. In a way."
            gen "If you want to dispel all doubt, we could compare. Why don't you lift your shirt and show me what you... err... She's got under that sweater." ("base", xpos="far_left", ypos="head")
            $ changeLuna("pout","wide","angry","R")
            her "I'm still not entirely comfortable with this..."
    call nar(">Hermione quickly strips off her Ravenclaw top, followed by her bra.")
    hide luna_main
    with d3

    #$ luna_wear_top = False
    #$ luna_wear_bra = False
    call lun_chibi("stand","base","base")
    pause.5

    $ changeLuna("base","seductive","raised","R")
    show screen luna_main
    with d3

    if "luna_polyjuice" in her_potions_drunk:
        her "I assume you'd like a closer look like last time?"
        gen "Of course, get those cute pink nipples up here." ("base", xpos="far_left", ypos="head")
    else:
        her "There, see. Perfectly ordinary breasts. Absolutely no need to keep looking at them."
        gen "I'm not quite convinced, the soft pale skin, the cute pink nipples and they look like quite a handful. I think you might have some serious competition here [hermione_name]." ("base", xpos="far_left", ypos="head")
        $ changeLuna("upset","seductive","angry","mid")
        her "You can't be serious! They're saggy and couldn't even fill a first-year's palm!"
        gen "Hmmm, I'm not sure. I think a closer examination is required." ("base", xpos="far_left", ypos="head")
    hide luna_main
    with d3

    #call lun_walk("desk") #TODO Needs walking chibi that is topless.
    call lun_chibi("stand","desk","base") #Temporary!

    call nar(">In a huff, Hermione walks over and presents her new set of breasts")
    show screen luna_main
    with d3

    if "luna_polyjuice" in her_potions_drunk:
        gen "You look a bit flustered [hermione_name]." ("base", xpos="far_left", ypos="head")
        $ changeLuna("pout","seductive","angry","mid")
        her "You're staring directly at my chest [genie_name] and I can't help but feel a bit guilty as it's not my own..."
        gen "Well, hopefully this should take your mind off that... twenty points to Gryffindor." ("base", xpos="far_left", ypos="head")
        her "Thank you, [genie_name]...."
    else:
        gen "Yes yes, upon closer inspection it seems I was wrong. Luna's breasts are indeed second to your own." ("base", xpos="far_left", ypos="head")
        $ changeLuna("pout","seductive","angry","mid")
        her "I'm glad you came to your senses. Thank you, If you're completely satisfied, I'll cover these hideous things up now."
        gen "Completely, [hermione_name]. Twenty points to Gryffindor." ("base", xpos="far_left", ypos="head")
    hide luna_main
    with d3

    #$ luna_wear_top = True
    #$ luna_wear_bra = True
    call lun_chibi("stand","desk","base")
    pause.5

    $ changeLuna("base","closed","base","mid")
    show screen luna_main
    with d3

    her "Well I best be off to classes."
    gen "You're going to class looking like a fellow classmate?" ("base", xpos="far_left", ypos="head")
    $ changeLuna("base","base","raised","mid")
    her "It's not going to be a problem. Luna's barely in class as it is, I can just pretend to be her. Maybe I'll even improve her test scores. You'll notify the teachers I can't attend class right?"
    gen "Absolutely. (Not a chance) But, what if you bump into her in the halls?" ("base", xpos="far_left", ypos="head")
    $ changeLuna("pout","seductive","base","mid")
    her "Believe me [genie_name], Luna will probably think I'm some kind of Wrackspurt that's messing with her head."
    hide luna_main
    with d3

    call lun_walk(action="leave")

    $ hermione_busy = True

    $ her_potions_drunk.add("polyjuice")
    $ her_potions_drunk.add("luna_polyjuice")

    jump main_room

# #Lamia transformation.

# label potion_scene_1_3: #Lamia potion
    # her "That's dumb." ("scream", "happyCl", "worried", "mid")
    # gen "I literally don't know." ("base", xpos="far_left", ypos="head")
    # jump main_room


# #Clone transformation.

# label potion_scene_1_4: #Clone potion
    # gen "Do you ever feel conflicted about what we do in here [hermione_name]?" ("base", xpos="far_left", ypos="head")
    # her "Conflicted? I suppose I do... why do you ask?"
    # gen "because I have a new potion that can help you come to terms with this internal conflict." ("base", xpos="far_left", ypos="head")
    # her "What? How?"
    # gen "It splits your mind into two parts, allowing you to confront yourself and address the problem." ("base", xpos="far_left", ypos="head")
    # her "Splits my mind?! That doesn't sound very safe!"
    # gen "It only splits your mind metaphorically. I ensure you it's as safe as can be." ("base", xpos="far_left", ypos="head")
    # her "Well if you made it yourself then I trust it. I mean it's not like the weasley twins made it."
    # gen "Of course not... Now if you'd kindly drink it we can get to the bottom of your conflicted nature." ("base", xpos="far_left", ypos="head")
    # her "..."
    # her "Well here goes..."
    # call nar(">Hermione drinks the potion.")
    # her "Mmmmmm it's so sweet..."
    # her "Ughhhh, it's so sour..."

    # #Hermione split into two versions of herself, one slutty, one prudish
    # #Slutty one wants to have sex with Genie
    # #Genie obliges
    # #Slutty Hermione enjoying it immensely
    # #Genie trying to convince pruddy Hermione to join in
    # #Prude Hermione wants no part in it, although she is slightly aroused
    # #Slut Hermione
    # #Genie cums in Hermione
    # #Slut Hermione wants to go again
    # #Slut Hermione offers to suck Genie to get him hard
    # #Genie says why don't we get prude Hermione to do it
    # #Slut Hermione says that's a great idea
    # #Prude Hermione refuses
    # #Slut Hermione and Genie force her to her knees
    # #Genie talks dirty to Prude Hermione while Slutty Hermione encourages her
    # #Genie ends up covering her in cum
    # #Prude Hermione partially speechless
    # #Slutty Hermione wants to go again but Genie is spent
    # #Hermione reforms into one person
    # #Genie ridicules her, saying that even the most prudish and reseverved version of herself ended up sucking him off
    # #Hermione feels both shame and pride
    # #THE END


    # call her_walk(action="leave")

    # $ hermione_busy = True

    # jump main_room
