public AllSpells(string classStr) { Stat = "Cha"; switch (classStr) { case "Cleric": Cleric.Add(0, ClericSpells.Cantrips); Cleric.Add(1, ClericSpells.FirstLvls); Cleric.Add(2, ClericSpells.SecondLvls); Cleric.Add(3, ClericSpells.ThirdLvls); Cleric.Add(4, ClericSpells.FourthLvls); Cleric.Add(5, ClericSpells.FifthLvls); Cleric.Add(6, ClericSpells.SixthLvls); Cleric.Add(7, ClericSpells.SeventhLvls); Cleric.Add(8, ClericSpells.EigthLvls); Cleric.Add(9, ClericSpells.NinthLvls); break; case "Sorcerer": Sorcerer.Add(0, SorcererSpells.Cantrips); Sorcerer.Add(1, SorcererSpells.FirstLvls); Sorcerer.Add(2, SorcererSpells.SecondLvls); Sorcerer.Add(3, SorcererSpells.ThirdLvls); Sorcerer.Add(4, SorcererSpells.FourthLvls); Sorcerer.Add(5, SorcererSpells.FifthLvls); Sorcerer.Add(6, SorcererSpells.SixthLvls); Sorcerer.Add(7, SorcererSpells.SeventhLvls); Sorcerer.Add(8, SorcererSpells.EigthLvls); Sorcerer.Add(9, SorcererSpells.NinthLvls); break; } }
//for Sorceror only ^^ public AllSpells(Character character) { Lvl = character.Lvl; string classStr = character.ChosenClass; string archetype = character.Archetype; if (classStr == "Artificer" || classStr == "Fighter" || classStr == "Rogue" || classStr == "Wizard") { Stat = "Int"; } else if (classStr == "Cleric" || classStr == "Druid" || classStr == "Ranger") { Stat = "Wis"; } else if (classStr == "Bard" || classStr == "Paladin" || classStr == "Sorcerer" || classStr == "Swordmage" || classStr == "Warlock") { Stat = "Cha"; } if (classStr == "Psion") { switch (archetype) { case "Clairsentience(Seer)": Stat = "Wis"; break; case "Metacreativity(Shaper)": Stat = "Int"; break; case "Psychokinesis(Savant)": Stat = "Str"; break; case "Psychometabolism(Egoist)": Stat = "Con"; break; case "Psychoportation(Nomad)": Stat = "Dex"; break; case "Telepathy(Telepath)": Stat = "Cha"; break; } } switch (classStr) { case "Artificer": Artificer.Add(0, ArtificerSpells.Cantrips); Artificer.Add(1, ArtificerSpells.FirstLvls); Artificer.Add(2, ArtificerSpells.SecondLvls); Artificer.Add(3, ArtificerSpells.ThirdLvls); Artificer.Add(4, ArtificerSpells.FourthLvls); Artificer.Add(5, ArtificerSpells.FifthLvls); break; case "Bard": Bard.Add(0, BardSpells.Cantrips); Bard.Add(1, BardSpells.FirstLvls); Bard.Add(2, BardSpells.SecondLvls); Bard.Add(3, BardSpells.ThirdLvls); Bard.Add(4, BardSpells.FourthLvls); Bard.Add(5, BardSpells.FifthLvls); Bard.Add(6, BardSpells.SixthLvls); Bard.Add(7, BardSpells.SeventhLvls); Bard.Add(8, BardSpells.EigthLvls); Bard.Add(9, BardSpells.NinthLvls); break; case "Cleric": Cleric.Add(0, ClericSpells.Cantrips); Cleric.Add(1, ClericSpells.FirstLvls); Cleric.Add(2, ClericSpells.SecondLvls); Cleric.Add(3, ClericSpells.ThirdLvls); Cleric.Add(4, ClericSpells.FourthLvls); Cleric.Add(5, ClericSpells.FifthLvls); Cleric.Add(6, ClericSpells.SixthLvls); Cleric.Add(7, ClericSpells.SeventhLvls); Cleric.Add(8, ClericSpells.EigthLvls); Cleric.Add(9, ClericSpells.NinthLvls); break; case "Druid": Druid.Add(0, DruidSpells.Cantrips); Druid.Add(1, DruidSpells.FirstLvls); Druid.Add(2, DruidSpells.SecondLvls); Druid.Add(3, DruidSpells.ThirdLvls); Druid.Add(4, DruidSpells.FourthLvls); Druid.Add(5, DruidSpells.FifthLvls); Druid.Add(6, DruidSpells.SixthLvls); Druid.Add(7, DruidSpells.SeventhLvls); Druid.Add(8, DruidSpells.EigthLvls); Druid.Add(9, DruidSpells.NinthLvls); break; case "Fighter": Fighter.Add(0, FighterSpells.Cantrips); Fighter.Add(1, FighterSpells.FirstLvls); Fighter.Add(2, FighterSpells.SecondLvls); Fighter.Add(3, FighterSpells.ThirdLvls); Fighter.Add(4, FighterSpells.FourthLvls); Wizard.Add(0, WizardSpells.Cantrips); Wizard.Add(1, WizardSpells.FirstLvls); Wizard.Add(2, WizardSpells.SecondLvls); Wizard.Add(3, WizardSpells.ThirdLvls); Wizard.Add(4, WizardSpells.FourthLvls); break; case "Paladin": Paladin.Add(1, PaladinSpells.FirstLvls); Paladin.Add(2, PaladinSpells.SecondLvls); Paladin.Add(3, PaladinSpells.ThirdLvls); Paladin.Add(4, PaladinSpells.FourthLvls); Paladin.Add(5, PaladinSpells.FifthLvls); break; case "Ranger": Ranger.Add(1, RangerSpells.FirstLvls); Ranger.Add(2, RangerSpells.SecondLvls); Ranger.Add(3, RangerSpells.ThirdLvls); Ranger.Add(4, RangerSpells.FourthLvls); Ranger.Add(5, RangerSpells.FifthLvls); break; case "Rogue": Rogue.Add(0, RogueSpells.Cantrips); Rogue.Add(1, RogueSpells.FirstLvls); Rogue.Add(2, RogueSpells.SecondLvls); Rogue.Add(3, RogueSpells.ThirdLvls); Rogue.Add(4, RogueSpells.FourthLvls); Wizard.Add(0, WizardSpells.Cantrips); Wizard.Add(1, WizardSpells.FirstLvls); Wizard.Add(2, WizardSpells.SecondLvls); Wizard.Add(3, WizardSpells.ThirdLvls); Wizard.Add(4, WizardSpells.FourthLvls); break; case "Psion": Psion.Add(0, PsionSpells.Cantrips); Psion.Add(1, PsionSpells.FirstLvls); Psion.Add(2, PsionSpells.SecondLvls); Psion.Add(3, PsionSpells.ThirdLvls); Psion.Add(4, PsionSpells.FourthLvls); Psion.Add(5, PsionSpells.FifthLvls); Psion.Add(6, PsionSpells.SixthLvls); Psion.Add(7, PsionSpells.SeventhLvls); Psion.Add(8, PsionSpells.EigthLvls); Psion.Add(9, PsionSpells.NinthLvls); break; case "Swordmage": Swordmage.Add(0, SwordmageSpells.Cantrips); Swordmage.Add(1, SwordmageSpells.FirstLvls); Swordmage.Add(2, SwordmageSpells.SecondLvls); Swordmage.Add(3, SwordmageSpells.ThirdLvls); Swordmage.Add(4, SwordmageSpells.FourthLvls); Swordmage.Add(5, SwordmageSpells.FifthLvls); break; case "Warlock": Warlock.Add(0, WarlockSpells.Cantrips); Warlock.Add(1, WarlockSpells.FirstLvls); Warlock.Add(2, WarlockSpells.SecondLvls); Warlock.Add(3, WarlockSpells.ThirdLvls); Warlock.Add(4, WarlockSpells.FourthLvls); Warlock.Add(5, WarlockSpells.FifthLvls); Warlock.Add(6, WarlockSpells.SixthLvls); Warlock.Add(7, WarlockSpells.SeventhLvls); Warlock.Add(8, WarlockSpells.EigthLvls); Warlock.Add(9, WarlockSpells.NinthLvls); break; case "Wizard": Wizard.Add(0, WizardSpells.Cantrips); Wizard.Add(1, WizardSpells.FirstLvls); Wizard.Add(2, WizardSpells.SecondLvls); Wizard.Add(3, WizardSpells.ThirdLvls); Wizard.Add(4, WizardSpells.FourthLvls); Wizard.Add(5, WizardSpells.FifthLvls); Wizard.Add(6, WizardSpells.SixthLvls); Wizard.Add(7, WizardSpells.SeventhLvls); Wizard.Add(8, WizardSpells.EigthLvls); Wizard.Add(9, WizardSpells.NinthLvls); break; } }