mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Opt: Align when showing map
This commit is contained in:
parent
82c70c4871
commit
0a1b3ae1c7
@ -228,7 +228,7 @@ class CampaignMap:
|
||||
|
||||
def show(self):
|
||||
# logger.info('Showing grids:')
|
||||
logger.info(' ' + ' '.join([' ' + chr(x + 64 + 1) for x in range(self.shape[0] + 1)]))
|
||||
logger.info(' ' + ' '.join([' ' + chr(x + 64 + 1) for x in range(self.shape[0] + 1)]))
|
||||
for y in range(self.shape[1] + 1):
|
||||
text = str(y + 1).rjust(2) + ' ' + ' '.join(
|
||||
[self[(x, y)].str if (x, y) in self else ' ' for x in range(self.shape[0] + 1)])
|
||||
@ -388,14 +388,14 @@ class CampaignMap:
|
||||
return True
|
||||
|
||||
def show_cost(self):
|
||||
logger.info(' ' + ' '.join([' ' + chr(x + 64 + 1) for x in range(self.shape[0] + 1)]))
|
||||
logger.info(' ' + ' '.join([' ' + chr(x + 64 + 1) for x in range(self.shape[0] + 1)]))
|
||||
for y in range(self.shape[1] + 1):
|
||||
text = str(y + 1).rjust(2) + ' ' + ' '.join(
|
||||
[str(self[(x, y)].cost).rjust(4) if (x, y) in self else ' ' for x in range(self.shape[0] + 1)])
|
||||
logger.info(text)
|
||||
|
||||
def show_connection(self):
|
||||
logger.info(' ' + ' '.join([' ' + chr(x + 64 + 1) for x in range(self.shape[0] + 1)]))
|
||||
logger.info(' ' + ' '.join([' ' + chr(x + 64 + 1) for x in range(self.shape[0] + 1)]))
|
||||
for y in range(self.shape[1] + 1):
|
||||
text = str(y + 1).rjust(2) + ' ' + ' '.join(
|
||||
[location2node(self[(x, y)].connection) if (x, y) in self and self[(x, y)].connection else ' ' for x in
|
||||
|
||||
Loading…
Reference in New Issue
Block a user