1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-31 08:50:48 +08:00

Add: Parameters in Pledge of the Radiant Court chapter AC

This commit is contained in:
LmeSzinc
2022-05-26 20:11:07 +08:00
parent 4f1ea74817
commit a8e92abd61
7 changed files with 122 additions and 15 deletions

View File

@@ -5,16 +5,6 @@ from module.template.assets import TEMPLATE_ENEMY_BOSS
class EventGrid(Grid):
def predict_boss(self):
# Small boss icon
if self.relative_hsv_count(area=(0.03, -0.15, 0.63, 0.15), h=(358 - 3, 358 + 3), shape=(50, 20)) > 100:
image = self.relative_crop((0.03, -0.15, 0.63, 0.15), shape=(50, 20))
image = color_similarity_2d(image, color=(255, 77, 82))
if TEMPLATE_ENEMY_BOSS.match(image, similarity=0.7):
return True
return False
def predict_enemy_genre(self):
image = self.relative_crop((-0.55, -0.2, 0.45, 0.2), shape=(50, 20))
image = color_similarity_2d(image, color=(255, 150, 24))
@@ -25,4 +15,4 @@ class EventGrid(Grid):
class CampaignBase(CampaignBase_):
grid_class = EventGrid
pass