| | |
| | | import NetPackCommon
|
| | | import IpyGameDataPY
|
| | | import ChPyNetSendPack
|
| | | import PlayerPrestigeSys
|
| | | import PlayerControl
|
| | | import IPY_GameWorld
|
| | | import ItemControler
|
| | |
| | |
|
| | | PlayerControl.PayMoney(curPlayer, ShareDefine.TYPE_Price_Xiantao, giveEquipCount)
|
| | |
|
| | | cutExp = IpyGameDataPY.GetFuncCfg("CutTree", 1)
|
| | | addExp = giveEquipCount * cutExp
|
| | | if addExp > 0:
|
| | | PlayerControl.PlayerControl(curPlayer).AddExp(addExp)
|
| | | |
| | | ItemControler.GivePlayerItemOrMail(curPlayer, giveItemListEx)
|
| | |
|
| | | GameWorld.DebugLog(" 实际产出: giveEquipIDList=%s,giveItemListEx=%s,addExp=%s" % (giveEquipIDList, giveItemListEx, addExp), playerID)
|
| | | GameWorld.DebugLog(" 实际产出: giveEquipIDList=%s,giveItemListEx=%s" % (giveEquipIDList, giveItemListEx), playerID)
|
| | | SyncCutTreeResult(curPlayer, giveEquipCount, giveItemListEx)
|
| | |
|
| | | PlayerTask.AddTaskValue(curPlayer, ChConfig.TaskType_CutTree, giveEquipCount)
|
| | | OnAddCutTreeCnt(curPlayer, giveEquipCount)
|
| | | return
|
| | |
|
| | | def OnAddCutTreeCnt(curPlayer, addCount):
|
| | | ## 增加砍树次数附加逻辑 - 除装备产出外的其他逻辑
|
| | | cutExp = IpyGameDataPY.GetFuncCfg("CutTree", 1)
|
| | | addExp = addCount * cutExp
|
| | | if addExp > 0:
|
| | | PlayerControl.PlayerControl(curPlayer).AddExp(addExp) |
| | | |
| | | #GameWorld.DebugLog("OnAddCutTreeCnt: addCount=%s,addExp=%s" % (addCount, addExp), curPlayer.GetPlayerID())
|
| | | PlayerPrestigeSys.AddRealmLVUpCutTreeCnt(curPlayer, addCount)
|
| | | PlayerTask.AddTaskValue(curPlayer, ChConfig.TaskType_CutTree, addCount)
|
| | | return
|
| | |
|
| | |
|
| | | #// B2 22 砍树装备操作 #tagCMCutTreeEquipOP
|
| | | #
|
| | | #struct tagCMCutTreeEquipOP
|