Adds charged skill to skills (non-charged for now)

This commit is contained in:
Collin Smith 2019-04-18 13:57:35 -07:00
parent 9901d3b1d2
commit f3098b6d5e

View File

@ -259,8 +259,15 @@ public class CharData {
}
for (Stat stat : stats.remaining()) {
if (stat.id == Stat.item_nonclassskill) {
skills.getAndIncrement(stat.param, 0, stat.value());
switch (stat.id) {
case Stat.item_nonclassskill:
skills.getAndIncrement(stat.param(), 0, stat.value());
break;
case Stat.item_charged_skill: // FIXME: This is incorrect on purpose
skills.getAndIncrement(stat.param2(), 0, stat.param1());
break;
default:
// do nothing
}
}
notifySkillsChanged(skills);