From 2930bdc1878ec66d0db331aad05d70562baa351d Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 20 二月 2024 10:28:07 +0800 Subject: [PATCH] 10133 【后端】境界修改 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCutTree.py | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCutTree.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCutTree.py index 00c3332..a24328a 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCutTree.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCutTree.py @@ -21,6 +21,7 @@ import NetPackCommon import IpyGameDataPY import ChPyNetSendPack +import PlayerPrestigeSys import PlayerControl import IPY_GameWorld import ItemControler @@ -140,19 +141,27 @@ 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 -- Gitblit v1.8.0