protected override void RunInt()
        {
            Slate slate = QuestGen.slate;
            Site  var   = QuestGen_Sites.GenerateSite(sitePartsParams.GetValue(slate), tile.GetValue(slate), faction.GetValue(slate), hiddenSitePartsPossible.GetValue(slate), singleSitePartRules.GetValue(slate));

            if (storeAs.GetValue(slate) != null)
            {
                QuestGen.slate.Set(storeAs.GetValue(slate), var);
            }
        }
Esempio n. 2
0
        protected override Site GenerateSite(Pawn asker, float threatPoints, int pawnCount, int population, int tile)
        {
            Site site = QuestGen_Sites.GenerateSite(new SitePartDefWithParams[1]
            {
                new SitePartDefWithParams(SitePartDefOf.BanditCamp, new SitePartParams
                {
                    threatPoints = GetSiteThreatPoints(threatPoints, population, pawnCount)
                })
            }, tile, Find.FactionManager.AllFactions.Where((Faction f) => f.def == siteFaction).FirstOrDefault());

            site.factionMustRemainHostile = true;
            site.desiredThreatPoints      = site.ActualThreatPoints;
            return(site);
        }