Ejemplo n.º 1
0
def room17(player):

    print1("\nYou entered a long hallway")
    print1("There are lot of equipment attached on the walls")

    if Enemy('paladin').encounter():
        print2("Something walks up from the darkness")
        print1("It grabbed some of the equipments")

        battle(player, 'paladin')
        if Rapier('rapier3').item_drop():
            weapon_drop(player, Rapier('rapier3'))
        elif HealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'HealingPotion')

    elif Enemy('zombie').encounter():
        print2(f"You encountered a {Enemy('zombie').name}")

        battle(player, 'zombie')
        if HealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'HealingPotion')
    
    while True:
        action = prompt("There are 3 doors you can use\n1. North door   2. South Door   3. West Door")
        if action == 1:
            return 'room12'
        elif action == 2:
            return 'room19'
        elif action == 3:
            return 'room16'
        else:
            print("Error: Invalid input")
Ejemplo n.º 2
0
def room18(player):

    print1("\nYou entered a long hallway")
    print1("There are Knight armor along the wall")

    if Enemy('knight').encounter():
        print2("One of them started to move")

        battle(player, 'knight')
        if Sword('sword3').item_drop():
            weapon_drop(player, Sword('sword3'))
        elif HealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'HealingPotion')
        
    elif Enemy('zombie').encounter():
        print2(f"A {Enemy('zombie').name} appears between the armor")

        battle(player, 'zombie')
        if LesserHealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'LesserHealingPotion')
    
    while True:
        action = prompt("You see 2 doors\n1. North Door   2. East Door")
        if action == 1:
            return 'room16'
        elif action == 2:
            return 'room19'
        else:
            print("Error: Invalid input")
Ejemplo n.º 3
0
def room14(player):

    print1("\nYou entered a room")
    print1("There are vines all over the walls")

    if Enemy('skeleton').encounter():
        print2(f"You encountered a {Enemy('skeleton').name}")

        battle(player, 'skeleton')
        if HealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'HealingPotion')

    elif Enemy('slime3').encounter():
        print2(f"A {Enemy('slime3').name} fell from the roof")

        battle(player, 'slime3')
        if LesserHealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'HealingPotion')

    while True:
        action = prompt("You see 3 doors you can use\n1. North Door #1   2. North Door #2   3. East Door")
        if action == 1:
            return 'room10'
        elif action == 2:
            return 'room11'
        elif action == 3:
            return 'room12'
        else:
            print("Error: Invalid input")
Ejemplo n.º 4
0
def room10(player):

    print1("\nYou entered a small hallway")
    print1("There are cobwebs on the ceiling")

    if Enemy('skeleton').encounter():
        print2(f"A {Enemy('skeleton').name} is blocking your path")
        
        battle(player, 'skeleton')
        if Rapier('rapier2').item_drop():
            weapon_drop(player, Rapier('rapier2'))

    elif Enemy('slime2').encounter():
        print2(f"You encountered a {Enemy('slime2').name}")
        
        battle(player, 'slime2')
        if HealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'HealingPotion')
    
    while True:
        action = prompt("There are 2 doors you can use\n1. North Door   2. South Door")
        if action == 1:
            return 'room6'
        elif action == 2:
            return 'room14'
        else:
            print("Error: Invalid input")
Ejemplo n.º 5
0
def room12(player):

    print1("\nYou entered a massive room")
    print1("There are decaying corpses around the room")
    print1("The smell is horrible")

    if Enemy('zombie').encounter():
        print2("One of the corpses starts to move again")

        battle(player, 'zombie')
        if Armor('armor2').item_drop():
            apparel_drop(player, Shield('armor2'))
        if HealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'HealingPotion')

        if Enemy('zombie').encounter():
            print2("A second one starts to move")
            
            battle(player, 'zombie')
            if Axe('axe3').item_drop():
                weapon_drop(player, Axe('axe3'))

            if Enemy('zombie').encounter():
                print2("A third one is coming")
                
                battle(player, 'zombie')
                if HealingPotion().item_drop():
                    player.add_potion('Potion.Potion', 'HealingPotion')

    while True:
        action = prompt("You see 4 doors you can use\n1. North Door #1   2. North Door #2   3. South Door   4. West Door")
        if action == 1:
            return 'room7'
        elif action == 2:
            return 'room8'
        elif action == 3:
            return 'room17'
        elif action == 4:
            return 'room14'
        else:
            print("Error: Invalid input")
