X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Factions.py;h=9f3b221b3af18cf033093465d0306a9ec1ddab93;hb=b8b0dcd343aab16ff2e75a16cf23c6c51cf36153;hp=d73a66aae4ba0dfede3cbd60e1961531f9299146;hpb=6c176929bd2a3c4877eee6d0e3e9e92189004a9b;p=naja.git diff --git a/naja/actions.py b/naja/actions.py index d73a66a..9f3b221 100644 --- a/naja/actions.py +++ b/naja/actions.py @@ -82,6 +82,7 @@ class LoseHealthOrMSB(LocationAction): def perform_action(self, board, location): if not self.check_and_clear_MSB(board.player): + sound.play_sound('awwww.ogg') board.lose_health() @@ -120,6 +121,7 @@ class LoseHealthOrMSBAndSetBits(LocationAction): def perform_action(self, board, location): if not self.check_and_clear_MSB(board.player): + sound.play_sound('awwww.ogg') board.lose_health() board.player.bits.set_bits(location.bitwise_operand) @@ -129,6 +131,7 @@ class AcquireWinToken(LocationAction): GLYPHS = (ACTION_GLYPHS.WINTOKEN,) def perform_action(self, board, location): + sound.play_sound('yipee.ogg') board.acquire_win_token() board.player.bits.clear_bits(set([ BITS.RED, BITS.GREEN, BITS.BLUE, @@ -140,6 +143,7 @@ class GainHealth(LocationAction): GLYPHS = (ACTION_GLYPHS.HEAL,) def perform_action(self, board, location): + sound.play_sound('aha.ogg') board.gain_health() @@ -149,6 +153,7 @@ class GainHealthAndClearBitsOrMSB(LocationAction): MSB_GLYPH = ACTION_GLYPHS.CLEAR_BITS def perform_action(self, board, location): + sound.play_sound('aha.ogg') board.gain_health() if not self.check_and_clear_MSB(board.player): board.player.bits.clear_bits(location.bitwise_operand)