Extended override system to include spider webs. They can now be altered to be on the ground and require jumping, the name and the sponned monster can be changed as well. Fixed various bugs.

This commit is contained in:
Storm Dragon
2025-09-21 19:25:09 -04:00
parent bd7df4804d
commit 948d0c32f7
4 changed files with 202 additions and 18 deletions

View File

@@ -24,6 +24,9 @@ class SkullStorm(Object):
self.nextSkullDelay = random.randint(self.minFreq, self.maxFreq)
self.playerInRange = False
# Default TTS message (can be overridden)
self.endMessage = "Skull storm ended."
def update(self, currentTime, player):
"""Update all active skulls and potentially spawn new ones."""
if not self.isActive:
@@ -39,7 +42,7 @@ class SkullStorm(Object):
# Player just left range
self.playerInRange = False
play_sound(self.sounds["skull_storm_ends"])
speak("Skull storm ended.")
speak(self.endMessage)
# Clear any active skulls when player leaves the range
for skull in self.activeSkulls[:]: