Merge branch 'feature/sec-status-change' into dev

Add ability to change characters sec status
This commit is contained in:
blitzmann
2017-05-06 12:23:40 -04:00
3 changed files with 1721 additions and 2 deletions

View File

@@ -279,6 +279,11 @@ class Character(object):
char.alphaCloneID = cloneID
eos.db.commit()
@staticmethod
def setSecStatus(char, secStatus):
char.secStatus = secStatus
eos.db.commit()
@staticmethod
def getSkillDescription(itemID):
return eos.db.getItem(itemID).description
@@ -290,7 +295,7 @@ class Character(object):
@staticmethod
def getSkillLevel(charID, skillID):
skill = eos.db.getCharacter(charID).getSkill(skillID)
return skill.level if skill.learned else "Not learned", skill.isDirty
return float(skill.level) if skill.learned else "Not learned", skill.isDirty
@staticmethod
def getDirtySkills(charID):