(self)
| 17 | class ScriptTask(GameUi, DelegationAssets): |
| 18 | |
| 19 | def run(self): |
| 20 | self.ui_get_current_page() |
| 21 | self.ui_goto(page_delegation) |
| 22 | self.check_reward() |
| 23 | con: DelegationConfig = self.config.delegation.delegation_config |
| 24 | if con.miyoshino_painting: |
| 25 | self.delegate_one('画') |
| 26 | if con.bird_feather: |
| 27 | self.delegate_one('鸟羽') |
| 28 | if con.find_earring: |
| 29 | self.delegate_one('寻找耳环') |
| 30 | if con.cat_boss: |
| 31 | self.delegate_one('猫老大') |
| 32 | if con.miyoshino: |
| 33 | self.delegate_one('接送') |
| 34 | if con.strange_trace: |
| 35 | self.delegate_one('痕迹') |
| 36 | |
| 37 | |
| 38 | self.set_next_run(task='Delegation', success=True, finish=True) |
| 39 | raise TaskEnd |
| 40 | |
| 41 | def delegate_one(self, name: str) -> bool: |
| 42 | """ |
no test coverage detected