|
|
@ -123,15 +123,13 @@ 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(!mob.hasExtraRolled && ThreadLocalRandom.current().nextInt(1,5000) < 10 * dropRate){ |
|
|
|
if(ThreadLocalRandom.current().nextInt(1,250) == 100){ |
|
|
|
mob.hasExtraRolled = true; |
|
|
|
|
|
|
|
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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(!mob.hasExtraRolled && ThreadLocalRandom.current().nextInt(1,5000) < 10 * dropRate){ |
|
|
|
if(ThreadLocalRandom.current().nextInt(1,250) == 100){ |
|
|
|
mob.hasExtraRolled = true; |
|
|
|
|
|
|
|
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); |
|
|
@ -190,7 +188,6 @@ public enum LootManager { |
|
|
|
mob.getCharItemManager().addItemToInventory(specialDrop); |
|
|
|
mob.getCharItemManager().addItemToInventory(specialDrop); |
|
|
|
mob.setResists(new Resists("Dropper")); |
|
|
|
mob.setResists(new Resists("Dropper")); |
|
|
|
} |
|
|
|
} |
|
|
|
mob.hasExtraRolled = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static MobLoot getGenTableItem(int genTableID, AbstractCharacter mob) { |
|
|
|
public static MobLoot getGenTableItem(int genTableID, AbstractCharacter mob) { |
|
|
|