| | |
| | | GameWorld.ErrLog("tagPetInfo.txt can not find petData petNPCID=%s" % (petNPCID))
|
| | | return
|
| | |
|
| | | newPetItem = ItemCommon.CreateSingleItem(ChConfig.Def_ItemID_PetData)
|
| | | newPetItem = None#ItemCommon.CreateSingleItem(ChConfig.Def_ItemID_PetData)
|
| | | if not newPetItem:
|
| | | return
|
| | |
|
| | |
| | |
|
| | | extraInfoDict = {"petItemIndex":PetItemIndex, "petNPCID":petNPCID}
|
| | | extraInfoDict.update(eval(petDataItem.GetUserData()))
|
| | | DataRecordPack.DR_ClassUpSystem(curPlayer, "PetClassUp", updClassLV, extraInfoDict)
|
| | | #DataRecordPack.DR_ClassUpSystem(curPlayer, "PetClassUp", updClassLV, extraInfoDict)
|
| | |
|
| | | PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_PetUpItem, costItemCount)
|
| | | PlayerActLunhuidian.AddLunhuidianValue(curPlayer, PlayerActLunhuidian.AwardType_UseItem, autoBuyItemID, costItemCount)
|