mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-14 06:11:10 +08:00
Dev: map extractor set default weight to 50, use fleet 1 if boss_refresh <= 5
This commit is contained in:
@@ -160,7 +160,7 @@ class MapData:
|
|||||||
lines.append('\"\"\"')
|
lines.append('\"\"\"')
|
||||||
lines.append('MAP.weight_data = \"\"\"')
|
lines.append('MAP.weight_data = \"\"\"')
|
||||||
for y in range(self.shape[1] + 1):
|
for y in range(self.shape[1] + 1):
|
||||||
lines.append(' ' + ' '.join(['10'] * (self.shape[0] + 1)))
|
lines.append(' ' + ' '.join(['50'] * (self.shape[0] + 1)))
|
||||||
lines.append('\"\"\"')
|
lines.append('\"\"\"')
|
||||||
lines.append('MAP.spawn_data = [')
|
lines.append('MAP.spawn_data = [')
|
||||||
for battle in self.spawn_data:
|
for battle in self.spawn_data:
|
||||||
@@ -203,7 +203,10 @@ class MapData:
|
|||||||
lines.append(' return self.battle_default()')
|
lines.append(' return self.battle_default()')
|
||||||
lines.append('')
|
lines.append('')
|
||||||
lines.append(f' def battle_{self.data["boss_refresh"]}(self):')
|
lines.append(f' def battle_{self.data["boss_refresh"]}(self):')
|
||||||
lines.append(' return self.fleet_boss.clear_boss()')
|
if self.data["boss_refresh"] >= 5:
|
||||||
|
lines.append(' return self.fleet_boss.clear_boss()')
|
||||||
|
else:
|
||||||
|
lines.append(' return self.clear_boss()')
|
||||||
|
|
||||||
return lines
|
return lines
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user