Browse Source

logging

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
462beb30b3
  1. 10
      src/engine/gameManager/LootManager.java

10
src/engine/gameManager/LootManager.java

@ -185,13 +185,12 @@ public enum LootManager { @@ -185,13 +185,12 @@ public enum LootManager {
return null;
if (ItemBase.getItemBase(itemUUID).getType().ordinal() == Enum.ItemType.RESOURCE.ordinal()) {
if(ThreadLocalRandom.current().nextInt(1,101) < 91)
return null; // cut down world drops rates of resources by 90%
int amount = ThreadLocalRandom.current().nextInt(tableRow.minSpawn, tableRow.maxSpawn + 1);
return new MobLoot(mob, ItemBase.getItemBase(itemUUID), amount, false);
}
if(ItemBase.getItemBase(itemUUID).getType().equals(Enum.ItemType.RESOURCE)){
if(ThreadLocalRandom.current().nextInt(1,101) < 91)
return null; // cut down world drops rates of resources by 90%
}else if(ItemBase.getItemBase(itemUUID).getType().equals(Enum.ItemType.RUNE)){
if(ItemBase.getItemBase(itemUUID).getType().equals(Enum.ItemType.RUNE)){
int randomRune = rollRandomItem(itemTableId);
if(randomRune != 0) {
itemUUID = randomRune;
@ -225,6 +224,9 @@ public enum LootManager { @@ -225,6 +224,9 @@ public enum LootManager {
if(mob.hasContractOrRune){
return null;
}
if(ThreadLocalRandom.current().nextInt(1,101) < 66)
return null; // cut down world drops rates of resources by 65%
mob.hasContractOrRune = true;
}

Loading…
Cancel
Save