mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 09:48:20 +08:00
Fix: HP grid check normal vs os, straight forward, no @Config
This commit is contained in:
@@ -65,20 +65,14 @@ class HPBalancer(ModuleBase):
|
||||
)
|
||||
return data
|
||||
|
||||
@Config.when(SERVER='en')
|
||||
def _hp_grid(self):
|
||||
# Location of six HP bar.
|
||||
return ButtonGrid(origin=(35, 190), delta=(0, 100), button_shape=(66, 4), grid_shape=(1, 6))
|
||||
|
||||
@Config.when(SERVER='jp')
|
||||
def _hp_grid(self):
|
||||
# Location of six HP bar.
|
||||
return ButtonGrid(origin=(35, 205), delta=(0, 100), button_shape=(66, 4), grid_shape=(1, 6))
|
||||
|
||||
@Config.when(SERVER=None)
|
||||
def _hp_grid(self):
|
||||
# Location of six HP bar.
|
||||
return ButtonGrid(origin=(35, 206), delta=(0, 100), button_shape=(66, 4), grid_shape=(1, 6))
|
||||
# Location of six HP bar, according to respective server for campaign
|
||||
if self.config.SERVER == 'en':
|
||||
return ButtonGrid(origin=(35, 190), delta=(0, 100), button_shape=(66, 4), grid_shape=(1, 6))
|
||||
elif self.config.SERVER == 'jp':
|
||||
return ButtonGrid(origin=(35, 205), delta=(0, 100), button_shape=(66, 4), grid_shape=(1, 6))
|
||||
else:
|
||||
return ButtonGrid(origin=(35, 206), delta=(0, 100), button_shape=(66, 4), grid_shape=(1, 6))
|
||||
|
||||
def hp_get(self):
|
||||
"""Get current HP from screenshot.
|
||||
|
||||
@@ -114,10 +114,18 @@ class OSFleet(OSCamera, Combat, Fleet, OSAsh):
|
||||
else:
|
||||
return ''
|
||||
|
||||
@Config.when(SERVER='en')
|
||||
def _hp_grid(self):
|
||||
# Location of six HP bar.
|
||||
return ButtonGrid(origin=(35, 205), delta=(0, 100), button_shape=(66, 3), grid_shape=(1, 6))
|
||||
hp_grid = super()._hp_grid()
|
||||
|
||||
# Location of six HP bar, according to respective server for os
|
||||
if self.config.SERVER == 'en':
|
||||
hp_grid = ButtonGrid(origin=(35, 205), delta=(0, 100), button_shape=(66, 3), grid_shape=(1, 6))
|
||||
elif self.config.SERVER == 'jp':
|
||||
pass
|
||||
else:
|
||||
pass
|
||||
|
||||
return hp_grid
|
||||
|
||||
def hp_withdraw_triggered(self):
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user