forked from MagicBane/Server
mithril drop rate fixed
This commit is contained in:
@@ -420,8 +420,23 @@ public enum LootManager {
|
|||||||
return inItem;
|
return inItem;
|
||||||
|
|
||||||
if (prefixMod.action.length() > 0) {
|
if (prefixMod.action.length() > 0) {
|
||||||
inItem.setPrefix(prefixMod.action);
|
String action = prefixMod.action;
|
||||||
inItem.addPermanentEnchantment(prefixMod.action, 0, prefixMod.level, true);
|
if(action.equals("PRE-108") || action.equals("PRE-058") || action.equals("PRE-031")){//massive, barons and avatars to be replaced by leg or warlords
|
||||||
|
int roll = ThreadLocalRandom.current().nextInt(1,100);
|
||||||
|
if(inItem.getItemBase().getRange() > 15){
|
||||||
|
action = "PRE-040";
|
||||||
|
}else {
|
||||||
|
if (roll > 50) {
|
||||||
|
//set warlords
|
||||||
|
action = "PRE-021";
|
||||||
|
} else {
|
||||||
|
//set legendary
|
||||||
|
action = "PRE-040";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inItem.setPrefix(action);
|
||||||
|
inItem.addPermanentEnchantment(action, 0, prefixMod.level, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return inItem;
|
return inItem;
|
||||||
|
|||||||
Reference in New Issue
Block a user