class TokenQuest(Quest):
    def __init__(self, qID, data, progress=None):
        super(TokenQuest, self).__init__(qID, data, progress)
        self.accountReqs = TokenQuestAccountRequirements(
            self.accountReqs.getSection())

    def _checkConditions(self):
        return self.accountReqs.isAvailable()
示例#2
0
class TokenQuest(Quest):
    """ Quest without battle conditions (only consumes tokens from other quests).
    
    The key difference is that we don't check token requirements availability
    when checking overall quest availability (see WOTD-81694)
    """
    def __init__(self, qID, data, progress=None):
        super(TokenQuest, self).__init__(qID, data, progress)
        self.accountReqs = TokenQuestAccountRequirements(
            self.accountReqs.getSection())

    def _checkConditions(self):
        return self.accountReqs.isAvailable()
 def __init__(self, qID, data, progress=None):
     super(TokenQuest, self).__init__(qID, data, progress)
     self.accountReqs = TokenQuestAccountRequirements(
         self.accountReqs.getSection())