Exemple #1
0
        public EffectDescriptionBuilder()
        {
            effect = new EffectDescription();

            EffectAdvancement effectAdvancement = new EffectAdvancement();

            effectAdvancement.SetIncrementMultiplier(1);
            effect.SetEffectAdvancement(effectAdvancement);

            var particleParams = new EffectParticleParameters();

            particleParams.Copy(DatabaseHelper.SpellDefinitions.MagicWeapon.EffectDescription.EffectParticleParameters);

            effect.SetEffectParticleParameters(particleParams);
        }
Exemple #2
0
        public EffectDescriptionBuilder SetEffectAdvancement(RuleDefinitions.EffectIncrementMethod effectIncrementMethod, int incrementMultiplier, int additionalTargetsPerIncrement,
                                                             int additionalDicePerIncrement, int additionalSpellLevelPerIncrement, int additionalSummonsPerIncrement, int additionalHPPerIncrement, int additionalTempHPPerIncrement,
                                                             int additionalTargetCellsPerIncrement, int additionalItemBonus, RuleDefinitions.AdvancementDuration alteredDuration)
        {
            EffectAdvancement effectAdvancement = new EffectAdvancement();

            effectAdvancement.SetEffectIncrementMethod(effectIncrementMethod);
            effectAdvancement.SetIncrementMultiplier(incrementMultiplier);
            effectAdvancement.SetAdditionalTargetsPerIncrement(additionalTargetsPerIncrement);
            effectAdvancement.SetAdditionalDicePerIncrement(additionalDicePerIncrement);
            effectAdvancement.SetAdditionalSpellLevelPerIncrement(additionalSpellLevelPerIncrement);
            effectAdvancement.SetAdditionalSummonsPerIncrement(additionalSummonsPerIncrement);
            effectAdvancement.SetAdditionalHPPerIncrement(additionalHPPerIncrement);
            effectAdvancement.SetAdditionalTempHPPerIncrement(additionalTempHPPerIncrement);
            effectAdvancement.SetAdditionalTargetCellsPerIncrement(additionalTargetCellsPerIncrement);
            effectAdvancement.SetAdditionalItemBonus(additionalItemBonus);
            effectAdvancement.SetAlteredDuration(alteredDuration);
            effect.SetEffectAdvancement(effectAdvancement);
            return(this);
        }