Ejemplo n.º 1
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        print(game_text.armory_enter)
        while True:
            choice = game_classes.take_stock(self.options, 5)

            if choice == 1 and self.weapon_available != False:
                self.weapon_available = weapon_swap(protag,
                                                    self.weapon_available)
                if self.weapon_available == False:
                    del self.options[1]
                else:
                    self.options[1] = 'Pickup the {}'.format(
                        self.weapon_available.name)
            elif choice == 2:
                game_classes.transition("Security Offices")
                return 'security'
            elif choice == 3 and self.suit_available != False:
                self.suit_available = weapon_swap(protag, self.suit_available)
                if self.suit_available == False:
                    del self.options[3]
                else:
                    self.options[3] = 'Pickup the {}'.format(
                        self.weapon_available.name)
            elif choice == 4 and self.healing_available == True:
                self.healing_available = heal(protag, 40)
                if self.healing_available == False:
                    del self.options[4]
            else:
                game_classes.notnow()
Ejemplo n.º 2
0
    def enter(self, protag):
        game_classes.linebreak(big=True)

        if self.invaders != False:
            print(
                "You walk out onto the catwalk and see two Zhendojan Beetles standing guard over the Engine Room"
            )
            print("They see you and start angrilly clicking")
            strategy = combat(protag, self.invaders)
            if strategy == 1:
                return 'death'
            elif strategy == 2:
                return 'lounge'
            else:
                self.invaders = False
        else:
            print("You walk onto the catwalk overlooking the Cargo Hold")

        while True:
            choice = game_classes.take_stock(self.options, self.setup)

            if choice == 1:
                game_classes.transition("Central Corridor")
                return 'central_c'
            elif choice == 2:
                game_classes.transition("Engine Room")
                return 'eng_room'
            else:
                game_classes.notnow()
Ejemplo n.º 3
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        if protag.prologue == True:
            print(game_text.lounge_intro)
            protag.prologue = False
        else:
            print(
                "You enter the crew lounge, the area where the crew relaxes on their breaks"
            )

        while True:
            choice = game_classes.take_stock(self.options, self.setup)

            if choice in self.possibilities.keys():
                print(self.possibilities[choice].format(protag.fourth))
                if choice == 1:
                    self.setup = 9
            elif choice == 3:
                game_classes.transition("Central Corridor")
                return 'central_c'
            elif choice == 4 and self.weapon_available != False:
                self.weapon_available = weapon_swap(protag,
                                                    self.weapon_available)
                if self.weapon_available == False:
                    del self.options[4]
            elif choice == 6:
                game_classes.transition("Mess Hall")
                return 'mess_hall'
            else:
                game_classes.notnow()
Ejemplo n.º 4
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        if self.invaders != False:
            print(
                "You enter the bridge expecting to find a full host of \nWar Beetles but there are only two waiting for you \n\nTHEY ATTACK"
            )
            strategy = combat(protag, self.invaders)
            if strategy == 1:
                return 'death'
            elif strategy == 2:
                return 'lounge'
            else:
                self.invaders = False
        else:
            print("You enter the bridge, greeted by emptiness and darkness.")

        game_classes.linebreak()
        print(game_text.bridge_enter)

        while True:
            choice = game_classes.take_stock(self.options, self.setup)

            if choice in self.possibilities.keys():
                print(self.possibilities[choice])
                if choice == 1:
                    self.setup = 10
            elif choice == 2:
                game_classes.transition("Main Body")
                return 'main_body'
            elif choice == 9:
                if self.weapon_available != False and protag.triggers == 0:
                    print(
                        "You approach the familiar captains chair and find your secret button."
                    )
                    print(
                        "Upon pushing it, the back of the chair opens up to reveal a {}!"
                        .format(self.weapon_available.name))
                    self.weapon_available = weapon_swap(
                        protag, self.weapon_available)

                if protag.triggers == 0:
                    print(
                        "If your ship was functioning, you could restart the ship and pilot your way out of here, but as of now, its still broken."
                    )
                elif protag.triggers == 1:
                    print(
                        "The ship is fixed! You can pilot your way home from here!"
                    )
                    done = input("Are you ready to go home?\n >> ")
                    if "y" in done.lower():
                        return 'finished'
                    else:
                        print("Alright finish up then come back here later")
            else:
                game_classes.notnow()
