Removed return and re-added apiUpdateCharSheet function

This commit is contained in:
WatchMeCalculate
2018-06-19 00:16:32 -07:00
parent 6c6423515c
commit 99f14746e4
2 changed files with 6 additions and 3 deletions

View File

@@ -125,6 +125,12 @@ class Character(object):
return all0
def apiUpdateCharSheet(self, skills, secStatus=0.00):
self.clearSkills()
for skillRow in skills:
self.addSkill(Skill(self, skillRow["typeID"], skillRow["level"]))
self.secStatus = float(secStatus)
def clearSkills(self):
del self.__skills[:]
self.__skillIdMap.clear()