示例#1
0
def theBritishAreComing():
    raw_input("You thank the captain for all he's done for you and he walks off to prepare your transport.")
    raw_input("Captain Blackbreath: 'Good luck out there. The British have never been kind to us, but I've got a good feeling about you.'")
    business = raw_input("You row to the island, and as soon as you step on shore you are greeted by a British soldier. \nSoldier: 'You there! Stop! This land belongs to Dunstan Irving Cornelius Kinsington III Duke of Charles Island and you are trespassing. State your business.' \n Explain yourself: ")
    duel = raw_input("Soldier: ' \"{}\"? You really think I'd believe that? What do you think I am? French? I'm a damn Baron of the British Empire! I will have none of this nonsense. Come with me.' \n(Go with the soldier / Draw sword) ".format(business)).lower()
    while duel not in ["go with the soldier", "draw sword"]:
        duel = raw_input("Shiver me timbers, who would try to do that??. Please enter a choice from the options provided. \n(Go with the soldier / Draw sword) ").lower()
    if duel == "go with the soldier" :
        raw_input("Soldier: 'Good choice sir. May the crown have mercy on your wayward life.' \nThe soldier slaps some iron handcuffs on you and takes your shoes just to be a dick. You walk behind his horse for a few miles until you reach a small encampment on the interior of the island with a sign that reads FORT MANTAUK.")
        raw_input("As you approach the compound, you can hear a very faint but familiar buzz.")
        raw_input("Before you enter, the soldier blindfolds you and puts you on the back of his horse. As he walks the horse though camp you can hear muffled conversation. The soldier drops you down in an unknown location and knocks you out with the butt of his sword.")
        Montauk.entry(0)
    elif duel == "draw sword" :
        raw_input("Soldier: 'Poor choice good sir. I shall vanquish you to the deepest rungs of Hell. Or maybe France.")
        Fight.fight(70, 6, 4)
        loot = raw_input("The soldier collapses to the ground bloodied from his wounds. \nSoldier: 'You shall rue the day you killed Edmund Kinsington Dingleberry IV Baron of... *cough*... *gargle*...' \n(Search body / Leave) ").lower()
        while loot not in ["search body", "leave"] :
             loot = raw_input("Shiver me timbers, who would try to do that??. Please enter a choice from the options provided. \n(Search body / Leave) ").lower()
        if loot == "search body" :
            raw_input("You find a small gold piece and put it in your pocket. \nYou also take the soldiers gloves giving you a better grip on your sword. \n+1 strengh")
            config.inventory.append("gold piece")
            config.strength = config.strength + 1
        raw_input("You look up and down the coast and see nothing in either direction. To the Northwest you see a small trail carved into the treeline and decide to follow that.")
        fork(0)
    return 
示例#2
0
def hereWeGoMatey():
    config.drinks = 0
    raw_input(
        "You open the door of the closet and are greeted by the blinding light of day. The smell of salty sea air hits your nostrils just as a splash of salt water slaps across your face. \n'What the hell? How long was I in there?'"
    )
    raw_input(
        "The bar seems to have become an actual pirate ship. On an actual ocean. You don't remember reading about this when you googled it. Your friends are nowhere to be found."
    )
    raw_input(
        "Everyone on the ship is dressed like a pirate. I guess the bar closed and only the staff is left?"
    )
    raw_input(
        "You pull out your phone to call an uber but you don't have any service. Also, you're not sure if Uber does boats. You walk up to a staff member to ask how to get home."
    )
    raw_input(
        "Pirate: 'wut thee 'ell er u doin ere? u just come from the cap'in's cabin? lit'l stowaway, eh? think ur hot stuff eh? ur not mate.'"
    )
    raw_input(
        "There's something seriously off about this guy. You're starting to think somethings up here."
    )
    duel = raw_input(
        "Pirate: 'I'm takin' you to the Cap'in. 'e'll know wut to do with ya. \n(Go with the pirate / Draw sword) "
    ).lower()
    while duel not in ["go with the pirate", "draw sword"]:
        duel = raw_input(
            "Shiver me timbers, who would try to do that??. Please enter a choice from the options provided. \n(Go with the pirate / Draw sword)"
        )
    if duel == "draw sword":
        raw_input(
            "Pirate: 'Oh lit'l ninny got uh sword eh? Think u can beat me eh? I'll teach u some manners.'"
        )
        raw_input("The pirate draws his sword and prepares to fight")
        Fight.fight(50, 3, 4)
        raw_input(
            "Pirate: 'Ok! Ok! I yield! I yield! U damn near killed me. I like th'is one he's got sum spunk! Please, let me introduce you to the Cap'in. I'm sure he can help u out mate.'"
        )
    raw_input(
        "The pirate leads you back through the door that you came out of earlier, but this time it's differrent inside. The closet has gotten much larger now and looks more like an office. At the back of the room there's a desk and behind it a burly, weathered man with long black hair, a beard down to his chest, and rotten teeth."
    )
    raw_input(
        "The man behind the desk addresses you: 'Arggggggggh.... You with the English? No. You be dressed too stupid to be one of them. What r u doin in me ship?'"
    )
    story = raw_input("Explain yourself: ")
    raw_input(
        "Captain Blackbreath: ' \"{}\"? Argh seems pretty far fetched to me, but I've heard far more outlandish in these waters. Make youself at home lad. We'll get you to shore.' "
        .format(story))
    decision = raw_input(
        "You thank Captain Blackbreath and walk back out amongst the pirates. \n( Rest up / Explore the ship )"
    ).lower()
    while decision not in {"rest up", "explore the ship"}:
        decision = raw_input(
            "Shiver me timbers, who would try to do that??. Please enter a choice from the options provided. \n (Rest up / Explore the ship)"
        ).lower()
    if decision == "rest up":
        restup()
    elif decision == "explore the ship":
        explore()
    return
