// Token: 0x06001A10 RID: 6672 RVA: 0x000D4E70 File Offset: 0x000D3070 protected override int FindValidTargetPrepped(RaycastHit[] hits) { float num = (float)this.m_AIEntity.GetHijackerLevel(); this.m_CursorTex = Manager.GetInputControl().m_CursorTextureInteract; for (int i = 0; i < hits.Length; i++) { AIEntity component = base.GetTransform(hits[i]).GetComponent <AIEntity>(); if (ModdedAbilityHijack.PossibleHijackTarget(component, this.m_Owner)) { if (component.HijackLevelRequired > 0 && !component.IsReturningToBase() && !this.TargetIsResearcher(component)) { if ((float)component.HijackLevelRequired <= num && !this.m_AIEntity.IsJammed && !component.IsScrambled()) { return(i); } this.m_CursorTex = Manager.GetInputControl().m_CursorTextureInteractFailLevel; } else { this.m_CursorTex = Manager.GetInputControl().m_CursorTextureInteractFailLevel; } } } return(-1); }
// Token: 0x06001A15 RID: 6677 RVA: 0x000D4FF8 File Offset: 0x000D31F8 public override string GetTargetToolTip(GameObject target) { float num = (float)this.m_AIEntity.GetHijackerLevel(); AIEntity component = target.GetComponent <AIEntity>(); if (this.m_State == Ability.AbilityState.prepped && ModdedAbilityHijack.PossibleHijackTarget(component, this.m_Owner)) { int hijackLevelRequired = component.HijackLevelRequired; if ((hijackLevelRequired <= 0 || component.IsReturningToBase()) && this.TargetIsResearcher(component)) { return(TextManager.GetLoc("HIJACK_TOOLTIP_03", true, false)); } if ((float)hijackLevelRequired > num) { return(string.Format(TextManager.GetLoc("HIJACK_TOOLTIP_02", true, false), hijackLevelRequired)); } if (this.m_AIEntity.IsJammed) { return(TextManager.GetLoc("HIJACK_TOOLTIP_04", true, false)); } } return(string.Empty); }