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:
@@ -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[:]:
|
||||
|
||||
Reference in New Issue
Block a user