From 947f31a351ae3ce05b8fcbea8929771b4d88ff36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Mon, 25 Apr 2022 08:09:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=A4=A7=E9=98=B3=E5=85=89=E6=95=B0?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/menubar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/component/menubar.py b/source/component/menubar.py index 808cff4..4cb2e32 100755 --- a/source/component/menubar.py +++ b/source/component/menubar.py @@ -271,6 +271,8 @@ class MenuBar(): def increaseSunValue(self, value): self.sun_value += value + if self.sun_value > 9990: + self.sun_value = 9990 def setCardFrozenTime(self, plant_name): for card in self.card_list: