From 84a8488b423af7907f7bb6fae8c76a70971e53b9 Mon Sep 17 00:00:00 2001 From: George Barrell <78610776+RogerGabeller-ml@users.noreply.github.com> Date: Sun, 17 Nov 2024 12:17:08 +0000 Subject: Update alcogotchi.py --- alcogotchi-server/alcogotchi.py | 4 ++++ 1 file changed, 4 insertions(+) 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() -- cgit v1.2.3-70-g09d2