def __init__(self, n_actor_count: int): Actor.__init__(self, n_actor_count) self.name += "_Wizard" self.magic = randint(15, self.unit_max()) self.has_staff = True self.will = randint(1, 10) self.intelligence = randint(10, self.unit_max()) self.image_path = 'images/wizard.png'
def __init__(self, n_actor_count: int): Actor.__init__(self, n_actor_count) self.name += "_Hobbit" self.stealth = randint(1, self.unit_max()) self.has_dagger = False self.dependence = randint(1, self.unit_max()) self.fear = randint(1, self.unit_max()) self.runs = 0 self.image_path = 'images/hobbit.png'
def __init__(self, actor_json, battle_object, portrait=None): Actor.__init__(self, object_json=actor_json) self.battle_object = battle_object if not portrait: self.portrait = pygame.image.load(os.path.join("..", "assets", "portraits", "ball_2.gif")).convert_alpha() else: self.portrait = portrait
def __init__(self, n_actor_count: int): Actor.__init__(self, n_actor_count) self.name += "_Orc" self.anger = randint(1, 50) self.size = randint(5, 50) self.location = [ randint(500, self.battlefield_max()), randint(0, self.battlefield_max()) ] self.image_path = 'images/orc.png'
def __init__(self, n_actor_count: int): Actor.__init__(self, n_actor_count) self.name += "_Human" self.human_pride = randint(1, 50) self.image_path = 'images/human.png'
def __init__(self, n_actor_count: int): Actor.__init__(self, n_actor_count) self.name += "_Elf" self.bow_strength = randint(15, self.unit_max()) self.range = randint(10, self.unit_max()) self.image_path = 'images/elf.png'
def __init__(self, n_actor_count: int): Actor.__init__(self, n_actor_count) self.name += "_Dwarf" self.armor = randint(1, 50) self.axe_strength = randint(1, 50) self.image_path = 'images/dwarf.png'