local UIMiniMapMain = require "View/MiniMap/UIMiniMapMain" local UIMiniMapDragonArtery = UIViewClass(UIMiniMapMain) local DRAGON_MAP_POINT_EFFECT = ConstAssetPathConfig.DRAGON_MAP_POINT_EFFECT function UIMiniMapDragonArtery:OnOpened() self.updateInterval = 0.1 --提高龙脉战刷新频率 end --龙脉小地图 function UIMiniMapDragonArtery:GetMapShowType(entity, myCountryId) if entity == BattleDataGetter.GetDragonArteryEntity() then return CTL.MiniMap.MiniMapPointType.DragonArteryTotem, DRAGON_MAP_POINT_EFFECT else if entity:IsHero() and entity:IsAlive() then local countryId = BattleDataGetter.GetEntityCountryInfo(entity) if myCountryId == countryId then -- 如果是同国家 return CTL.MiniMap.MiniMapPointType.GreenNormal else --不显示敌对阵营信息 return nil end end end return UIMiniMapMain.GetMapShowType(self, entity) end function UIMiniMapDragonArtery:GetRotateAngle(entity) local myEntity = entity local myCar = BattleDataGetter.GetCurEntityDriveEntity() if myCar then myEntity = myCar end return UIMiniMapMain.GetRotateAngle(self, myEntity) end return UIMiniMapDragonArtery