fix: newborn rats are now stunned for 1 second to avoid overlapping with parents

This commit is contained in:
2026-06-18 12:19:24 +02:00
parent 5f3d7faf49
commit c7f3c996e8
+2 -1
View File
@@ -98,7 +98,8 @@ void spawn_rat(uint8_t x, uint8_t y, uint8_t initial_dir) {
rats[i].pixel_x = x * 8; rats[i].pixel_x = x * 8;
rats[i].pixel_y = y * 8; rats[i].pixel_y = y * 8;
rats[i].reproduce_timer = 0; // Il nuovo ratto resta fermo 1 secondo (60 frame) alla nascita usando lo stesso timer
rats[i].reproduce_timer = 60;
rats[i].cooldown_timer = 120; // Il cucciolo non si riproduce subito rats[i].cooldown_timer = 120; // Il cucciolo non si riproduce subito
rats[i].is_mother = 0; rats[i].is_mother = 0;
play_sfx_plop(); // Suono di nascita! play_sfx_plop(); // Suono di nascita!