| | |
| | | import ShareDefine
|
| | | import GameFuncComm
|
| | | import ItemCommon
|
| | | import ItemControler
|
| | | import PlayerSuccess
|
| | | import PlayerActivity
|
| | | import PlayerBossReborn
|
| | |
| | | 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])
|
| | | ItemControler.NotifyGiveAwardInfo(curPlayer, [], "Pray", moneyInfo={giveMoneyType:addMoney})
|
| | | PlayerBossReborn.AddBossRebornActionCnt(curPlayer, ChConfig.Def_BRAct_MoneyPray, 1)
|
| | | PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_MoneyPray)
|
| | |
|
| | |
| | | addExp = eval(GetExpPrayAward())
|
| | | PlayerControl.PlayerControl(curPlayer).AddExp(addExp)
|
| | | PlayerControl.NotifyCode(curPlayer, 'ExpPray_HowMuch', [addExp])
|
| | | ItemControler.NotifyGiveAwardInfo(curPlayer, [], "Pray", exp=addExp)
|
| | | if not isCostItem: #用物品不增加次数
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_HasPrayCnt % buyType, curCnt + 1)
|
| | | PlayerBossReborn.AddBossRebornActionCnt(curPlayer, ChConfig.Def_BRAct_ExpPray, 1)
|