コード例 #1
0
 public void setDeityForAllParms(CosmicEntityDef def)
 {
     foreach (KeyValuePair <Choice, CongregationParms> kvp in this.parms)
     {
         kvp.Value.deity = def;
     }
 }
コード例 #2
0
        /*
         * 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);
                }
            }
        }
コード例 #3
0
 public static CosmicEntity getDeityFromDef(CosmicEntityDef def)
 {
     for (int i = 0; i < deities.Count; i++)
     {
         if (deities[i].def == def)
         {
             return(deities[i]);
         }
     }
     return(null);
 }