drop rates adjusted again again third time

This commit is contained in:
2024-06-05 19:51:14 -05:00
parent 90facabc7b
commit c326008112
2 changed files with 2 additions and 6 deletions
+2 -5
View File
@@ -123,15 +123,13 @@ public enum LootManager {
case "LOOT":
if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate))
GenerateLootDrop(mob, bse.genTable); //generate normal loot drop
if(!mob.hasExtraRolled && ThreadLocalRandom.current().nextInt(1,5000) < 10 * dropRate){
mob.hasExtraRolled = true;
if(ThreadLocalRandom.current().nextInt(1,250) == 100){
MobLoot extraLoot = rollForContract(bse.genTable, mob);
if (extraLoot != null) {
mob.getCharItemManager().addItemToInventory(extraLoot);
}
}
if(!mob.hasExtraRolled && ThreadLocalRandom.current().nextInt(1,5000) < 10 * dropRate){
mob.hasExtraRolled = true;
if(ThreadLocalRandom.current().nextInt(1,250) == 100){
MobLoot extraLoot = rollForRune(bse.genTable, mob);
if (extraLoot != null) {
mob.getCharItemManager().addItemToInventory(extraLoot);
@@ -190,7 +188,6 @@ public enum LootManager {
mob.getCharItemManager().addItemToInventory(specialDrop);
mob.setResists(new Resists("Dropper"));
}
mob.hasExtraRolled = false;
}
public static MobLoot getGenTableItem(int genTableID, AbstractCharacter mob) {
-1
View File
@@ -88,7 +88,6 @@ public class Mob extends AbstractIntelligenceAgent {
public int contractCounter = 0;
public int runeCounter = 0;
public boolean hasExtraRolled = false;
// New Mobile constructor. Fill in the blanks and then call
// PERSIST.