コード例 #1
0
ファイル: BaseCombatant.cs プロジェクト: w1r2p1/unitrpg
        public Stat GetStat(StatType type)
        {
            var stat = _character.Stats.FirstOrDefault(potentialStat => potentialStat.Type == type);

            if (stat == null)
            {
                stat = new Stat(0, StatType.ProjectileParryChance);
            }

            return(StatUtils.ApplyBuffs(stat, Buffs.Concat(_temporaryBuffs)));
        }
コード例 #2
0
ファイル: BaseCombatant.cs プロジェクト: w1r2p1/unitrpg
        public Attribute GetAttribute(Attribute.AttributeType type)
        {
            var baseAttr = _character.Attributes.First(attr => attr.Type == type);

            return(AttributeUtils.ApplyBuffs(baseAttr, Buffs.Concat(_temporaryBuffs)));
        }