Browse Source

logging

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

2
src/engine/objects/AbstractCharacter.java

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

Loading…
Cancel
Save