Browse Source

prefix/suffix usage for mob loot

master
FatBoy-DOTC 2 years ago
parent
commit
2827db5db5
  1. 4
      src/engine/loot/LootManager.java
  2. 2
      src/engine/objects/MobLoot.java

4
src/engine/loot/LootManager.java

@ -140,11 +140,11 @@ public class LootManager {
outItem = new MobLoot(mob, ItemBase.getItemBase(itemUUID), false); outItem = new MobLoot(mob, ItemBase.getItemBase(itemUUID), false);
String prefixAction = prefixMod.action; String prefixAction = prefixMod.action;
if(prefixMod.action.length() > 0){ if(prefixMod.action.length() > 0){
outItem.addPermanentEnchantment(prefixMod.action, prefixMod.level); outItem.setPrefix(prefixMod.action);
} }
String suffixaction = suffixMod.action; String suffixaction = suffixMod.action;
if(suffixMod.action.length() > 0){ if(suffixMod.action.length() > 0){
outItem.addPermanentEnchantment(suffixMod.action, suffixMod.level); outItem.setSuffix(suffixMod.action);
} }
return outItem; return outItem;
} }

2
src/engine/objects/MobLoot.java

@ -103,7 +103,7 @@ public final class MobLoot extends Item {
return null; return null;
Item item = this; Item item = (Item)this;
item.setOwner(looter); item.setOwner(looter);
//item.setIsID(false); //item.setIsID(false);

Loading…
Cancel
Save