Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public void AddFactor(ResearchFactor factor)
 {
     researchFactors.Add(factor);
 }