本文整理汇总了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)
示例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)
示例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)