| | |
| | |
|
| | | #给予物品
|
| | | itemID, itemCnt, isBand = itemInfo
|
| | | if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBand, [IPY_GameWorld.rptItem]):
|
| | | if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem]):
|
| | | #背包空间不足
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [IPY_GameWorld.rptItem])
|
| | | return True
|
| | |
| | | #给予物品
|
| | | itemID, itemCnt, isBand = itemInfo
|
| | | GameWorld.DebugLog(" itemInfo=%s" % str(itemInfo))
|
| | | if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBand, [IPY_GameWorld.rptItem]):
|
| | | if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem]):
|
| | | #背包空间不足
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [IPY_GameWorld.rptItem])
|
| | | return True
|
| | |
| | | # @return 序号
|
| | | def CheckMarkIdCardRule(curPlayer, cardCode):
|
| | | idName = curPlayer.GetAccID()
|
| | | platform = GameWorld.GetPlayerPlatform(idName)
|
| | | platform = GameWorld.GetPlayerPlatform(curPlayer)
|
| | | platFormIdName = GameWorld.GetPlatformAccID(idName)
|
| | | markIdCardData = ReadChConfig.GetEvalChConfig("IDMarkCardData")
|
| | | for cardIndex, cardInfo in markIdCardData.items():
|
| | |
| | |
|
| | | #给予物品
|
| | | itemID, itemCnt, isBand = itemInfo
|
| | | if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBand, [IPY_GameWorld.rptItem]):
|
| | | if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem]):
|
| | | #背包空间不足
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [IPY_GameWorld.rptItem])
|
| | | return
|
| | |
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_admin_327925")
|
| | | return
|
| | |
|
| | | platform = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
|
| | | platform = GameWorld.GetPlayerPlatform(curPlayer)
|
| | | MediaCardDict = ReadChConfig.GetEvalChConfig("MediaCard")
|
| | | commMediaCardDict, platformMediaCardDict = MediaCardDict
|
| | |
|
| | |
| | | isAppoint = itemInfo[3] if len(itemInfo) > 3 else 0
|
| | |
|
| | | if isAppoint:
|
| | | isOK = ItemControler.GivePlayerAppointItem(curPlayer, itemID, itemBind, True, True)
|
| | | isOK = ItemControler.GivePlayerAppointItem(curPlayer, itemID, False)
|
| | | else:
|
| | | isOK = ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, itemBind, [IPY_GameWorld.rptItem],
|
| | | True, showSysInfo=True)
|
| | | isOK = ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem])
|
| | | if isOK:
|
| | | succGiveItemList.append(itemInfo)
|
| | |
|