Updated submodule.
This commit is contained in:
Submodule libstormgames updated: 0bbf35a4c5...8c57afe65b
@@ -236,7 +236,12 @@ class WickedQuest:
|
|||||||
if keys[pygame.K_l]:
|
if keys[pygame.K_l]:
|
||||||
speak(f"{player.get_lives()} lives")
|
speak(f"{player.get_lives()} lives")
|
||||||
if keys[pygame.K_j]: # Check jack o'lanterns
|
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]:
|
if keys[pygame.K_f] or keys[pygame.K_z] or keys[pygame.K_SLASH]:
|
||||||
currentTime = pygame.time.get_ticks()
|
currentTime = pygame.time.get_ticks()
|
||||||
if currentTime - self.lastThrowTime >= self.throwDelay:
|
if currentTime - self.lastThrowTime >= self.throwDelay:
|
||||||
@@ -380,6 +385,8 @@ class WickedQuest:
|
|||||||
altPressed = mods & pygame.KMOD_ALT
|
altPressed = mods & pygame.KMOD_ALT
|
||||||
|
|
||||||
if event.key == pygame.K_ESCAPE:
|
if event.key == pygame.K_ESCAPE:
|
||||||
|
# Stop all sounds before exiting (consistent with survival mode)
|
||||||
|
pygame.mixer.stop()
|
||||||
try:
|
try:
|
||||||
pygame.mixer.music.stop()
|
pygame.mixer.music.stop()
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user