Esempio n. 1
0
 def fight (self,isboss):
     fight_handler = Fight()
     a = True
     #This is the natural regeneration... it only happens when you go into combat, so you can't abuse it by walking between already/cleared areas
     self.my_adventurer.regenerate()
     
     if isboss == False :
         monster = Monster(self.my_adventurer.level)
     elif isboss == True:
         monster = boss(self.my_adventurer.level)
     
     if self.my_adventurer.current_hp > 0 :
         
         a =  fight_handler.fight_calcuation(self.my_adventurer, monster)
         if a ==False :
             quit() 
     else :
         print "You shouldn't see this ever..."