From 5425e5bc402a10039c254b6af3b3e8cf087bbf28 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 03 一月 2020 16:26:19 +0800 Subject: [PATCH] 8358 【主干】【后端】坐骑修改(刷阶属性修改) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py index 978786c..6eeae00 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerHorse.py @@ -357,12 +357,15 @@ ipyDataMgr = IpyGameDataPY.IPY_Data() for index in xrange(ipyDataMgr.GetHorseLVUpCount()): horseIpyData = ipyDataMgr.GetHorseLVUpByIndex(index) - if horseIpyData.GetHorseLV() >= horseLV: - totalItemCount += curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorserEatItemCount) + dataHorseLV = horseIpyData.GetHorseLV() + if dataHorseLV > horseLV: break - + elif dataHorseLV == horseLV: + totalItemCount += curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HorserEatItemCount) + else: + totalItemCount += horseIpyData.GetNeedEatCount() + # 等阶额外属性 - totalItemCount += horseIpyData.GetNeedEatCount() lvAttrTypeList = horseIpyData.GetLVAttrType() lvAttrValueList = horseIpyData.GetLVAttrValue() for i, attrID in enumerate(lvAttrTypeList): -- Gitblit v1.8.0