present drops restricted to strongholds

This commit is contained in:
2024-07-15 19:13:40 -05:00
parent c652379a5f
commit 6c92abd083
+1 -7
View File
@@ -169,10 +169,6 @@ public enum LootManager {
} }
} }
//check for special gifts 1/100 to drop present
if(ThreadLocalRandom.current().nextInt(1,25) == 15)
DropPresent(mob);
// Iterate all entries in this bootySet and process accordingly // Iterate all entries in this bootySet and process accordingly
for (BootySetEntry bse : entries) { for (BootySetEntry bse : entries) {
switch (bse.bootyType) { switch (bse.bootyType) {
@@ -691,13 +687,12 @@ public enum LootManager {
DropPresent(mob); DropPresent(mob);
//random contract drop chance for all //random contract drop chance for all
if (ThreadLocalRandom.current().nextInt(100) < 35) { if (ThreadLocalRandom.current().nextInt(100) < 40) {
int contractTableID = 250; int contractTableID = 250;
contractTableID += ThreadLocalRandom.current().nextInt(0, 12); contractTableID += ThreadLocalRandom.current().nextInt(0, 12);
if (contractTableID > 259) if (contractTableID > 259)
contractTableID = 659; contractTableID = 659;
if (ThreadLocalRandom.current().nextInt(100) < 35) {
int id = rollRandomItem(contractTableID); int id = rollRandomItem(contractTableID);
ItemBase ib = ItemBase.getItemBase(id); ItemBase ib = ItemBase.getItemBase(id);
if (ib != null) { if (ib != null) {
@@ -706,7 +701,6 @@ public enum LootManager {
if (contract != null) if (contract != null)
mob.getCharItemManager().addItemToInventory(contract); mob.getCharItemManager().addItemToInventory(contract);
} }
}
} }
//special commander drop chances //special commander drop chances