def __init__(self): self.dice = dice_roll() self.c_class = {'class_1' : " ", 'level_1' : 1, 'hd' : 0} self.choice = {1 : 'barbarian', 2 : 'bard', 3 : 'cleric', 4 : 'druid', 5 : 'fighter', 6 : 'monk', 7 : 'paladin', 8 : 'ranger', 9 : 'sorcerer', 8 : 'warlock', 9 : 'wizard'} self.call_class = {'barbarian' : 'barb.ini', 'bard' : 'bard.ini', 'cleric' : 'cler.ini', 'druid' : 'dru.ini', 'fighter' : 'figh.ini', 'monk' : 'monk.ini', 'paladin' : 'pala.ini', 'ranger' : 'rang.ini', 'rogue' : 'rogu.ini', 'sorcerer' : 'sorc.ini', 'warlock' : 'warl.ini', 'wizard' : 'wiza.ini'} self.called_class = configparser.ConfigParser() self.called_class.sections()
def __init__(self): self.dice = dice_roll() self.character = {'name': "", 'race': "",'o_level' : 1, 'hp': 0, "Armor": 10, 'str': 0, 'str_base' : 0, 'dex': 0, 'dex_base' : 0, 'con': 0, 'con_base' : 0, 'int': 0, 'int_base' : 0, 'wis' : 0, 'wis_base' : 0, 'cha' : 0, 'cha_base' : 0} self.role = char_class() self.score_mod = configparser.ConfigParser() self.score_mod.sections() self.score_mod.read('score_mod.ini') self.race_mod = configparser.ConfigParser() self.race_mod.sections() self.race_mod.read('Racial_Modifiers.ini')
def __init__(self): self.dice = dice_roll() self.character = { "name": "", "level": 1, "race": "", "str": 0, "Armor": 10, "str_base": 0, "dex": 0, "dex_base": 0, "con": 0, "con_base": 0, "int": 0, "int_base": 0, "wis": 0, "wis_base": 0, "cha": 0, "cha_base": 0, } self.race_mod = configparser.ConfigParser() self.race_mod.sections() self.race_mod.read("Racial_Modifiers.ini")