8301 【恺英】【后端】仙缘币货币调整(改为给灵石,刷新召唤改为消耗灵石)
| | |
| | | helpPlayerInfoDict = helpBattlePlayerDict[calledPlayerID]
|
| | | if helpPlayerInfoDict.get("NeedGoldCall", 0):
|
| | | goldCallCost = IpyGameDataPY.GetFuncCfg("HelpBattleCall", 5) # 付费召唤消耗仙玉,优先消耗绑玉
|
| | | costMoneyList = PlayerControl.HaveMoneyEx(curPlayer, ShareDefine.TYPE_Price_Gold_Paper_Money, goldCallCost)
|
| | | # 恺英版改为直接扣绑玉灵石 2019/10/8
|
| | | costMoneyList = PlayerControl.HaveMoneyEx(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Paper, goldCallCost)
|
| | | if not costMoneyList:
|
| | | return
|
| | |
|
| | |
| | |
|
| | | if refreshCount >= freeRefreshCount:
|
| | | costGold = IpyGameDataPY.GetFuncCfg("HelpBattleRefresh", 3)
|
| | | costMoneyList = PlayerControl.HaveMoneyEx(curPlayer, ShareDefine.TYPE_Price_Gold_Paper_Money, costGold)
|
| | | # 恺英版改为直接扣绑玉灵石 2019/10/8
|
| | | costMoneyList = PlayerControl.HaveMoneyEx(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Paper, costGold)
|
| | | if not costMoneyList:
|
| | | GameWorld.DebugLog("货币不足!无法刷新助战!")
|
| | | return
|
| | |
| | | return []
|
| | | if TYPE_Price == ShareDefine.TYPE_Price_Gold_Paper_Money:
|
| | | TYPE_Price = IPY_GameWorld.TYPE_Price_Gold_Money #新版无绑玉,原先绑玉再仙玉的扣法改成 扣仙玉 2019/3/26
|
| | | #恺英版: 恢复绑玉,但是不使用先绑玉再仙玉的规则,原来先绑玉再仙玉的规则一样为默认扣仙玉 2019/10/8
|
| | |
|
| | | if TYPE_Price in [IPY_GameWorld.TYPE_Price_Gold_Money, IPY_GameWorld.TYPE_Price_Gold_Paper,
|
| | | IPY_GameWorld.TYPE_Price_Silver_Money, IPY_GameWorld.TYPE_Price_Silver_Paper]:
|
| | |
| | | GameWorld.SendMsgToClientServer(ShareDefine.CrossServerMsg_GiveMoney, msgInfo, [serverGroupID])
|
| | | return True
|
| | |
|
| | | ## 恺英版去除了仙缘币,改为直接获得绑玉灵石
|
| | | if priceType == ShareDefine.TYPE_Price_XianyuanCoin:
|
| | | priceType = IPY_GameWorld.TYPE_Price_Gold_Paper
|
| | | |
| | | if priceType == IPY_GameWorld.TYPE_Price_Gold_Money:
|
| | | if curPlayer.GetGold() + value > ChConfig.Def_PlayerTotalMoney_Gold:
|
| | | #超过金钱上限
|