Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)
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.If you want to check if something's actually neutral towards you, you'd useCode: javaif (fleet.getFaction().getRelationship("player") == 0f)