diff options
| author | George Barrell <78610776+RogerGabeller-ml@users.noreply.github.com> | 2024-11-17 12:20:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-17 12:20:40 +0000 |
| commit | 51ee6fa28f10ce63bf8bf2f42b0f03bca894466d (patch) | |
| tree | aa862d292a8608911e12db3e97ada28b162b6d4a /alcogotchi-server | |
| parent | 84a8488b423af7907f7bb6fae8c76a70971e53b9 (diff) | |
Diffstat (limited to 'alcogotchi-server')
| -rw-r--r-- | alcogotchi-server/alcogotchi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alcogotchi-server/alcogotchi.py b/alcogotchi-server/alcogotchi.py index f40e797..426f6f8 100644 --- a/alcogotchi-server/alcogotchi.py +++ b/alcogotchi-server/alcogotchi.py @@ -175,7 +175,7 @@ class Alcogotchi: def drink(self, data): global terminated drink_choice = data["drink"] - if self.last_drunkentime + 0 < time.time() and self.items[drink_choice] > 0: + if self.last_drunkentime + 3 < time.time() and self.items[drink_choice] > 0: self.drunk += BEVERAGES[drink_choice] self.happiness += BEVERAGES[drink_choice] self.last_drunkentime = time.time() |
