10142 【主干】【越南】【港台】【砍树】通天令激活修改
# Conflicts:
# ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
| | |
| | | import PlayerWeekParty
|
| | | import PlayerGoldInvest
|
| | | import PlayerActTurntable
|
| | | import PlayerTongTianLing
|
| | | import PlayerZhanling
|
| | | import ItemCommon
|
| | | import PyGameData
|
| | |
| | | PlayerGoldInvest.InvestByCTG(curPlayer, ctgID)
|
| | | PlayerGoldGift.OnGiftByCTGID(curPlayer, ctgID)
|
| | | PlayerZhanling.OnActiviteByCTGID(curPlayer, ctgID)
|
| | | PlayerTongTianLing.OnActiviteTTTByCTGID(curPlayer, ctgID)
|
| | |
|
| | | serverDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1
|
| | | addDRDict.update({"gold":[goldBefore, goldAfter], "changeCoinPoint":[changeCoinPointBefore, changeCoinPointAfter], "todayCTGCoinTotal":todayCTGCoinTotal,
|
| | |
| | | # tagHead Head;
|
| | | #};
|
| | | def OnBuyTongTianLing(index, clientData, tick):
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | # 废弃,改为充值激活
|
| | | return
|
| | |
|
| | | def OnActiviteTTTByCTGID(curPlayer, ctgID):
|
| | | ctgIDList = IpyGameDataPY.GetFuncEvalCfg("TongTianLing", 5)
|
| | | if ctgID not in ctgIDList:
|
| | | return
|
| | | |
| | | playerID = curPlayer.GetPlayerID()
|
| | | ttLV, ttState = GetTongTianLingLVInfo(curPlayer)
|
| | | if ttState:
|
| | | GameWorld.DebugLog("通天令已经购买过了!", playerID)
|
| | | return
|
| | | |
| | | costMoneyInfo = IpyGameDataPY.GetFuncEvalCfg("TongTianLing", 2)
|
| | | if len(costMoneyInfo) != 2:
|
| | | return
|
| | | costMoneyType, costMoneyValue = costMoneyInfo
|
| | | if not costMoneyType or not costMoneyValue:
|
| | | return
|
| | | |
| | | infoDict = {ChConfig.Def_Cost_Reason_SonKey:"BuyTongTianLing", "ttLV":ttLV}
|
| | | if not PlayerControl.PayMoney(curPlayer, costMoneyType, costMoneyValue, ChConfig.Def_Cost_TongTianLing, infoDict):
|
| | | return
|
| | |
|
| | | ttState = 1
|