-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathelections.py
176 lines (168 loc) · 6.76 KB
/
elections.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
from npcs import Npcs
def choice_right_for_the_forest(
weapon: list, answer_weapon: list, skills_attacks: dict, spells_atacks: dict
) -> str:
"This method prints the choices made by the user, killing a enemy, talking the right path in the forest"
while True:
weapons = weapon
answer_of_the_weapon = answer_weapon
skills = skills_attacks
spells = spells_atacks
election = input(
"A big bat appears, Do you want to run or fight? (write run or fight) "
).lower()
if election == "fight":
enemy = Npcs()
if answer_of_the_weapon == "book":
for key, power in spells.items():
print("your attack is", key, "with power", power)
enemy.npc_enemy_bat(spells)
print("You continue and you find a new spell, Regeneration")
spells["Regeneration"] = 80
break
elif answer_of_the_weapon == "sword":
for key, power in skills.items():
print("your attack is", key, "with power", power)
enemy.npc_enemy_bat(skills)
print("You continue and you find a new chest armor")
weapons.append("Chest Armor")
break
else:
print("This option is not correct, the goblin kill you. Dumd ")
break
elif election == "run":
print(
"You run far away of the big bat and find a exit of the ruins, you find anything"
)
break
else:
print("This option is not correct, try again")
def choice_left_for_the_forest(
weapon, answer_weapon: list, skills_attacks: dict, spells_atacks: dict, pets: list
) -> str:
"This method prints the choices made by the user, killing a enemy, talking the left path in the forest"
while True:
weapons = weapon
enemy_left = Npcs()
pets = pets
answer_of_the_weapon = answer_weapon
skills = skills_attacks
spells = spells_atacks
election = input(
"A goblin appears, Do you want to run or fight him? (write run or fight) "
).lower()
if election == "fight":
print()
if answer_of_the_weapon == "book":
for key, power in spells.items():
print("your attack is", key, "with power", power)
enemy_left.npc_enemy_goblin(spells)
print("You continue and find a new spell, Poison")
spells["Posion"] = 900
break
elif answer_of_the_weapon == "sword":
for key, power in skills.items():
print("your attack is", key, "with power", power)
enemy_left.npc_enemy_goblin(skills)
print("You continue and you find a shield")
weapons.append("Shield")
break
else:
print("This option is not correct, the goblin kill you. Dumd ")
break
elif election == "run":
print(
"You run far away of the goblin and find a exit of the ruins, you find a baby dog"
)
pets.append("Baby dog")
break
else:
print("This option is not correct, try again")
def choice_left_for_the_cave(
weapon, answer_weapon: list, skills_attacks: dict, spells_atacks: dict
) -> str:
"This method prints the choices made by the user, killing a enemy, talking the left path in the cave"
while True:
weapons = weapon
answer_of_the_weapon = answer_weapon
skills = skills_attacks
spells = spells_atacks
election = input(
"A big bat appears, Do you want to run or fight? (write run or fight) "
).lower()
if election == "fight":
enemy = Npcs()
if answer_of_the_weapon == "book":
for key, power in spells.items():
print("your attack is", key, "with power", power)
enemy.npc_enemy_bat(spells)
print("You continue and you find a new spell, Landslide")
spells["Landslide"] = 490
break
elif answer_of_the_weapon == "sword":
for key, power in skills.items():
print("your attack is", key, "with power", power)
enemy.npc_enemy_bat(skills)
print("You continue and you find a new warrior helmet")
weapons.append("Warrior Helmet")
break
else:
print("This option is not correct, the goblin kill you. Dumd ")
break
elif election == "run":
print(
"You run far away of the big bat and find a exit of the cave, you find a knife"
)
weapons.append("Knife")
break
else:
print("This option is not correct, try again")
def choice_right_for_the_cave(
weapon,
answer_weapon: list,
skills_attacks: dict,
spells_atacks: dict,
elements: list,
pets: list,
) -> str:
"This method prints the choices made by the user, killing a enemy, talking the right path in the cave"
while True:
element = elements
weapons = weapon
enemy_left = Npcs()
pets = pets
answer_of_the_weapon = answer_weapon
skills = skills_attacks
spells = spells_atacks
election = input(
"A big mouse appears, Do you want to run or fight him? (write run or fight) "
).lower()
if election == "fight":
print()
if answer_of_the_weapon == "book":
for key, power in spells.items():
print("your attack is", key, "with power", power)
enemy_left.npc_enemy_goblin(spells)
print(
"You continue and find a amulet that gives you a new element, Thunder"
)
element.append("Thunder")
break
elif answer_of_the_weapon == "sword":
for key, power in skills.items():
print("your attack is", key, "with power", power)
enemy_left.npc_enemy_goblin(skills)
print("You continue and you find a shield")
weapons.append("Shield")
break
else:
print("This option is not correct, the goblin kill you. Dumd ")
break
elif election == "run":
print(
"You run far away of the big mouse and find a exit of the ruins, you find a baby bat"
)
pets.append("Baby bat")
break
else:
print("This option is not correct, try again")