static void createOppositionResearch() { var opposition_schools = library.Get <BlueprintFeatureSelection>("6c29030e9fea36949877c43a6f94ff31").AllFeatures; var icon = Helpers.GetIcon("68a23a419b330de45b4c3789649b5b41"); opposition_research = Helpers.CreateFeatureSelection("OppositionResearchWizardDiscoveryFeature", "Opposition Research", "Select one Wizard opposition school; preparing spells of this school now only requires one spell slot of the appropriate level instead of two.", "", icon, FeatureGroup.Feat, Helpers.PrerequisiteFeaturesFromList(opposition_schools), Helpers.PrerequisiteClassLevel(wizard, 9) ); opposition_research.AddComponent(Helpers.PrerequisiteNoFeature(opposition_research)); foreach (BlueprintFeature opposition_school in opposition_schools) { SpellSchool school = opposition_school.GetComponent <AddOppositionSchool>().School; var feature = Helpers.CreateFeature(school.ToString() + "OppositionResearchWizardDiscoveryFeature", "Opposition Research: " + school.ToString(), opposition_research.Description, "", opposition_school.Icon, FeatureGroup.WizardFeat, Helpers.Create <RemoveFeatureOnApply>(f => f.Feature = opposition_school), Helpers.Create <RemoveOppositionSchool>(s => s.school = school), Helpers.PrerequisiteFeature(opposition_school), Helpers.PrerequisiteClassLevel(wizard, 9) ); opposition_research.AllFeatures = opposition_research.AllFeatures.AddToArray(feature); } addWizardDiscovery(opposition_research); }
public override string ToString() { return(school.ToString() + ": " + effect.ToString() + " " + type.ToString()); }
private string AsSchoolLabel(SpellSchool school) { switch (school) { case SpellSchool.Abjuration: return "Abj"; case SpellSchool.Conjuration: return "Inv"; case SpellSchool.Divination: return "Div"; case SpellSchool.Enchantment: return "Enc"; case SpellSchool.Evocation: return "Évo"; case SpellSchool.Illusion: return "Ill"; case SpellSchool.Necromancy: return "Nec"; case SpellSchool.Transmutation: return "Tra"; case SpellSchool.Universal: return "Uni"; default: throw new NotSupportedException(school.ToString()); } }