start with conc
This commit is contained in:
@@ -137,18 +137,15 @@ 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.parentZone.getSafeZone() == 0 && hasExtraRolled == false && ThreadLocalRandom.current().nextInt(1, 10000) < 5 * dropRate) {
|
||||
if (mob.parentZone.getSafeZone() == 0 && hasExtraRolled == false && ThreadLocalRandom.current().nextInt(1, 5000) < 5 * dropRate) {
|
||||
int roll = ThreadLocalRandom.current().nextInt(1, 101);
|
||||
MobLoot extraLoot = null;
|
||||
if (roll >= 1 && roll <= 50) {
|
||||
if (roll <= 50) {
|
||||
extraLoot = rollForContract(bse.genTable, mob);
|
||||
}
|
||||
if (roll >= 51 && roll <= 94) {
|
||||
if (roll >= 51) {
|
||||
extraLoot = rollForRune(bse.genTable, mob);
|
||||
}
|
||||
//if (roll >= 95) {
|
||||
// extraLoot = rollForGlass(mob);
|
||||
//}
|
||||
if (extraLoot != null) {
|
||||
mob.getCharItemManager().addItemToInventory(extraLoot);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user