You may want to shoot on NeutralNegative factions as well, or we may introduce more types, so this is bound to fail someday. Please introduce either FactionRelation::worseThan(type)/betterThan(type) or introduce FactionRelation::isHostile()/isFriendly() and use it