Added a few requested functions to the ExperienceAPI

This commit is contained in:
GJ
2012-06-26 08:02:31 -04:00
parent dd94343d92
commit 3d9c03c0c8
3 changed files with 45 additions and 0 deletions

View File

@ -934,6 +934,10 @@ public class PlayerProfile {
return skillsXp.get(skillType);
}
public void setSkillXPLevel(SkillType skillType, int newValue) {
skillsXp.put(skillType, newValue);
}
public void skillUp(SkillType skillType, int newValue) {
skills.put(skillType, skills.get(skillType) + newValue);
}