From d86c7a4cdfc8dc5fbd416426afcb90fbcb987783 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 26 一月 2026 15:30:46 +0800
Subject: [PATCH] 423 【内政】命格系统-服务端(命格物品基础值取物品等级;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
index 204b7a5..97eee7c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
@@ -573,19 +573,10 @@
return
gwLV = max(1, curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MGGanwuLV))
- gwIpyData = IpyGameDataPY.GetIpyGameData("MGGanwuLV", gwLV)
colorIpyData = IpyGameDataPY.GetIpyGameData("MGGuayuQuality", itemColor)
typeIpyData = IpyGameDataPY.GetIpyGameData("MGGuayuType", itemType)
- if not gwIpyData or not colorIpyData or not typeIpyData:
+ if not colorIpyData or not typeIpyData:
return
-
- # 四维基础值、加成值
- baseAttrDict = {ChConfig.AttrID_Atk:[gwIpyData.GetAtkBase(), colorIpyData.GetAtkPlus()],
- ChConfig.AttrID_Def:[gwIpyData.GetDefBase(), colorIpyData.GetDefPlus()],
- ChConfig.AttrID_MaxHP:[gwIpyData.GetHPBase(), colorIpyData.GetHPPlus()],
- ChConfig.AttrID_AtkSpeed:[gwIpyData.GetAtkSpeedBase(), colorIpyData.GetAtkSpeedPlus()],
- }
- batAttrBaseDict = gwIpyData.GetBatAttrBaseDict() # 其他战斗属性基础值字典,{属性ID:基础值, ...}
# 四维占比
attrProportion = typeIpyData.GetBaseAttrProportion()
@@ -600,6 +591,18 @@
itemLV = random.choice(randLVList)
equipAttrDict[str(ShareDefine.Def_IudetItemLV)] = itemLV
+ gwIpyData = IpyGameDataPY.GetIpyGameData("MGGanwuLV", itemLV)
+ if not gwIpyData:
+ return
+
+ # 四维基础值、加成值
+ baseAttrDict = {ChConfig.AttrID_Atk:[gwIpyData.GetAtkBase(), colorIpyData.GetAtkPlus()],
+ ChConfig.AttrID_Def:[gwIpyData.GetDefBase(), colorIpyData.GetDefPlus()],
+ ChConfig.AttrID_MaxHP:[gwIpyData.GetHPBase(), colorIpyData.GetHPPlus()],
+ ChConfig.AttrID_AtkSpeed:[gwIpyData.GetAtkSpeedBase(), colorIpyData.GetAtkSpeedPlus()],
+ }
+ batAttrBaseDict = gwIpyData.GetBatAttrBaseDict() # 其他战斗属性基础值字典,{属性ID:基础值, ...}
+
GameWorld.DebugLog("生成命格卦玉: gwLV=%s,itemID=%s,itemLV=%s,itemColor=%s,itemType=%s" % (gwLV, itemID, itemLV, itemColor, itemType), playerID)
legendAttrIDList = setAttrDict.get(str(ShareDefine.Def_IudetLegendAttrID))
legendAttrValueList = setAttrDict.get(str(ShareDefine.Def_IudetLegendAttrValue))
--
Gitblit v1.8.0