1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-22 00:09:18 +08:00

Mod: Improvement of Empyreal Tagicomedy WarArchives

This commit is contained in:
julystone
2022-01-26 15:18:53 +08:00
parent 88fad11161
commit 175f78367d
15 changed files with 501 additions and 41 deletions

View File

@@ -53,20 +53,32 @@ class Config(ConfigBase):
MAP_HAS_MAP_STORY = False
MAP_HAS_FLEET_STEP = True
MAP_HAS_AMBUSH = False
MAP_HAS_MYSTERY = False
STAR_REQUIRE_3 = 0
# ===== End of generated config =====
STAR_REQUIRE_3 = 0
MAP_SWIPE_MULTIPLY = 1.626
MAP_SWIPE_MULTIPLY_MINITOUCH = 1.572
class Campaign(CampaignBase):
MAP = MAP
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
def get_map_clear_percentage(self):
"""
map clear here is shorter than normal, about 70% at max
Returns:
float: 0 to 1.
"""
return super().get_map_clear_percentage() * 1.4
def battle_0(self):
if not self.map_is_clear_mode:
for grid in self.map:
grid.may_siren = True
if self.clear_siren():
return True
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
return True
return self.battle_default()