forked from bredeson/PnP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeer_encounter.py
27 lines (25 loc) · 1.38 KB
/
beer_encounter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python3
import sass
from textFormat import input_s, print_s
def beer_encounter(user):
response_list=["You take a drink of sumptious sorghum whiskey, the finest you've ever tasted.", "You drink some more, it's been quite a day after all.", "You feel at one with all of humanity, but you're also losing fine motor control.", "You're getting a little woozy. Are you sure this is a good idea?", "Your vision is starting to blur and it's hard to see the cask anymore.", "You can't stand."]
drink_query="yes"
extra_drinks=0
while drink_query=="yes":
print_s(response_list[extra_drinks])
user.attack-=1
print_s("Your attack ability has been reduced to "+ str(user.attack)+".")
if extra_drinks%2==1:
user.intelligence-=1
print_s("Your intelligence has been reduced to " + str(user.intelligence)+".")
if extra_drinks>1:
user.hp-=1
print("Your health points have been reduced to " + str(user.hp) + ".")
if extra_drinks>=5:
print("You go into a catatonic stupor. You aren't conscious for your death, but rest assured it was embarassing.")
user.hp=0
break
drink_query=input_s("Do you want to keep drinking?", user)
extra_drinks+=1
while drink_query not in ["yes","no"]:
drink_query=input_s(sass.sample_sass(), user, "purple")