My class is:
class Champion:
def __init__(self, secondary_bar, secondary_attributes, health, health_reg, mana, mana_reg, c_range, att_damage, att_speed, armor, magic_res, move_speed):
self.secondary_bar = secondary_bar
self.secondary_attributes = secondary_attributes
self.health = health
self.health_reg = health_reg
self.mana = mana
self.mana_reg = mana_reg
self.c_range = c_range
self.att_damage = att_damage
self.att_speed = att_speed
self.armor = armor
self.magic_res = magic_res
self.move_speed = move_speed
...
class SpecificChampion(Champion):
...
my_champ = SpecificChampion("mana", "melee", 500, 20, 250, 20, 125, 50, 0.8, 65, 65, 320)
I wanted a shorter way to create the first class, since it takes too much space in my opinion. I tried to store them in a list using kwargs
, but it was kind of confusing to access them and pass them as parameters to other functions. Any advice?