示例#3
0
    def final_chapter(self):
        self.clr()
        print("\n\n")
        print("----- The Final Chapter -----".center(80))
        print("")
        input("")
        print("After a long journey, you finally make it to the research centre.".center(80))
        input("")
        print((self.name.title()+": Well guys, this is it. I'm going in alone.").center(80))
        input("")
        print("Evan: No, don't leave us!".center(80))
        input("")
        print((self.name.title()+": I have to, it's just too dangerous!").center(80))
        input("")

        self.story_2("As you walk through the door, the noise increases in volume.", "You slowly walk towards the sound.")
        input("")

        self.story_3("In the distance, you see a large item on the ground.", "It looks like a powerful weapon!", (self.name.title()+": Better pick it up!"))
        input("")
        print("Plasma Rifle (125) has been added to your inventory.".center(80))
        input("")
        rifle = Weapon("Plasma Rifle", 2, 125)
        if self.inv.fits(rifle):
            self.inv.items.append(rifle)
        self.story_3("You slowly open the door..", (self.name.title()+": ......."), (self.name.title()+": Oh. Shit."))
        input("")
        self.save_progress()

        self.story_2("A huge alien monster stands in the middle of the room.", "Get ready to fight!")
        input("")

        final_boss = NPC("Budalt",250,35,"evil")
        fight = Fight(self.name, self.health, self.inv, self.companions, final_boss)
        if (fight.start() == True):
            self.clr()
            print("\n\n")
            print((self.name.title()+": Ouch..! I guess this was it..").center(80))
            input("")
            self.clr()
            print("\n\n")
            print(("Too bad "+self.name.title()+", Budalt proved to be too strong for you.").center(80))
            input("")
            print("I still hope you enjoyed the game 'Invasion' by Daniel Hartgers.".center(80))
            input("")
            self.finished = True
        else:
            self.clr()
            print("\n\n")
            print((self.name.title()+": Holy shit..! I did it?!").center(80))
            input("")
            self.clr()
            print("\n\n")
            print(("Congratulations, "+self.name.title()+", you did it!").center(80))
            input("")
            print("I hope you enjoyed the game 'Invasion' by Daniel Hartgers.".center(80))
            input("")
            self.finished = True
示例#4
0
 def changeScreen(self, tipo=0):
     control = self
     if (tipo==0):
         self.currentScreen = Menu(control, self.tela)
     elif (tipo ==1):
         pass
         #self.currentScreen = Escolha(control, self.tela)
     elif (tipo ==2):
         self.currentScreen = Fight(control, self.tela)
     elif (tipo ==3):
         pass
    def test_normal_fight_lowers_health(self):
        w = Weapon('The Axe of Destiny', 10)
        h = Hero("Bron", "Dragonslayer", 100, 100, 1)
        h.equip(w)
        e = Enemy(100, 10)
        f = Fight(h, e, [], 3, 3)
        f.fight()

        test_passes = False
        if e.is_alive() is not True or h.is_alive() is not True:
            test_passes = True
        self.assertEqual(test_passes, True)
