mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 19:29:25 +08:00
Fix: 修复一些稀有bug
This commit is contained in:
@@ -5,14 +5,11 @@ from module.handler.assets import *
|
||||
|
||||
class InfoBarHandler(ModuleBase):
|
||||
def info_bar_count(self):
|
||||
if self.appear(INFO_BAR_1):
|
||||
# if self.appear(INFO_BAR_2):
|
||||
# if self.appear(INFO_BAR_3):
|
||||
# return 3
|
||||
# else:
|
||||
# return 2
|
||||
# else:
|
||||
# return 1
|
||||
if self.appear(INFO_BAR_3):
|
||||
return 3
|
||||
elif self.appear(INFO_BAR_2):
|
||||
return 2
|
||||
elif self.appear(INFO_BAR_1):
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user