예제 #1
0
        private void ApplyProficiency(CheckSituation sit)
        {
            if (sit.skillType == SkillType.NULL)
            {
                return;
            }

            SkillProficiency best = character.BestSkillProficiencyFromType(sit.skillType);

            if (best != null)
            {
                int chPro = character.ProficiencyModifier();
                int bonus = (int)Mathf.Floor(chPro * best.Ratio);
                sit.checkValue.Modify(new Modifier(bonus, PresentableSkillNameFromType(sit.skillType) + " proficiency"));
            }
        }