mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-17 18:20:11 +08:00
Add: Pledge of the Radiant Court chapter BD
This commit is contained in:
@@ -6,13 +6,19 @@ from module.template.assets import TEMPLATE_ENEMY_BOSS
|
||||
|
||||
class EventGrid(Grid):
|
||||
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))
|
||||
if TEMPLATE_ENEMY_BOSS.match(image, similarity=0.75):
|
||||
return 'Siren_Siren'
|
||||
if not self.may_boss:
|
||||
image = self.relative_crop((-0.55, -0.2, 0.45, 0.2), shape=(50, 20))
|
||||
image = color_similarity_2d(image, color=(255, 150, 24))
|
||||
if TEMPLATE_ENEMY_BOSS.match(image, similarity=0.6):
|
||||
return 'Siren_Siren'
|
||||
|
||||
return super().predict_enemy_genre()
|
||||
|
||||
def predict_boss(self):
|
||||
if self.enemy_genre == 'Siren_Siren':
|
||||
return False
|
||||
return super().predict_boss()
|
||||
|
||||
|
||||
class CampaignBase(CampaignBase_):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user