mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: map_extractor in war achieve
This commit is contained in:
parent
41e33a5513
commit
43f2a0b954
@ -213,13 +213,17 @@ class ChapterTemplate:
|
|||||||
print('')
|
print('')
|
||||||
|
|
||||||
print('<<< SELECT MAP >>>')
|
print('<<< SELECT MAP >>>')
|
||||||
|
|
||||||
|
def get_event_id(map_id):
|
||||||
|
return (map_id - 2100000) // 20 + 21000 if map_id // 10000 == 210 else map_id // 10000
|
||||||
|
|
||||||
if select:
|
if select:
|
||||||
event_id = maps[0].map_id // 10000
|
event_id = get_event_id(maps[0].map_id)
|
||||||
new = []
|
new = []
|
||||||
for map_id, data in self.data.items():
|
for map_id, data in self.data.items():
|
||||||
if not isinstance(map_id, int) or data['chapter_name'] == 'EXTRA':
|
if not isinstance(map_id, int) or data['chapter_name'] == 'EXTRA':
|
||||||
continue
|
continue
|
||||||
if data['id'] // 10000 == event_id:
|
if get_event_id(data['id']) == event_id:
|
||||||
data = MapData(data)
|
data = MapData(data)
|
||||||
print(f'Selected: {data}')
|
print(f'Selected: {data}')
|
||||||
new.append(data)
|
new.append(data)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user