Ejemplo n.º 1
0
 /// <summary>
 /// 添加一条统计信息
 /// </summary>
 public void AddRecord(SkadaRecord record)
 {
     recordList.Add(record);
     //说明造成的是伤害
     if (record.Value <= 0)
     {
         SafeGet(record.Source).Damage    += record.Value;
         SafeGet(record.Accept).BeDamaged += record.Value;
     }
     else
     {
         SafeGet(record.Source).Heal   += record.Value;
         SafeGet(record.Accept).BeHeal += record.Value;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 添加一条统计信息
        /// </summary>
        public void AddRecord(SkadaRecord record)
        {
            record.Accept.BehitRecord = record;
            record.Accept.PropChanged();

            recordList.Add(record);
            //说明造成的是伤害
            if (record.Value <= 0)
            {
                GetData(record.Source).Damage    -= record.Value;
                GetData(record.Accept).BeDamaged -= record.Value;
            }
            else
            {
                GetData(record.Source).Heal   += record.Value;
                GetData(record.Accept).BeHeal += record.Value;
            }
        }