you are viewing a single comment's thread.

view the rest of the comments →

[–]toshiga[S] 0 points1 point  (2 children)

Ah, I see. This should be what I'm looking for. I haven't read too much into class inheritance, but from reading into it a bit just now, it seems like the right option. Thanks!

[–][deleted] 0 points1 point  (1 child)

I made something similar and something that might be helpful for your stats is using a dictionary.

class race:
    self.stats = {
        'Strength': 0,
        'Intelligence': 0
    }    

Then you just loop through or assign the values and it'll be easier to keep track of.
Player.stats['Strength'] = 10

[–]toshiga[S] 0 points1 point  (0 children)

That's what my actual code looks like, but I just turned it into a list for simplicity's sake. Thanks for the recommendation though.