min roll increased to 70
This commit is contained in:
@@ -171,7 +171,6 @@ public enum LootManager {
|
|||||||
outItem = new MobLoot(mob, ItemBase.getItemBase(itemUUID), false);
|
outItem = new MobLoot(mob, ItemBase.getItemBase(itemUUID), false);
|
||||||
Enum.ItemType outType = outItem.getItemBase().getType();
|
Enum.ItemType outType = outItem.getItemBase().getType();
|
||||||
outItem.setIsID(true);
|
outItem.setIsID(true);
|
||||||
outItem.setIsID(true);
|
|
||||||
if (outType.ordinal() == Enum.ItemType.WEAPON.ordinal() || outType.ordinal() == Enum.ItemType.ARMOR.ordinal() || outType.ordinal() == Enum.ItemType.JEWELRY.ordinal()) {
|
if (outType.ordinal() == Enum.ItemType.WEAPON.ordinal() || outType.ordinal() == Enum.ItemType.ARMOR.ordinal() || outType.ordinal() == Enum.ItemType.JEWELRY.ordinal()) {
|
||||||
if (outItem.getItemBase().isGlass() == false) {
|
if (outItem.getItemBase().isGlass() == false) {
|
||||||
try {
|
try {
|
||||||
@@ -220,7 +219,6 @@ public enum LootManager {
|
|||||||
inItem.setPrefix(prefixMod.action);
|
inItem.setPrefix(prefixMod.action);
|
||||||
inItem.addPermanentEnchantment(prefixMod.action, 0, prefixMod.level, true);
|
inItem.addPermanentEnchantment(prefixMod.action, 0, prefixMod.level, true);
|
||||||
inItem.setIsID(false);
|
inItem.setIsID(false);
|
||||||
inItem.setIsID(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -258,7 +256,6 @@ public enum LootManager {
|
|||||||
inItem.setSuffix(suffixMod.action);
|
inItem.setSuffix(suffixMod.action);
|
||||||
inItem.addPermanentEnchantment(suffixMod.action, 0, suffixMod.level, false);
|
inItem.addPermanentEnchantment(suffixMod.action, 0, suffixMod.level, false);
|
||||||
inItem.setIsID(false);
|
inItem.setIsID(false);
|
||||||
inItem.setIsID(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -276,6 +273,8 @@ public enum LootManager {
|
|||||||
max = 319;
|
max = 319;
|
||||||
|
|
||||||
int min = (int)(4.469 * mobLevel - 3.469);
|
int min = (int)(4.469 * mobLevel - 3.469);
|
||||||
|
if(min < 70)
|
||||||
|
min = 70;
|
||||||
if(inHotzone){
|
if(inHotzone){
|
||||||
min += mobLevel;
|
min += mobLevel;
|
||||||
}
|
}
|
||||||
@@ -349,8 +348,11 @@ public enum LootManager {
|
|||||||
if (equipmentRoll > (dropChance * multiplier))
|
if (equipmentRoll > (dropChance * multiplier))
|
||||||
continue;
|
continue;
|
||||||
MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
|
MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
|
||||||
if (ml != null)
|
if (ml != null) {
|
||||||
|
ml.setIsID(true);
|
||||||
|
ml.setIsID(true);
|
||||||
mob.getCharItemManager().addItemToInventory(ml);
|
mob.getCharItemManager().addItemToInventory(ml);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user