| | |
| | | ipyData = IpyGameDataPY.GetIpyGameData("Marry", bridePriceID)
|
| | | if not ipyData:
|
| | | return
|
| | | candyItemInfo = ipyData.GetCandyItemInfo()
|
| | | candyItemInfo = []
|
| | | candyItemWeightInfo = ipyData.GetCandyItemWeightInfo()
|
| | | candyNotifyItemInfo = ipyData.GetCandyNotifyItemInfo()
|
| | |
|
| | | playerFreeEatCount = candyObj.playerFreeEatCountDict.get(playerID, 0)
|
| | | playerFireworksCount = candyObj.fireworksCountDict.get(playerID, 0)
|
| | |
| | |
|
| | | updProsperity = candyObj.prosperity
|
| | | updPlayerFreeEatCount = candyObj.playerFreeEatCountDict.get(playerID, 0)
|
| | | GameWorld.Log("更新喜糖宴会: updProsperity=%s,updPlayerFreeEatCount=%s" % (updProsperity, updPlayerFreeEatCount), playerID)
|
| | | |
| | | getCandyItemInfo = GameWorld.GetResultByWeightList(candyItemWeightInfo, [])
|
| | | if getCandyItemInfo:
|
| | | candyItemInfo.append(getCandyItemInfo)
|
| | | itemID, itemCount = getCandyItemInfo[:2]
|
| | | if itemID in candyNotifyItemInfo:
|
| | | PlayerControl.WorldNotify(0, "EatCandyItemNotify", [curPlayer.GetName(), itemID, itemCount])
|
| | | GameWorld.Log("更新喜糖宴会: updProsperity=%s,updPlayerFreeEatCount=%s,getCandyItemInfo=%s" |
| | | % (updProsperity, updPlayerFreeEatCount, getCandyItemInfo), playerID)
|
| | |
|
| | | return canBuy, isFree, costMoneyType, costMoneyValue, candyItemInfo
|
| | |
|