| | |
| | | return
|
| | |
|
| | | curQuestData = QuestManager.FindQuest(missionID)
|
| | | curMission = curPlayer.FindMission(missionID)
|
| | | if not curQuestData or not curMission:
|
| | | return
|
| | | isFree = PlayerGoldInvest.CanQuickFinishMissionFree(curPlayer)
|
| | | costMoneyInfo = IpyGameDataPY.GetFuncEvalCfg("QuickFinishMission", 1)
|
| | | if costMoneyInfo and not isFree and \
|
| | | curQuestData != None and curQuestData.Type in QuestCommon.Def_RunTask_Type_List:
|
| | | if costMoneyInfo and not isFree and curQuestData.Type in QuestCommon.Def_RunTask_Type_List:
|
| | | moneyType, moneyValue = costMoneyInfo
|
| | | if not PlayerControl.PayMoney(curPlayer, moneyType, moneyValue, ChConfig.Def_Cost_MissionDel, {"MissionID":missionID}):
|
| | | return
|