public StatInstance(StatInstance obj) { stats.Clear(); foreach (StatType type in obj.stats.Keys) { StatInternal stat = obj.stats[type]; stats.Add(type, new StatInternal(stat.Type, stat.Value)); } }
public StatInstance GetStatInstance() { baseStats.UseDefaults(); StatInstance returnStats = new StatInstance(baseStats); foreach (StatModifier modifier in GetModifiers()) { returnStats.ApplyMod(modifier); } return(returnStats); }
public void SetStats(Stats stats) { modifiers = stats.modifiers; baseStats = stats.baseStats; mutableStats = stats.mutableStats; }