Browse Source

drop rates adjusted again

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
d733afef58
  1. 4
      src/engine/gameManager/LootManager.java

4
src/engine/gameManager/LootManager.java

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

Loading…
Cancel
Save