Ejemplo n.º 6
0
def room3(player):

    print1("\nYou entered a huge room, it is barely lit")
    print1("There are bones scattered across the floor")

    if Enemy('skeleton').encounter():
        print2(f"A {Enemy('skeleton').name} rose up from the pile")

        battle(player, 'skeleton')
        if Armor('armor2').item_drop():
            apparel_drop(player, Armor('armor2'))

        if Enemy('skeleton').encounter():
            print2(f"A second {Enemy('skeleton').name} rose up from the pile")
            
            battle(player, 'skeleton')
            if LesserHealingPotion().item_drop():
                player.add_potion('Potion.Potion', 'LesserHealingPotion')
                    
            if Enemy('skeleton').encounter():
                print2(f"A third {Enemy('skeleton').name} rose up from the pile")
                
                battle(player, 'skeleton')
                if HealingPotion().item_drop():
                    player.add_potion('Potion.Potion', 'HealingPotion')

                if Enemy('skeleton').encounter():
                    print2(f"A fourth {Enemy('skeleton').name} rose up from the pile")

                    battle(player, 'skeleton')
                    if LesserHealingPotion().item_drop():
                        player.add_potion('Potion.Potion', 'LesserHealingPotion')

    while True:
        action = prompt("There are 2 doors\n1. South Door   2. West Door")
        if action == 1:
            return 'room9'
        elif action == 2:
            return 'room5'
        else:
            print("Error: Invalid input")
Ejemplo n.º 7
0
def room9(player):

    print1("\nThe room is massive")
    print1("A chandelier is hanging from the ceiling")
    print1("All the candles are lit")

    if Enemy('slime3').encounter():
        print2(f"You encountered a {Enemy('slime3').name}")

        battle(player, 'slime3')
        if Axe('axe2').item_drop():
            weapon_drop(player, Axe('axe2'))

    if Enemy('slime2').encounter():
        print2(f"A {Enemy('slime2').name} is charging at you from behind")

        battle(player, 'slime2')
        if HealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'HealingPotion')

    elif Enemy('skeleton').encounter():
        print2(f"You encountered a {Enemy('skeleton').name}")

        battle(player, 'skeleton')
        if LesserHealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'LesserHealingPotion')
    
    while True:
        action = prompt(f"You see 3 doors you can go through\n1. North Door   2. South Door (Mini Boss: {Enemy('mini1').name})   3. West Door")
        if action == 1:
            return 'room3'
        elif action == 2:
            return 'room13'
        elif action == 3:
            return 'room7'
        else:
            print("Error: Invalid input")
Ejemplo n.º 8
0
def room19(player):

    print1("\nYou entered a small room")
    print1("Old books are scattered on the floor")

    if Enemy('zombie').encounter():
        print2(f"You encountered a {Enemy['zombie'].name}")

        battle(player, 'zombie')
        if HealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'HealingPotion')
        elif LesserHealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'LesserHealingPotion')

    while True:
        action = prompt(f"You can use 3 doors\n1. North Door   2. East Door (BOSS: {Enemy('boss1').name})   3. West Door")
        if action == 1:
            return 'room17'
        elif action == 2:
            return 'room20'
        elif action == 3:
            return 'room18'
        else:
            print("Error: Invalid input")
Ejemplo n.º 9
0
def room16(player):

    print1("\nYou entered a small room")
    print1("A single torch is enough to lit the room")

    if Enemy('zombie').encounter():
        print2(f"You encountered a {Enemy('zombie').name}")

        battle(player, 'zombie')
        if HealingPotion().item_drop:
            player.add_potion('Potion.Potion', "HealingPotion")
        elif LesserHealingPotion().item_drop:
            player.add_potion('Potion.Potion', "LesserHealingPotion")

    while True:
        action = prompt(f"There are 3 doors available\n1. East Door   2. South Door   3. West Door (Mini Boss: {Enemy('mini2').name})")
        if action == 1:
            return 'room17'
        elif action == 2:
            return 'room18'
        elif action == 3:
            return 'room15'
        else:
            print("Error: Invalid input")
Ejemplo n.º 10
0
def room8(player):

    print1("\nDust is floating through the air")
    print1("Torches are attached along the walls")

    if Enemy('slime3').encounter():
        print2(f"A {Enemy('slime3').name} is lunging at you")

        battle(player, 'slime3')
        if Shield('shield2').item_drop():
            apparel_drop(player, Shield('shield2'))
        elif HealingPotion().item_drop():
            player.add_potion('Potion.Potion', 'HealingPotion')
    
    while True:
        action = prompt("There are 3 doors you can go through\n1. East Door   2. South Door   3. West Door")
        if action == 1:
            return 'room9'
        elif action == 2:
            return 'room12'
        elif action == 3:
            return 'room7'
        else:
            print("Error: Invalid input")