This commit is contained in:
2024-06-15 20:08:20 -05:00
parent ac41e64429
commit d764a66e55
2 changed files with 0 additions and 8 deletions
-6
View File
@@ -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 {
}
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;
@@ -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();