Exemple #1
0
        // Token: 0x0600000F RID: 15 RVA: 0x00002B40 File Offset: 0x00000D40
        internal static bool GetEffectsOutsider(Thing thing, Pawn pawn)
        {
            if (ProximityGet.GetProxOutsider(thing.def))
            {
                return(true);
            }

            if (thing.Faction == null || pawn.Faction == null)
            {
                return(false);
            }

            if (pawn.Faction.RelationKindWith(thing.Faction) == FactionRelationKind.Ally)
            {
                if (ProximityGet.GetProxAlly(thing.def))
                {
                    return(true);
                }
            }
            else if (pawn.Faction.RelationKindWith(thing.Faction) == FactionRelationKind.Neutral)
            {
                if (ProximityGet.GetProxNeutral(thing.def))
                {
                    return(true);
                }
            }
            else if (pawn.Faction.RelationKindWith(thing.Faction) == FactionRelationKind.Hostile &&
                     ProximityGet.GetProxHostile(thing.def))
            {
                return(true);
            }

            return(false);
        }