| | |
| | | # @param fbID 副本id
|
| | | # @param addCount 增加次数
|
| | | # @return 返回值无意义
|
| | | def AddEnterFBCount(curPlayer, fbID, addCount=1, lineBit=-1):
|
| | | def AddEnterFBCount(curPlayer, fbID, addCount=1, lineBit=-1, isFree=False):
|
| | | ## @param isFree: 是否免费进入的,免费的不增加实际进入次数,但需要触发进入次数额外处理,如活跃、成就等
|
| | | addCountEx = addCount
|
| | | addCount = 0 if isFree else addCount
|
| | | fbID = GetRecordMapID(fbID)
|
| | | enterCntKey = ChConfig.Def_Player_Dict_EnterFbCntDay % fbID
|
| | | enterCnt = curPlayer.NomalDictGetProperty(enterCntKey)
|
| | |
| | | addCount = updCnt-enterCnt
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, enterCntKey, updCnt)
|
| | |
|
| | | PlayerActivity.OnEnterFBActivity(curPlayer, fbID, updCnt, addCount)
|
| | | PlayerSuccess.AddEnterFBSuccess(curPlayer, fbID, addCount)
|
| | | PlayerActivity.OnEnterFBActivity(curPlayer, fbID, updCnt, addCountEx)
|
| | | PlayerSuccess.AddEnterFBSuccess(curPlayer, fbID, addCountEx)
|
| | | updValue = updCnt
|
| | | GameWorld.DebugLog(" AddEnterFBCount fbID=%s, addCount=%s, lineBit=%s, enterCnt=%s,updValue=%s"
|
| | | % (fbID, addCount, lineBit, enterCnt, updValue), curPlayer.GetPlayerID())
|