room "pain0"
  require_fetish :pain
  require_toy :clamps

  if has_encounter(:pain0)
    tell "Twist your clamps as far as you can in both directions at least #{hit:2} time#{s_hit:2}"
  else
    tell "Looks painful doesn't it? Put one clamp on each of your nipples."
    fast_button "~ARE DONE"
    tell "Great! Now twist the clamps as far as you can in both directions at least #{hit:2} time#{s_hit:2}"
    tell "Keep the clamps on your nipples until told otherwise."

    interrupt :pain0
      image "pain0"
      tell "Twist your nipples as far as you can in both directions."
    end

    encounter :pain0, label: "Nipple Clamps", in_steps: 5..10
      image "pain0"
      stop_interrupt :pain0
      tell "Welcome back to my room."
      tell "Twist those nipple clamps again as far as you can in both directions at least #{hit:2} time#{s_hit:2}"
      tell "Now pull them off without opening them... SLOWLY"
      fast_button "~ARE DONE"
      tell "Great."
      if toy_wood_spoon || toy_whip
        tell "Use your wooden spoon or whip to hit each nipple #{hit:4} time#{s_hit:4} HARD now"
      end
      tell "Wonderful. Now you know how she feels... At least a little bit."
    end
  end
end

room "pain1"
  require_fetish :pain
  require_fetish :complex
  require_toy :clamps

  tell "Looks like there is some special training going on out here"
  tell "Put a nipple clamp on each of your nipples and directly twist them around 180 degrees in both directions"

  if toy_gag
    tell "Now put your gag in your mouth."
  else
    tell "As you don't have a gag, just keep your mouth open all the time and put your tongue out."
  end
  
  tell "You have two options now. You can decide to stroke or just to wait... What do you want to do?"
  choices
    choice "Wait"
      tell "Okay... If you have a blindfold, fetch it and put it on. Afterwards just click and wait until the stroke sound stops. But no touching! As soon as the stroking sound stops you may take your blindfold off.", mode: :pause
      start_stroke :very_slow
      wait 120s, mode: :hidden
      stop_stroke
      if toy_gag
        tell "You may take your gag out now. Keep the drool on your body."
      end
    end
    
    choice "Stroke"
      tell "Great decision."

      if toy_vibrator
        tell "You'll soon hear a stroking sound. But instead of stroking hold your vibrator against your dick. You can choose from any power, but you must keep it on your penis"
      else
        tell "You'll soon hear a stroking sound. The speed is the minimum stroking speed, you can always vary between any higher speed, but you may not pause."
      end

      tell "Whenever you edge, you may stop teasing your dick, but you have to twist your nipple clamps 180 degrees in both directions for #{hit:5} metronome ticks."
      tell "If you have a blindfold, fetch it and put it on. Afterwards just click to start the stroking sound. As soon as the stroking sound ends your session will be finished and you can take of the blindfold off"

      start_stroke :very_slow
      wait 120s..180s, mode: :hidden
      stop_stroke
      if toy_gag
        tell "You may take your gag out now. Keep the drool on your body."
      end
    end
  end

  tell "Twist your nipple clamps once again 180 degrees in both directions and while still twisted remove them"
end

room "pain2"
  require_fetish :pain
  say "We're in pain tolerance class here, but she already really seems to love it. How about you?"

  if toy_wood_spoon
    say "Hit your ass, alternating the side after every 5 hits with your wooden spoon to the beat HARD."
  else
    say "Hit your ass, alternating the side after every 5 hits with your fand to the beat HARD."
  end

  hit_for 30s..60s, :fast

  say "Well done."
end

