hxp
2019-12-20 b82e6dbda1129a3f55d0177964a35d77feff7c77
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_521.py
@@ -49,25 +49,26 @@
    return ChConfig.TYPE_Linear
def GetHorseAttrByQuality(curPlayer, attrType):
    value = 0
    ipyDataMgr = IpyGameDataPY.IPY_Data()
    for i in xrange(ipyDataMgr.GetHorseCount()):
        ipyData = ipyDataMgr.GetHorseByIndex(i)
        horseID = ipyData.GetHorseID()
        lv = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Horser_LV % horseID, 0, ChConfig.Def_PDictType_Horse)
        if not lv:
            continue
        horseUpData = IpyGameDataPY.GetIpyGameData("HorseUp", horseID, lv)
        if not horseUpData:
            continue
        attrTypeList = horseUpData.GetAttrType()
        attrValueList = horseUpData.GetAttrValue()
        if attrType not in attrTypeList:
            continue
        value += attrValueList[attrTypeList.index(attrType)]
    return value
    return 0
#    value = 0
#    ipyDataMgr = IpyGameDataPY.IPY_Data()
#    for i in xrange(ipyDataMgr.GetHorseCount()):
#        ipyData = ipyDataMgr.GetHorseByIndex(i)
#        horseID = ipyData.GetHorseID()
#        lv = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Horser_LV % horseID, 0, ChConfig.Def_PDictType_Horse)
#        if not lv:
#            continue
#
#        horseUpData = IpyGameDataPY.GetIpyGameData("HorseUp", horseID, lv)
#        if not horseUpData:
#            continue
#
#        attrTypeList = horseUpData.GetAttrType()
#        attrValueList = horseUpData.GetAttrValue()
#        if attrType not in attrTypeList:
#            continue
#
#        value += attrValueList[attrTypeList.index(attrType)]
#
#    return value