|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 给物品 | 
|---|
|  |  |  | for itemID, itemCnt, isBind in itemList: | 
|---|
|  |  |  | isPutIn = ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBind, | 
|---|
|  |  |  | isPutIn = ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, | 
|---|
|  |  |  | [IPY_GameWorld.rptItem], True) | 
|---|
|  |  |  | if isPutIn: | 
|---|
|  |  |  | PlayerControl.NotifyCode(curPlayer, "ObtainRes01", [itemID, itemCnt]) | 
|---|
|  |  |  | 
|---|
|  |  |  | itemID, itemCnt, isBind = itemInfo[job] | 
|---|
|  |  |  | else: | 
|---|
|  |  |  | itemID, itemCnt, isBind = itemInfo | 
|---|
|  |  |  | isPutIn = ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBind, | 
|---|
|  |  |  | isPutIn = ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, | 
|---|
|  |  |  | [IPY_GameWorld.rptItem], True) | 
|---|
|  |  |  | if isPutIn: | 
|---|
|  |  |  | PlayerControl.NotifyCode(curPlayer, "ObtainRes01", [itemID, itemCnt]) | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | itemInfoList = actionAwardInfo[CostProfit_ItemList] | 
|---|
|  |  |  | for itemId, itemNum, itemIsBind in itemInfoList: | 
|---|
|  |  |  | ItemControler.GivePlayerItem(curPlayer, itemId, itemNum, itemIsBind, [IPY_GameWorld.rptItem], True) | 
|---|
|  |  |  | ItemControler.GivePlayerItem(curPlayer, itemId, itemNum, 0, [IPY_GameWorld.rptItem], True) | 
|---|
|  |  |  | addDataDict = {"actionId":actionId, "needCostGold":needGoldNum, "costGold":curGoldNum, | 
|---|
|  |  |  | "itemInfoList":str(itemInfoList)} | 
|---|
|  |  |  | DataRecordPack.DR_FuncGiveItem(curPlayer, "CostProfitAward", addDataDict) | 
|---|