1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-26 19:47:53 +08:00

Dev: Fix map extractor in war archives when extracting land_based

This commit is contained in:
LmeSzinc
2020-12-15 15:40:35 +08:00
parent 16ea207cde
commit f99eb48c7b

View File

@@ -151,9 +151,10 @@ class MapData:
# Format: {y, x, rotation} # Format: {y, x, rotation}
land_based_rotation_dict = {1: 'up', 2: 'down', 3: 'left', 4: 'right'} land_based_rotation_dict = {1: 'up', 2: 'down', 3: 'left', 4: 'right'}
self.land_based = [] self.land_based = []
for lb in data['land_based'].values(): if isinstance(data['land_based'], dict):
y, x, r = lb.values() for lb in data['land_based'].values():
self.land_based.append([location2node((x, y)), land_based_rotation_dict[r]]) y, x, r = lb.values()
self.land_based.append([location2node((x, y)), land_based_rotation_dict[r]])
# config # config
self.MAP_SIREN_TEMPLATE = [] self.MAP_SIREN_TEMPLATE = []