From 04fcdd2545227c1f32bbec0c1ee8b0c061004664 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 8 Aug 2023 19:43:51 -0500 Subject: [PATCH] disable anniversary gift --- .../handlers/ObjectActionMsgHandler.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/engine/net/client/handlers/ObjectActionMsgHandler.java b/src/engine/net/client/handlers/ObjectActionMsgHandler.java index 517e4cc4..f85370c3 100644 --- a/src/engine/net/client/handlers/ObjectActionMsgHandler.java +++ b/src/engine/net/client/handlers/ObjectActionMsgHandler.java @@ -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());