def __init__(self, name="Ranger"): stats = [name, 6, 15, 9, 2, 5, 3] Player.__init__(self, stats) self.player_class = "Ranger" # Class Specific Stat # The ranger uses ARROWS as a resource. self.class_stat_name = "Arrows"
def __init__(self, name="Wizard"): stats = [name, 4, 8, 18, 1, 3, 6] Player.__init__(self, stats) self.player_class = "Wizard" # Class Specific Stat # The wizard uses MANA as a resource. self.class_stat_name = "Mana"
def __init__(self, name="Barbarian"): stats = [name, 15, 10, 5, 6, 3, 1] Player.__init__(self, stats) self.player_class = "Barbarian" self.skills = [("Rage", self.skill_rage), ("Brutal Critical", self.skill_brutal_critical), ("Primal Champion", self.skill_primal_champion)] # Class Specific Stat # Rage Builds up when the player takes damage, or after a turn. # Rage is the resource cost for the Barbarian's abilities. self.class_stat_name = "Rage" self.mp = 0 # Start at 0 rage.
def super_player(self): Player.__init__(self, self.key, self.first_name, self.last_name)