| | |
| | | return
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | | ##增加进入副本次数
|
| | | # @param curPlayer 玩家实例
|
| | | # @param curMission 任务实例
|
| | | # @param curActionNode节点信息
|
| | | # @return 返回值无意义
|
| | | # @remarks <Add_Fbcnt mapid = "地图ID" count = "次数" />
|
| | | def DoType_Add_Fbcnt(curPlayer, curMission, curActionNode):
|
| | | ## 这边是任务直接赠送的,相当于给赠送道具,这里默认直接转化为道具使用后增加的次数
|
| | | mapID = int(curActionNode.GetAttribute("mapid"))
|
| | | count = GameWorld.ToIntDef(curActionNode.GetAttribute("count"), 1)
|
| | | itemAddCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID, itemAddCnt + count)
|
| | | FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapID)
|
| | | return
|
| | |
|
| | | ##进入单人副本
|
| | | # @param curPlayer 玩家实例
|
| | | # @param curMission 任务实例
|