Example #1
0
        public override Effect Initialize(EffectParameters p, Game game, bool evaluateParameters = true)
        {
            base.Initialize(p, game);

            _effect.Initialize(p, game, evaluateParameters);

            return(this);
        }
Example #2
0
        public override Effect Initialize(EffectParameters p, Game game, bool evaluateParameters = true)
        {
            base.Initialize(p, game);

            var toughnessReduction = 0;

            foreach (var effect in ChildEffects)
            {
                effect.Initialize(p, game, evaluateParameters);

                foreach (var effectTag in effect.GetTags())
                {
                    SetTags(effectTag);
                }

                toughnessReduction = toughnessReduction + effect.ToughnessReduction.GetValue(X);
            }

            ToughnessReduction = toughnessReduction;

            return(this);
        }
Example #3
0
        public override Effect Initialize(EffectParameters p, Game game, bool evaluateParameters = true)
        {
            base.Initialize(p, game);

              var toughnessReduction = 0;

              foreach (var effect in _childEffects)
              {
            effect.Initialize(p, game, evaluateParameters);

            foreach (var effectTag in effect.GetTags())
            {
              SetTags(effectTag);
            }

            toughnessReduction = toughnessReduction + effect.ToughnessReduction.GetValue(X);
              }

              ToughnessReduction = toughnessReduction;

              return this;
        }