boolean pain3: 0
room "pain3"
  require_fetish :denial

  if pain3
    say "Oh.. You're back.. We're not finished here. Please come back another day."
  else
    say "Looks like someone is having some stamina training down here. Why don't you join the stamina training?"
    
    say "You're going to edge 5 times one after one. After each edge you'll have a 20 second break. Try not to edge in less than 20 seconds! You may stroke at your own speed but may not stop stroking during the edge period.", mode: :instant
    fast_button "~ARE READY TO START"

    tmp_string = current_time
    say "Edge for me the first time! Try not to edge within 20 seconds", mode: :instant
    edge 1
    tmp_string = current_time - tmp_string
    if tmp_string < 20
      goto_page "pain3-failed"
    end

    say "Good! Have a break", mode: :instant
    wait 20s
    
    tmp_string = current_time
    say "Edge for me the second time! Try not to edge within 20 seconds", mode: :instant
    edge 1
    tmp_string = current_time - tmp_string
    if tmp_string < 20
      goto_page "pain3-failed"
    end

    say "Good! Have a break", mode: :instant
    wait 20s

    tmp_string = current_time
    say "Edge for me the third time! Try not to edge within 20 seconds", mode: :instant
    edge 1
    tmp_string = current_time - tmp_string
    if tmp_string < 20
      goto_page "pain3-failed"
    end

    say "Good! Have a break", mode: :instant
    wait 20s

    tmp_string = current_time
    say "Edge for me the 4th time. Only 2 to go! Try not to edge within 20 seconds", mode: :instant
    edge 1
    tmp_string = current_time - tmp_string
    if tmp_string < 20
      goto_page "pain3-failed"
    end

    say "Good! Have a break", mode: :instant
    wait 20s

    tmp_string = current_time
    say "Edge for me the 5th time. Last one! Try not to edge within 20 seconds", mode: :instant
    edge 1
    tmp_string = current_time - tmp_string
    if tmp_string < 20
      goto_page "pain3-failed"
    end

    say "Great! You really have a good stamina. Have a break.", mode: :instant
    wait 60s
  end
end

page "pain3-failed"
  say "Too bad... You really are too aroused. You should not continue today! Come back another day, not before tomorrow."
  if toy_chasity
    say "Put on your chasity device now."
  end
  say "Copy the following code to a textfile and use 'Resume game' next time", mode: :instant
  say "<eval>gameCodeGenerate(curMaze, true)</eval>"
  button "End Game"
  goto_page "fail-end"
end

room "pain4"
  require_fetish :denial
  require_fetish :complex

  say "Let's test if you should really be allowed to cum today."
  say "Stroke yourself to an edge to the beat. If you don't manage to edge in 10 minutes you'll fail."
  start_stroke :slow
  choices
    choice "Edged"
      stop_stroke
      say "Good work! You may continue."
    end
    choice "Failed"
      stop_stroke
      say "Too bad for you. Seems like you need to become a little bit more horny to run through our school. Come back in 4 days."
      if toy_chasity
        say "Don't forget to put on your chasity device until you're back."
      end
      say "Copy the following code to a textfile and use 'Resume game' next time", mode: :instant
      say "<eval>gameCodeGenerate(curMaze, true)</eval>"
      button "End Game"
      goto_page "fail-end"
    end
  end
end

room "pain5"
  require_fetish :pain
  require_toy :clamps

  say "Ah.. Ahhhhh... It... It hurts... so.. much..."
  say "Please.... Join me....."
  say "Put one clamp on each of your nipples", mode: :instant
  fast_button "~ARE DONE"
  say "Now bend them up towards your head and afterwards back down towards your dick. Repeat to the beat"
  hit_for 30s, :very_slow
  say "Ahh... Soo hot... Knowing us in pain together..."
  say "Now press the tips of both clamps as strong as your can with your fingers and hold it."
  wait 10s * hit_power
  say "You can release..."

  say "I'm so horny watching you... You must also be... Edge for me #{edge:1} time#{s_edge:1}."
  edge 1
  say "Now RIB the clamps off FAST!!"

  wait 10s

  say "Do you love the feeling of your nipple hurting?"
  choices
    choice "Yes"
      say "I knew it! So.. Put those clamps on your nipples again and keep them on until another task asks you to do something else with your nipples."
    end
    choice "No"
      say "No? You don't? Oh... So sad, thought we can enjoy this together..."
    end
  end
end

room "pain6"
  require_fetish :pain
  require_toy :clamps

  if has_encounter(:pain6)
    say "Keep the clamp on your tongue."
  else
    say "A good slave doesn't need to talk..."
    say "Put your tongue out and put a clamp on it. Keep it until told otherwise."

    encounter :pain6, label: "Clamp on tongue", in_steps: 7..10
      image "pain6"
      say "So we meet again? You may remove the clamp from your tongue now."
    end
  end
end

room "pain7"
  require_fetish :pain

  say "You're such a nerd! Pull your balls down as far as you can and hit your dick with your strong hand to the beat! Make it hurt.", mode: :instant
  fast_button "~ARE READY TO START"
  stroke_for 30s, :medium
