Esempio n. 1
0
  /**
   * @param addNoble if true, will add also Advanced headquarters.
   * @return an array with siege skills.
   */
  public L2Skill[] getSiegeSkills(boolean addNoble) {
    L2Skill[] temp = new L2Skill[2 + (addNoble ? 1 : 0)];
    int i = 0;

    temp[i++] = _skills.get(SkillTable.getSkillHashCode(246, 1));
    temp[i++] = _skills.get(SkillTable.getSkillHashCode(247, 1));

    if (addNoble) temp[i++] = _skills.get(SkillTable.getSkillHashCode(326, 1));

    return temp;
  }
Esempio n. 2
0
 public void loadAllSkills(final TIntObjectHashMap<L2Skill> allSkills) {
   int count = 0;
   for (File file : _skillFiles) {
     List<L2Skill> s = loadSkills(file);
     if (s == null) continue;
     for (L2Skill skill : s) {
       allSkills.put(SkillTable.getSkillHashCode(skill), skill);
       count++;
     }
   }
   _log.info("SkillsEngine: Loaded " + count + " skill templates from XML files.");
 }