1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 13:29:25 +08:00

add: migrate dashboard update logic

This commit is contained in:
0O0o0oOoO00
2025-09-14 19:25:40 +08:00
parent 2acd12679b
commit f5cfb2c215
10 changed files with 159 additions and 1 deletions

View File

@@ -349,3 +349,16 @@ class RewardGacha(GachaUI, Retirement):
"""
self.gacha_run()
self.config.task_delay(server_update=True)
class RewardGacha(RewardGacha):
def gacha_calculate(self, *args, **kwargs):
result = super().gacha_calculate(*args, **kwargs)
self.config.log_res.Cube = self.build_cube_count
self.config.update()
return result
def gacha_goto_pool(self, target_pool):
self.config.log_res.Cube = self.build_cube_count
self.config.update()
return super().gacha_goto_pool(target_pool)