Fixed skill enchanting packet issues.

This commit is contained in:
MobiusDev 2017-08-17 13:42:27 +00:00
parent 94c02216bc
commit b57de7720a
3 changed files with 2 additions and 13 deletions

View File

@ -41,14 +41,7 @@ public class ExEnchantSkillInfoDetail implements IClientOutgoingPacket
{
_type = type;
_skillId = skillId;
if (skillSubLvl > 1000)
{
_skillLvl=SkillEnchantConverter.levelToUnderground(skillSubLvl);
}
else
{
_skillLvl = skillLvl;
}
_skillLvl = skillSubLvl > 1000 ? SkillEnchantConverter.levelToErtheia(skillSubLvl) : skillLvl;
_enchantSkillHolder = EnchantSkillGroupsData.getInstance().getEnchantSkillHolder(skillSubLvl % 1000);
}

View File

@ -49,8 +49,7 @@ public class ExEnchantSkillList implements IClientOutgoingPacket
for (Skill skill : _skills)
{
packet.writeD(skill.getId());
packet.writeH(skill.getLevel());
packet.writeH(skill.getSubLevel());
packet.writeD(skill.getLevel());
}
return true;
}

View File

@ -19,6 +19,3 @@ What is done
TODO
-Modify all skill levels/sublevels based on client
Known issues
-Skill enchanting must be reworked