forked from MagicBane/Server
custom races
This commit is contained in:
@@ -12,6 +12,7 @@ package engine.objects;
|
||||
import engine.Enum;
|
||||
import engine.Enum.RaceType;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.math.Vector3f;
|
||||
import engine.net.ByteBufferWriter;
|
||||
import engine.server.MBServerStatics;
|
||||
|
||||
@@ -107,8 +108,57 @@ public class Race {
|
||||
|
||||
}
|
||||
|
||||
//Custom Race constructor
|
||||
Race(int id, String name, String description, Vector3f str,Vector3f dex, Vector3f con, Vector3f intel, Vector3f spi,byte startingPoints,int token, short healthBonus, short stamBonus,float minHeight, short manaBonus,ArrayList<BaseClass> baseClasses,ArrayList<SkillReq> skillsGranted,ArrayList<PowerReq> powersGranted,ArrayList<MobBaseEffects> effectsList){
|
||||
this.raceRuneID = id;
|
||||
this.raceType = Enum.RaceType.getRaceTypebyRuneID(raceRuneID);
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.strStart = (short)str.x;
|
||||
this.strMin = (short)str.y;
|
||||
this.strMax = (short)str.z;
|
||||
this.dexStart = (short)dex.x;
|
||||
this.dexMin = (short)dex.y;
|
||||
this.dexMax = (short)dex.z;
|
||||
this.conStart = (short)con.x;
|
||||
this.conMin = (short)con.y;
|
||||
this.conMax = (short)con.z;
|
||||
this.intStart = (short)intel.x;
|
||||
this.intMin = (short)intel.y;
|
||||
this.intMax = (short)intel.z;
|
||||
this.spiStart = (short)spi.x;
|
||||
this.spiMin = (short)spi.y;
|
||||
this.spiMax = (short)spi.z;
|
||||
this.token = token;
|
||||
this.healthBonus = healthBonus;
|
||||
this.manaBonus = manaBonus;
|
||||
this.staminaBonus = stamBonus;
|
||||
this.startingPoints = startingPoints;
|
||||
this.raceType = RaceType.getRaceTypebyRuneID(this.raceRuneID);
|
||||
this.minHeight = minHeight;
|
||||
this.strHeightMod = 0.005882f;
|
||||
this.hairStyles = null;
|
||||
this.beardStyles = null;
|
||||
this.skinColors = null;
|
||||
this.beardColors = null;
|
||||
this.hairColors = null;
|
||||
this.baseClasses = baseClasses;
|
||||
this.skillsGranted = skillsGranted;
|
||||
this.powersGranted = powersGranted;
|
||||
this.effectsList = effectsList;
|
||||
}
|
||||
|
||||
public static void loadAllRaces() {
|
||||
Race._raceByID = DbManager.RaceQueries.LOAD_ALL_RACES();
|
||||
|
||||
//create Saetor race
|
||||
ArrayList<BaseClass> baseClassesSaetor = new ArrayList<>();
|
||||
ArrayList<SkillReq> skillsGrantedSaetor = new ArrayList<>();
|
||||
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)10,19991999,(short)0,(short)0,5.0f,(short)0,baseClassesSaetor,skillsGrantedSaetor,powersGrantedSaetor,effectsListSaetor);
|
||||
Race._raceByID.put(1999,saetor);
|
||||
|
||||
}
|
||||
|
||||
public static Race getRace(int id) {
|
||||
|
||||
Reference in New Issue
Block a user