Sync with L2JServer Feb 3rd 2015.

This commit is contained in:
mobius
2015-02-03 21:11:57 +00:00
parent 9cf1a6d6e5
commit fe25f74122
169 changed files with 3379 additions and 5414 deletions

View File

@ -47,39 +47,10 @@ public final class L2SkillLearn
private SocialClass _socialClass;
private final boolean _residenceSkill;
private final List<Integer> _residenceIds = new ArrayList<>();
private final List<SubClassData> _subClassLvlNumber = new ArrayList<>();
private final boolean _learnedByNpc;
private final boolean _learnedByFS;
private final Set<Integer> _removeSkills = new HashSet<>(1);
public class SubClassData
{
private final int slot;
private final int lvl;
public SubClassData(int pSlot, int pLvl)
{
slot = pSlot;
lvl = pLvl;
}
/**
* @return the sub-class slot.
*/
public int getSlot()
{
return slot;
}
/**
* @return the required sub-class level.
*/
public int getLvl()
{
return lvl;
}
}
/**
* Constructor for L2SkillLearn.
* @param set the set with the L2SkillLearn data.
@ -241,24 +212,6 @@ public final class L2SkillLearn
_residenceIds.add(id);
}
/**
* @return a list with Sub-Class conditions, amount of subclasses and level.
*/
public List<SubClassData> getSubClassConditions()
{
return _subClassLvlNumber;
}
/**
* Adds a required residence Id.
* @param slot the sub-class slot.
* @param lvl the required sub-class level.
*/
public void addSubclassConditions(int slot, int lvl)
{
_subClassLvlNumber.add(new SubClassData(slot, lvl));
}
/**
* @return {@code true} if this skill is learned from Npc.
*/