end

room "pain8"
  require_fetish :cbt

  say "Hmm... Another loser came by... Hit your balls #{hit:10} time#{s_hit:10}"
  hit_balls 10
end

room "pain9"
  require_fetish :pain

  if toy_wood_spoon
    say "Hihi... You seem to be a painslut... Take your wooden spoon and hit one of your inner tights with it to the beat. Make it hard and try to keep the same spot."
  elsif toy_whip
    say "Hihi... You seem to be a painslut... Take your whip and hit one of your inner tights with it to the beat. Make it hard and try to keep the same spot."
  else
    say "Hihi... You seem to be a painslut... Take your hand and hit one of your inner tights with it to the beat. Make it hard and try to keep the same spot."
  end

  hit_for 20s, :medium
  say "Now the other side."
  hit_for 20s, :medium
end

room "pain10"
  require_fetish :cbt

  say "You think I would stop to tease you?"
  say "Go fetch a shoe, then lay down on the floor, put your penis on the stomach and press the shoe on it (including your balls) as hard as you can. Hold it for at least #{1*hit_power} minute and change to pressure from the balls to the penis.", mode: :instant
  fast_button "~ARE DONE"
end

room "pain11"
  require_fetish :cbt
  
  say "Doesn't our little slave here looks happy?"
  say "Go fetch a show or use your fist to hit your balls #{hit:5} time#{s_hit:5}."
  hit_balls 5
  say "Hmm.. Not so funny.. Hit them HARD #{hit:5} time#{s_hit:5}."
  hit_balls 5
  say "Great. Now #{hit:1} time#{s_hit:1} so hard, that you get down on the floor by it"
  hit_balls 1

  say "Hahaha... Looks so funny"
end

room "pain12"
  require_fetish :cbt
  require_toy :wood_spoon

  say "Aww... He's dripping just by being beaten."
  say "Do you have chop stips and rubber bands?"
  choices
    choice "Yes"
      say "Great! Go and fetch them.", mode: :instant
      button "Fetched"
      say "Put the chop sticks together and use one rubber band at one side of the chop sticks to fix them together"
      say "Now bend forward as far as possible, pull your balls behind your back and put the chopsticks between your balls and the base of your cock, then use the other rubber band to fix the other side of the chop sticks"
      say "If you did everything correctly you should look like our little boytoy here. And you shouldn't be able to stand up anymore"
      say "Now try to stand up as far as possible, which shoul pull your balls strong"
      say "Great! Take your wooden spoon and hit them #{hit:10} time#{s_hit:10}"
      hit_balls 10
      say "Hahaha! Now to the beat"
      hit_for 10s, :medium
      say "HARDER.", mode: :instant
      hit_for 10s, :medium
      say "EVEN HARDER.", mode: :instant
      hit_for 10s, :medium
      say "GREAT! You did very well! You can put them off now."
    end
    choice "No"
      say "Sooo sad... At least hit your balls with your wooden spoon #{hit:10} time#{s_hit:10}"
      hit_balls 10
    end
  end
end

room "pain13"
  require_fetish :pain
  say "It hurts so much... But you should get used to it..."
  say "Take the spanking toy that hurts you most (take your hand if you have none) and hit both of your asscheeks 100 time"
end

room "pain14"
  require_fetish :cbt
  
  say "Hmmm...? Edge #{edge:1} time#{s_edge:1} for me."
  edge 1
  if toy_wood_spoon
    say "Now hit your cock #{hit:30} time#{s_hit:30} with your wooden spoon", mode: :instant
  else
    say "Now hit your cock #{hit:30} time#{s_hit:30} with a crop or so, if you have. Otherwise use your hand", mode: :instant
  end
  fast_button "~ARE DONE"

  say "Great... Let's repeat! Edge #{edge:1} time#{s_edge:1}."
  edge 1
  say "And hit your balls #{hit:30} time#{s_hit:30}.", mode: :instant
  fast_button "~ARE DONE"
end

room "pain15"
  require_fetish :pain
  require_fetish :complex

  say "Waiiit!! AH! AH!! STOP!!!"

  say "Oh, another one down here.", align: :left
  goto_page "pain15-loop"
end

