Esempio n. 1
0
 public void AddBuffDebuffResistance(ConfigBuffDebuffResistance resistance)
 {
     if ((resistance != null) && (this._resistanceBuffDebuffs != null))
     {
         this._resistanceBuffDebuffs.Add(resistance);
     }
 }
Esempio n. 2
0
        public void AttachBuffDebuffResistance(BaseAbilityActor target, MoleMole.Config.AttachBuffDebuffResistance resistance)
        {
            this.CheckInit <Tuple <BaseAbilityActor, ConfigBuffDebuffResistance> >(ref this._attachedResistanceBuffDebuffs);
            ConfigBuffDebuffResistance resistance2 = new ConfigBuffDebuffResistance(resistance.ResistanceBuffDebuffs, resistance.ResistanceRatio, resistance.ResistanceDurationRatio);

            this._attachedResistanceBuffDebuffs.Add(Tuple.Create <BaseAbilityActor, ConfigBuffDebuffResistance>(target, resistance2));
            target.AddBuffDebuffResistance(resistance2);
        }