Browse Source

cleanup old rune handler in ObjectActionMsgHandler

combat-2
FatBoy-DOTC 8 months ago
parent
commit
39d04188b4
  1. 23
      src/engine/net/client/handlers/ObjectActionMsgHandler.java

23
src/engine/net/client/handlers/ObjectActionMsgHandler.java

@ -187,27 +187,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
case POTION: //potions, tears of saedron case POTION: //potions, tears of saedron
case SCROLL: //runes, petition, warrant, scrolls case SCROLL: //runes, petition, warrant, scrolls
if (uuid > 3000 && uuid < 3050) { //Discipline Runes if (uuid > 680069 && uuid < 680074) //Handle Charter, Deed, Petition, Warrant here
if (ApplyRuneMsg.applyRune(uuid, origin, player)) {
itemMan.consume(item);
}
break;
} else if (uuid > 249999 && uuid < 250123) { //stat and mastery runes
if (ApplyRuneMsg.applyRune(uuid, origin, player)) {
itemMan.consume(item);
}
break;
} else if (uuid > 250114 && uuid < 250123) { //mastery runes
if (ApplyRuneMsg.applyRune(uuid, origin, player)) {
itemMan.consume(item);
}
break;
} else if (uuid > 252122 && uuid < 252128) { //mastery runes
if (ApplyRuneMsg.applyRune(uuid, origin, player)) {
itemMan.consume(item);
}
break;
} else if (uuid > 680069 && uuid < 680074) //Handle Charter, Deed, Petition, Warrant here
{ {
break; break;
} else if (uuid > 910010 && uuid < 910019) { } else if (uuid > 910010 && uuid < 910019) {
@ -290,6 +270,7 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
break; break;
case RUNE: case RUNE:
ApplyRuneMsg.applyRune(uuid,origin,player); ApplyRuneMsg.applyRune(uuid,origin,player);
itemMan.consume(item);
break; break;
default: //shouldn't be here, consume item default: //shouldn't be here, consume item
dispatch = Dispatch.borrow(player, msg); dispatch = Dispatch.borrow(player, msg);

Loading…
Cancel
Save