/// <summary> /// Check if the standing requirements for this agent are matched /// </summary> public static bool HasStanding(this Agent agent) { if (!Standing.Ready) { Standing.LoadStandings(); return(false); } if (agent.Level > 1 && Standing.NPCStanding(agent.FactionID, true) < -2.00) { return(false); } if (agent.Level == 1) { return(true); } if (agent.Level == 2 && (Standing.NPCStanding(agent.CorporationID, true) > 1.00 || Standing.NPCStanding(agent.FactionID, true) > 1.00)) { return(true); } if (agent.Level == 3 && (Standing.NPCStanding(agent.CorporationID, true) > 3.00 || Standing.NPCStanding(agent.FactionID, true) > 3.00)) { return(true); } if (agent.Level == 4 && (Standing.NPCStanding(agent.CorporationID, true) > 5.00 || Standing.NPCStanding(agent.FactionID, true) > 5.00)) { return(true); } if (agent.Level == 5 && (Standing.NPCStanding(agent.CorporationID, true) > 7.00 || Standing.NPCStanding(agent.FactionID, true) > 7.00)) { return(true); } return(false); }