Example #1
0
 // Kitchen Sink Constructor
 public Spell(
     CharacterCalculationsWarlock mommy,
     MagicSchool magicSchool,
     SpellTree spellTree,
     float percentBaseMana,
     float baseCastTime,
     float cooldown,
     float recastPeriod,
     bool canMiss,
     float avgDirectDamage,
     float directCoefficient,
     float addedDirectMultiplier,
     float baseTickDamage,
     float numTicks,
     float tickCoefficient,
     float addedTickMultiplier,
     bool canTickCrit,
     float bonusCritChance,
     float bonusCritMultiplier)
 {
     Mommy = mommy;
     MagicSchool = magicSchool;
     MySpellTree = spellTree;
     ManaCost = mommy.BaseMana * percentBaseMana;
     BaseCastTime = baseCastTime;
     BaseDamage = avgDirectDamage;
     Cooldown = cooldown;
     RecastPeriod = recastPeriod;
     CanMiss = canMiss;
     DirectCoefficient = directCoefficient;
     BaseTickDamage = baseTickDamage;
     NumTicks = numTicks;
     TickCoefficient = tickCoefficient;
     CanTickCrit = canTickCrit;
     SimulatedStats = new Dictionary<string, SimulatedStat>();
     WarlockTalents talents = mommy.Talents;
     SpellModifiers = new SpellModifiers();
     SpellModifiers.AddMultiplicativeDirectMultiplier(addedDirectMultiplier);
     SpellModifiers.AddMultiplicativeTickMultiplier(addedTickMultiplier);
     SpellModifiers.AddCritChance(bonusCritChance);
     SpellModifiers.AddCritBonusMultiplier(bonusCritMultiplier);
 }
Example #2
0
 //DoT Constructor
 public Spell(
     CharacterCalculationsWarlock mommy,
     MagicSchool magicSchool,
     SpellTree spellTree,
     float percentBaseMana,
     float baseCastTime,
     float cooldown,
     float recastPeriod,
     float baseTickDamage,
     float numTicks,
     float tickCoefficient,
     float addedTickMultiplier,
     bool canTickCrit,
     float bonusCritChance,
     float bonusCritMultiplier)
     : this(
         mommy,
         magicSchool,
         spellTree,
         percentBaseMana,
         baseCastTime,
         cooldown,
         recastPeriod,
         true,
         0f, // direct avg damage
         0f, // direct coefficient
         0f, // addedDirectMultiplier
         baseTickDamage,
         numTicks,
         tickCoefficient,
         addedTickMultiplier,
         canTickCrit,
         bonusCritChance,
         bonusCritMultiplier) { }
Example #3
0
 //Non-Damage Constructor
 public Spell(
     CharacterCalculationsWarlock mommy,
     MagicSchool magicSchool,
     SpellTree spellTree,
     float percentBaseMana,
     float baseCastTime,
     float cooldown,
     float recastPeriod,
     bool canMiss)
     : this(
         mommy,
         magicSchool,
         spellTree,
         percentBaseMana,
         baseCastTime,
         cooldown,
         recastPeriod,
         canMiss,
         0f, // avgDirectDamage,
         0f, // directCoefficient,
         0f, // addedDirectMultiplier,
         0f, // baseTickDamage,
         0f, // numTicks,
         0f, // tickCoefficient,
         0f, // addedTickMultiplier,
         false, // canTickCrit,
         0f, // bonusCritChance,
         0f) { } // bonusCritMultiplier,
Example #4
0
 protected MinionSpell(String name, Stats stats, Character character, IEnumerable<SpellRank> spellRanks, Color color, MagicSchool magicSchool, SpellTree spellTree)
     : base(name, stats, character, spellRanks, color, magicSchool, spellTree)
 {
     
 }
Example #5
0
 protected MinionSpell(String name, int rank, int level, float baseMinDamage, float baseMaxDamage, float baseTickDamage, float baseCost, Stats stats, Character character, CalculationOptionsWarlock options, Color color, MagicSchool magicSchool, SpellTree spellTree)
     : base(name, rank, level, baseMinDamage, baseMaxDamage, baseTickDamage, baseCost, stats, character, options, color, magicSchool, spellTree)
 {
     
 }
Example #6
0
 protected MinionSpell(String name, Stats stats, Character character, IEnumerable <SpellRank> spellRanks, Color color, MagicSchool magicSchool, SpellTree spellTree)
     : base(name, stats, character, spellRanks, color, magicSchool, spellTree)
 {
 }