示例#6
0
def DunstanIrvingCorneliusKinsingtonIII():
    raw_input(
        "You open the door and the world goes quiet. Inside, the back wall shines bright with a shimmering wave of light. Nothing else is in the room except for one man facing the wall. Without turning to face you he address you."
    )
    raw_input(
        "Man: 'Isn't it glorious Remington. Oh how I wonder what lies beyond this wall. I long to discover, but alas I'm afaid I never will.'"
    )
    raw_input(
        "The man takes a bite of an apple he is holding then lightly tosses the apple against the wall. Upon impact, it disappears. \nHe turns around to face you and is shocked to see you are not Remington."
    )
    raw_input(
        "Man: 'Who the hell are you? What the devil are you doing in my quarters? Did Remington let -- ' "
    )
    raw_input(
        "The man peaks around you to see Remington lying dead on the floor outside his room"
    )
    raw_input(
        "Man: 'Do you have any idea what you have done? Do you know who I am? I am Dunstan Irving Cornelius Kinsington, third of his name and Duke of Charles Island. You dare walk into MY fort, kill MY guard, and now stand before ME with no reverance for authority!? Explain yourself RIGHT NOW and MAYBE I will have the geneoristy to ALLOW YOU TO LIVE.'"
    )
    explanation = raw_input("Explain yourself: ")
    raw_input(
        "Dunstan Irving Cornelius Kinsington III: 'Have you no decency sir? I have come across some revolting figures in my time. But you, I dare say, are the most horrendoes of them all. As Duke of Charles Island - I hearby sentence you to die. If you have any debts to settle with the almight I suggest you do it now as this will be your last chance.' "
    )
    raw_input(
        "Duke Kinsington unsheaths an intricately designed sword with a golden handle. He flourishes twice then points its tip at you."
    )
    raw_input(
        "You take out your sword and prepare to duel. \n Any last words for Duke Kinsington? : "
    )
    Fight.fight(150, 10, 1)
    raw_input(
        "You deliver a devastatin blow to Duke Kinsington. He staggers - dropping his sword."
    )
    raw_input(
        "Dunstan Irving Cornelius Kinsington III: 'You think you're strong? You're weak. You can take me down, but this world will catch up with you. You're nothing. You're less than nothing. I am ROYALTY, and in that I will live forever. YOU WILL BE FORGOTTEN.' "
    )
    raw_input(
        "Duke Kinsington staggers around the room in slow, plodding steps. He shouts 'LONG LIVE THE KING AND LONG LIVE THE EMPIRE' then tosses himself into the wall, disappearing."
    )
    finalChoice = raw_input(
        "You stand in the room alone. Staring at the wall. You've come so far on your journey, and you're not sure you're ready for it to be over. You assume that on the other side of that wall is the bar you left earlier tonight. If you step through you return to your old life, your old friends, and all of this will be forgotten. But if you don't who knows what this world has in store for you? Do you belong here? Can you be a pirate forever? That choice is up to you. \n(Go home / Stay) "
    ).lower()
    while finalChoice not in ["stay", "go home"]:
        finalChoice = raw_input(
            "Please enter a choice from the options provided. \n(Go home / Stay)"
        ).lower()
    theEnd(finalChoice)
    return
