|
|
|
@ -124,14 +124,14 @@ public enum LootManager {
@@ -124,14 +124,14 @@ public enum LootManager {
|
|
|
|
|
case "LOOT": |
|
|
|
|
if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate)) |
|
|
|
|
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); |
|
|
|
|
if (extraLoot != null) { |
|
|
|
|
mob.getCharItemManager().addItemToInventory(extraLoot); |
|
|
|
|
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); |
|
|
|
|
if (extraLoot != null) { |
|
|
|
|
mob.getCharItemManager().addItemToInventory(extraLoot); |
|
|
|
|