Browse Source

start with conc

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
5ee3438e42
  1. 9
      src/engine/gameManager/LootManager.java

9
src/engine/gameManager/LootManager.java

@ -137,18 +137,15 @@ 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.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); int roll = ThreadLocalRandom.current().nextInt(1, 101);
MobLoot extraLoot = null; MobLoot extraLoot = null;
if (roll >= 1 && roll <= 50) { if (roll <= 50) {
extraLoot = rollForContract(bse.genTable, mob); extraLoot = rollForContract(bse.genTable, mob);
} }
if (roll >= 51 && roll <= 94) { if (roll >= 51) {
extraLoot = rollForRune(bse.genTable, mob); extraLoot = rollForRune(bse.genTable, mob);
} }
//if (roll >= 95) {
// extraLoot = rollForGlass(mob);
//}
if (extraLoot != null) { if (extraLoot != null) {
mob.getCharItemManager().addItemToInventory(extraLoot); mob.getCharItemManager().addItemToInventory(extraLoot);
} }

Loading…
Cancel
Save