Merge pull request 'Reduce Haunted Vrijduin spawn probability to one percent' (#540) from release/haunted-one-percent-20261123 into main

This commit is contained in:
unimatrix 2026-11-23 19:38:36 +00:00
commit a88a05fc17
2 changed files with 3 additions and 3 deletions

View file

@ -896,7 +896,7 @@ public final class DuneCore extends JavaPlugin implements Listener, CommandExecu
for (Player player : world.getPlayers()) {
if (count >= max) break;
boolean nearRichField = nearHighValueSpice(player);
double chance = getConfig().getDouble(nearRichField ? "spice-raiders.chance-near-rich-field" : "spice-raiders.chance-per-player-check", nearRichField ? 0.45 : 0.08);
double chance = getConfig().getDouble(nearRichField ? "spice-raiders.chance-near-rich-field" : "spice-raiders.chance-per-player-check", 0.01);
if (random.nextDouble() >= Math.max(0, Math.min(1, chance))) continue;
if (world.getNearbyEntities(player.getLocation(), 32, 24, 32).stream().anyMatch(this::isSpiceRaider)) continue;
Zombie raider = spawnSpiceRaiderNear(player, random);

View file

@ -19,8 +19,8 @@ sandworms:
spice-raiders:
enabled: true
max-per-world: 12
chance-per-player-check: 0.04
chance-near-rich-field: 0.225
chance-per-player-check: 0.01
chance-near-rich-field: 0.01
field-radius: 32
field-value-threshold: 5000
health: 36.0