public void setDeityForAllParms(CosmicEntityDef def) { foreach (KeyValuePair <Choice, CongregationParms> kvp in this.parms) { kvp.Value.deity = def; } }
/* * public static void ExposeToHorror() * { * Find.LetterStack.ReceiveLetter("Cult beginning", CultsDefOf.Cults_Letter_Success.description, CultsDefOf.Cults_Letter_Success, null); * isExposed = true; * } */ public static void GiveFavor(CosmicEntityDef def, float f) { for (int i = 0; i < deities.Count; i++) { if (deities[i].def == def) { deities[i].GiveFavor(f); } } }
public static CosmicEntity getDeityFromDef(CosmicEntityDef def) { for (int i = 0; i < deities.Count; i++) { if (deities[i].def == def) { return(deities[i]); } } return(null); }