def buyMissionsByVehicleType(self, operationChain):
     finalQuests = self.getOperation().getFinalQuests().values()
     finalQuest = findFirst(
         lambda q: q.getQuestClassifier().classificationAttr ==
         operationChain, finalQuests)
     result = yield quests.PMPawn(finalQuest).request()
     if result and result.userMsg:
         SystemMessages.pushMessage(result.userMsg, type=result.sysMsgType)
 def __pawnMission(self, questInProgress):
     if not questInProgress.isDisabled():
         result = yield quests.PMPawn(questInProgress).request()
         if result and result.userMsg:
             SystemMessages.pushMessage(result.userMsg,
                                        type=result.sysMsgType)
Пример #3
0
 def _pawnMission(self, eventID):
     quest = self.__quests[int(eventID)]
     result = yield quests_proc.PMPawn(quest).request()
     if result and result.userMsg:
         SystemMessages.pushMessage(result.userMsg, type=result.sysMsgType)