@ -784,6 +784,9 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -784,6 +784,9 @@ public class PlayerCharacter extends AbstractCharacter {
// Verify Race
intraceID=msg.getRace();
if(raceID==0)
raceID=1999;
Racerace=Race.getRace(raceID);
if(race==null){
@ -816,33 +819,34 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -816,33 +819,34 @@ public class PlayerCharacter extends AbstractCharacter {
Logger.info("Invalid HairStyleID: "+hairStyleID+" for race: "+race.getName());
returnnull;
}
if(raceID!=1999){
if(!race.isValidHairStyle(hairStyleID)){
Logger.info("Invalid HairStyleID: "+hairStyleID+" for race: "+race.getName());
returnnull;
}
if(!race.isValidSkinColor(skinColorID)){
Logger.info("Invalid skinColorID: "+skinColorID+" for race: "+race.getName());
returnnull;
}
if(!race.isValidSkinColor(skinColorID)){
Logger.info("Invalid skinColorID: "+skinColorID+" for race: "+race.getName());
returnnull;
}
if(!race.isValidHairColor(hairColorID)){
Logger.info("Invalid hairColorID: "+hairColorID+" for race: "+race.getName());
returnnull;
}
if(!race.isValidHairColor(hairColorID)){
Logger.info("Invalid hairColorID: "+hairColorID+" for race: "+race.getName());
returnnull;
}
if(!race.isValidBeardColor(beardColorID)){
Logger.info("Invalid beardColorID: "+beardColorID+" for race: "+race.getName());
returnnull;
if(!race.isValidBeardColor(beardColorID)){
Logger.info("Invalid beardColorID: "+beardColorID+" for race: "+race.getName());
returnnull;
}
}
// Get stat modifiers
intstrMod=msg.getStrengthMod();
intdexMod=msg.getDexterityMod();
@ -1123,9 +1127,15 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -1123,9 +1127,15 @@ public class PlayerCharacter extends AbstractCharacter {
@ -1155,6 +1165,13 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -1155,6 +1165,13 @@ public class PlayerCharacter extends AbstractCharacter {