1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 19:55:12 +00:00

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

This commit is contained in:
YoursFunny 2024-11-12 18:03:30 +08:00
parent 191c3b31dc
commit f0da132f4e
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C

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: