Exemple #1
0
        /// <summary>
        /// Creates a copy of the condition.
        /// </summary>
        /// <returns>Returns the copy.</returns>
        public OngoingCondition Copy()
        {
            OngoingCondition oc = new OngoingCondition();

            oc.Type = fType;

            oc.Data = fData;

            oc.DamageType = fDamageType;
            oc.Value      = fValue;

            oc.DefenceMod = fDefenceMod;
            oc.Defences   = new List <DefenceType>();
            foreach (DefenceType type in fDefences)
            {
                oc.fDefences.Add(type);
            }

            oc.Regeneration   = (fRegeneration != null) ? fRegeneration.Copy() : null;
            oc.DamageModifier = (fDamageModifier != null) ? fDamageModifier.Copy() : null;
            oc.Aura           = (fAura != null) ? fAura.Copy() : null;

            oc.Duration            = fDuration;
            oc.DurationCreatureID  = fDurationCreatureID;
            oc.DurationRound       = fDurationRound;
            oc.SavingThrowModifier = fSavingThrowModifier;

            return(oc);
        }
Exemple #2
0
 public AuraForm(Masterplan.Data.Aura aura)
 {
     this.InitializeComponent();
     this.fAura           = aura.Copy();
     this.NameBox.Text    = this.fAura.Name;
     this.KeywordBox.Text = this.fAura.Keywords;
     this.SizeBox.Value   = this.fAura.Radius;
     this.DetailsBox.Text = this.fAura.Description;
 }