From 1e19e10755f0ae2899ead315f2c71adb206c455b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 26 Mar 2024 13:23:27 -0500 Subject: [PATCH] saetor granted skills --- src/engine/objects/PlayerCharacter.java | 18 ++++++++++++++++++ src/engine/objects/Race.java | 6 +++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index ffd22868..99f7773a 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -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(); diff --git a/src/engine/objects/Race.java b/src/engine/objects/Race.java index dcdf364e..ca0aab5f 100644 --- a/src/engine/objects/Race.java +++ b/src/engine/objects/Race.java @@ -158,9 +158,9 @@ public class Race { baseClassesSaetor.add(BaseClass.getBaseClass(2502)); baseClassesSaetor.add(BaseClass.getBaseClass(2503)); ArrayList 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 powersGrantedSaetor = new ArrayList<>(); ArrayList 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);