public void Add(SkillStats other) { Damage += other.Damage; Heal += other.Heal; Crits += other.Crits; Hits += other.Hits; }
public PlayerInfo(Player user, DamageTracker tracker) { Tracker = tracker; Player = user; SkillLog = new SynchronizedObservableCollection <SkillResult>(); Received = new SkillStats(tracker, SkillLog); Dealt = new SkillStats(tracker, SkillLog); }
public PlayerInfo(Player user, DamageTracker tracker) { Tracker = tracker; Player = user; SkillLog = CollectionHelper.Instance.CreateSyncedCollection<SkillResult>(); Received = new SkillStats(tracker, SkillLog); Dealt = new SkillStats(tracker, SkillLog); }
private SkillStats StatsChange(SkillResult message) { var result = new SkillStats(); if (message.Amount == 0) { return(result); } result.Damage = message.Damage; result.Heal = message.Heal; if (IsFromHealer(message) || (!IsFromHealer(message) && !message.IsHeal)) { result.Hits++; if (message.IsCritical) { result.Crits++; } } return(result); }
private SkillStats StatsChange(SkillResult message) { var result = new SkillStats(); if (message.Amount == 0) return result; result.Damage = message.Damage; result.Heal = message.Heal; if (IsFromHealer(message) || (!IsFromHealer(message) && !message.IsHeal)) { result.Hits++; if (message.IsCritical) result.Crits++; } return result; }