Refactor of item.name; simplification.

This commit is contained in:
2024-03-16 08:56:22 -04:00
parent c54b0470fa
commit 3fdafe176b
6 changed files with 47 additions and 67 deletions
+2 -6
View File
@@ -111,14 +111,11 @@ public final class MobLoot extends Item {
if (this.template.item_type.equals(ItemType.GOLD))
return null;
Item item = (Item) this;
Item item = this;
item.setOwner(looter);
//item.setIsID(false);
item.containerType = Enum.ItemContainerType.INVENTORY;
item.setValue(0);
item.setName(this.getCustomName());
item.setIsID(this.isID());
if (this.getNumOfItems() > 1)
@@ -131,9 +128,8 @@ public final class MobLoot extends Item {
return null;
}
// for (String effectName : this.effectNames)
// item.addPermanentEnchantment(effectName, 0);
//transfer enchantments to item
if (this.prefix.length() != 0)
item.addPermanentEnchantment(this.prefix, 0);
if (this.suffix.length() != 0)