page "pain15-loop"
  say "Spend the next #{2*hit_power} minutes spanking yourself with preferabely some paddle or belt or so.", mode: :instant
  button "Start timer"
  wait 120s*hit_power
  prompt_number :tmp_string, "Great. How many times did you hit yourself?"
  if tmp_string < 120*hit_power
    say "That's not enough! Try again."
    goto_page "pain15-loop"
  end

  say "Well, well... That seems okay to us"
  goto_page "next-room"
end

room "pain16"
  require_fetish :pain
  say "Ouch! It hurts... What are you looking at?! Spank your ass with your hands #{hit:50} time#{s_hit:50} each."
end

room "pain17"
  require_fetish :cbt
  require_toy :penis_plug
  say "Oh dear... It came out a little bloody? Maybe I should not fuck you that hard?"
  say "Ah... Whatever! Fuck your dick with your penis plug to the beat."
  hit_for 20s..30s, :very_slow
end

room "pain18"
  require_fetish :cbt
  require_toy :penis_plug

  say "Look what funny toys I got here... You know what I want to do with them?"
  say "First of all, plug your penis plug in.", mode: :instant
  fast_button "~ARE DONE"
  if toy_vibrator
    say "Good, now hold your vibrator at the end of the plug and set its power to medium.", mode: :instant
  else
    say "Good, after clicking on 'Start' vibrate your plug at a medium speed", mode: :instant
  end
  fast_button "~ARE READY TO START"
  wait (10s * hit_power..20s * hit_power)
  say "Well done! You can remove it now and move on."
end

room "pain19"
  require_fetish :pain
  
  say "AAAH!!!!!! ...."
  say "Ooops.. Looks like I hit too hard... However, I don't care."
  if toy_whip
    say "Take your whip and hit your back with it HARD until you really think you need a break."
  else
    say "Take a belt and hit your back with it HARD until you really think you need a break."
  end

  fast_button "~ARE DONE"
  say "Haha!! Well then... Hit yourself #{hit:2} time#{s_hit:2} again very HARD."
end

room "pain20"
  require_fetish :pain
  require_toy :whip

  say "Awww... How cute, our little toy is already crying..."
  say "Hit your back with your whip #{hit:10} time#{s_hit:10} and move on."
end

room "pain21"
  require_fetish :pain
  require_toy :clamps

  tell "She looks very exhaused to you... A voice from the background talks to you."
  say "Isn't she looking pretty? Take your clamps and put one on each nipple.", mode: :instant
  fast_button "~ARE DONE"
  say "Great now stroke for me."
  stroke_for 30s..45s, :medium

  if toy_wood_spoon
    say "Now take your wooden spoon and hit those clamps until they fall off.", mode: :instant
  else
    say "Now hit those clamps with your hands until they fall off.", mode: :instant
  end

  fast_button "~ARE DONE"
  say "Great! You may edge #{edge:1} time#{s_edge:1} as reward."
  edge 1
end

room "pain22"
  require_fetish :pain

  tell "Wow, she really is in some kind of traunce enjoying her pain."
  tell "Pinch your nipples each #{hit:20} time#{s_hit:20} an increase power every time."
end

room "pain23"
  require_fetish :cbt

  say "BAM! Hahaha, and another time KICK! hahaha."
  say "Hey you! Do you have an apple or something similar in weight and hardness?"
  choices
    choice "Yes!"
      say "Go and fetch it and put it into a sock. Use it with force to kick your balls to the beat.", mode: :instant
    end
    choice "No"
      say "Hmm.. Then pull your balls down with your weak hand and punch your balls to the beat.", mode: :instant
    end
  end
  fast_button "~ARE READY TO START"
  hit_for 10s, :slow
  say "Harder.", mode: :instant
  hit_for 10s, :slow
  say "Great! Now for some fast kicks.", mode: :instant
  hit_for 10s, :medium

  say "Haha! That's fun."
end

room "pain24"
  require_fetish :pain

  say "Spank your ass as many times as you like to, but make it hurt! However, count how many times you spanked yourself.", mode: :instant
  button "Finished spanking"
  prompt_number :tmp_string, "How many times did you spank yourself?"
  say "Well... Let's see if it's enough or not. Stroke yourself to an edge within #{tmp_string} strokes.", mode: :instant
  choices
    choice "Edged"
      say "Great! You may move on."
    end
    choice "Failed"
      say "I knew it... You failed spanking yourself properly! Let's do it again, but this time, each spank just counts a half stroke."
      goto_page "pain24-loop"
    end
  end
