| | |
| | | return
|
| | | isOK = False
|
| | | playerMoney = PlayerControl.GetMoneyReal(curPlayer, moneyType)
|
| | | if moneyType == ShareDefine.TYPE_Price_PayCoin:
|
| | | playerMoney = PlayerControl.GetPayCoinTotal(curPlayer)
|
| | | if playerMoney > moneyCount:
|
| | | isOK = PlayerControl.PayMoney(curPlayer, moneyType, playerMoney - moneyCount, ChConfig.Def_Cost_GM, {ChConfig.Def_Cost_Reason_SonKey:"SetMoney"}, isMinus=True)
|
| | | elif playerMoney < moneyCount:
|
| | |
| | | isOK = True
|
| | | if not isOK:
|
| | | GameWorld.DebugAnswer(curPlayer, "设置玩家货币失败,详见日志或流向")
|
| | | else:
|
| | | GameWorld.DebugAnswer(curPlayer, "设置%s%s=%s" % (moneyType, moneyNameDict.get(moneyType, moneyType), PlayerControl.GetMoneyReal(curPlayer, moneyType)))
|
| | |
|
| | | return
|
| | |
|