From 105c476649e280653b9919a9a7e866455b5cb8c7 Mon Sep 17 00:00:00 2001 From: moesnow <11678347+moesnow@users.noreply.github.com> Date: Sun, 3 Sep 2023 09:44:35 +0800 Subject: [PATCH] fix: task not executed --- assets/config/task_mappings.json | 10 +++++----- tasks/daily/daily.py | 10 +++++----- tasks/power/power.py | 2 ++ 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/assets/config/task_mappings.json b/assets/config/task_mappings.json index 45261455..5f28e96e 100644 --- a/assets/config/task_mappings.json +++ b/assets/config/task_mappings.json @@ -2,8 +2,8 @@ "完成1个日常任务": "完成1个日常任务", "金": "完成1次「拟造花萼(金)」", "赤": "完成1次「拟造花萼(赤)」", - "凝滞虚影": "完成1次「凝滞虚影」", - "侵蚀隧洞": "完成1次「侵蚀隧洞」", + "凝滞虚": "完成1次「凝滞虚影」", + "侵蚀隧": "完成1次「侵蚀隧洞」", "属性": "单场战斗中,触发3种不同属性的弱点击破", "效果": "累计触发弱点击破效果5次", "敌人": "累计消灭20个敌人", @@ -11,9 +11,9 @@ "秘技": "累计施放2次秘技", "委托": "派遣1次委托", "拍照": "拍照1次", - "破坏物": "累计击碎3个可破坏物", - "忘却之庭": "完成1次「忘却之庭」", - "历战余响": "完成1次「历战余响」", + "可破坏": "累计击碎3个可破坏物", + "忘却之": "完成1次「忘却之庭」", + "历战余": "完成1次「历战余响」", "模拟宇宙": "通关「模拟宇宙」(任意世界)的1个区域", "支援角色": "使用支援角色并获得战斗胜利1次", "终结技": "施放终结技造成制胜一击1次", diff --git a/tasks/daily/daily.py b/tasks/daily/daily.py index 5f61830d..d8d468e4 100644 --- a/tasks/daily/daily.py +++ b/tasks/daily/daily.py @@ -30,15 +30,15 @@ def start(): config.save_timestamp("last_run_timestamp") task_functions = { - "拍照1次": lambda: Photo.photograph, - "合成1次消耗品": lambda: Synthesis.consumables, - "合成1次材料": lambda: Synthesis.material, - "使用1件消耗品": lambda: Synthesis.use_consumables, + "拍照1次": lambda: Photo.photograph(), + "合成1次消耗品": lambda: Synthesis.consumables(), + "合成1次材料": lambda: Synthesis.material(), + "使用1件消耗品": lambda: Synthesis.use_consumables(), "完成1次「拟造花萼(金)」": lambda: Power.instance("拟造花萼(金)", config.instance_names["拟造花萼(金)"], 10, 1), "完成1次「拟造花萼(赤)」": lambda: Power.instance("拟造花萼(赤)", config.instance_names["拟造花萼(赤)"], 10, 1), "完成1次「凝滞虚影」": lambda: Power.instance("凝滞虚影", config.instance_names["凝滞虚影"], 30, 1), "完成1次「侵蚀隧洞」": lambda: Power.instance("侵蚀隧洞", config.instance_names["侵蚀隧洞"], 40, 1), - "完成1次「忘却之庭」": lambda: ForgottenHall.start_daily, + "完成1次「忘却之庭」": lambda: ForgottenHall.start_daily(), } logger.hr(_("今日实训"), 2) for key, value in config.daily_tasks.items(): diff --git a/tasks/power/power.py b/tasks/power/power.py index 6fc17a6a..073014c2 100644 --- a/tasks/power/power.py +++ b/tasks/power/power.py @@ -174,6 +174,8 @@ def run_instances(instance_type, instance_name, power_need, number): @staticmethod def instance(instance_type, instance_name, power_need, number=None): + + logger.hr(_("准备{type}").format(type=instance_type), 2) power = Power.power() if number is None: number = power // power_need