Пример #1
0
 private static bool ShouldApplyFactorToRequest(StatRequest req, ResearchFactor factor)
 {
     return((factor.def.IsFinished || factor.def.IsRepeatableResearch()) && req.HasThing &&
            (req.Thing.def.race.Humanlike || factor.applyToNonHumanlike) &&
            (req.Thing.Faction == Faction.OfPlayer || factor.applyToNonColonistFaction));
 }
Пример #2
0
 public void AddFactor(ResearchFactor factor)
 {
     researchFactors.Add(factor);
 }