hch
2019-05-23 8fe55d480d35dfcb76e68b31034fb2ba25c18b14
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py
@@ -79,7 +79,7 @@
                curPlayer.SetDict(attrKey, 0)
                
            if isGiveFruitItem:
                giveFruitItemList.append([itemID, ipyData.GetMaxUseCnt()])
                giveFruitItemList.append([itemID, PlayerAttrFruit.GetMaxEatCnt(curPlayer, itemID)])
                
    PlayerAttrFruit.Sync_AttrFruitEatCnt(curPlayer)
    
@@ -87,7 +87,7 @@
    PlayerControl.PlayerControl(curPlayer).ReCalcAllState()
    
    for itemID, itemCount in giveFruitItemList:
        if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, True, [IPY_GameWorld.rptItem]):
        if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem]):
            break
    GameWorld.DebugAnswer(curPlayer, "OK!")
    return