Exemple #1
0
        public string AddDerivedStat(float percent, BaseStat targetStat, string id = "")
        {
            if (targetStat == null)
            {
                return("");
            }
            var mod = new DerivedStat(percent, targetStat, id);

            mod.UpdateValue(Value);
            _derivedStats.Add(mod);
            return(mod.Id);
        }