mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
grant species_* skills
This commit is contained in:
@@ -87,6 +87,8 @@ public class SkillService implements INetworkDispatch {
|
||||
String[] schematicsGranted = ((String) skillTable.getObject(s, 23)).split(",");
|
||||
String[] schematicsRevoked = ((String) skillTable.getObject(s, 24)).split(",");
|
||||
|
||||
boolean speciesSkill = skill.matches("^species.+$");
|
||||
|
||||
if (isTitle == true) {
|
||||
core.playerService.addPlayerTitle(player, skill);
|
||||
Console.println("Gave skill title: " + skill);
|
||||
@@ -95,8 +97,9 @@ public class SkillService implements INetworkDispatch {
|
||||
if (isProfession) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (godOnly || isHidden) {
|
||||
|
||||
//exempt species skills from being returned -- they're marked godOnly but really meant to be granted
|
||||
if ((!speciesSkill) && ( godOnly || isHidden)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user