public void setRewardForAllParms(SpellDef def) { foreach (KeyValuePair <Choice, CongregationParms> kvp in this.parms) { kvp.Value.reward = def; } }
private void DrawButtons() { Rect rect; rect = new Rect(17f, 25f, 120f, 25f); if (Widgets.ButtonText(rect, "Discover", true, false, true)) { CultKnowledge.DiscoverRandomDeity(); } rect = new Rect(17f, 50f, 120f, 25f); if (Widgets.ButtonText(rect, "Research test", true, false, true)) { Find.ResearchManager.ResearchPerformed(100f / 0.00825f, null); //CultKnowledge.ExposeToHorror(); //Find.ResearchManager.FinishProject(CultsDefOf.Cults_ForbiddenSculptures, true, null); } rect = new Rect(17f, 75f, 120f, 25f); if (Widgets.ButtonText(rect, " Cast spell ", true, false, true)) { SpellDef def = DefDatabase <SpellDef> .GetNamed(CultKnowledge.selectedDeity.spells[1].defName); def.CastSpell(); } }