Fix not reading mpCon from MobSkill
This commit is contained in:
@@ -74,7 +74,7 @@ public class MobSkillFactory {
|
|||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
int mpCon = DataTool.getInt(skillData.getChildByPath("mpCon"), 0);
|
int mpCon = DataTool.getInt("mpCon", skillData, 0);
|
||||||
List<Integer> toSummon = new ArrayList<>();
|
List<Integer> toSummon = new ArrayList<>();
|
||||||
for (int i = 0; i > -1; i++) {
|
for (int i = 0; i > -1; i++) {
|
||||||
if (skillData.getChildByPath(String.valueOf(i)) == null) {
|
if (skillData.getChildByPath(String.valueOf(i)) == null) {
|
||||||
@@ -103,6 +103,7 @@ public class MobSkillFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MobSkill loadedMobSkill = new MobSkill.Builder(type, level)
|
MobSkill loadedMobSkill = new MobSkill.Builder(type, level)
|
||||||
|
.mpCon(mpCon)
|
||||||
.toSummon(toSummon)
|
.toSummon(toSummon)
|
||||||
.cooltime(cooltime)
|
.cooltime(cooltime)
|
||||||
.duration(duration)
|
.duration(duration)
|
||||||
|
|||||||
Reference in New Issue
Block a user