| | |
| | | multiple = 1
|
| | | if addValue:
|
| | | #__SetPDictValue(curPlayer, ChConfig.Def_PDict_Activity_TotalPoint, nuwTotalPoint)
|
| | | actRealmPointInfo = PyGameData.g_operationActionDict.get(ShareDefine.OperationActionName_RealmPoint, {})# 多倍修行点活动
|
| | | if actRealmPointInfo.get(ShareDefine.ActKey_State) \
|
| | | and curPlayer.GetLV() >= actRealmPointInfo.get(ShareDefine.ActKey_LVLimit, 0):
|
| | | multiple = actRealmPointInfo.get(ShareDefine.ActKey_RealmPointMulti, 1)
|
| | | addValue *= multiple
|
| | | multiple = __GetActionAddPer(curPlayer)
|
| | | addValue *= multiple
|
| | |
|
| | | realmPoint = __GetPDictValue(curPlayer, ChConfig.Def_PDict_Activity_RealmPoint)
|
| | | __SetPDictValue(curPlayer, ChConfig.Def_PDict_Activity_RealmPoint, realmPoint+addValue)
|
| | |
| | | % (activityNum, addPbCnt, addValue, multiple), curPlayer.GetPlayerID())
|
| | | return
|
| | |
|
| | | def __GetActionAddPer(curPlayer):
|
| | | multiple = 1
|
| | | actRealmPointInfo = PyGameData.g_operationActionDict.get(ShareDefine.OperationActionName_RealmPoint, {})# 多倍修行点活动
|
| | | if not actRealmPointInfo:
|
| | | return multiple
|
| | | if not actRealmPointInfo.get(ShareDefine.ActKey_State):
|
| | | return multiple
|
| | | actRealmPointIpyData = IpyGameDataPY.GetIpyGameData("ActRealmPoint", actRealmPointInfo.get(ShareDefine.ActKey_CfgID, 0))
|
| | | if not actRealmPointIpyData:
|
| | | return multiple
|
| | | if curPlayer.GetLV() < actRealmPointIpyData.GetLVLimit():
|
| | | return multiple
|
| | | return actRealmPointIpyData.GetMultiple()
|
| | |
|
| | | ## 同步活跃度信息
|
| | | # @param curPlayer
|
| | |
| | | activityNum = GetActivityNum(RelatedType_1, dailyID)
|
| | | dailyQuestData = IpyGameDataPY.GetIpyGameDataNotLog('DailyQuest', activityNum)
|
| | | unLimitCnt = dailyQuestData and not dailyQuestData.GetTotalActiveValue()
|
| | | funcID = dailyQuestData.GetUnLockFuncID() if dailyQuestData else 0
|
| | | if funcID and not GameFuncComm.GetFuncCanUse(curPlayer, funcID):
|
| | | return
|
| | |
|
| | | updDayTimes = 0
|
| | | if dayTimesLimit:
|