Esempio n. 1
0
 public static bool IsPeacefulTo(this IMyFaction OurFaction, IMyFaction Faction, bool ConsiderPeaceRequests = false)
 {
     if (!ConsiderPeaceRequests)
     {
         return(MyAPIGateway.Session.Factions.GetRelationBetweenFactions
                    (OurFaction.FactionId, Faction.FactionId) != MyRelationsBetweenFactions.Enemies);
     }
     else
     {
         return(OurFaction.IsPeacefulTo(Faction) || OurFaction.HasPeaceRequestTo(Faction));
     }
 }