| | |
| | | curTime = int(time.time())
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FreePrayTime, curTime)
|
| | |
|
| | | preCnt, fixMoney =IpyGameDataPY.GetFuncEvalCfg('MoneyPray', 4)
|
| | | preCnt, fixMoney = IpyGameDataPY.GetFuncEvalCfg("MoneyPray", 4)
|
| | | GameWorld.DebugLog('11111fixMoney=%s,historyCnt=%s,preCnt=%s'%(fixMoney,historyCnt,preCnt))
|
| | | if fixMoney and historyCnt< preCnt:
|
| | | addMoney = fixMoney
|
| | |
| | | else:
|
| | | addMoney = GetMoneyPrayAward()
|
| | | addDataDict = {ChConfig.Def_Give_Reason_SonKey:"MoneyPray"}
|
| | | PlayerControl.GiveMoney(curPlayer, IPY_GameWorld.TYPE_Price_Silver_Money, addMoney, |
| | | ChConfig.Def_GiveMoney_Pray, addDataDict, False)
|
| | | PlayerControl.NotifyCode(curPlayer, 'MoneyPray_HowMuch', [addMoney])
|
| | | #20190917 by hxp 祈愿金币改为绑玉
|
| | | giveMoneyType = IPY_GameWorld.TYPE_Price_Gold_Paper
|
| | | PlayerControl.GiveMoney(curPlayer, giveMoneyType, addMoney, ChConfig.Def_GiveMoney_Pray, addDataDict, False)
|
| | | PlayerControl.NotifyCode(curPlayer, 'MoneyPray_HowMuch', [addMoney, giveMoneyType])
|
| | | PlayerBossReborn.AddBossRebornActionCnt(curPlayer, ChConfig.Def_BRAct_MoneyPray, 1)
|
| | |
|
| | | #经验祈愿
|