Add eos setting for strict skills, and update info in skill tree without doing a repopulation

This commit is contained in:
blitzmann
2017-04-22 14:02:40 -04:00
parent b21c850598
commit c9a04e886a
4 changed files with 30 additions and 9 deletions

View File

@@ -370,6 +370,7 @@ class Character(object):
def changeLevel(charID, skillID, level, persist=False):
char = eos.db.getCharacter(charID)
skill = char.getSkill(skillID)
if isinstance(level, basestring) or level > 5 or level < 0:
skill.setLevel(None, persist)
else: