forked from MagicBane/Server
prefix/suffix usage for mob loot
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user