WantedQuestsEx.py 717 B

123456789101112131415161718192021222324252627282930
  1. import importlib
  2. from tasks.WantedQuests.config import WantedQuests, CooperationType, WantedQuestsConfig
  3. def need_invite_vip(self):
  4. return True
  5. def get_invite_vip_name(self, ctype: CooperationType):
  6. if not self.fade_conf:
  7. return ""
  8. return self.fade_conf.get_invite_name(ctype)
  9. def next_run(self):
  10. pass
  11. def invite_success_callback(self, ctype: CooperationType, name: str):
  12. if not self.fade_conf:
  13. return
  14. self.fade_conf.update_invite_history(ctype, name)
  15. def get_config(self):
  16. config=WantedQuestsConfig()
  17. config.invite_friend_name="default"
  18. config.cooperation_only=True
  19. config.cooperation_type=self.fade_conf.get_cooperation_type_mask()
  20. return config