xdh
2018-09-12 e8b1e5b9381740a5ab19088df6a98e2869e4b288
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerAttrFruit.py
@@ -468,3 +468,18 @@
        
    return eatCntDict
def IsFruitEatFull(curPlayer, itemID):
    #使用次数是否已满
    ipyData = GetAttrFruitIpyData(itemID)
    if not ipyData:
        return
    maxEatCnt = ipyData.GetMaxUseCnt()
    eatCntKey = ChConfig.Def_PDict_AttrFruitEatCnt % itemID
    limitType = Def_LimitType_Cnt
    if limitType == Def_LimitType_Attr:
        eatCntKey = ChConfig.Def_PDict_AttrFruitAddValue % itemID
    eatCnt = curPlayer.NomalDictGetProperty(eatCntKey) # 已吃次数/属性值
    if eatCnt >= maxEatCnt:
        return True
    return