def __init__(self, guiObj): ''' ''' self.savedata = CharSaveData(None) # self.baseAbilites = {} # for x in Abilities.fullList: # self.baseAbilites[x] = 3 self._strTab = StrTab() self._intTab = IntTab() self._conTab = ConTab() self._dexTab = DexTab() self._wisTab = WisTab() self._chaTab = ChaTab() self._guiObj = guiObj self._race = Race.createRace("human") self._class = Class.createClass("fighter")
def race(self, val): self._race = Race.createRace(val) self.savedata.race = self._race self._guiObj.updateCharAbilities()