if (fleet.getFaction().getRelationship("player") == 0f)
I believe it just checks if it's the 'neutral' faction. This faction doesn't actually exist, it's just used for things like the abandoned station that no faction owns.Do you happen to know if it evaluates membership based upon the faction id? I have unplesant suspicion that it does, but I don't know how to make a program to test it myself.
If you want to check if something's actually neutral towards you, you'd useCode: javaif (fleet.getFaction().getRelationship("player") == 0f)