end

page "pain24-loop"
  say "Spank your ass as many times as you like to, but make it hurt! However, count how many times you spanked yourself.", mode: :instant
  button "Finished spanking"
  prompt_number :tmp_string, "How many times did you spank yourself?"
  say "Well... Let's see if it's enough or not. Stroke yourself to an edge within #{tmp_string/2} strokes.", mode: :instant
  choices
    choice "Edged"
      say "Great! You may move on."
      goto_page "next-room"
    end
    choice "Failed"
      say "I knew it... You failed spanking yourself properly! Let's try it again."
      goto_page "pain24-loop"
    end
  end
end

room "pain25"
  require_fetish :cbt
  require_toy :toothbrush

  say "Hey sweat boy! I'm just preparing myself for a little session~ Maybe you should als prepare by cleaning yourself?"
  say "First, pull back your foreskin a little bit."
  say "Good.. Now take your toothbrush, put on SOME toothpaste and clean your dicks head with it properly.", mode: :instant
  fast_button "~ARE DONE"
  say "Great! Let's just enjoy the feeling a little bit."
  wait 20s..30s, mode: :secret
end

room "pain26"
  require_fetish :cbt

  say "Oh, a new guest joins us? Let's test your skills."
  say "We want to test your estimation skills. You are going to slap your balls for one and a half minute. However, there is not automatically stopping timer. You'll have to guess when the time is over."
  say "So, after clicking on start, close your eyes and hit your balls to the beat. As soon as you think the time is over, click on the 'Finish' button"
  fast_button "~ARE READY TO START"
  tmp_string = current_time
  start_stroke 73
  fast_button "~FINISHED"
  stop_stroke
  tmp_string = current_time - tmp_string
  if tmp_string < 90
    say "Let's see. You took #{tmp_string} seconds... That's not enough! Attach 2 clamps to your balls and then let's repeat."
    goto_page "pain26-loop"
  else
    say "Great! You took #{tmp_string} seconds, that's a good time."
  end
end

page "pain26-loop"
  say "Click on 'Start', close your eyes and try again."
  fast_button "~ARE READY TO START"
  tmp_string = current_time
  start_stroke 73
  fast_button "~FINISHED"
  stop_stroke
  tmp_string = current_time - tmp_string
  if tmp_string < 90
    say "Let's see. You took #{tmp_string} seconds... That's still not enough! Attach another 2 clamps to your balls and then let's repeat."
    goto_page "pain26-loop"
  else
    say "Great! You took #{tmp_string} seconds, that's a good time! You may remove the attached clamps now."
  end
  goto_page "next-room"
end 

boolean pain27: 0
room "pain27"
  require_fetish :cbt
  require_fetish :complex

  if pain27 == 1
    say "Guess you already got your lesson.. Just move on."
  else
    say "This girl let a boy cum without permission. You see, we have really harsh punishments."
    say "Fetch at least 2 ice cubes, go to the shower and let the shower head target your balls. Turn on the water as cold as possible and while the cold water tortures your balls, rub the ice cubes against them. Repeat until the ice cubes melted or you **really** can't take anymore.", mode: :instant
    fast_button "~ARE DONE"
    say "Great... So better don't try to break the rules here."
    pain27 = 1
  end
end

room "pain28"
  require_toy :gag

  if has_encounter(:pain28)
    say "Still enjoying your gag? I hope you do."
  else
    tell "Looks like she is enjoying her summercamp day at the beach."
    tell "Put on your gag and keep it in your mouth until told otherwise."

    encounter :pain28, label: "Gag", in_steps: 10
      image :pain28
      tell "She still enjoys her bondage. Well, you may remove your gag now, if you want to."
    end
  end
end

room "pain29"
  require_fetish :cbt

  say "Left and right and left and right! Haha! I love watching this dick dancing to all sides."
  say "Hold your dick with your weak hand and slap your dick head #{hit:20} time#{s_hit:20}! Use any toy and your hand for it.", mode: :instant
  fast_button "~ARE DONE"
  say "Great, not #{hit:2} time#{s_hit:2} HARD.", mode: :instant
  fast_button "~ARE DONE"
  
  if has_encounter(:pain29)
    say "Great. See you soon."
  elsif toy_clamps
    say "Now attach 3 to 4 clamps to the opening of your foreskin of your penis.", mode: :instant
    fast_button "~ARE DONE"
    say "Great! Keep it there until I tell you to remove it. Have fun stroking at the next pages."
    encounter :pain29, label: "Biting penis clamps", in_steps: 3..5
      image :pain29
      say "Well.. Okay, you can remove the clamps from your penis now."
    end
  end  
