# Detect if we're already inside IBC and thus, all of this has been # provided for us if 'Character' not in locals().keys(): from model import (Character, RPGClass, Equipment, Weapon, Attack, Buff, Feat, auditable) class Ranger(RPGClass): def __init__(self): super(Ranger, self).__init__() self.hit_die = 10 self.fort = 5 # TODO: Scale will level self.ref = 5 self.will = 2 c = Character() c.name = 'Clement' c.lvl = 6 c.BAB = 6 c.rpg_class = Ranger() # Ability Scores c.base.str_score = 19 c.base.dex_score = 16 c.base.con_score = 14 # All the others are the default value of 10 # Armor breastplate = Equipment("Mithral Chain Shirt +2") breastplate.AC = 6 breastplate.ACP = 0 c.equipment.append(breastplate)
# Detect if we're already inside IBC and thus, all of this has been # provided for us if 'Character' not in locals().keys(): from model import (Character, RPGClass, Equipment, Weapon, Attack, Buff, Feat, auditable) class Cavalier(RPGClass): def __init__(self): super(Cavalier, self).__init__() self.hit_die = 10 self.fort = 7 # TODO: Scale will level self.ref = 3 self.will = 3 c = Character() c.name = 'Henri (Level 11)' c.lvl = 11 c.BAB = 11 c.rpg_class = Cavalier() # Ability Scores c.base.str_score = 20 c.base.dex_score = 12 c.base.con_score = 13 c.base.cha_score = 16 # All the others are the default value of 10 # Armor breastplate = Equipment("Mytheral Breastplate of Speed") breastplate.AC = 10 breastplate.ACP = -3