| | |
| | | curPlayer.SetDict(attrKey, 0)
|
| | |
|
| | | if isGiveFruitItem:
|
| | | giveFruitItemList.append([itemID, ipyData.GetMaxUseCnt()])
|
| | | giveFruitItemList.append([itemID, PlayerAttrFruit.GetMaxEatCnt(curPlayer, itemID)])
|
| | |
|
| | | PlayerAttrFruit.Sync_AttrFruitEatCnt(curPlayer)
|
| | |
|
| | |
| | | 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
|