public static int CastChance(this Character character, Spell spell) { ExceptionUtils.CheckArgumentNotNull(character); ExceptionUtils.CheckArgumentNotNull(spell); return CharacterEquations.ComputeCastChance(character, spell); }
public static int ComputeCastChance(Character character, Spell spell) { ExceptionUtils.CheckArgumentNotNull(character); ExceptionUtils.CheckArgumentNotNull(spell); return CompiledCastChance.Value(character, spell); }
private static SpellcastResultRange SpellcastResultRange(this Character character, Spell spell) { return SpellcastResultRangeCalculator.Calculate(character.CastChance(spell)); }
public static SpellcastResult SpellcastResult(this Character character, Spell spell, int roll) { return character.SpellcastResultRange(spell).GetResult(roll); }
public ShadowSpells(SpellCollege collegeToCopy) : base(collegeToCopy) { this.SpeakToShadowCreatures = this.FindTalent("Speak to Shadow Creatures"); this.NightVision = this.FindTalent("Night Vision"); this.DetectAura = this.FindTalent("Detect Aura"); this.Blending = this.FindSpell("Blending"); this.Light = this.FindSpell("Light"); this.Darkness = this.FindSpell("Darkness"); this.ShadowForm = this.FindSpell("Shadow Form"); this.WallOfStarlight = this.FindSpell("Wall of Starlight"); this.WallOfDarkness = this.FindSpell("Wall of Darkness"); this.Witchsight = this.FindSpell("Witchsight"); this.WalkingUnseen = this.FindSpell("Walking Unseen"); this.GeneralCounterspell = this.FindSpell("General Counterspell"); this.SpecialCounterspell = this.FindSpell("Special Counterspell"); this.Healing = this.FindSpell("Healing"); this.Starfire = this.FindSpell("Starfire"); this.ShadowWings = this.FindSpell("Shadow Wings"); this.ShadowSlipping = this.FindSpell("Shadow Slipping"); }
// TODO Rituals public MindSpells(SpellCollege collegeToCopy) : base(collegeToCopy) { this.ESP = this.FindSpell("Extrasensory Perception"); this.LimitedPrecognition = this.FindSpell("Limited Precognition"); this.MindCloak = this.FindSpell("Mind Cloak"); this.Empathy = this.FindSpell("Empathy"); this.Hypnotism = this.FindSpell("Hypnotism"); this.ControlAnimal = this.FindSpell("Control Animal"); this.ControlPerson = this.FindSpell("Control Person"); this.MentalAttack = this.FindSpell("Mental Attack"); this.Telepathy = this.FindSpell("Telepathy"); this.Phantasm = this.FindSpell("Phantasm"); this.MolecularDisruption = this.FindSpell("Molecular Disruption"); this.MolecularRearrangement = this.FindSpell("Molecular Rearrangement"); this.ForceShield = this.FindSpell("Force Shield"); this.MentalHealing = this.FindSpell("Healing"); this.Invisibility = this.FindSpell("Invisibility"); this.Telekinesis = this.FindSpell("Telekinesis"); this.TelekineticRage = this.FindSpell("Telekinetic Rage"); }
public CharacterSpellInfo(Spell spell, int rank, Character character) { _character = character; Spell = spell; Rank = rank; }