| | |
| | | return
|
| | | if curState == state:
|
| | | return True
|
| | | |
| | | ipyData = IpyGameDataPY.GetIpyGameData('FairyDomain', fdeventID)
|
| | | if not ipyData:
|
| | | return
|
| | | if state == FDEventState_Visiting:
|
| | | if curState != FDEventState_CanVisit:
|
| | | GameWorld.DebugLog('缥缈仙域事件状态设置错误,fdeventID=%s, state=%s, curState=%s' % (fdeventID, state, curState))
|
| | | return
|
| | | ipyData = IpyGameDataPY.GetIpyGameData('FairyDomain', fdeventID)
|
| | | if not ipyData:
|
| | | return
|
| | | |
| | | costEnergy = ipyData.GetCostEnergy()
|
| | | curEnergy = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainEnergy)
|
| | | if curEnergy < costEnergy:
|