mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Fixed Out of Bounds error for expertise, changed modifier on skillmods to float
(BugFix) Fixed out of bounds error when assigning expertise points (Code) Changed SkillMod's modifier variable to float value (Code) Changed Charge! and Scatter! to use updated addBuffToCreature
This commit is contained in:
@@ -288,7 +288,7 @@ public class SkillService implements INetworkDispatch {
|
||||
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);
|
||||
for (int i = 0; i < creature.getLevel(); i++) expertisePoints += (int) table.getObject(i, 5);
|
||||
for (String skill : creature.getSkills()) if(skill.startsWith("expertise_")) expertisePoints--;
|
||||
}
|
||||
catch (Exception e) { e.printStackTrace(); }
|
||||
|
||||
Reference in New Issue
Block a user