A few bug fixes, new item, canoe, added.

This commit is contained in:
Storm Dragon
2026-01-24 00:57:00 -05:00
parent 78e8d434a3
commit dfd6a0f3a1
13 changed files with 339 additions and 51 deletions

View File

@@ -183,7 +183,14 @@ void update_undeads() {
return;
}
while (undeads.length() < ZOMBIE_MAX_COUNT) {
int extra = 0;
if (MAP_SIZE > 35) {
extra = (MAP_SIZE - 35) / 15;
}
int maxCount = ZOMBIE_MAX_COUNT + extra;
if (maxCount > ZOMBIE_MAX_COUNT_CAP) maxCount = ZOMBIE_MAX_COUNT_CAP;
while (undeads.length() < maxCount) {
spawn_undead();
}