end

room "pain30"
  require_fetish :pain

  say "I'm so bored with her... She doesn't even scream anymore. So it's a perfect timing for you to come here, I guess."
  say "Go and fetch a fork.", mode: :instant
  fast_button "~GOT IT"
  say "You couldn't fetch it any slower, couldn't you?."
  say "Good... Now scratch your left inner tight fast, but soft with the fork to the beat."
  hit_for 10s..20s, :fast
  say "Now the other side! Fast.", mode: :instant
  hit_for 10s..20s, :fast
  say "Again the LEFT side, but stronger this time.", mode: :instant
  hit_for 5s..10s, :slow
  say "And don't forget the RIGHT side.", mode: :instant
  hit_for 5s..10s, :slow

  say "Haha! It's always funny with a new painslut."
  say "Now make sure that your soles are free. So make sure you don't wear any socks or so.", mode: :instant
  fast_button "~ARE DONE"
  say "Great, try to stretch your toes out to make the surface of your sole stretched! You're going to scratch your soles softly to the beat"
  hit_for 10s..20s, :slow
  say "And the other side.", mode: :instant
  hit_for 10s..20s, :slow

  say "Painful, isn't it?."

  say "Now just one last thing! Hit your inner tights with anything. Can be your hand, can be a spoon or a paddle. Make it hard.", mode: :instant
  fast_button "~ARE READY"
  hit_for 10s..20s, :slow
  say "And the other side.", mode: :instant
  hit_for 10s..20s, :slow

  say "Well okay! Guess that's enough for now! You may move on... But come back if you liked our little session."
end

room "pain31"
  require_fetish :pain

  say "Ha... Ha... More!! Ha... Harder!!", align: left
  say "Hmmm? Who's there? Another one? You should know, whip marks are something you should show proudly around! It's something you can be very proud of."
  say "Let's make sure you get some! Go and fetch a rubber band.", mode: :instant
  choices
    choice "Got it."
      say "Great, put it over your thumb and index finger of your weak and, make sure they have at least 5 cm distance and put them directly on your inner tights."
      say "Next I want you to use your other hand to pull the band back as far as you can without the band ripping"
      say "And now RELEASE it."
      flash :pain31

      say "Ahhh.. That's a nice mark! Let's repeat it another #{hit:9} time#{s_hit:9}", mode: :instant
      fast_button "~ARE DONE"
      say "Good.. But I see you still have the other tight, so repeat it with the other tight also #{hit:10} time#{s_hit:10}", mode: :instant
      fast_button "~ARE DONE"

      if fetish_cbt
        say "Sooo. Great news that you got something between those tights. Repeat the procedure but instead of using your tights, go along your dick. You don't have to pull the rubber band that strong this time, but repeat it #{hit:5} time#{s_hit:5}.", mode: :instant
        fast_button "~ARE DONE"
        say "And a last time... Put the rubber band right in front of the tip of your tick and hit it #{hit:1} time#{s_hit:1}! Don't pull back too strong this time.", mode: :instant
        fast_button "~ARE DONE"
      end

      say "Great! You should show your new marks to everyone! They will be really proud of you."
    end
    choice "Don't own one"
      say "Not? Well then... Just move on."
    end
  end
end

room "pain32"
  require_fetish :pain
  require_fetish :complex

  say "Hmm... I love the face of slaves not knowing what's happening next."
  say "Go and grab half a cup of uncooked rice", mode: :instant
  choices
    choice "Got it."
      say "Good! Spread it across the floor.", mode: :instant
      fast_button "~ARE DONE"
      say "Now kneel in front of me and make sure that the uncooked rice is just below your knees! It should hurt...", mode: :instant
      fast_button "~ARE DONE"
      say "Great! Now simply stroke."
      hit_for 30s, :slow
      say "Balance your weight on the knees! And keep stroking", mode: :instant
      hit_for 20s, :slow
      say "Great! You can clean up the rice now and move on."
    end
    choice "Don't have rice"
      say "Not? How sad... Well then.. Just move on."
    end
  end
