| | |
| | | Def_Run_Around_Reward_Exp = "run_around_exp" #跑环任务的奖励
|
| | | Def_Run_Around_Reward_ExpPoint = "run_around_exp_point" #跑环任务的奖励
|
| | | Def_Run_Around_Reward_Money = "run_around_money" #跑环任务的给钱
|
| | | Def_Run_Around_Reward_GoldPaper = "run_around_gold_paper" #跑环任务的给绑玉
|
| | | Def_Run_Around_Reward_FamilyHornor = "run_around_familyhornor" #跑环任务的仙盟贡献奖励
|
| | | Def_Run_Around_Reward_Multiple = "run_around_multiple" #跑环任务的奖励翻倍数
|
| | |
|
| | |
| | |
|
| | | rewardList = __GetRunAroundReward(curPlayer, curMission)
|
| | | if rewardList:
|
| | | curExp, curMoney, curFamilyHornor, itemID, itemCount = rewardList
|
| | | curExp, curMoney, curFamilyHornor, itemID, itemCount, goldPaper = rewardList
|
| | | else:
|
| | | curExp, curMoney, curFamilyHornor, itemID, itemCount = 0, 0, 0, 0
|
| | | curExp, curMoney, curFamilyHornor, itemID, itemCount, goldPaper = 0, 0, 0, 0, 0
|
| | |
|
| | | curMission.SetProperty(Def_Run_Around_Reward_Exp, curExp % ChConfig.Def_PerPointValue)
|
| | | curMission.SetProperty(Def_Run_Around_Reward_ExpPoint, curExp / ChConfig.Def_PerPointValue)
|
| | | curMission.SetProperty(Def_Run_Around_Reward_Money, curMoney)
|
| | | curMission.SetProperty(Def_Run_Around_Reward_GoldPaper, goldPaper)
|
| | |
|
| | | curMission.SetProperty(Def_Day_Event_Reward_Item_Id, itemID)
|
| | | curMission.SetProperty(Def_Day_Event_Reward_Item_Count, itemCount)
|
| | |
| | | curExp = eval(IpyGameDataPY.GetFuncCfg('RunTaskExp'))
|
| | | curExp += curLVRunAroundReward.AddExp
|
| | | curMoney = baseMoney
|
| | | curGoldPaper = curLVRunAroundReward.GoldPaper
|
| | | curFamilyHornor = curLVRunAroundReward.PlayerFamilyHornor
|
| | | itemInfo = curLVRunAroundReward.Item
|
| | | if itemInfo:
|
| | |
| | | else:
|
| | | itemID, itemCount = 0, 0
|
| | |
|
| | | return (curExp, curMoney, curFamilyHornor, itemID, itemCount)
|
| | | return (curExp, curMoney, curFamilyHornor, itemID, itemCount, curGoldPaper)
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | | ##给予跑环奖励
|
| | |
| | | addDataDict = {ChConfig.Def_Give_Reason_SonKey:"Run"}
|
| | | PlayerControl.GiveMoney(curPlayer, runAroundReward.MoneyType, money, ChConfig.Def_GiveMoney_Mission, addDataDict, False)
|
| | | moneyDict[runAroundReward.MoneyType] = money
|
| | | goldPaper = curMission.GetProperty(Def_Run_Around_Reward_GoldPaper)
|
| | | if goldPaper:
|
| | | moneyType = IPY_GameWorld.TYPE_Price_Gold_Paper
|
| | | addDataDict = {ChConfig.Def_Give_Reason_SonKey:"Run"}
|
| | | PlayerControl.GiveMoney(curPlayer, moneyType, goldPaper, ChConfig.Def_GiveMoney_Mission, addDataDict)
|
| | | moneyDict[moneyType] = goldPaper |
| | | familyHornor = curMission.GetProperty(Def_Run_Around_Reward_FamilyHornor)
|
| | | if familyHornor:
|
| | | PlayerFamily.AddPlayerFamilyActiveValue(curPlayer, familyHornor, True, ShareDefine.Def_AddFAVReason_DoFamilyMisson, True)
|