Ejemplo n.º 5
0
    def enter(self, protag):
        if self.invaders != False:
            print(game_text.eng_attack)
            strategy = combat(protag, self.invaders)
            if strategy == 1:
                return 'death'
            elif strategy == 2:
                return 'lounge'
            else:
                self.invaders = False
        else:
            print("You enter the engine room and take a look around.")

        while True:
            choice = game_classes.take_stock(self.options, self.setup)

            if choice == 1:
                game_classes.transition("Catwalk")
                return 'catwalk'
            elif choice in self.possibilities.keys():
                print(self.possibilities[choice])
                if choice == 2:
                    self.setup = 5
                elif choice == 3:
                    protag.pages += 1
            elif choice == 4 and protag.triggers == 0:
                print(game_text.eng_repair)
                yn = game_classes.intcheck("Fix Engine?  1 = Yes, 2 = No: ")
                if yn == 1:
                    while True:
                        low_end = min(protag.pages, 4)
                        if protag.armed == tool:
                            low_end += 1

                        attempt = rn.randrange(low_end, 11)
                        if attempt == 7:
                            protag.triggers = 1
                            print(game_text.eng_fix)
                            del self.options[4]
                            break
                        else:
                            print(
                                '\nA Beetle found you while you were working!\n'
                            )
                            e_strategy = combat(protag, [
                                game_classes.Beetle('The Beetle', 30, 8, 101,
                                                    None)
                            ])
                            if e_strategy == 1:
                                return 'death'
                            elif e_strategy == 2:
                                return 'lounge'
            else:
                game_classes.notnow()
Ejemplo n.º 6
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        print("You enter the Science Lab to find it empty and dormant.")

        while True:
            choice = game_classes.take_stock(self.options, self.setup)

            if choice in self.possiblities.keys():
                print(self.possiblities[choice])
                if choice == 1:
                    self.setup = 8
                elif choice == 4:
                    protag.pages += 1
            elif choice == 2:
                game_classes.transition("Med Bay")
                return 'med_bay'
            else:
                game_classes.notnow()
Ejemplo n.º 7
0
    def enter(self, protag):
        game_classes.linebreak(big=True)

        if self.invaders != False:
            print(
                "You enter the Docking Bay and come face to face with a terrifying Zhendojan War Beetle\n\nIT CHARGES AT YOU"
            )
            strategy = combat(protag, self.invaders)
            if strategy == 1:
                return 'death'
            elif strategy == 2:
                return 'lounge'
            else:
                self.invaders = False

        print(game_text.docking_enter)

        knocks = 10
        while True:
            choice = game_classes.take_stock(self.options, 4)

            if choice == 1:
                game_classes.transition("Central Corridor")
                return 'central_c'
            elif choice == 2:
                print(game_text.lore6)
            elif choice == 3:
                print("You knock on the hatch")
                print("...")
                print("A War Beetle jumps out and attack you!")
                k_strategy = combat(protag, [
                    game_classes.Beetle('The Beetle', 30 + knocks, 8, 101,
                                        None)
                ])
                knocks += 5
                if k_strategy == 1:
                    return 'death'
                elif k_strategy == 2:
                    return 'lounge'
            else:
                game_classes.notnow()
Ejemplo n.º 8
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        print(game_text.mess_enter)

        while True:
            choice = game_classes.take_stock(self.options, self.setup)

            if choice in self.possibilities.keys():
                print(self.possibilities[choice])
                if choice == 1:
                    self.setup = 10
                elif choice == 7:
                    protag.pages += 1
            elif choice == 4:
                game_classes.transition("Central Corridor")
                return 'central_c'
            elif choice == 5:
                game_classes.transition("Main Body")
                return 'main_body'
            elif choice == 6:
                game_classes.transition("Lounge")
                return 'lounge'
            elif choice == 8 and self.weapon_available != False:
                self.weapon_available = weapon_swap(protag,
                                                    self.weapon_available)
                if self.weapon_available == False:
                    del self.options[8]
                else:
                    self.options[8] = 'Pickup the {}'.format(
                        self.weapon_available.name)
            else:
                game_classes.notnow()
