A few adjustments to documentation and reworked how monsters are unlocked in survival mode. Added bonus for unlocking everything.

This commit is contained in:
Storm Dragon
2025-09-11 11:44:46 -04:00
parent cc0f0437f5
commit d83e7db248
3 changed files with 32 additions and 20 deletions

View File

@@ -649,8 +649,18 @@ class WickedQuest:
self.currentLevel.projectiles.clear()
pygame.mixer.stop() # Stop any ongoing catapult/enemy sounds
# Announce new wave before starting level
speak(f"Wave {self.survivalWave}!")
# Check for all monsters unlocked bonus and prepare wave message
waveMessage = f"Wave {self.survivalWave}!"
if self.survivalGenerator:
maxLevel = max(self.survivalGenerator.levelData.keys()) if self.survivalGenerator.levelData else 1
if self.survivalWave == maxLevel + 1: # First wave after all levels unlocked
# Double the current score
self.survivalScore *= 2
play_sound(self.get_sounds().get("survivor_bonus", self.get_sounds()["get_extra_life"]))
waveMessage += " All monsters unlocked bonus! Score doubled!"
# Announce new wave (with bonus message if applicable)
speak(waveMessage)
# Generate new segment
segmentLength = min(500, 300 + (self.survivalWave * 20)) # Longer segments over time