Browse Source

contract and rune drop work

lakebane-new
FatBoy-DOTC 5 months ago
parent
commit
0d31bc4280
  1. 2
      src/engine/devcmd/cmds/SimulateBootyCmd.java
  2. 8
      src/engine/gameManager/LootManager.java

2
src/engine/devcmd/cmds/SimulateBootyCmd.java

@ -51,7 +51,7 @@ public class SimulateBootyCmd extends AbstractDevCmd { @@ -51,7 +51,7 @@ public class SimulateBootyCmd extends AbstractDevCmd {
int failures = 0;
int goldAmount = 0;
for (int i = 0; i < 100; ++i) {
for (int i = 0; i < 1000; ++i) {
try {
mob.loadInventory();

8
src/engine/gameManager/LootManager.java

@ -219,8 +219,8 @@ public enum LootManager { @@ -219,8 +219,8 @@ public enum LootManager {
if(randomRune != null) {
outItem = new MobLoot(mob, randomRune, false);
}
if(ThreadLocalRandom.current().nextInt(1,101) < 71)
return null; // cut down world drops rates of runes by 70%
//if(ThreadLocalRandom.current().nextInt(1,101) < 71)
// return null; // cut down world drops rates of runes by 70%
}
if(outItem.getItemBase().getType().equals(Enum.ItemType.CONTRACT)){
@ -228,8 +228,8 @@ public enum LootManager { @@ -228,8 +228,8 @@ public enum LootManager {
if(randomContract != null) {
outItem = new MobLoot(mob, randomContract, false);
}
if(ThreadLocalRandom.current().nextInt(1,101) < 71)
return null; // cut down world drops rates of contracts by 70%
//if(ThreadLocalRandom.current().nextInt(1,101) < 71)
// return null; // cut down world drops rates of contracts by 70%
}
if(outItem.getItemBase().getType().equals(Enum.ItemType.CONTRACT) || outItem.getItemBase().getType().equals(Enum.ItemType.RUNE)){

Loading…
Cancel
Save