public override Effect Initialize(EffectParameters p, Game game, bool evaluateParameters = true) { base.Initialize(p, game); _effect.Initialize(p, game, evaluateParameters); return(this); }
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); }
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; }