public static Character BuildTestWizard() { Character wizard = new Character(); wizard.kind = CreatureKinds.Humanoids; wizard.name = "Morkin"; wizard.raceClass = "Human Wizard"; wizard.alignment = "Chaotic Neutral"; wizard.baseArmorClass = 10; GenerateRandomAttributes(wizard); wizard.remainingHitDice = "1 d8"; wizard.level = 1; wizard.inspiration = 0; wizard.initiative = 2; wizard.baseSpeed = 30; wizard.hitPoints = 33; wizard.tempHitPoints = 0; wizard.maxHitPoints = 127; wizard.proficiencyBonus = 2; wizard.savingThrowProficiency = Ability.Intelligence | Ability.Charisma; wizard.proficientSkills = Skills.arcana | Skills.slightOfHand | Skills.deception; wizard.Equip(Weapon.buildShortSword()); wizard.Pack(Weapon.buildBlowgun()); wizard.Pack(Ammunition.buildBlowgunNeedlePack()); return(wizard); }
public static Character BuildTestWizard(string name = "") { Character wizard = new Character(); wizard.kind = CreatureKinds.Humanoid; if (string.IsNullOrEmpty(name)) { wizard.name = "Morkin"; } else { wizard.name = name; } wizard.race = "Human"; wizard.AddClass("Wizard", 1); wizard.alignmentStr = "Chaotic Neutral"; wizard.baseArmorClass = 10; GenerateRandomAttributes(wizard); wizard.remainingHitDice = "1 d8"; wizard.inspiration = ""; wizard.initiative = 2; wizard.baseWalkingSpeed = 30; wizard.HitPoints = 33; wizard.tempHitPoints = 0; wizard.maxHitPoints = 127; wizard.proficiencyBonus = 2; wizard.savingThrowProficiency = Ability.intelligence | Ability.charisma; wizard.proficientSkills = Skills.arcana | Skills.sleightOfHand | Skills.deception; wizard.Equip(Weapon.buildShortSword()); wizard.Pack(Weapon.buildBlowgun()); wizard.Pack(Ammunition.buildBlowgunNeedlePack()); return(wizard); }