| | |
| | | else:
|
| | | fdEventTypeDict = {}
|
| | | #先随机独立事件
|
| | | singleEventRateDict = IpyGameDataPY.GetFuncCfg('ImmortalDomain')
|
| | | singleEventRateDict = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 1, {})
|
| | | for eventType, rate in singleEventRateDict.items():
|
| | | if GameWorld.CanHappen(rate):
|
| | | fdEventTypeDict[eventType] = 1
|
| | |
| | | otherEventRateList = copy.deepcopy(IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 3))
|
| | | unRepeatTypeList = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 4)
|
| | | for _ in xrange(otherCnt):
|
| | | otherEventType = GameWorld.GetResultByRandomList(otherEventRateList, 0)
|
| | | if not otherEventType:
|
| | | otherEventType = GameWorld.GetResultByRandomList(otherEventRateList)
|
| | | if otherEventType is None:
|
| | | continue
|
| | | if otherEventType in unRepeatTypeList:
|
| | | for index, info in enumerate(otherEventRateList):
|