Ejemplo n.º 9
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        print(game_text.odeck_enter)
        while True:
            choice = game_classes.take_stock(self.options, 5)

            if choice in self.possibilities.keys():
                print(self.possibilities[choice])
            elif choice == 1:
                game_classes.transition("Central Corridor")
                return 'central_c'
            elif choice == 2 and self.weapon_available != False:
                self.weapon_available = weapon_swap(protag,
                                                    self.weapon_available,
                                                    joke=True)
                if self.weapon_available == False:
                    del self.options[2]
                else:
                    self.options[2] = 'Pickup the {}'.format(
                        self.weapon_available.name)
            else:
                game_classes.notnow()
Ejemplo n.º 10
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        if self.invaders != False:
            print("You are ambushed by two Zhendojan War Beetles!")
            strategy = combat(protag, self.invaders)
            if strategy == 1:
                return 'death'
            elif strategy == 2:
                return 'lounge'
            else:
                self.invaders = False
        else:
            print("You enter the Cargo Hold")

        while True:
            choice = game_classes.take_stock(self.options, self.setup)

            if choice == 1:
                game_classes.transition("Cargo Access")
                return 'cargo_a'
            elif choice in self.possibiliies.keys():
                print(self.possibiliies[choice])
                if choice == 2:
                    self.setup = 7
            elif choice == 5 and self.weapon_available != False:
                self.weapon_available = weapon_swap(protag,
                                                    self.weapon_available)
                if self.weapon_available == False:
                    del self.options[5]
                else:
                    self.options[5] = 'Pickup the {}'.format(
                        self.weapon_available.name)
            elif choice == 6 and self.healing_available == True:
                self.healing_available = heal(protag, 40)
                if self.healing_available == False:
                    del self.options[6]
            else:
                game_classes.notnow()
Ejemplo n.º 11
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        print(game_text.cagroa_enter)
        while True:
            choice = game_classes.take_stock(self.options, 4)

            if choice == 1:
                game_classes.transition("Central Corridor")
                return 'central_c'
            elif choice == 2:
                game_classes.transition("Cargo Hold")
                return 'cargo_h'
            elif choice == 3 and self.weapon_available != False:
                self.weapon_available = weapon_swap(protag,
                                                    self.weapon_available,
                                                    joke=True)
                if self.weapon_available == False:
                    del self.options[3]
                else:
                    self.options[3] = 'Pickup the {}'.format(
                        self.weapon_available.name)
            else:
                game_classes.notnow()
Ejemplo n.º 12
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        if self.invaders != False:
            print(
                "You enter the ships Main Body and come face to face with a terrifying Zhendojan War Beetle \n\nIT CHARGES AT YOU"
            )
            strategy = combat(protag, self.invaders)
            if strategy == 1:
                return 'death'
            elif strategy == 2:
                return 'lounge'
            else:
                self.invaders = False
        else:
            print("You enter the darkness of the Main Body")

        if self.final_boss != False and protag.triggers == 1:
            print(game_text.mainbody_boss)
            input('Ready or not here he comes (hit enter) ')
            boss_battle = combat(protag, self.final_boss)
            if boss_battle == 1:
                return 'death'
            elif boss_battle == 2:
                return 'lounge'
            else:
                self.final_boss = False

        while True:
            choice = game_classes.take_stock(self.options, 5)

            if choice == 1:
                game_classes.transition("Central Corridor")
                return 'central_c'
            elif choice == 2:
                game_classes.transition("Med Bay")
                return 'med_bay'
            elif choice == 3:
                game_classes.transition("Bridge")
                return 'bridge'
            elif choice == 4:
                game_classes.transition("Mess Hall")
                return 'mess_hall'
            elif choice == 5:
                print(game_text.mainbody_la)
            else:
                game_classes.notnow()
