|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def __ResetFairyDomainCnt(resetType): | 
|---|
|  |  |  | curLimitEventIDList = [] | 
|---|
|  |  |  | delCnt = 0 | 
|---|
|  |  |  | universalRecMgr = GameWorld.GetUniversalRecMgr() | 
|---|
|  |  |  | recTypeListData = universalRecMgr.GetTypeList(RecType) | 
|---|
|  |  |  | for index in xrange(recTypeListData.Count()): | 
|---|
|  |  |  | recData = recTypeListData.At(index) | 
|---|
|  |  |  | dataIndex = index - delCnt | 
|---|
|  |  |  | recData = recTypeListData.At(dataIndex) | 
|---|
|  |  |  | if resetType == 1: | 
|---|
|  |  |  | recData.SetValue2(0) | 
|---|
|  |  |  | elif resetType == 2: | 
|---|
|  |  |  | 
|---|
|  |  |  | if not ipyData: | 
|---|
|  |  |  | continue | 
|---|
|  |  |  | hourCntLimit, dayCntLimit = ipyData.GetHourCntPubLimit(), ipyData.GetDayCntPubLimit() | 
|---|
|  |  |  | if not hourCntLimit and not dayCntLimit: | 
|---|
|  |  |  | recTypeListData.Delete(dataIndex) | 
|---|
|  |  |  | delCnt +=1 | 
|---|
|  |  |  | continue | 
|---|
|  |  |  | if hourAppearCnt >= hourCntLimit or dayAppearCnt >= dayCntLimit: | 
|---|
|  |  |  | curLimitEventIDList.append(curID) | 
|---|
|  |  |  | #同步地图 | 
|---|