1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-09 17:54:52 +00:00

fix(cafe): enable Cafe No.2 for OVERSEA server

This commit is contained in:
2024-11-12 18:03:30 +08:00
parent 72a948da68
commit 6215f061c8
+2 -9
View File
@@ -1,6 +1,5 @@
from enum import Enum
from module.base.decorator import Config
from module.base.timer import Timer
from module.logger import logger
from module.ui.switch import Switch
@@ -30,16 +29,10 @@ class CafeStatus(Enum):
class Cafe(CafeUI):
@Config.when(Emulator_GameLanguage='jp')
def _is_second_cafe_on(self):
@property
def is_second_cafe_on(self):
return self.config.Cafe_SecondCafe
@Config.when(Emulator_GameLanguage=None)
def _is_second_cafe_on(self):
return False
is_second_cafe_on = property(_is_second_cafe_on)
def _handle_cafe(self, status):
match status:
case CafeStatus.STUDENT_LIST: