コード例 #1
0
 public void addClassLevel(ClassLevel toBeAdded, Feat chosenFeat)
 {
     addClassLevelBase(toBeAdded);
     ownedFeats.Add(chosenFeat);
     form.refreshSheet();
 }
コード例 #2
0
 public static void prepareRace()
 {
     races = new List <Race>();
     races.Add(new Race("Human", new int[] { 0, 0, 0, 0, 0, 0 }, 48, 24));
     races[0].racialFeats.Add(new Feat("Human Racial Bonuses", "Grants the Human a permanent +1 to chosen attribute, as well as an additional feat at level 1.", null, null, 0, false, null, 0, true, false, false, false, false, Feat.getFeatList()));
     races[0].bonusSkills.Add(Skill.findSkills("Diplomacy"));
     races[0].bonusSkills.Add(Skill.findSkills("Gather Info"));
     //This will need to be extended out in the future, when I start to implement Feats and learn all the things that are needed. Also when I work out how to cleanly add that skill bonus.
     races.Add(new Race("Dwarf", new int[] { 0, 0, 2, 0, 0, -1 }, 54, 18));
     races[1].racialFeats.Add(new Feat("Dwarf Racial Bonuses", "Dwarves have a +4 racial bonus on checks to resist being bullrushed or tripped while they are standing on the ground. Dwarves have an innate 5(15) points of Earth Resistance.", null, null, 0, false, null, 0, false, false, false, false, false, null));
     races[1].bonusSkills.Add(Skill.findSkills("Appraise"));
     races[1].bonusSkills.Add(Skill.findSkills("Search"));
     races.Add(new Race("FireBorn", new int[] { 2, 0, 0, 0, 0, -1 }, 60, 18));
     races[2].racialFeats.Add(new Feat("Fireborn Racial Bonuses", "Fireborn have an innate 5 (15) points of Fire Resistance.", null, null, 0, false, null, 0, false, false, false, false, false, null));
     races[2].bonusSkills.Add(Skill.findSkills("Intimidate"));
     races[2].bonusSkills.Add(Skill.findSkills("Sense Motive"));
     //Add the Burning Hands spell when spells are added.
     races.Add(new Race("Frostborn", new int[] { 0, 0, -1, 0, 2, 0 }, 48, 30));
     races[3].racialFeats.Add(new Feat("Frostborn Racial Bonuses", "Frostborn have an innate 5 (15) points of Frost Resistance. Frostborn have a swim speed of 60 feet.", null, null, 0, false, null, 0, false, false, false, false, false, null));
     races[3].bonusSkills.Add(Skill.findSkills("Heal"));
     races[3].bonusSkills.Add(Skill.findSkills("Swim"));
     //Add the Sleep spell when spells are added.
     races.Add(new Race("Galeborn", new int[] { 0, 2, 0, 0, -1, 0 }, 54, 24));
     races[4].racialFeats.Add(new Feat("Galeborn Racial Bonuses", "Galeborn have an innate 5 (15) points of Shock Resistance. Galeborn have a fly speed of 15 feet.", null, null, 0, false, null, 0, false, false, false, false, false, null));
     races[4].bonusSkills.Add(Skill.findSkills("Move Silently"));
     races[4].bonusSkills.Add(Skill.findSkills("Sleight of Hand"));
     //Ponder if Featherfall is the best spell Galeborn could have. Add add it anyway when spells are added. Never address this question again in the future but wonder about it constantly.
     races.Add(new Race("High Elf", new int[] { 0, 0, -1, 2, 0, 0 }, 42, 36));
     races[5].racialFeats.Add(new Feat("High Elf Racial Bonuses", "High elves gain a +1 to attribute modifiers while casting Arcane spells. If the spell has an[Arcane] tag, high elves gain a +2 to attribute modifiers instead.", null, null, 0, false, null, 0, false, false, false, false, false, null));
     races[5].bonusSkills.Add(Skill.findSkills("Knowledge:Arcana"));
     races[5].bonusSkills.Add(Skill.findSkills("Use Magic Device"));
     races.Add(new Race("Night Elf", new int[] { 0, 2, -1, 0, 0, 0 }, 42, 30));
     races[6].racialFeats.Add(new Feat("Night Elf Racial Bonuses", "Night elves gain a +10 circumstance bonus to Hide checks while they're in the shadows, and at night. Night elves gain the Track feat.", null, null, 0, false, null, 0, false, false, false, false, false, null));
     races[6].bonusSkills.Add(Skill.findSkills("Knowledge:Nature"));
     races[6].bonusSkills.Add(Skill.findSkills("Survival"));
     //Put track here when you add it to the program.
 }