mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Fixed issue #114
This commit is contained in:
@@ -287,15 +287,12 @@ public class SkillService implements INetworkDispatch {
|
||||
public int caluclateExpertisePoints(CreatureObject creature)
|
||||
{
|
||||
int expertisePoints = 0;
|
||||
|
||||
try
|
||||
{
|
||||
DatatableVisitor table = ClientFileManager.loadFile("datatables/player/player_level.iff", DatatableVisitor.class);
|
||||
for (int i = 0; i <= creature.getLevel(); i++) expertisePoints += (int) table.getObject(i, 5);
|
||||
}
|
||||
catch (Exception e) { e.printStackTrace(); }
|
||||
|
||||
System.out.println("Player should have " + expertisePoints + " expertise points.");
|
||||
return expertisePoints;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user