Ammo economy: 25% less ammo per box, 25% fewer ammo drops

- AMMO_REFILL_SCALE 0.75 on ammoRefillFraction (smaller refills)
- AMMO_DROP_SCALE 0.75 on all three ammo spawn sites (room clear, elite,
  normal kill); help/gameplay drop-rate text updated; cache v=41
This commit is contained in:
MeatSlicer Developer committed 2026-07-30 17:18:11 +10:00
1 parent 0ec12cd72c
commit 4dad22d087
9 files changed
+36 -33

No files matched your search

+2 -2
View File
@@ -25,14 +25,14 @@ function ammoRefillFraction(w) {
const rateWeight = Math.log2(interval / 0.3);
// Heavy, slow attacks push the fraction down; light, rapid attacks push it up.
const heaviness = clamp((damageWeight + rateWeight) / 4, -1, 1);
return clamp(0.62 - heaviness * 0.28, 0.30, 0.88) * (w.ammoWeight || 1);
return clamp(0.62 - heaviness * 0.28, 0.30, 0.88) * (w.ammoWeight || 1) * AMMO_REFILL_SCALE;
}
// room-clear reward burst (weapons come from bosses / item rooms, not room clears)
function spawnRoomReward(x, y, floor) {
spawnGems(x, y, irand(3, 5 + floor));
const luck = G.player.stats.luck;
if (chance(0.24 + luck * 0.3)) spawnPickup('ammo', x + rand(-30, 30), y + rand(-30, 30));
if (chance((0.24 + luck * 0.3) * AMMO_DROP_SCALE)) spawnPickup('ammo', x + rand(-30, 30), y + rand(-30, 30));
if (chance(0.10 + luck * 0.3)) spawnPickup('heart', x + rand(-30, 30), y + rand(-30, 30));
}