Browse Source

drop rates adjusted again again third time

lakebane-master
FatBoy-DOTC 5 months ago
parent
commit
8135ef8e9c
  1. 4
      src/engine/gameManager/LootManager.java

4
src/engine/gameManager/LootManager.java

@ -124,14 +124,14 @@ public enum LootManager {
case "LOOT": case "LOOT":
if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate)) if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate))
GenerateLootDrop(mob, bse.genTable); //generate normal loot drop GenerateLootDrop(mob, bse.genTable); //generate normal loot drop
if(!hasExtraRolled && ThreadLocalRandom.current().nextInt(2500) < 10 * dropRate){ if(!hasExtraRolled && ThreadLocalRandom.current().nextInt(1,5000) < 10 * dropRate){
MobLoot extraLoot = rollForContract(bse.genTable, mob); MobLoot extraLoot = rollForContract(bse.genTable, mob);
if (extraLoot != null) { if (extraLoot != null) {
mob.getCharItemManager().addItemToInventory(extraLoot); mob.getCharItemManager().addItemToInventory(extraLoot);
hasExtraRolled = true; hasExtraRolled = true;
} }
} }
if(!hasExtraRolled && ThreadLocalRandom.current().nextInt(2500) < 10 * dropRate){ if(!hasExtraRolled && ThreadLocalRandom.current().nextInt(1,5000) < 10 * dropRate){
MobLoot extraLoot = rollForRune(bse.genTable, mob); MobLoot extraLoot = rollForRune(bse.genTable, mob);
if (extraLoot != null) { if (extraLoot != null) {
mob.getCharItemManager().addItemToInventory(extraLoot); mob.getCharItemManager().addItemToInventory(extraLoot);

Loading…
Cancel
Save