示例#7
0
            def b_1_1(opt2):
                if opt2 in ('y', 'yes'):
                    self.story_2("You slowly approach the mysterious figure.", (self.name.title() + ": Ahem. Excuse me?"))
                    input("")
                    self.story_3("The figure slowly walks towards your group.", "As the figure comes closer, you see that it is a crying woman!", "She seems very sad.")
                    input("")
                    self.story_3("Alison: C-Can you guys h-help me?", (self.name.title() + ": Yes, of course! What's going on?"), "Alison: I was j-just buying some clothes!")
                    input("")
                    self.story_3("Alison: When I went into a changing booth, everyone suddenly disappeared!", "Alison: While I was changing, I heard some loud monster-like noises.", "Evan: And did you notice the earthquake?")
                    input("")
                    self.story_3("Alison: Earthquake? No?!", "Alex: ..Something bad happened for sure.", "Tyler: Let's figure this stuff out soon.")
                    input("")
                    self.story_3("Alison: I will join your group, if that's ok.", "Alison: I used to be a nurse, maybe I can be helpful.", (self.name.title() + ": Sure, you can join us!"))
                    self.companions.append(p2)
                    return True
                elif opt2 in ('n','no'):
                    self.story_2("As your group slowly tries to walk away, Evan steps on broken glass.", "The mysterious figure turns around and charges you!")
                    input("")

                    self.clr()
                    p2.status = "evil"
                    fight = Fight(self.name, self.health, self.inv, self.companions, p2)
                    if (fight.start() == True):
                        self.finished = True
                    else:
                        self.story_2((self.name.title() + ": Wow, that was crazy!"), (self.name.title() + ": Is everyone OK?"))
                        input("")
                        alex = False
                        for ally in self.companions:
                            if ally.name == 'Alex':
                                alex = True
                                ally.health -= 80
                                if ally.health < 1:
                                    self.story_2("Evan: Oh no.. Alex.. ALEX!", "Tyler: Sorry guys, Alex is gone.")
                                    for i in range(0, len(self.companions)):
                                        if self.companions[i].name == "Alex":
                                            self.companions.pop(i)
                                else:
                                    self.story_2("Evan: Alex, are you allright?", "Alex: Well, I'm alive, but I took some serious damage.")
                                break
                        if not alex:
                            self.story_2("Evan: Yeah, I'm good.", "Tyler: I'm fine as well!")

                    return True
                else:
                    return False
示例#8
0
def fightInit():
    global stageImage
    stageImage = Fight.loadStageBG(0,resolution) #load stageImage
    Audio.tavernMusic()

    #addsprites
    character1 = Character.spawnPlayer1('Ninja')
    allsprites.add(character1)

    return
示例#9
0
def targetAcquired():
    raw_input(
        "You look in the direction of the buzz. It seems to be coming from the Officer's Quarters."
    )
    raw_input(
        "You sneak toward the quarters, careful not to be deteced. With each step the buzz grows louder until it's pounding in your ears outside the door."
    )
    raw_input(
        "When you enter the quarters, you're met with a large soldier guarding a door. He says something to you but you can't make it out over the sound eminating from the door."
    )
    raw_input(
        "Whatever it was, it wasn't good. The soldier draws his sword and lunges at you."
    )
    raw_input("You step out of the way just in time and draw your sword.")
    Fight.fight(80, 4, 2)
    raw_input(
        "The soldier collapses to the ground. You're too distracted by the buzz to even comprehend what's happening."
    )
    DunstanIrvingCorneliusKinsingtonIII()

    return
示例#10
0
    def arena_fight(self):
        self.fight_counter = 1
        x = 0

        while self.player_team.check_alive_units(
        ) and self.enemy_team.check_alive_units():
            time.sleep(2)
            print()
            print(f'''
                    ---------------------------------------
                        CHOOSE UNITS TO THE FIGHT #{self.fight_counter}!
                    ''')

            if x % 2 == 0:
                print(f"Player - choose your fighter!")
                print(self.player_team.name)
                player_unit = self.player_team.choose_unit_by_player()
                print(f'Player choose {player_unit.name} from his squad')
                print()

                time.sleep(2)
                print(f"Player - choose your enemy's unit to fight!")
                print(self.enemy_team.name)
                enemy_unit = self.enemy_team.choose_unit_by_player()
                print(f'Player choose {enemy_unit.name} from enemy\'s squad')

            else:
                time.sleep(2)
                print(f"Enemy choose his fighter!")
                print(self.enemy_team.name)
                enemy_unit = self.enemy_team.choose_unit_by_comp()
                time.sleep(2)
                print(f'Enemy choose {enemy_unit.name} from enemy\'s squad')

                print()
                time.sleep(2)
                print(f"Enemy choose player's unit for the fight!")
                print(self.player_team.name)
                player_unit = self.player_team.choose_unit_by_comp()
                time.sleep(2)
                print(f'Enemy choose {player_unit.name} from player\'s squad')

            fight = Fight.Fight(player_unit,
                                enemy_unit,
                                self.fight_counter,
                                player_team=self.player_team,
                                enemy_team=self.enemy_team)
            self.fight_counter += 1
            x += 1

        self.display_result_board()
示例#11
0
class ScreenController():
    def __init__(self, tela):
        self.tela = tela
        self.status =True
        control = self
        self.currentScreen = Menu(control, self.tela)

    def changeScreen(self, tipo=0):
        control = self
        if (tipo==0):
            self.currentScreen = Menu(control, self.tela)
        elif (tipo ==1):
            pass
            #self.currentScreen = Escolha(control, self.tela)
        elif (tipo ==2):
            self.currentScreen = Fight(control, self.tela)
        elif (tipo ==3):
            pass
        #self.currentScreen = Settings(control, self.tela)

    def execute (self):
        self.currentScreen.execute()
        return self.status
