Пример #1
0
    def __tryToShowTokenAward(tID, tCount, completedQuestIDs):
        for q in g_eventsCache.getQuestsByTokenBonus(tID):
            if q.getType() == EVENT_TYPE.POTAPOV_QUEST:
                pqType = q.getPQType()
                if pqType.mainQuestID in completedQuestIDs or pqType.addQuestID in completedQuestIDs:
                    quests_events.showTokenAward(q, tID, tCount)
                    return True

        return False
Пример #2
0
    def __tryToShowTokenAward(tID, tCount, completedQuestIDs):
        for q in g_eventsCache.getQuestsByTokenBonus(tID):
            if q.getType() == EVENT_TYPE.POTAPOV_QUEST:
                pqType = q.getPQType()
                if pqType.mainQuestID in completedQuestIDs or pqType.addQuestID in completedQuestIDs:
                    quests_events.showTokenAward(q, tID, tCount)
                    return True

        return False
Пример #3
0
    def __tryToShowTokenAward(self, tID, tCount, completedQuestIDs):
        for q in self.eventsCache.getQuestsByTokenBonus(tID):
            if q.getType() == EVENT_TYPE.POTAPOV_QUEST and q.getQuestBranch() == PQ_BRANCH.REGULAR:
                pqType = q.getPQType()
                if pqType.mainQuestID in completedQuestIDs or pqType.addQuestID in completedQuestIDs:
                    quests_events.showTokenAward(q, tID, tCount)
                    return True

        return False