| | |
| | | fdEventIDList.append(appointIpyData.GetEventID())
|
| | | else:
|
| | | fdEventTypeDict = {}
|
| | | #先随机奇遇事件
|
| | | fortuitousEventRate = IpyGameDataPY.GetFuncCfg('ImmortalDomain')
|
| | | if GameWorld.CanHappen(fortuitousEventRate):
|
| | | fdEventTypeDict[FDEventType0] = 1
|
| | | #先随机独立事件
|
| | | singleEventRateDict = IpyGameDataPY.GetFuncCfg('ImmortalDomain')
|
| | | for eventType, rate in singleEventRateDict.items():
|
| | | if GameWorld.CanHappen(rate):
|
| | | fdEventTypeDict[eventType] = 1
|
| | |
|
| | | otherCnt = GameWorld.GetResultByRandomList(otherCntRateList, 0)
|
| | | if otherCnt:
|
| | |
| | | return True
|
| | |
|
| | |
|
| | | def NotifyVisitFairyDomainInfo(curPlayer, fdEventList=[], isAll=1):
|
| | | def NotifyVisitFairyDomainInfo(curPlayer, fdEventList=None, isAll=1):
|
| | | if not fdEventList:
|
| | | syncFDEventList = []
|
| | | otherCntRateList = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 2)
|