Browse Source

logging

lakebane-new
FatBoy-DOTC 5 months ago
parent
commit
d764a66e55
  1. 6
      src/engine/gameManager/LootManager.java
  2. 2
      src/engine/objects/AbstractCharacter.java

6
src/engine/gameManager/LootManager.java

@ -68,7 +68,6 @@ public enum LootManager { @@ -68,7 +68,6 @@ public enum LootManager {
}
public static void GenerateMobLoot(Mob mob) {
mob.hasContractOrRune = false;
//determine if mob is in hotzone
boolean inHotzone = false;
@ -221,13 +220,8 @@ public enum LootManager { @@ -221,13 +220,8 @@ public enum LootManager {
}
if(outItem.getItemBase().getType().equals(Enum.ItemType.CONTRACT) || outItem.getItemBase().getType().equals(Enum.ItemType.RUNE)){
if(mob.hasContractOrRune){
return null;
}
if(ThreadLocalRandom.current().nextInt(1,101) < 66)
return null; // cut down world drops rates of resources by 65%
mob.hasContractOrRune = true;
}
return outItem;

2
src/engine/objects/AbstractCharacter.java

@ -122,8 +122,6 @@ public abstract class AbstractCharacter extends AbstractWorldObject { @@ -122,8 +122,6 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
private boolean collided = false;
private byte aoecntr = 0;
public boolean hasContractOrRune = false;
public AbstractCharacter() {
super();

Loading…
Cancel
Save