public static bool Hostile(this Pilot pilot) { if (Me.CorpID > 999999 && pilot.CorpID == Me.CorpID) { return(false); } if (Me.AllianceID > 0 && pilot.AllianceID == Me.AllianceID) { return(false); } if (pilot.DerivedStanding() > 0.0) { return(false); } return(true); }
PilotColors PilotColor(Pilot pilot) { if (pilot.CorpID == Me.CorpID) { return(PilotColors.Blue); } if (pilot.AllianceID == Me.AllianceID) { return(PilotColors.Blue); } double relationship = pilot.DerivedStanding(); if (relationship > 0.0) { return(PilotColors.Blue); } if (relationship < 0.0) { return(PilotColors.Red); } return(PilotColors.Grey); }