NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

incursionSiteContentPiece.py (2095B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\agencyNew\contentPieces\incursionSiteContentPiece.py
      2 from eve.client.script.ui.shared.agencyNew import agencyConst
      3 from eve.client.script.ui.shared.agencyNew.contentPieces.beaconSiteContentPiece import BeaconSiteContentPiece
      4 from eveuniverse.security import get_solar_system_security_class
      5 from grouprewards.data import get_group_reward_min_max_player_count_by_security_class
      6 from localization import GetByLabel
      7 from talecommon.const import INCURSION_INFO_BY_DUNGEONID
      8 
      9 class IncursionSiteContentPiece(BeaconSiteContentPiece):
     10     contentType = agencyConst.CONTENTTYPE_INCURSIONSITE
     11 
     12     def __init__(self, **kwargs):
     13         super(IncursionSiteContentPiece, self).__init__(**kwargs)
     14         self.incursionInfo = INCURSION_INFO_BY_DUNGEONID[self.GetDungeonID()]
     15         self.incursionSvc = sm.GetService('incursion')
     16         self.rewardData = None
     17         self.minPlayerCount = 0
     18         self.maxPlayerCount = 0
     19         self.maxRewardValue = 0
     20         self.SetIncursionData()
     21 
     22     def GetSiteDescription(self):
     23         return GetByLabel(self.incursionInfo.text)
     24 
     25     def GetForcesRequiredLabel(self):
     26         severity = GetByLabel(INCURSION_INFO_BY_DUNGEONID[self.GetDungeonID()].severity)
     27         return GetByLabel('UI/Agency/IncursionSiteSubtitle', severity=severity, minPlayers=self.GetMinimumPlayerCount(), maxPlayers=self.GetMaximumPlayerCount())
     28 
     29     def GetRewardID(self):
     30         return self.incursionInfo.rewardID
     31 
     32     def GetMinimumPlayerCount(self):
     33         return self.minPlayerCount
     34 
     35     def GetMaximumPlayerCount(self):
     36         return self.maxPlayerCount
     37 
     38     def GetMaxRewardValue(self):
     39         return self.maxRewardValue
     40 
     41     def SetIncursionData(self):
     42         securityClass = get_solar_system_security_class(self.solarSystemID)
     43         self.minPlayerCount, self.maxPlayerCount = get_group_reward_min_max_player_count_by_security_class(self.GetRewardID(), securityClass)
     44 
     45     def GetBracketIconTexturePath(self):
     46         return 'res:/UI/Texture/Shared/Brackets/beacon.png'