1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Del: Delete spare fleet

- Fix: [JP] guild boss setting in GUI
This commit is contained in:
LmeSzinc
2021-01-22 17:02:35 +08:00
parent 7f6cb62ac2
commit c2f23ab5fd
12 changed files with 16 additions and 135 deletions

View File

@@ -29,7 +29,7 @@ class Emotion:
# self.update()
def record(self):
for index in [1, 2, 3]:
for index in [1, 2]:
logger.attr(f'Emotion fleet_{index}', self.emotion[config_name][f'fleet_{index}_emotion'])
# self.emotion.write(codecs.open(self.config.CONFIG_FILE, "w+", "utf8"))
self.config.save()
@@ -44,7 +44,7 @@ class Emotion:
return 150 if self.recover_value(index) > 3 else 119
def update(self):
for index in [1, 2, 3]:
for index in [1, 2]:
savetime = datetime.strptime(self.emotion[config_name][f'fleet_{index}_savetime'], self.config.TIME_FORMAT)
savetime = int(savetime.timestamp())
recover_count = int(datetime.now().timestamp() // 360 - savetime // 360)