Advertisement
horozov86

1. Character Classes

Nov 20th, 2023
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.41 KB | None | 0 0
  1. class BaseCharacter(models.Model):
  2.     name = models.CharField(max_length=100)
  3.     description - TextField()
  4.    
  5.     class Meta:
  6.         abstract = True
  7.        
  8.  
  9. class Mage(BaseCharacter):
  10.     elemental_power = models.CharField(max_length=100)
  11.     spellbook_type = models.CharField(max_length=100)
  12.    
  13.    
  14. class Assassin(BaseCharacter):
  15.     weapon_type = models.CharField(max_length=100)
  16.     assassination_technique = models.CharField(max_length=100)
  17.    
  18.    
  19. class DemonHunter(BaseCharacter):
  20.     weapon_type = models.CharField(max_length=100)
  21.     demon_slaying_ability = models.CharField(max_length=100)
  22.    
  23.    
  24. class TimeMage(Mage):
  25.     time_magic_mastery = models.CharField(max_length=100)
  26.     temporal_shift_ability = models.CharField(max_length=100)
  27.    
  28.    
  29. class Necromancer(Mage):
  30.     raise_dead_ability = models.CharField(max_length=100)
  31.    
  32.    
  33. class ViperAssassin(Assassin):
  34.     venomous_strikes_mastery = models.CharField(max_length=100)
  35.     venomous_bite_ability = models.CharField(max_length=100)
  36.    
  37.    
  38. class ShadowbladeAssassin(Assassin):
  39.     shadowstep_ability = models.CharField(max_length=100)
  40.    
  41.    
  42. class VengeanceDemonHunter(DemonHunter):
  43.     vengeance_mastery = models.CharField(max_length=100)
  44.     retribution_ability = models.CharField(max_length=100)
  45.    
  46.    
  47. class FelbladeDemonHunter(DemonHunter):
  48.     felblade_ability = models.CharField(max_length=100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement