hot damn that bloodworm change spawned like a mil

This commit is contained in:
Altixal committed 2023-06-14 23:33:04 +07:00
1 parent d76c4587eb
commit b7c4ca340e
1 file changed
+1 -1
+1 -1
View File
@@ -118,7 +118,7 @@ namespace CalamityMod.NPCs.AcidRain
// Increase bloodworm spawn rate relative to the number of existing bloodworms, parabolic multiplier ranging from 5x spawn rate with 0 blood worms to 1x with 5 or more
int bloodwormAmt = NPC.CountNPCS(NPC.type);
float spawnMult = bloodwormAmt > 5 ? 1f : (float)(0.16 * Math.Pow(5 - bloodwormAmt, 2)) + 1f;
float baseSpawnRate = DownedBossSystem.downedBoomerDuke ? 0.5f : AcidRainEvent.OldDukeHasBeenEncountered ? 2f : 1f;
float baseSpawnRate = DownedBossSystem.downedBoomerDuke ? 0.1f : AcidRainEvent.OldDukeHasBeenEncountered ? 0.4f : 0.2f;
float spawnRate = baseSpawnRate * spawnMult;
return spawnRate;