Added override capabilities for lots of items, weapons, and hazards.
This commit is contained in:
		| @@ -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]) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user