当前位置: 首页>>代码示例>>Python>>正文


Python Quests.getRewardIdFromTrackId方法代码示例

本文整理汇总了Python中toontown.quest.Quests.getRewardIdFromTrackId方法的典型用法代码示例。如果您正苦于以下问题:Python Quests.getRewardIdFromTrackId方法的具体用法?Python Quests.getRewardIdFromTrackId怎么用?Python Quests.getRewardIdFromTrackId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在toontown.quest.Quests的用法示例。


在下文中一共展示了Quests.getRewardIdFromTrackId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: avatarChoseTrack

# 需要导入模块: from toontown.quest import Quests [as 别名]
# 或者: from toontown.quest.Quests import getRewardIdFromTrackId [as 别名]
 def avatarChoseTrack(self, avId, npc, pendingTrackQuest, trackId):
     toon = self.air.doId2do.get(avId)
     if not toon:
         return
     npc.completeQuest(avId, pendingTrackQuest, Quests.getRewardIdFromTrackId(trackId))
     self.completeQuest(toon, pendingTrackQuest)
     toon.removeQuest(pendingTrackQuest)
     toon.b_setTrackProgress(trackId, 0)
开发者ID:InvisbleMario,项目名称:Toontown-Community,代码行数:10,代码来源:QuestManagerAI.py

示例2: avatarChoseTrack

# 需要导入模块: from toontown.quest import Quests [as 别名]
# 或者: from toontown.quest.Quests import getRewardIdFromTrackId [as 别名]
 def avatarChoseTrack(self, avId, npc, quest, track):
     av = self.air.doId2do.get(avId)
     if not av:
         return
         
     av.b_setTrackProgress(track, 0)
             
     npc.completeQuest(avId, quest, Quests.getRewardIdFromTrackId(track))
     av.removeQuest(quest)
开发者ID:Teku16,项目名称:MikeyTheRepository,代码行数:11,代码来源:QuestManagerAI.py

示例3: avatarChoseTrack

# 需要导入模块: from toontown.quest import Quests [as 别名]
# 或者: from toontown.quest.Quests import getRewardIdFromTrackId [as 别名]
    def avatarChoseTrack(self, avId, npc, pendingTrackQuest, trackId):
        # Get the avatar.
        av = self.air.doId2do.get(avId)
        if not av:
            return

        # Remove the tasks for timeout.
        taskMgr.remove(npc.uniqueName('clearMovie'))

        # Show the completion movie and remove the task.
        npc.completeQuest(avId, pendingTrackQuest, Quests.getRewardIdFromTrackId(trackId))
        self.completeQuest(av, pendingTrackQuest)

        # Set their track their working on.
        av.b_setTrackProgress(trackId, 0)
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:17,代码来源:QuestManagerAI.py


注:本文中的toontown.quest.Quests.getRewardIdFromTrackId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。