示例#12
0
def waterfall() :
    if config.bearSlain == False :
        raw_input("You follow the path and find a small cave behind the waterfall. Inside, the sunlight shines through a small hole in the ceiling illuminating an ornate sword.")
        bear = raw_input("As you apporach, you hear something rustle on the ground. You look down and realize that you were so focused on the sword that you failed to realize the giant bear in the cave. You can only assume that the English imported it and it escaped from their compound or something equally crazy to explain the carribean Grizzly Bear in front of you. You decide that despite the bear, you have to have that sword. \n(Sneak around / Attack) ").lower()
        while bear not in ["sneak around", "attack"]:
            bear = raw_input("Shiver me timbers, who would try to do that??. Please enter a choice from the options provided. \n(Sneak around / Attack) ").lower()
        if bear == "sneak around" :
            raw_input("You try to sneak around the bear but accidentally step on it's paw. It roars awake and swipes at you, making a small gash in your left leg. \n-10 health")
            config.health = config.health - 10
            if config.health < 1 :
                print("The strike from the bear is too much for you to handle. You succumb to your injuries as the bear feeds on your body then goes back to sleep. Thank you for playing. Goodbye.")
                quit()
            raw_input("The bear stands up. It turns to face you and lets out a roar directly into your face. You draw your sword and prepare for battle. \n(Press enter to begin fight)")
            Fight.fight(150, 10, 4)
        elif bear == "attack" :
            raw_input("You plunge your sword into the bear while it sleeps and land a strong hit. \n15 damage dealt")
            raw_input("The bear roars awake and stands up to face you. It stands up on its hind legs letting out another great roar. It comes down to face you, pawing at the ground as it prepares to fight. \n(Press enter to begin fight)")
            Fight.fight(135, 10, 4)
        raw_input("The bear lets out one final roar and falls to the ground. You step over the bear triumphantly and grab the sword. \n+2 strength")
        config.strength = config.strength + 2
        config.bearSlain = True
        drink = raw_input("You exit the cave and take a minute to sit on the edge of the path near the waterfall and catch your breath. You're very thirsty. \n(Drink from the waterfall / Pass) ").lower()
        while drink not in ["drink from the waterfall", "pass"]:
            drink = raw_input("Shiver me timbers, who would try to do that??. Please enter a choice from the options provided. \n(Drink from the waterfall / Pass) ").lower()
        if drink == "drink from the waterfall" :
            config.health = min(100, config.health + 30)
            raw_input("*Glug* *Glug* *Glug* Ahhhhhhhhhh \nHealth restored to {}".format(config.health))
        if drink == "pass" :
            config.health = min(100, config.health + 15)
            raw_input("You decide you're not that thirsty and take in the scenery. \nHealth restored to {}".format(config.health))
        raw_input("You see the sun starting to set and figure it's time to get back on the road. You walk back the way you came.")
    else:
        raw_input("You walk up the path and see the cave you entered before. Inside sits the slain bear. You return back down the path.")
        raw_input("You decide you've seen all there is to see here and head back toward the main path.")

    fork(1)
示例#13
0
    def fight_generator(self, hero_instance, is_ai=False):
        # method for fight initialize if room follow criterias

        if self.status == self.room_finished_character:  # no fight if room is finished
            self.fight = False
            return self.fight

        elif self.status == self.edge:  # no fight if room is edge
            self.fight = False
            return self.fight

        # elif self.status == self.room_unfinished_character: # return the fight instance if unfinished room
        # 	return self.fight

        # elif self.status == self.room_character: # returns the fight instance
        else:
            new_fight = Fight(hero=hero_instance, is_Ai=is_ai)
            self.fight = new_fight
            return self.fight
示例#14
0
 def menu(self):
     typing("Что будем делать?")
     print("1) Узнать характеристики")
     print("2) Путешевствовать")
     print("3) Искать сражений")
     print("4) Посмотреть инвентарь")
     answer = input("> ")
     answers = ['1', '2', '3']
     if answer in answers:
         if answer == '1':
             print(self.player)
         elif answer == '2':
             Adventures.Adventures(self.player)
         elif answer == '3':
             Fight.Fight(self.player)
     else: 
         typing("Ты что-то напутал, давай попробуем еще раз.")
         print("-"*30)
     self.menu()
