grant species_* skills

This commit is contained in:
darkk1138
2013-11-30 16:54:25 +01:00
parent 2e3879321b
commit cde8e11be5
3 changed files with 7 additions and 5 deletions
+5 -2
View File
@@ -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;
}