end

room "pain33"
  require_fetish :pain

  say "Haaaa! A loser painslut down here?! Hit both of your inner tights #{hit:10} time#{s_hit:10}. Use the most painful toy you own for it, or use your hand if you don't have a toy."
end

room "pain34"
  require_fetish :pain
  require_toy :whip

  say "Ha? You're so aroused that you'd like me to let you cum?"
  say "You have to be punished for that thought."
  say "Use your whip to whip your back. Whip it over both shoulders each #{hit:40} time#{s_hit:40}."
end

room "pain35"
  require_fetish :pain

  say "I knew it, you immediately just looked at the toys! You need them more than any girl? Well okay..."
  if toy_wood_spoon
    say "Use your wooden spoon or any paddle to spank your ass cheeks #{hit:50} time#{s_hit:50} each."
  else
    say "Use your any paddle or your hand to spank your ass cheeks #{hit:50} time#{s_hit:50} each."
  end
end

room "pain36"
  require_fetish :cbt
  require_fetish :pain

  say "Aww.. Look at our little slave here.. His dick has no use for us anymore so it's more like a little toy."
  say "Stretch your balls separately isolating a testicle in one hand between the thumb and a couple of fingers. Try to work it away from the body by compressing and rolling it until it is stretched to its maximum! Hold it this way for 30 seconds for each of your testicles.", mode: :instant
  fast_button "~ARE DONE"
end

boolean pain37: 0
room "pain37"
  require_fetish :pain
  require_fetish :cbt
  require_fetish :complex

  if has_encounter(:pain37)
    say "Oh, it's you again? Drop the bottle from the heighest point you can handle."
  elsif pain37
    say "Oh, it's you again? Just slap your dick #{hit:3} time#{s_hit:3} hard and move on."
  else
    say "Oh, who are you? I didn't see you in here before."

    pain37 = 1
    say "I like to test the pain tolerance of new slaves whenever I run into one"
    say "Do you have a parachute for your balls?"
    choices
      choice "Yes"
        say "Great! Fetch it and put it on."
      end
      choice "No"
        say "No problem. Just fetch something like a shoelace and bind it around your balls. Leave some space at the ends."
      end
    end

    say "Perfect! Now go and fetch a huge bottle of water and bind it to it.", mode: :instant
    fast_button "~ARE DONE"

    say "Great. You know whats coming next? From now on until the next few tasks you're going to stand up and keep the weight pulling down your balls. Hihihi! Keep it until I tell you otherwise."
    interrupt :pain37, each_steps: 2
      image "pain37"
      tmp_string = floor(random_float * 4)

      if tmp_string == 0
        say "Put the bottle on the table and step back until it falls down"
      elsif tmp_string == 1
        say "Swing the bottle between your balls as far as your can. At least 10 times."
      elsif tmp_string == 2
        say "Drop the bottle from chest height #{hit:3} time#{s_hit:3}"
      elsif tmp_string == 3
        say "Hit your balls for #{hit:10} time#{s_hit:10}"
      end
    end

    encounter :pain37, label: "Balls Weight", in_steps: 10..12
      image "pain37"
      stop_interrupt :pain37
      say "Okay.. Guess we played long enough. You can remove everything now."
    end
  end
  
end

room "pain38"
  require_fetish :pain
  require_toy :whip
  
  say "Noo.. Please stop already! It hurts so much."
  say "At least please join me.. Whip your butt until you see some slightly red whip marks.", mode: :instant
  fast_button "~ARE DONE"
end

room "pain39"
  require_fetish :pain
  require_fetish :cbt

  say "Hmmm? You're hard already just because my feet touches your little thing you call a dick?"
  say "Take both of your hands, put your testicles inbetween and press them together like you wanted to get all the juice out of a lemon.", mode: :instant
  fast_button "~ARE READY TO START"
  say "Prepare yourself.", mode: :instant
  wait 5s, mode: :normal
  say "SQUEEZE IT.", mode: :instant
  wait 15s
  say "HARDER.", mode: :instant
  wait 10s
  say "STILL HARDER.", mode: :instant
  wait 5s

  say "Great... Now move on."
end

