allowed more rain!

This commit is contained in:
2024-03-23 19:03:49 +01:00
parent d44412c666
commit 5d07477de5
3 changed files with 8 additions and 4 deletions

View File

@@ -45,8 +45,11 @@ public class Level {
}
private void MakeItRain(float rainAmount) {
if (GD.Randf() < rainAmount) {
WritePixel<Water>((int)(GD.Randi() % SizeX), 0, 1);
int rainDrops = (int)Math.Round(rainAmount);
for (int i = 0; i <= rainDrops; i++) {
if (GD.Randf() < rainAmount)
WritePixel<Water>((int)(GD.Randi() % SizeX), 0, 1);
}
}