| | |
| | | return
|
| | | updPoint = curPoint + addValue
|
| | | __SetPDictValue(curPlayer, ChConfig.Def_PDict_ActivityCanCostTotalPoint, updPoint)
|
| | | |
| | | costPoint = IpyGameDataPY.GetFuncCfg("ActivityPlace", 2) # 单次放置消耗的活跃点数
|
| | | if updPoint >= costPoint:
|
| | | EventShell.EventRespons_ActivityPlace(curPlayer, "canstart", True)
|
| | | return
|
| | |
|
| | | def CostActivityPoint(curPlayer, costPoint, isOnlyCheck=False):
|
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ActivityPlaceExpCount, 0)
|
| | | GameWorld.DebugLog(" 没有剩余次数,更新启动时间: %s" % curTime)
|
| | |
|
| | | EventShell.EventRespons_ActivityPlace(curPlayer, "start")
|
| | | |
| | | Sync_ActivityPlaceInfo(curPlayer)
|
| | | return
|
| | |
|
| | |
| | | if isQuick:
|
| | | PlayerControl.NotifyCode(curPlayer, "ActivityPlaceQuickFinishOK")
|
| | |
|
| | | EventShell.EventRespons_ActivityPlace(curPlayer, "cangetreward")
|
| | | |
| | | Sync_ActivityPlaceInfo(curPlayer)
|
| | | return
|
| | |
|
| | |
| | | GameWorld.DebugLog("领取活跃放置奖励: rewardItemCount=%s,rewardItemList=%s" % (rewardItemCount, rewardItemList))
|
| | | ItemControler.GivePlayerItemOrMail(curPlayer, rewardItemList)
|
| | |
|
| | | EventShell.EventRespons_ActivityPlace(curPlayer, "getreward")
|
| | | |
| | | Sync_ActivityPlaceInfo(curPlayer)
|
| | | return
|
| | |
|