boolean pain40: 0
room "pain40"
  require_fetish :pain
  require_fetish :cbt
  require_fetish :complex

  say "What a pathetic little dog you are for coming down here."
  if pain40
    say "Move on! I already had my fun with you."
  else
    pain40 = 1
    say "Go and fetch a bowl full of ICE cold water. If you have ice cubes, put all of them into that bowl.", mode: :instant
    fast_button "~ARE DONE"
    say "Great. Now bind your balls so that they are separated by a few centimeters from your body.", mode: :instant
    fast_button "~ARE DONE"

    say "Good! Now kneel on the floor where you belong and put the bowl between your legs."
    say "Click on start when you are ready.", mode: :instant
    fast_button "~ARE READY TO START"

    say "Prepare yourself.", mode: :instant
    wait 5s

    say "Perfect! Put your balls into the bowl. Make sure they stay there.", mode: :instant
    wait 15s
    say "Good. Pull them out again.", mode: :instant
    wait 3s
    say "Now squeeze them as hard as you can can and hold it.", mode: :instant
    wait 5s
    say "Good! And back into that bowl.", mode: :instant
    wait 20s
    say "Pull it out again.", mode: :instant
    wait 5s
    tmp_string2 = 0
    goto_page "pain40-loop"
  end
end

page "pain40-loop"
  say "Now dip your balls in the bowl again and keep them submerged as long as you can.", mode: :instant
  tmp_string = current_time
  fast_button "~CAN'T STAND IT ANYMORE"
  tmp_string = current_time - tmp_string
  if tmp_string < 32
    tmp_string2 += 1
    if tmp_string2 < 3
      say "That's not long enough. Have a short break.", mode: :instant
      wait 30s
      goto_page "pain40-loop"
    else
      say "You really are a loser! Move on."
      end_of_room
    end
  end

  say "Haha! Perfect! You managed to hold it for #{tmp_string} seconds. Have a break and hit your balls in the meantime to the beat.", mode: :instant
  start_stroke :slow
  wait 20s
  stop_stroke
  
  tmp_string += 5
  say "Now hold it down for #{tmp_string} seconds.", mode: :instant
  wait tmp_string, mode: :normal

  say "Okay! I'm done with you. You may move on."
  end_of_room
end

room "pain41"
  require_fetish :pain

  say "Hmm? What are you standing around here?! A slave like you is only allowed to be down on the floor."
  say "As punishment, click on Start and then stand on your own hands.", mode: :instant
  fast_button "~ARE READY TO START"

  say "Prepare.", mode: :instant
  wait 5s, mode: :normal
  say "Start.", mode: :instant
  wait 30s

  say "Now move on."
end

room "pain42"
  require_fetish :pain

  say "Aww.. What a cute looking boy toy we have here..."
  say "Get down on the floor and spit on the floor.", mode: :instant
  fast_button "~ARE DONE"
  say "Now rub you dick around the spit.", mode: :instant
  fast_button "~ARE DONE"
  say "Perfect. And now... Lick it all clean.", mode: :instant
  fast_button "~ARE DONE"
  say "Hahaha! Boys really do everything just to be allowed to cum! Move on."
end

boolean pain43: 0
room "pain43"
  require_fetish :pain
  require_fetish :complex

  if fetish_anal && toy_dildo
    has_anal_task
  end

  if pain43
    say "You again? You already got your training! Move on."
  else
    pain43 = 1
    say "Hm? You're done with her? Perfect timing! Here is the next slave."
    say "You there! Fill in water in your sink.", mode: :instant
    fast_button "~ARE DONE"
    say "You now have to do two tasks in order, so please read them carefully."
    say "First: Take a deep breath and hold your head down under the water until you really can't stand it anymore! Then pull it out."
    start_stroke :slow

    if fetish_anal && toy_dildo
      say "Afterwards, fuck youself to a maximum of around 60BPS (the tick sound) and try to edge #{edge:1} time#{s_edge:1}. However you may only fuck yourself while your head is below the water. You can take as many breaks as your need to."
      say "If you can't edge anally, just stroke yourself with the other hand in the meantime."
    else
      say "Afterwards, start stroking to a maximum of around 60BPS (the tick sound) and try to edge #{edge:1} time#{s_edge:1}. However you may only stroke while your head is below the water. You can take as many breaks as your need to."
    end

    say "So! Let's go.", mode: :instant
    fast_button "~FINISHED THE TASK AND EDGED"
    say "Great! Move on, we're expecting the next one to come."
  end
end