///<summary> Checks targetEO DestructionInfo on matching DestroyConditions, adds effect to targetEO's Effects list. </summary> private void CheckAndAdd(EnvironOutput effect, EnvironObject targetEO) { if (targetEO.destruction && effect.damageI) { targetEO.destruction.CheckDamageMatch(effect.damageI.ID); } targetEO.effects.Add(effect, targetEO, this); }
///<summary> Checks targetEO DestructionInfo on matching DestroyConditions, adds effect to targetEO's Effects list. </summary> private void CheckAndAdd(EnvironOutput effect, EnvironObject targetEO, DestroyCondition destructCondition) { if (targetEO.destruction) { targetEO.destruction.CheckTagsMatch(tags, destructCondition); if (effect.damageI) { targetEO.destruction.CheckDamageMatch(effect.damageI.ID); } } targetEO.effects.Add(effect, targetEO, this); }