summaryrefslogtreecommitdiffstats
path: root/alcogotchi-server
diff options
context:
space:
mode:
Diffstat (limited to 'alcogotchi-server')
-rw-r--r--alcogotchi-server/alcogotchi.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/alcogotchi-server/alcogotchi.py b/alcogotchi-server/alcogotchi.py
index 3aab53e..f40e797 100644
--- a/alcogotchi-server/alcogotchi.py
+++ b/alcogotchi-server/alcogotchi.py
@@ -125,6 +125,9 @@ def s():
#screen.rect(10,100,150,10,(0, 0, 0),1)
screen.rect(10,110,int(happiness*1.2),10,(255-int(2.55*happiness), int(2.55*happiness), 0),1)
+
+def minetime():
+ buzzer.melody(BA_DING)
class Alcogotchi:
def __init__(self, name):
@@ -202,6 +205,7 @@ class Alcogotchi:
def mine(self):
if self.happiness > 0:
+ minetime()
self.happiness -= 1
self.alco_coin += 2
s()