I am working on an RPG using django and am considering various options for implementing part of a skill system.
Let's say I have a base skill class, i.e. something like:
class Skill (models.Model):
name = models.CharField()
cost = models.PositiveIntegerField()
blah blah blah
What will be some approaches to the implementation of specific skills? The first option that comes to mind:
1) Each skill increases the class of skills and redefines certain functions:
I don't know how this will work in django. It seems that having a db table for each skill would be redundant. Can a child class be abstract while the Skill class has an entry? That doesn't sound right. How about using a proxy class?
What are some other options. I would like to avoid an approach scenario for a pure django approach.