mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-30 17:53:29 +08:00
Fix: Optimize map configs
This commit is contained in:
@@ -65,6 +65,9 @@ class Config(ConfigBase):
|
|||||||
STAR_REQUIRE_3 = 0
|
STAR_REQUIRE_3 = 0
|
||||||
# ===== End of generated config =====
|
# ===== End of generated config =====
|
||||||
|
|
||||||
|
MAP_IS_ONE_TIME_STAGE = True
|
||||||
|
|
||||||
|
|
||||||
# hard to find a dynamic solution
|
# hard to find a dynamic solution
|
||||||
# therefore overwrite all MAP girds with ME
|
# therefore overwrite all MAP girds with ME
|
||||||
# and use a serial of static actions
|
# and use a serial of static actions
|
||||||
@@ -89,6 +92,7 @@ actions = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def parse_move(movement: str, step: int):
|
def parse_move(movement: str, step: int):
|
||||||
if step % len(movement) != 0:
|
if step % len(movement) != 0:
|
||||||
raise ScriptError('Invalid movement')
|
raise ScriptError('Invalid movement')
|
||||||
@@ -126,7 +130,8 @@ class Campaign(CampaignBase):
|
|||||||
|
|
||||||
fleet_location = self.__getattribute__(f'fleet_{fleet_index}_location')
|
fleet_location = self.__getattribute__(f'fleet_{fleet_index}_location')
|
||||||
if fleet_location not in [src, dst]:
|
if fleet_location not in [src, dst]:
|
||||||
raise RequestHumanTakeover(f'Fleet{fleet_index} fail to move {src} -> {dst}, now on {fleet_location}')
|
raise RequestHumanTakeover(
|
||||||
|
f'Fleet{fleet_index} fail to move {src} -> {dst}, now on {fleet_location}')
|
||||||
elif fleet_location == dst:
|
elif fleet_location == dst:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user