Browse Source

saetor granted skills

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
1e19e10755
  1. 18
      src/engine/objects/PlayerCharacter.java
  2. 6
      src/engine/objects/Race.java

18
src/engine/objects/PlayerCharacter.java

@ -4205,6 +4205,24 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4205,6 +4205,24 @@ public class PlayerCharacter extends AbstractCharacter {
//Call this function to recalculate granted skills and powers for player
public synchronized void calculateSkills() {
if (this.race.getName().equals("Saetor")) {
if(this.skills.containsKey("Staff") == false){
CharacterSkill staffSkill = new CharacterSkill(SkillsBase.getFromCache("Staff"),this);
this.skills.put("Staff",staffSkill);
staffSkill.updateDatabase();
}
if(this.skills.containsKey("Staff Mastery") == false){
CharacterSkill staffSkill = new CharacterSkill(SkillsBase.getFromCache("Staff Mastery"),this);
this.skills.put("Staff Mastery",staffSkill);
staffSkill.updateDatabase();
}
if(this.skills.containsKey("Parry") == false){
CharacterSkill staffSkill = new CharacterSkill(SkillsBase.getFromCache("Parry"),this);
this.skills.put("Parry",staffSkill);
staffSkill.updateDatabase();
}
}
//tell the player to applyBonuses because something has changed
runSkillCalc();

6
src/engine/objects/Race.java

@ -158,9 +158,9 @@ public class Race { @@ -158,9 +158,9 @@ public class Race {
baseClassesSaetor.add(BaseClass.getBaseClass(2502));
baseClassesSaetor.add(BaseClass.getBaseClass(2503));
ArrayList<SkillReq> skillsGrantedSaetor = new ArrayList<>();
skillsGrantedSaetor.add(new SkillReq(71438003, (short) 15)); // staff
skillsGrantedSaetor.add(new SkillReq(-61022283, (short) 10)); // staff mastery
skillsGrantedSaetor.add(new SkillReq(95961104, (short) 10)); // parry
//skillsGrantedSaetor.add(new SkillReq(71438003, (short) 15)); // staff
//skillsGrantedSaetor.add(new SkillReq(-61022283, (short) 10)); // staff mastery
//skillsGrantedSaetor.add(new SkillReq(95961104, (short) 10)); // parry
ArrayList<PowerReq> powersGrantedSaetor = new ArrayList<>();
ArrayList<MobBaseEffects> effectsListSaetor = new ArrayList<>();
Race saetor = new Race(1999,"Saetor","Half goat half man, the Saetor race does the bidding of the Choas Gods.",new Vector3f(35,30,85),new Vector3f(55,50,120),new Vector3f(50,45,115),new Vector3f(45,40,110),new Vector3f(35,30,85),(byte)20,19991999,(short)0,(short)0,5.0f,(short)0,baseClassesSaetor,skillsGrantedSaetor,powersGrantedSaetor,effectsListSaetor);

Loading…
Cancel
Save