logging
This commit is contained in:
@@ -185,13 +185,12 @@ public enum LootManager {
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
if (ItemBase.getItemBase(itemUUID).getType().ordinal() == Enum.ItemType.RESOURCE.ordinal()) {
|
if (ItemBase.getItemBase(itemUUID).getType().ordinal() == Enum.ItemType.RESOURCE.ordinal()) {
|
||||||
|
if(ThreadLocalRandom.current().nextInt(1,101) < 91)
|
||||||
|
return null; // cut down world drops rates of resources by 90%
|
||||||
int amount = ThreadLocalRandom.current().nextInt(tableRow.minSpawn, tableRow.maxSpawn + 1);
|
int amount = ThreadLocalRandom.current().nextInt(tableRow.minSpawn, tableRow.maxSpawn + 1);
|
||||||
return new MobLoot(mob, ItemBase.getItemBase(itemUUID), amount, false);
|
return new MobLoot(mob, ItemBase.getItemBase(itemUUID), amount, false);
|
||||||
}
|
}
|
||||||
if(ItemBase.getItemBase(itemUUID).getType().equals(Enum.ItemType.RESOURCE)){
|
if(ItemBase.getItemBase(itemUUID).getType().equals(Enum.ItemType.RUNE)){
|
||||||
if(ThreadLocalRandom.current().nextInt(1,101) < 91)
|
|
||||||
return null; // cut down world drops rates of resources by 90%
|
|
||||||
}else if(ItemBase.getItemBase(itemUUID).getType().equals(Enum.ItemType.RUNE)){
|
|
||||||
int randomRune = rollRandomItem(itemTableId);
|
int randomRune = rollRandomItem(itemTableId);
|
||||||
if(randomRune != 0) {
|
if(randomRune != 0) {
|
||||||
itemUUID = randomRune;
|
itemUUID = randomRune;
|
||||||
@@ -225,6 +224,9 @@ public enum LootManager {
|
|||||||
if(mob.hasContractOrRune){
|
if(mob.hasContractOrRune){
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if(ThreadLocalRandom.current().nextInt(1,101) < 66)
|
||||||
|
return null; // cut down world drops rates of resources by 65%
|
||||||
|
|
||||||
mob.hasContractOrRune = true;
|
mob.hasContractOrRune = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user