Browse Source

Saetor Race Added

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
0d45bb5bc1
  1. 11
      src/engine/objects/Kit.java
  2. 5
      src/engine/objects/PlayerCharacter.java

11
src/engine/objects/Kit.java

@ -373,6 +373,17 @@ public class Kit extends AbstractGameObject { @@ -373,6 +373,17 @@ public class Kit extends AbstractGameObject {
case 2503:
return 69;
}
case 1999:
switch (classID) {
case 2500:
return 53;
case 2501:
return 54;
case 2502:
return 37;
case 2503:
return 38;
}
}

5
src/engine/objects/PlayerCharacter.java

@ -789,13 +789,14 @@ public class PlayerCharacter extends AbstractCharacter { @@ -789,13 +789,14 @@ public class PlayerCharacter extends AbstractCharacter {
return null;
}
// Verify HairStyle/BeardStyle/SkinColor/HairColor/BeardColor
int hairStyleID = msg.getHairStyle();
int beardStyleID = msg.getBeardStyle();
int skinColorID = msg.getSkinColor();
int hairColorID = msg.getHairColor();
int beardColorID = msg.getBeardColor();
if(raceID >= 2000) {
if (!race.isValidHairStyle(hairStyleID)) {
Logger.info("Invalid HairStyleID: " + hairStyleID + " for race: " + race.getName());
return null;
@ -815,7 +816,7 @@ public class PlayerCharacter extends AbstractCharacter { @@ -815,7 +816,7 @@ public class PlayerCharacter extends AbstractCharacter {
Logger.info("Invalid beardColorID: " + beardColorID + " for race: " + race.getName());
return null;
}
}
// Get stat modifiers
int strMod = msg.getStrengthMod();
int dexMod = msg.getDexterityMod();

Loading…
Cancel
Save