Пример #1
0
 def __init__(self, name):
     Fighter.__init__(self,
                      Weapon.preset('Rusty Sword'),
                      health=50,
                      name=name,
                      ac=8)
     self.inventory = Inventory([self.__weapon__])
     self.needed = BASE_XP_NEEDED
Пример #2
0
 def __init__(self, max_stamina, stamina, max_hp, hp, defense, power, xp=0):
     Fighter.__init__(self, max_hp, hp, defense, power, xp)
     self.unit_type = FighterTypes.PLAYER
     self.base_max_stamina = max_stamina
     self.stamina = stamina
Пример #3
0
 def __init__(self, x, y, char, color, mob_type):
     Fighter.__init__(x, y, char, color, mob_type)
     self.target = None  # stores the current target at hand