From e27ffb3dc14879a4adc1daa4fab1e176e4b882cc Mon Sep 17 00:00:00 2001
From: Tobias Markus <tobbi.bugs@googlemail.com>
Date: Sun, 20 Mar 2016 17:57:48 +0100
Subject: [PATCH] Boxes are now Schroedinger's boxes

---
 data/sounds/meow1.wav | Bin 0 -> 151640 bytes
 data/sounds/meow2.wav | Bin 0 -> 149780 bytes
 src/object/block.cpp  |   4 ++++
 src/object/brick.cpp  |   7 +++++++
 4 files changed, 11 insertions(+)
 create mode 100644 data/sounds/meow1.wav
 create mode 100644 data/sounds/meow2.wav

diff --git a/data/sounds/meow1.wav b/data/sounds/meow1.wav
new file mode 100644
index 0000000000000000000000000000000000000000..9064e64a7bf072dd3dcfb820aad808c9a1639737
GIT binary patch
diff --git a/data/sounds/meow2.wav b/data/sounds/meow2.wav
new file mode 100644
index 0000000000000000000000000000000000000000..60d4f71d2a5a274730f09a73f868525855959b12
GIT binary patch
diff --git a/src/object/block.cpp b/src/object/block.cpp
index 4fc5924..e20d6d9 100644
--- a/src/object/block.cpp
+++ b/src/object/block.cpp
@@ -46,6 +46,8 @@ Block::Block(SpritePtr newsprite) :
   set_group(COLGROUP_STATIC);
   SoundManager::current()->preload("sounds/upgrade.wav");
   SoundManager::current()->preload("sounds/brick.wav");
+  SoundManager::current()->preload("sounds/meow1.wav");
+  SoundManager::current()->preload("sounds/meow2.wav");
 }
 
 Block::Block(const ReaderMapping& lisp, std::string sprite_file) :
@@ -67,6 +69,8 @@ Block::Block(const ReaderMapping& lisp, std::string sprite_file) :
   set_group(COLGROUP_STATIC);
   SoundManager::current()->preload("sounds/upgrade.wav");
   SoundManager::current()->preload("sounds/brick.wav");
+  SoundManager::current()->preload("sounds/meow1.wav");
+  SoundManager::current()->preload("sounds/meow2.wav");
 }
 
 Block::~Block()
diff --git a/src/object/brick.cpp b/src/object/brick.cpp
index ceb79ef..8b0d866 100644
--- a/src/object/brick.cpp
+++ b/src/object/brick.cpp
@@ -18,6 +18,7 @@
 
 #include "audio/sound_manager.hpp"
 #include "badguy/badguy.hpp"
+#include "math/random_generator.hpp"
 #include "object/bouncy_coin.hpp"
 #include "object/explosion.hpp"
 #include "object/flower.hpp"
@@ -102,6 +103,12 @@ Brick::try_break(Player* player)
     return;
 
   SoundManager::current()->play("sounds/brick.wav");
+  if(graphicsRandom.rand(0, 10) > 8) {
+    if(graphicsRandom.rand(0, 2) == 1)
+        SoundManager::current()->play("sounds/meow1.wav");
+    else
+        SoundManager::current()->play("sounds/meow2.wav");
+  }
   Sector* sector = Sector::current();
   Player& player_one = *(sector->player);
   if(coin_counter > 0 ){
