Browse Source

rune application require/restrict actually use values

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
023f933d0b
  1. 5
      src/engine/net/client/msg/ApplyRuneMsg.java

5
src/engine/net/client/msg/ApplyRuneMsg.java

@ -78,11 +78,12 @@ public class ApplyRuneMsg extends ClientNetMsg {
return false; return false;
} }
boolean valid = true;
//Check race is met //Check race is met
ConcurrentHashMap<Integer, Boolean> races = rb.getRace(); ConcurrentHashMap<Integer, Boolean> races = rb.getRace();
if (races.size() > 0) { if (races.size() > 0) {
int raceID = playerCharacter.getRaceID(); int raceID = playerCharacter.getRaceID();
boolean valid = false;
for (int validID : races.keySet()) { for (int validID : races.keySet()) {
if (validID == raceID) { if (validID == raceID) {
valid = rb.getRace().get(raceID); valid = rb.getRace().get(raceID);
@ -98,7 +99,6 @@ public class ApplyRuneMsg extends ClientNetMsg {
ConcurrentHashMap<Integer, Boolean> baseClasses = rb.getBaseClass(); ConcurrentHashMap<Integer, Boolean> baseClasses = rb.getBaseClass();
if (baseClasses.size() > 0) { if (baseClasses.size() > 0) {
int baseClassID = playerCharacter.getBaseClassID(); int baseClassID = playerCharacter.getBaseClassID();
boolean valid = false;
for (int validID : baseClasses.keySet()) { for (int validID : baseClasses.keySet()) {
if (validID == baseClassID) { if (validID == baseClassID) {
valid = baseClasses.get(baseClassID); valid = baseClasses.get(baseClassID);
@ -114,7 +114,6 @@ public class ApplyRuneMsg extends ClientNetMsg {
ConcurrentHashMap<Integer, Boolean> promotionClasses = rb.getPromotionClass(); ConcurrentHashMap<Integer, Boolean> promotionClasses = rb.getPromotionClass();
if (promotionClasses.size() > 0) { if (promotionClasses.size() > 0) {
int promotionClassID = playerCharacter.getPromotionClassID(); int promotionClassID = playerCharacter.getPromotionClassID();
boolean valid = false;
for (int validID : promotionClasses.keySet()) { for (int validID : promotionClasses.keySet()) {
if (validID == promotionClassID) { if (validID == promotionClassID) {
valid = rb.getPromotionClass().get(promotionClassID); valid = rb.getPromotionClass().get(promotionClassID);

Loading…
Cancel
Save