Browse Source

add mob adding stronghold mobs

lakebane
FatBoy-DOTC 3 weeks ago
parent
commit
2a7fd87686
  1. 4
      src/engine/gameManager/LootManager.java
  2. 7
      src/engine/objects/Mob.java

4
src/engine/gameManager/LootManager.java

@ -890,8 +890,8 @@ public enum LootManager { @@ -890,8 +890,8 @@ public enum LootManager {
}
//present drop chance for all
if (ThreadLocalRandom.current().nextInt(100) < 35)
DropPresent(mob);
//if (ThreadLocalRandom.current().nextInt(100) < 35)
// DropPresent(mob);
//random contract drop chance for all
if (ThreadLocalRandom.current().nextInt(100) < 40) {

7
src/engine/objects/Mob.java

@ -1496,8 +1496,11 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1496,8 +1496,11 @@ public class Mob extends AbstractIntelligenceAgent {
if (isPlayerGuard)
return;
LootManager.GenerateMobLoot(this);
if(this.isHellgateMob){
LootManager.GenerateStrongholdLoot(this,false,false);
}else {
LootManager.GenerateMobLoot(this);
}
}
@Override

Loading…
Cancel
Save