| | |
| | | if totalExp > 0:
|
| | | PlayerControl.PlayerControl(curPlayer).AddExp(totalExp)
|
| | |
|
| | | giveMoneyType = IPY_GameWorld.TYPE_Price_Silver_Money
|
| | | if totalMoney > 0:
|
| | | PlayerControl.GiveMoney(curPlayer, IPY_GameWorld.TYPE_Price_Silver_Money, totalMoney, ChConfig.Def_GiveMoney_Recover)
|
| | | PlayerControl.GiveMoney(curPlayer, giveMoneyType, totalMoney, ChConfig.Def_GiveMoney_Recover)
|
| | |
|
| | | if totalSP > 0:
|
| | | PlayerControl.PlayerAddZhenQi(curPlayer, totalSP, True, True, "Recover")
|
| | |
| | | if mapIDInfo:
|
| | | FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapIDInfo)
|
| | | GameWorld.DebugLog("==[PlayerRecover]== Out->OnRecoverGain() recoverWay=%s, costMoneyDict=%s, recoverCntDict=%s, totalExp=%s, totalMoney=%s, totalSP=%s, totalItemDict=%s" % (recoverWay, costMoneyDict, recoverCntDict, totalExp, totalMoney, totalSP, totalItemDict))
|
| | | ItemControler.NotifyGiveAwardInfo(curPlayer, totalItemDict, "Recover", totalExp, moneyInfo={giveMoneyType:totalMoney})
|
| | | return
|
| | |
|
| | | def __DoLogicBackTimes(curPlayer, recoverData, recoverCnt):
|