Updated submodule.
This commit is contained in:
@@ -236,7 +236,12 @@ class WickedQuest:
|
||||
if keys[pygame.K_l]:
|
||||
speak(f"{player.get_lives()} lives")
|
||||
if keys[pygame.K_j]: # Check jack o'lanterns
|
||||
speak(f"{player.get_jack_o_lanterns()} jack o'lanterns")
|
||||
jackOLanternCount = player.get_jack_o_lanterns()
|
||||
if jackOLanternCount == 13:
|
||||
# Murderland rocks!
|
||||
speak(f"{jackOLanternCount} jack o'lanterns, this power courses through my soul.")
|
||||
else:
|
||||
speak(f"{jackOLanternCount} jack o'lanterns")
|
||||
if keys[pygame.K_f] or keys[pygame.K_z] or keys[pygame.K_SLASH]:
|
||||
currentTime = pygame.time.get_ticks()
|
||||
if currentTime - self.lastThrowTime >= self.throwDelay:
|
||||
@@ -380,6 +385,8 @@ class WickedQuest:
|
||||
altPressed = mods & pygame.KMOD_ALT
|
||||
|
||||
if event.key == pygame.K_ESCAPE:
|
||||
# Stop all sounds before exiting (consistent with survival mode)
|
||||
pygame.mixer.stop()
|
||||
try:
|
||||
pygame.mixer.music.stop()
|
||||
except:
|
||||
|
Reference in New Issue
Block a user