Ejemplo n.º 13
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        print(game_text.sec_enter)

        while True:
            choice = game_classes.take_stock(self.options, self.setup)

            if choice in self.possibilities.keys():
                print(self.possibilities[choice])
                if choice == 1:
                    self.setup = 6
            elif choice == 2:
                game_classes.transition("Central Corridor")
                return 'central_c'
            elif choice == 5 and self.alarm < 3:
                print(game_text.sec_door)
                code = "891" + protag.fourth + "7"
                code_guess = ''
                while code != code_guess and self.alarm < 3:
                    code_guess = input("Enter the Five Digit Code: ")
                    if code == code_guess:
                        self.armory_open = True
                        game_classes.transition("Armory")
                        return 'armory'
                    else:
                        print("BEEPBEEP" * self.alarm)
                        self.alarm += 1

                if self.alarm == 3:
                    print(
                        "You feel a sharp ZAP as the keypad shocks you for getting the code wrong, AGAIN"
                    )
                    print(
                        "The Door now locks itself down even more, and you realize it will be impossible to get in"
                    )
                    del self.options[5]
                    if protag.health <= 5:
                        pass
                    else:
                        protag.health -= 5

            elif choice == 5 and self.armory_open == True:
                game_classes.transition("Armory")
                return 'armory'
            else:
                game_classes.notnow()
Ejemplo n.º 14
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        print("You enter the Med bay to find it empty and dormant.")

        while True:
            choice = game_classes.take_stock(self.options, self.setup)

            if choice in self.posibilities.keys():
                print(self.posibilities[choice])
                if choice == 1:
                    self.setup = 8
                elif choice == 5:
                    protag.pages += 1
            elif choice == 2:
                game_classes.transition("Main Body")
                return 'main_body'
            elif choice == 3:
                game_classes.transition("Science Labs")
                return 'sci_labs'
            elif choice == 4:
                game_classes.transition("Central Corridor")
                return 'central_c'
            elif choice == 6 and self.healing_available == True:
                self.healing_available = heal(protag, 80)
                if self.healing_available == False:
                    del self.options[6]
            elif choice == 7 and self.weapon_available != False:
                self.weapon_available = weapon_swap(protag,
                                                    self.weapon_available)
                if self.weapon_available == False:
                    del self.options[7]
                else:
                    self.options[7] = 'Pickup the {}'.format(
                        self.weapon_available.name)
            else:
                game_classes.notnow()
Ejemplo n.º 15
0
    def enter(self, protag):
        game_classes.linebreak(big=True)
        if self.invaders != False:
            print("You enter the Central Corridor to find complete darkness")
            print("Suddenly you feel a WHACK and fall down face first!")
            if protag.health <= 5:
                pass
            else:
                protag.health -= 5
            print("YOU ARE UNDER ATTACK")
            strategy = combat(protag, self.invaders)
            if strategy == 1:
                return 'death'
            elif strategy == 2:
                return 'lounge'
            else:
                self.invaders = False
        else:
            print("You enter the central Corridor to find complete darkness")

        print(game_text.cc_enter)
        while True:
            choice = game_classes.take_stock(self.options, 11)

            if choice == 1:
                game_classes.transition("Lounge")
                return 'lounge'
            elif choice == 2:
                game_classes.transition("Mess Hall")
                return 'mess_hall'
            elif choice == 3:
                game_classes.transition("Main Body")
                return 'main_body'
            elif choice == 4:
                game_classes.transition("Med Bay")
                return 'med_bay'
            elif choice == 5:
                game_classes.transition("Observation Deck")
                return 'observation'
            elif choice == 6:
                game_classes.transition("Security Offices")
                return 'security'
            elif choice == 7:
                game_classes.transition("Catwalk")
                return 'catwalk'
            elif choice == 8:
                game_classes.transition("Cargo Hold Access")
                return 'cargo_a'
            elif choice == 9:
                print("You approach the barricaded door")
                return 'quarter_a'
            elif choice == 10:
                game_classes.transition("Docking Bay")
                return 'docking'
            else:
                game_classes.notnow()