| | |
| | | GameWorld.DebugLog("执行一键选择加成效果: unSelectCnt=%s,effHoleCnt=%s,selectSetAttrIDList=%s" % (unSelectCnt, effHoleCnt, selectSetAttrIDList))
|
| | |
|
| | | randEffCnt = IpyGameDataPY.GetFuncCfg("DingjungeEff", 3)
|
| | | for _ in range(unSelectCnt):
|
| | | for _ in range(unSelectCnt + 1): # 多执行一次+1是因为可能存在未选择的视为1次,内层有验证剩余未选择数,所以多执行一次没关系
|
| | | effIDList = __randSelectEff(curPlayer, randEffCnt)
|
| | | if not effIDList:
|
| | | break
|
| | |
| | | for sIndex in range(randEffCnt):
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_DJGSelectEffect % sIndex, 0)
|
| | |
|
| | | unSelectCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_DJGUnSelectCnt)
|
| | | if unSelectCnt <= 0:
|
| | | GameWorld.DebugLog("没有未处理的加成效果次数了")
|
| | | return
|
| | | effIDList = []
|
| | | if isReset:
|
| | | pass
|
| | |
| | | #GameWorld.DebugLog("已存在未选择的加成效果等选择后再生成: effIDList=%s,unSelectCnt=%s" % (effIDList, unSelectCnt))
|
| | | return effIDList
|
| | |
|
| | | unSelectCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_DJGUnSelectCnt)
|
| | | if unSelectCnt <= 0:
|
| | | GameWorld.DebugLog("没有未处理的加成效果次数了")
|
| | | return []
|
| | | |
| | | fullLVEffIDList = [] # 已满级的效果ID列表
|
| | | effMaxLV = IpyGameDataPY.GetFuncCfg("DingjungeEff", 2)
|
| | | for eIndex in range(len(IpyGameDataPY.GetFuncEvalCfg("DingjungeEff", 1))):
|