From a7ab0247c7b8eff06ad104bee39bc035384ca43e Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 23 七月 2025 12:08:22 +0800 Subject: [PATCH] 80 【常规】背包-服务端(增加背包购买格子;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py index 8b29dc8..9080305 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py @@ -2578,18 +2578,18 @@ heroAttrDict = {} if lineupPlayerID: heroAttrDict.update({ - ShareDefine.Def_Effect_Atk:500000000, - ShareDefine.Def_Effect_Def:50000000, - ShareDefine.Def_Effect_MaxHP:3000000000, + ChConfig.AttrID_Atk:500000000, + ChConfig.AttrID_Def:50000000, + ChConfig.AttrID_MaxHP:3000000000, }) else: npcDataEx = GetNPCDataEx(curNPC.GetNPCID()) if not npcDataEx: return heroAttrDict.update({ - ShareDefine.Def_Effect_Atk:npcDataEx.GetAtk(), - ShareDefine.Def_Effect_Def:npcDataEx.GetDef(), - ShareDefine.Def_Effect_MaxHP:npcDataEx.GetMaxHP(), + ChConfig.AttrID_Atk:npcDataEx.GetAtk(), + ChConfig.AttrID_Def:npcDataEx.GetDef(), + ChConfig.AttrID_MaxHP:npcDataEx.GetMaxHP(), }) GameWorld.DebugLog("heroAttrDict: ID:%s,NPCID:%s,%s" % (curNPC.GetID(), curNPC.GetNPCID(), heroAttrDict)) @@ -2598,10 +2598,10 @@ curNPC.ResetNPCBattleState() # 设置属性 - curNPC.SetMinAtk(heroAttrDict.get(ShareDefine.Def_Effect_Atk, 1)) - curNPC.SetMaxAtk(heroAttrDict.get(ShareDefine.Def_Effect_Atk, 1)) - curNPC.SetDef(heroAttrDict.get(ShareDefine.Def_Effect_Def, 1)) - GameObj.SetMaxHP(curNPC, heroAttrDict.get(ShareDefine.Def_Effect_MaxHP, 1)) + curNPC.SetMinAtk(heroAttrDict.get(ChConfig.AttrID_Atk, 1)) + curNPC.SetMaxAtk(heroAttrDict.get(ChConfig.AttrID_Atk, 1)) + curNPC.SetDef(heroAttrDict.get(ChConfig.AttrID_Def, 1)) + GameObj.SetMaxHP(curNPC, heroAttrDict.get(ChConfig.AttrID_MaxHP, 1)) return ## 刷新NPC属性 -- Gitblit v1.8.0