protected override void Load(BinaryReader BR) { _BarrierType = (BarrierTypes)BR.ReadByte(); _ENCost = BR.ReadString(); _NumberType = (Operators.NumberTypes)BR.ReadByte(); _DamageReduction = BR.ReadString(); _BreakingDamage = BR.ReadString(); int BarrierEffectEffectiveAttacksCount = BR.ReadInt32(); for (int A = BarrierEffectEffectiveAttacksCount - 1; A >= 0; --A) { ListEffectiveAttack.Add(BR.ReadString()); } int BarrierEffectBreakingAttacksCount = BR.ReadInt32(); for (int A = BarrierEffectBreakingAttacksCount - 1; A >= 0; --A) { ListBreakingAttack.Add(BR.ReadString()); } int BarrierEffectBreakingSkillsCount = BR.ReadInt32(); for (int A = BarrierEffectBreakingSkillsCount - 1; A >= 0; --A) { ListBreakingSkill.Add(BR.ReadString()); } }
protected override void DoCopyMembers(BaseEffect Copy) { BarrierEffect NewEffect = (BarrierEffect)Copy; _BarrierType = NewEffect._BarrierType; _ENCost = NewEffect._ENCost; _NumberType = NewEffect._NumberType; _DamageReduction = NewEffect._DamageReduction; _BreakingDamage = NewEffect._BreakingDamage; ListEffectiveAttack = new List <string>(NewEffect.ListEffectiveAttack.Count); for (int i = NewEffect.ListEffectiveAttack.Count - 1; i >= 0; --i) { ListEffectiveAttack.Add(NewEffect.ListEffectiveAttack[i]); } ListBreakingAttack = new List <string>(NewEffect.ListBreakingAttack.Count); for (int i = NewEffect.ListBreakingAttack.Count - 1; i >= 0; --i) { ListBreakingAttack.Add(NewEffect.ListBreakingAttack[i]); } ListBreakingSkill = new List <string>(NewEffect.ListBreakingSkill.Count); for (int i = NewEffect.ListBreakingSkill.Count - 1; i >= 0; --i) { ListBreakingSkill.Add(NewEffect.ListBreakingSkill[i]); } }
private List <string> ListBreakingSkill; //List of Skills the BarrierEffect is destroyed against. public BarrierEffect() : base(Name, true) { _BarrierType = BarrierTypes.Defend; _ENCost = "0"; _NumberType = Operators.NumberTypes.Absolute; _DamageReduction = "1000"; BreakingDamage = "1000"; ListEffectiveAttack = new List <string>(); ListBreakingAttack = new List <string>(); ListBreakingSkill = new List <string>(); }