From 436d0cec9b36a7b2a73584978ab04954b806f0aa Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 3 Mar 2024 08:12:49 -0500 Subject: [PATCH] Bonus code removed. --- src/engine/objects/MobLoot.java | 44 --------------------------------- 1 file changed, 44 deletions(-) diff --git a/src/engine/objects/MobLoot.java b/src/engine/objects/MobLoot.java index a09859bc..fdfbe4f2 100644 --- a/src/engine/objects/MobLoot.java +++ b/src/engine/objects/MobLoot.java @@ -166,50 +166,6 @@ public final class MobLoot extends Item { return item; } - public synchronized Item promoteToItemForNPC(NPC looter) { - - if (looter == null) - return null; - - if (isDeleted) - return null; - - if (this.getItemBase().getType().equals(ItemType.GOLD)) - return null; - - Item item = this; - item.setOwner(looter); - item.containerType = Enum.ItemContainerType.INVENTORY; - item.setIsID(true); - - if (this.getNumOfItems() > 1) - item.setNumOfItems(this.getNumOfItems()); - - try { - item = DbManager.ItemQueries.PERSIST(item); - } catch (Exception e) { - Logger.error(e); - return null; - } - item.containerType = Enum.ItemContainerType.INVENTORY; - - // for (String effectName : this.effectNames) - // item.addPermanentEnchantment(effectName, 0); - //transfer enchantments to item - try { - for (String enchant : this.getEffectNames()) { - item.addPermanentEnchantment(enchant, 0); - } - } catch (Exception e) { - Logger.error(e.getMessage()); - } - - DbManager.NPCQueries.REMOVE_FROM_PRODUCTION_LIST(this.getObjectUUID(), looter.getObjectUUID()); - looter.removeItemFromForge(this); - this.junk(); - return item; - } - public synchronized void recycle(NPC vendor) { //remove from production list for npc in db