public static void AltersForIdeology(RitualObligation obligation, Map map, ref IEnumerable <TargetInfo> __result)
 {
     if (!ModLister.CheckIdeology("Altar target"))
     {
         return;
     }
     if (map?.listerBuildings?.AllBuildingsColonistOfClass <CultOfCthulhu.Building_SacrificialAltar>()?.FirstOrDefault() == null)
     {
         return;
     }
     foreach (var t in map.listerBuildings.AllBuildingsColonistOfClass <CultOfCthulhu.Building_SacrificialAltar>().ToList())
     {
         __result = __result.Concat(t);
     }
 }
Beispiel #2
0
 public BeginRitualProxy(string header, string ritualLabel, Precept_Ritual ritual, TargetInfo target, Map map, ActionCallback action, Pawn organizer, RitualObligation obligation, Func <Pawn, bool, bool, bool> filter = null, string confirmText = null, List <Pawn> requiredPawns = null, Dictionary <string, Pawn> forcedForRole = null, string ritualName = null, RitualOutcomeEffectDef outcome = null, List <string> extraInfoText = null, Pawn selectedPawn = null) : base(header, ritualLabel, ritual, target, map, action, organizer, obligation, filter, confirmText, requiredPawns, forcedForRole, ritualName, outcome, extraInfoText, selectedPawn)
 {
     soundClose = SoundDefOf.TabClose;
 }