| | |
| | |
|
| | | def __randSelectEff(curPlayer, randEffCnt=0, isReset=False):
|
| | | ## 随机生成待选择加成效果
|
| | | unSelectCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_DJGUnSelectCnt)
|
| | | if unSelectCnt <= 0:
|
| | | GameWorld.DebugLog("没有未处理的加成效果次数了")
|
| | | return
|
| | | if not randEffCnt:
|
| | | randEffCnt = IpyGameDataPY.GetFuncCfg("DingjungeEff", 3)
|
| | | effIDList = []
|
| | | if isReset:
|
| | | # 重置
|
| | | 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
|
| | | else:
|
| | | for sIndex in range(randEffCnt):
|
| | | effID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_DJGSelectEffect % sIndex)
|