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
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
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