| | |
| | | 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)
|
| | |
|
| | | #经验祈愿
|
| | |
| | | GameWorld.Log('###---扣钱异常 = %s' % (price), curPlayer.GetPlayerID())
|
| | | return False
|
| | |
|
| | | if type_Price == IPY_GameWorld.TYPE_Price_Gold_Paper:
|
| | | type_Price = IPY_GameWorld.TYPE_Price_Gold_Money #新版无绑玉,原先绑玉再仙玉的扣法改成 扣仙玉 2019/6/3
|
| | | #20190917 恢复绑玉
|
| | | # if type_Price == IPY_GameWorld.TYPE_Price_Gold_Paper:
|
| | | # type_Price = IPY_GameWorld.TYPE_Price_Gold_Money #新版无绑玉,原先绑玉再仙玉的扣法改成 扣仙玉 2019/6/3
|
| | |
|
| | | #金子支付
|
| | | if type_Price == IPY_GameWorld.TYPE_Price_Gold_Money:
|
| | |
| | | GiveMoney(curPlayer, ShareDefine.TYPE_Price_BourseMoney, value)
|
| | | addDataDict["BourseMoney"] = GetMoney(curPlayer, ShareDefine.TYPE_Price_BourseMoney)
|
| | |
|
| | | # elif priceType == IPY_GameWorld.TYPE_Price_Gold_Paper:
|
| | | # if curPlayer.GetGoldPaper() + value > ChConfig.Def_PlayerTotalMoney_Gold:
|
| | | # #超过金钱上限
|
| | | # NotifyCode(curPlayer, "MoneyIsFull", [priceType])
|
| | | # return
|
| | | # |
| | | # curPlayer.SetGoldPaper(curPlayer.GetGoldPaper() + value)
|
| | | elif priceType == IPY_GameWorld.TYPE_Price_Gold_Paper:
|
| | | if curPlayer.GetGoldPaper() + value > ChConfig.Def_PlayerTotalMoney_Gold:
|
| | | #超过金钱上限
|
| | | NotifyCode(curPlayer, "MoneyIsFull", [priceType])
|
| | | return
|
| | | |
| | | curPlayer.SetGoldPaper(curPlayer.GetGoldPaper() + value)
|
| | |
|
| | | elif priceType == IPY_GameWorld.TYPE_Price_Silver_Money:
|
| | | # 金钱支持超过20亿, 暂不做上限控制
|