Browse Source

cleanup old rune handler in ObjectActionMsgHandler

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

Loading…
Cancel
Save