playsound whenever user interaction is required

This commit is contained in:
Semjon Kerner 2021-04-15 17:03:08 +02:00
parent ac83c9c427
commit b2d43df57e

View File

@ -137,6 +137,9 @@ def on_nobait():
logging.info(msg)
web.send_notification(msg)
if FishEvent.sound:
playsound(helper.manifest_file("sound.mp3"), False)
def on_fishing():
FishEvent.stickInitTime = time.time()
@ -177,14 +180,23 @@ def on_invfull():
logging.info(msg)
web.send_notification(msg)
if FishEvent.sound:
playsound(helper.manifest_file("sound.mp3"), False)
def on_fight():
msg = "FIGHTING!"
logging.info(msg)
web.send_notification(msg)
if FishEvent.sound:
playsound(helper.manifest_file("sound.mp3"), False)
def on_dead():
msg = "Character is dead!"
logging.info(msg)
web.send_notification(msg)
if FishEvent.sound:
playsound(helper.manifest_file("sound.mp3"), False)