Added override capabilities for lots of items, weapons, and hazards.

This commit is contained in:
Storm Dragon
2025-09-20 04:10:32 -04:00
parent 91eecae786
commit 5dd78a1687
12 changed files with 392 additions and 43 deletions

View File

@@ -73,13 +73,14 @@ class Catapult(Object):
self.launchDelay = 900 # Time between launch sound and pumpkin firing
self.pendingPumpkin = None # Store pending pumpkin data
self.pumpkinLaunchTime = 0 # When to launch the pending pumpkin
self.launchSound = "catapult_launch" # Configurable launch sound
def fire(self, currentTime, player):
"""Start the firing sequence"""
self.lastFireTime = currentTime
# Play launch sound using directional audio
play_directional_sound(self.sounds, "catapult_launch", player.xPos, self.xPos)
play_directional_sound(self.sounds, self.launchSound, player.xPos, self.xPos)
# Set up pending pumpkin
isHigh = random.choice([True, False])