Browse Source

special case drop rate for contracts runes and resources completed

lakebane-strongholds
FatBoy-DOTC 3 months ago
parent
commit
601d0f4324
  1. 18
      src/engine/gameManager/LootManager.java

18
src/engine/gameManager/LootManager.java

@ -207,10 +207,14 @@ public enum LootManager {
int ContractTableID = 0; int ContractTableID = 0;
for(GenTableEntry entry : _genTables.get(lootTableID)){ for(GenTableEntry entry : _genTables.get(lootTableID)){
if(ItemBase.getItemBase(_itemTables.get(entry.itemTableID).get(0).cacheID).getType().equals(Enum.ItemType.CONTRACT)){ try {
if (ItemBase.getItemBase(_itemTables.get(entry.itemTableID).get(0).cacheID).getType().equals(Enum.ItemType.CONTRACT)) {
ContractTableID = entry.itemTableID; ContractTableID = entry.itemTableID;
break; break;
} }
}catch(Exception e){
}
} }
if(ContractTableID == 0) if(ContractTableID == 0)
@ -237,10 +241,14 @@ public enum LootManager {
int RuneTableID = 0; int RuneTableID = 0;
for(GenTableEntry entry : _genTables.get(lootTableID)){ for(GenTableEntry entry : _genTables.get(lootTableID)){
if(ItemBase.getItemBase(_itemTables.get(entry.itemTableID).get(0).cacheID).getType().equals(Enum.ItemType.RUNE)){ try {
if (ItemBase.getItemBase(_itemTables.get(entry.itemTableID).get(0).cacheID).getType().equals(Enum.ItemType.RUNE)) {
RuneTableID = entry.itemTableID; RuneTableID = entry.itemTableID;
break; break;
} }
}catch(Exception e){
}
} }
if(RuneTableID == 0) if(RuneTableID == 0)
@ -267,10 +275,14 @@ public enum LootManager {
int ResourceTableID = 0; int ResourceTableID = 0;
for(GenTableEntry entry : _genTables.get(lootTableID)){ for(GenTableEntry entry : _genTables.get(lootTableID)){
if(ItemBase.getItemBase(_itemTables.get(entry.itemTableID).get(0).cacheID).getType().equals(Enum.ItemType.RESOURCE)){ try {
if (ItemBase.getItemBase(_itemTables.get(entry.itemTableID).get(0).cacheID).getType().equals(Enum.ItemType.RESOURCE)) {
ResourceTableID = entry.itemTableID; ResourceTableID = entry.itemTableID;
break; break;
} }
}catch(Exception e){
}
} }
if(ResourceTableID == 0) if(ResourceTableID == 0)

Loading…
Cancel
Save