diff options
| author | George Barrell <78610776+RogerGabeller-ml@users.noreply.github.com> | 2024-11-17 12:17:08 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-17 12:17:08 +0000 |
| commit | 84a8488b423af7907f7bb6fae8c76a70971e53b9 (patch) | |
| tree | e7ab2d8b2a01447a7ab78a6fc800bb832215a0a5 | |
| parent | ec2bf291c0375664064740248a3264bb4540b48a (diff) | |
Update alcogotchi.py
| -rw-r--r-- | alcogotchi-server/alcogotchi.py | 4 |
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() |
