Browse Source

higher present drop chance

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
bf86680547
  1. 9
      src/engine/gameManager/LootManager.java

9
src/engine/gameManager/LootManager.java

@ -85,10 +85,6 @@ public enum LootManager {
if (mob.bootySet != 0 && _bootySetMap.containsKey(mob.bootySet)) if (mob.bootySet != 0 && _bootySetMap.containsKey(mob.bootySet))
RunBootySet(_bootySetMap.get(mob.bootySet), mob, inHotzone); RunBootySet(_bootySetMap.get(mob.bootySet), mob, inHotzone);
//check for special gifts 1/100 to drop present
if(ThreadLocalRandom.current().nextInt(1,101) == 50)
DropPresent(mob);
//lastly, check mobs inventory for godly or disc runes to send a server announcement //lastly, check mobs inventory for godly or disc runes to send a server announcement
for (Item it : mob.getInventory()) { for (Item it : mob.getInventory()) {
@ -121,6 +117,11 @@ public enum LootManager {
mob.getCharItemManager().addItemToInventory(toAdd); mob.getCharItemManager().addItemToInventory(toAdd);
} }
} }
//check for special gifts 1/100 to drop present
if(ThreadLocalRandom.current().nextInt(1,25) == 15)
DropPresent(mob);
// Iterate all entries in this bootySet and process accordingly // Iterate all entries in this bootySet and process accordingly
for (BootySetEntry bse : entries) { for (BootySetEntry bse : entries) {
switch (bse.bootyType) { switch (bse.bootyType) {

Loading…
Cancel
Save