Browse Source

disable anniversary gift

master
FatBoy-DOTC 1 year ago
parent
commit
04fcdd2545
  1. 28
      src/engine/net/client/handlers/ObjectActionMsgHandler.java

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

@ -426,20 +426,20 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler { @@ -426,20 +426,20 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
case 31:
if (ib.getUUID() == 971012) {
int random = ThreadLocalRandom.current().nextInt(ItemBase.AnniverseryGifts.size());
int annyID = ItemBase.AnniverseryGifts.get(random);
ItemBase annyIB = ItemBase.getItemBase(annyID);
if (annyIB != null) {
Item gift = MobLoot.createItemForPlayer(player, annyIB);
if (gift != null) {
itemMan.addItemToInventory(gift);
itemMan.consume(item);
}
}
break;
}
//if (ib.getUUID() == 971012) {
// int random = ThreadLocalRandom.current().nextInt(ItemBase.AnniverseryGifts.size());
// int annyID = ItemBase.AnniverseryGifts.get(random);
// ItemBase annyIB = ItemBase.getItemBase(annyID);
// if (annyIB != null) {
// Item gift = MobLoot.createItemForPlayer(player, annyIB);
// if (gift != null) {
// itemMan.addItemToInventory(gift);
// itemMan.consume(item);
// }
// }
// break;
//}
// Garbage method removed until rewritten.
// LootTable.CreateGamblerItem(item, player);
LootManager.peddleFate(player,item.getItemBaseID());

Loading…
Cancel
Save