mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-09 07:02:52 +08:00
Dev: Fix map extractor in war archives when extracting land_based
This commit is contained in:
@@ -151,6 +151,7 @@ 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 = []
|
||||||
|
if isinstance(data['land_based'], dict):
|
||||||
for lb in data['land_based'].values():
|
for lb in data['land_based'].values():
|
||||||
y, x, r = lb.values()
|
y, x, r = lb.values()
|
||||||
self.land_based.append([location2node((x, y)), land_based_rotation_dict[r]])
|
self.land_based.append([location2node((x, y)), land_based_rotation_dict[r]])
|
||||||
|
|||||||
Reference in New Issue
Block a user