Addition of onlyReplaceByLearn skilltree parameter.

This commit is contained in:
MobiusDevelopment
2021-02-28 04:43:11 +00:00
parent 850f6e3c0f
commit 034a771eb5
36 changed files with 90 additions and 18 deletions

View File

@ -271,7 +271,10 @@ public class SkillTreeData implements IXmlReader
{
final int removeSkillId = parseInteger(attrs, "id");
skillLearn.addRemoveSkills(removeSkillId);
_removeSkillCache.computeIfAbsent(classId, k -> new HashSet<>()).add(removeSkillId);
if (!parseBoolean(attrs, "onlyReplaceByLearn", false))
{
_removeSkillCache.computeIfAbsent(classId, k -> new HashSet<>()).add(removeSkillId);
}
break;
}
}