Browse Source

Backend Saetor work

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
75947db6e5
  1. 16
      src/engine/objects/AbstractCharacter.java
  2. 3
      src/engine/objects/Race.java

16
src/engine/objects/AbstractCharacter.java

@ -848,22 +848,6 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
} }
public final ConcurrentHashMap<String, CharacterSkill> getSkills() { public final ConcurrentHashMap<String, CharacterSkill> getSkills() {
if (this.getObjectType().equals(GameObjectType.PlayerCharacter)) {
if (((PlayerCharacter) this).getRace().getName().equals("Saetor")) {
if (this.skills.containsKey("Parry") == false) {
CharacterSkill parrySkill = new CharacterSkill(SkillsBase.getFromCache(95961104), (PlayerCharacter) this);
this.skills.put("Parry", parrySkill);
}
if (this.skills.containsKey("Staff") == false) {
CharacterSkill parrySkill = new CharacterSkill(SkillsBase.getFromCache(71438003), (PlayerCharacter) this);
this.skills.put("Staff", parrySkill);
}
if (this.skills.containsKey("Staff Mastery") == false) {
CharacterSkill parrySkill = new CharacterSkill(SkillsBase.getFromCache(-61022283), (PlayerCharacter) this);
this.skills.put("Staff Mastery", parrySkill);
}
}
}
return this.skills; return this.skills;
} }

3
src/engine/objects/Race.java

@ -158,6 +158,9 @@ public class Race {
baseClassesSaetor.add(BaseClass.getBaseClass(2502)); baseClassesSaetor.add(BaseClass.getBaseClass(2502));
baseClassesSaetor.add(BaseClass.getBaseClass(2503)); baseClassesSaetor.add(BaseClass.getBaseClass(2503));
ArrayList<SkillReq> skillsGrantedSaetor = new ArrayList<>(); 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
ArrayList<PowerReq> powersGrantedSaetor = new ArrayList<>(); ArrayList<PowerReq> powersGrantedSaetor = new ArrayList<>();
ArrayList<MobBaseEffects> effectsListSaetor = 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); 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