forked from MagicBane/Server
mithril drop rates
This commit is contained in:
@@ -268,32 +268,6 @@ public enum LootManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void SpecialCaseRuneDrop(Mob mob,ArrayList<BootySetEntry> entries){
|
public static void SpecialCaseRuneDrop(Mob mob,ArrayList<BootySetEntry> entries){
|
||||||
//int lootTableID = 0;
|
|
||||||
//for(BootySetEntry entry : entries){
|
|
||||||
// if(entry.bootyType.equals("LOOT")){
|
|
||||||
// lootTableID = entry.genTable;
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
// if(lootTableID == 0)
|
|
||||||
// return;
|
|
||||||
|
|
||||||
//int RuneTableID = 0;
|
|
||||||
//for(GenTableEntry entry : _genTables.get(lootTableID)){
|
|
||||||
// try {
|
|
||||||
// if (ItemBase.getItemBase(_itemTables.get(entry.itemTableID).get(0).cacheID).getType().equals(Enum.ItemType.RUNE)) {
|
|
||||||
// RuneTableID = entry.itemTableID;
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }catch(Exception e){
|
|
||||||
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
//if(RuneTableID == 0)
|
|
||||||
// return;
|
|
||||||
|
|
||||||
int roll = ThreadLocalRandom.current().nextInt(static_rune_ids.size() + 1);
|
int roll = ThreadLocalRandom.current().nextInt(static_rune_ids.size() + 1);
|
||||||
int itemId = static_rune_ids.get(0);
|
int itemId = static_rune_ids.get(0);
|
||||||
try {
|
try {
|
||||||
@@ -574,6 +548,10 @@ public enum LootManager {
|
|||||||
case RESOURCE:
|
case RESOURCE:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ib.getUUID() == 1580021)//mithril
|
||||||
|
return;
|
||||||
|
|
||||||
toAdd.setIsID(true);
|
toAdd.setIsID(true);
|
||||||
mob.getCharItemManager().addItemToInventory(toAdd);
|
mob.getCharItemManager().addItemToInventory(toAdd);
|
||||||
}
|
}
|
||||||
@@ -633,6 +611,8 @@ public enum LootManager {
|
|||||||
if (chanceRoll > bse.dropChance)
|
if (chanceRoll > bse.dropChance)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(bse.itemBase == 1580021)//mithril
|
||||||
|
return;
|
||||||
MobLoot lootItem = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true);
|
MobLoot lootItem = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true);
|
||||||
|
|
||||||
if (lootItem != null) {
|
if (lootItem != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user