mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: expectation_data_template.lua changed, only able to extract siren_id now
This commit is contained in:
parent
765d3e87da
commit
a0b0aeacff
@ -212,12 +212,12 @@ class MapData:
|
|||||||
for siren_id in data['ai_expedition_list'].values():
|
for siren_id in data['ai_expedition_list'].values():
|
||||||
if siren_id == 1:
|
if siren_id == 1:
|
||||||
continue
|
continue
|
||||||
exped_data = EXPECTATION_DATA[siren_id]
|
exped_data = EXPECTATION_DATA.get(siren_id, {})
|
||||||
name = exped_data['icon']
|
name = exped_data.get('icon', str(siren_id))
|
||||||
name = DIC_SIREN_NAME_CHI_TO_ENG.get(name, name)
|
name = DIC_SIREN_NAME_CHI_TO_ENG.get(name, name)
|
||||||
if name not in self.MAP_SIREN_TEMPLATE:
|
if name not in self.MAP_SIREN_TEMPLATE:
|
||||||
self.MAP_SIREN_TEMPLATE.append(name)
|
self.MAP_SIREN_TEMPLATE.append(name)
|
||||||
self.MOVABLE_ENEMY_TURN.add(int(exped_data['ai_mov']))
|
self.MOVABLE_ENEMY_TURN.add(int(exped_data.get('ai_mov', 2)))
|
||||||
self.MAP_HAS_MOVABLE_ENEMY = bool(len(self.MOVABLE_ENEMY_TURN))
|
self.MAP_HAS_MOVABLE_ENEMY = bool(len(self.MOVABLE_ENEMY_TURN))
|
||||||
self.MAP_HAS_MAP_STORY = len(data['story_refresh_boss']) > 0
|
self.MAP_HAS_MAP_STORY = len(data['story_refresh_boss']) > 0
|
||||||
self.MAP_HAS_FLEET_STEP = bool(data['is_limit_move'])
|
self.MAP_HAS_FLEET_STEP = bool(data['is_limit_move'])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user