-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtb_encouter.py
executable file
·37 lines (27 loc) · 992 Bytes
/
tb_encouter.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
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python3
import creatures, random
art = '''
z
z
Z
.--. Z Z
/ _(c\ .-. __
| / / '-; \--'` `\______
\_\/'/ __/ ) / ) | \--,
| \`""`__-/ .'--/ /--------\ \
\`\ ///-\/ / /---;-. '-'
(________\ \
'-'
'''
def second_combat(player):
print(art)
d_10 = random.randint(1,10)
if d_10 > 2:
print("Sneaky sneaky... you did it.\n")
decision_counter=0
elif d_10 <= 2:
print("Oh snap, you woke him up you club footed moose. \n")
opponent=creatures.Creatures(name="sleepy guard", hp=12, attack=4) #initializing creature. Might need to update if creatures updates.
player.combat(opponent)
decision_counter=2
return(decision_counter)