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 {
case 31: case 31:
if (ib.getUUID() == 971012) { //if (ib.getUUID() == 971012) {
int random = ThreadLocalRandom.current().nextInt(ItemBase.AnniverseryGifts.size()); // int random = ThreadLocalRandom.current().nextInt(ItemBase.AnniverseryGifts.size());
int annyID = ItemBase.AnniverseryGifts.get(random); // int annyID = ItemBase.AnniverseryGifts.get(random);
ItemBase annyIB = ItemBase.getItemBase(annyID); // ItemBase annyIB = ItemBase.getItemBase(annyID);
if (annyIB != null) { // if (annyIB != null) {
Item gift = MobLoot.createItemForPlayer(player, annyIB); // Item gift = MobLoot.createItemForPlayer(player, annyIB);
if (gift != null) { // if (gift != null) {
itemMan.addItemToInventory(gift); // itemMan.addItemToInventory(gift);
itemMan.consume(item); // itemMan.consume(item);
} // }
} // }
break; // break;
} //}
// Garbage method removed until rewritten. // Garbage method removed until rewritten.
// LootTable.CreateGamblerItem(item, player); // LootTable.CreateGamblerItem(item, player);
LootManager.peddleFate(player,item.getItemBaseID()); LootManager.peddleFate(player,item.getItemBaseID());

Loading…
Cancel
Save