示例#15
0
 def solve_request():
     typing("Что будем делать?")
     print("1) Напасть")
     print("2) Искать приключения дальше")
     print("3) Выбрать другое действие")
     solve = input("> ")
     solves = ['1', '2', '3']
     if solve in solves:
         if solve == '1':
             for i in lst:
                 Fight.Fight(self.player, i)
             self.reward()
             return
         if solve == '2':
             self.__init__(self.player)
         if solve == '3':
             return
     else:
         typing("Ты что-то напутал, давай попробуем еще раз.")
         print("-"*30)
         solve_request()
示例#16
0
def Story2():
    Story = open("2Story.txt").read()
    print(Story)
    Story = "Story2"
    Fight.fighting(Story)
示例#17
0
 def enter_fight(self, room):
     self.fight = Fight.Fight(room, self.party, self.level)
示例#18
0
def move(joueur, word):
    list_mvt = ['go', 'walk', 'run', 'move']
    if len(word)==1:
        write('Where you wanna go ?')
    elif word[1]== 'north':
        if (joueur.location[0],joueur.location[1]+1) in World.map:
            joueur.hungry -= 10
            Time.OFFSET += 1*3600
            joueur.location[1] +=1
            wait_points(3)
            write(World.map[tuple(joueur.location)].description)
            writeinfper(World.map[tuple(joueur.location)].name)
            write(enemy_count(tuple(joueur.location))[0])
        else:
            write('You can\'t go there.')
    elif word[1] == 'south':
        if (joueur.location[0],joueur.location[1]-1) in World.map:
            joueur.hungry -= 10
            Time.OFFSET += 1*3600
            joueur.location[1] -=1
            wait_points(3)
            write(World.map[tuple(joueur.location)].description)
            writeinfper(World.map[tuple(joueur.location)].name)
            write(enemy_count(tuple(joueur.location))[0])
        else:
            write('You can\'t go there.')
    elif word[1] == 'east':
        if (joueur.location[0]+1,joueur.location[1]) in World.map:
            joueur.hungry -= 10
            Time.OFFSET += 1*3600
            joueur.location[0] +=1
            wait_points(3)
            write(World.map[tuple(joueur.location)].description)
            writeinfper(World.map[tuple(joueur.location)].name)
            write(enemy_count(tuple(joueur.location))[0])
        else:
            write('You can\'t go there.')
    elif word[1] == 'west':
        if (joueur.location[0]-1,joueur.location[1]) in World.map:
            joueur.hungry -= 10
            Time.OFFSET += 1*3600
            joueur.location[0] -=1
            wait_points(3)
            write(World.map[tuple(joueur.location)].description)
            writeinfper(World.map[tuple(joueur.location)].name)
            write(enemy_count(tuple(joueur.location))[0])
        else:
            write('You can\'t go there.')
    else :
        write('You can\'t go', word[1])
    if enemy_count(tuple(joueur.location))[1] != 0:
        weak = enemy_count(tuple(joueur.location))[1]-1
        write('A', str(World.map[tuple(joueur.location)].monstersin['Weak '+str(weak)].tag)[:-1], 'runs furiously toward you')
        Fighting_Class.fight(joueur, World.map[tuple(joueur.location)].monstersin['Weak '+str(weak)])
    if enemy_count(tuple(joueur.location))[2] != 0:
        common = enemy_count(tuple(joueur.location))[1]-1
        write('A', str(World.map[tuple(joueur.location)].monstersin['Common '+str(common)].tag)[:-1], 'runs furiously toward you')
        Fight.fight(joueur, World.map[tuple(joueur.location)].monstersin['Common '+str(common)])
    if enemy_count(tuple(joueur.location))[2] != 0:
        heavy = enemy_count(tuple(joueur.location))[1]-1
        write('A', str(World.map[tuple(joueur.location)].monstersin['Heavy '+str(heavy)].tag)[:-1], 'runs furiously toward you')
        Fight.fight(joueur, World.map[tuple(joueur.location)].monstersin['Heavy '+str(heavy)])
示例#19
0
 def test_fight_lowers_health(self):
     h = Hero("Bron", "Dragonslayer", 100, 100, 1)
     e = Enemy(100, 10)
     f = Fight(h, e, [], 3, 3)
     f.fight()
示例#20
0
 def __init__(self, tela):
     self.tela = tela
     self.status =True
     control = self
     self.currentScreen = Menu(control, self.tela)