Update game.py

Added witch
This commit is contained in:
EmanuelLoos 2017-11-10 14:36:53 +01:00 committed by GitHub
parent dab551a945
commit f6f7c3d278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 41 additions and 22 deletions

63
game.py
View File

@ -9,10 +9,10 @@ dungeon1="""
#G<################################################################################################.#######.################
##.#########################################################################################################################
##.#########################################################################################################################
##.###.............*..........................*......G.....K.....................................................###########
##K###.###############.#########################################################################################.###########
##G###..K..###########*.....#####..#############################################################################.###########
##.#######..##########*####......##..###########################################################################.###########
##.###.............*..............H...........*......G.....K.................H...............H.H.................###########
##K###.###############H#########################################################################################.###########
##G###..K..###########*...H.#####HH#############################################################################.###########
##.#######..##########*####..H.H.##HH###########################################################################.###########
##.#####...###########K#########################################################################################.###########
##.#####.#############K#########################################################################################k###########
##.#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#d#########.###########
@ -35,24 +35,24 @@ dungeon1="""
"""
dungeon2="""
############################################################################################################################
#.>.................................................................................................#######.....#######....#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
-->....................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#......................................................................................................#...........#.......#
#...................................................................................................#######.....>######....#
#..........................................................................................................................#
#..........................................................................................................................#
#.>................................................................................#.......⬆........#######.....#######....#
#..................................................................................#................#..#...........#.......#
#.................................................................................#................#...#...........#.......#
#................................................................................#................#..l.#...........#.......#
#................................................................................#...............#...w.#...........#.......#
#................................................................................#..............#....b.#...........#.......#
#.................................................................................#............#....h..#...........#.......#
#..................................................................................#..........#....r.###...........#.......#
#................................................................................#..#........#....c.####...........#.......#
#...............................................................................#....#......#....e.###.#...........#.......#
-->.............................................................................#.....#....#....r.###..#...........#.......#
#..............................................................................#.......#..#......###...#...........#.......#
#...............................................................................#.....#..#......###....#...........#.......#
#....................................................##.###.###.####.###.####.####.#####.#####.###.....#...........#.......#
#....................................................#.................................................#...........#.......#
#...................................................#######################################################.....>######....#
#...........................................................................................................#########......#
#...................................................................................................########...............#
#..........................................................................................................................#
#..........................................................................................................................#
#..........................................................................................................................#
@ -278,8 +278,27 @@ while True:
dx=0
dy=0
# -------- kobold ende ---------
# -------- Hexe Anfang ---------
if target=="H":
print("Eine Hexe blockiert deinen Weg!")
print("Die Hexe verletzt dich mit einem Zauberball!")
schaden=random.Tanzunterricht(50,100)
hero_hp-=schaden
print("Du erleidest {} Schaden".format(schaden))
if hero_hp<1:
print:("Du stirbst!\nVersager!")
break
sieg=2
if random.random() < sieg:
level[heroz][heroy+dy][herox+dx]="."
print("Du erledigst heldenhaft die Hexe!!")
else:
print("Du Verlierst!")
dx=0
dy=0
herox+=dx
heroy+=dy
#--------Hexe Ende-------
#Aufheben
stuff=level[heroz][heroy][herox]
if stuff=="" or stuff=="$":