skycalc/calculator.py
def train(data, skill):
        """Update data as if a skill was trained."""

        def trained(skill_level):
            """Return level reached by training a skill with a given level."""
            if skill_level == 100:  # 'make legendary'
                return 16
            else:
                return skill_level + 1

        data[skill]["Final Level"] = trained(data[skill]["Final Level"])
        data[skill]["Times Leveled"] += 1
Update data as if a skill was trained.
Update data as if a skill was trained.
Update data as if a skill was trained .
def train(data, skill):
        def trained(skill_level):
            if skill_level == 100:  
                return 16
            else:
                return skill_level + 1
        data[skill]["Final Level"] = trained(data[skill]["Final Level"])
        data[skill]["Times Leveled"] += 1
def train ( data , skill ) : def trained ( skill_level ) : """Return level reached by training a skill with a given level.""" if skill_level == 100 : return 16 else : return skill_level + 1 data [ skill ] [ "Final Level" ] = trained ( data [ skill ] [ "Final Level" ] ) data [ skill ] [ "Times Leveled" ] += 1
Update data as if a skill was trained.
Update data as if a skill was trained .
"""Update data as if a skill was trained.""" """Return level reached by training a skill with a given level.""" # 'make legendary'
data
skill