Improved previous commit.

This commit is contained in:
MobiusDev
2017-10-15 01:44:20 +00:00
parent f67b7dbd1a
commit 26d0bbc427
12 changed files with 58 additions and 22 deletions

View File

@@ -2559,7 +2559,7 @@ public final class L2PcInstance extends L2Playable
// Add noble skills if noble
if (_nobleLevel > 0)
{
setNoble(_nobleLevel);
setNobleLevel(_nobleLevel);
}
// Add Hero skills if hero
@@ -6579,7 +6579,7 @@ public final class L2PcInstance extends L2Playable
player.setPkKills(rset.getInt("pkkills"));
player.setOnlineTime(rset.getLong("onlinetime"));
final int nobleLevel = rset.getInt("nobless");
player.setNoble(nobleLevel);
player.setNobleLevel(nobleLevel);
final int factionId = rset.getInt("faction");
if (factionId == 1)
@@ -9334,7 +9334,7 @@ public final class L2PcInstance extends L2Playable
return _nobleLevel;
}
public void setNoble(int level)
public void setNobleLevel(int level)
{
final Collection<Skill> nobleSkillTree = SkillTreesData.getInstance().getNobleSkillTree().values();
if (level != 0)