mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 10:58:21 +08:00
Dev: map extractor
This commit is contained in:
@@ -119,6 +119,10 @@ class MapData:
|
||||
for y in range(self.shape[1] + 1):
|
||||
lines.append(' ' + ' '.join(['10'] * (self.shape[0] + 1)))
|
||||
lines.append('\"\"\"')
|
||||
lines.append('MAP.spawn_data = [')
|
||||
for battle in self.spawn_data:
|
||||
lines.append(' ' + str(battle) + ',')
|
||||
lines.append(']')
|
||||
for y in range(self.shape[1] + 1):
|
||||
lines.append(', '.join([location2node((x, y)) for x in range(self.shape[0] + 1)]) + ', \\')
|
||||
lines.append(' = MAP.flatten()')
|
||||
|
||||
Reference in New Issue
Block a user