| | |
| | | import PlayerActivity
|
| | | import PlayerSuccess
|
| | | import PyGameData
|
| | | import AttackCommon
|
| | |
|
| | | import copy
|
| | | import datetime
|
| | |
| | | recoverNumList.append(index)
|
| | | elif dailyQuestData.GetRelatedType() == 1:#每日活动
|
| | | dailyID = dailyQuestData.GetRelatedID()
|
| | | lostOnDay = lostOnDayNum
|
| | | curDayTimes, dayTimesLimit = PlayerActivity.GetDailyActionFinishCnt(curPlayer, dailyID)
|
| | | if dailyID in [ShareDefine.DailyActionID_Dice, ShareDefine.DailyActionID_IceLode]:#我要太极只分是否参加过,没参加过才能找回,次数算1次
|
| | | dayTimesLimit = 1
|
| | | if curDayTimes:
|
| | | curDayTimes = dayTimesLimit
|
| | | |
| | | if curDayTimes >= dayTimesLimit and not lostOnDayNum:
|
| | | elif dailyID is ShareDefine.DailyActionID_WorldBOSS:
|
| | | canKillCnt, dayTimesLimit = AttackCommon.GetBossCanKillRemainCnt(curPlayer, 0)
|
| | | curDayTimes = dayTimesLimit - canKillCnt
|
| | | elif dailyID is ShareDefine.DailyActionID_SealDemon:
|
| | | #找回前先立即刷新一次
|
| | | FBCommon.RegainFBCntProcess(curPlayer)
|
| | | beyondTimes = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FbCntRegainOverTime % ChConfig.Def_FBMapID_SealDemon)
|
| | | recoverInterval = IpyGameDataPY.GetFuncCfg('FBCntRegainInterval')
|
| | | dayTimesLimit = 24*3600/recoverInterval
|
| | | curDayTimes = dayTimesLimit - beyondTimes
|
| | | lostOnDay = 0
|
| | | if curDayTimes >= dayTimesLimit and not lostOnDay:
|
| | | continue
|
| | | addCommonCnt = (dayTimesLimit - curDayTimes) + lostOnDayNum * dayTimesLimit
|
| | | addCommonCnt = (dayTimesLimit - curDayTimes) + lostOnDay * dayTimesLimit
|
| | | if addCommonCnt <=0:
|
| | | continue
|
| | | curCommonCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_RecoverFBCommonCnt % index, 0)
|
| | |
| | | expRate = PlayerControl.GetLimitExpRate(curPlayer, ChConfig.ExpRateLimitType_Recover)
|
| | | extraData = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_RecoverGainData % index, 0)
|
| | | dataEx = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_RecoverGainDataEx % index, 0)
|
| | | |
| | | realmLV = curPlayer.GetOfficialRank()
|
| | | tjgExp = 0 #脱机挂找回经验
|
| | | exp = 0
|
| | | sp = 0
|