Пример #1
0
        public static void setFightTalent(this NPCProto proto, NPCTalent talent, int percent)
        {
            proto.setHitchances(talent, percent);

            if (percent >= 60)
            {
                proto.setTalentSkills(talent, 2);
            }
            else if (percent >= 30)
            {
                proto.setTalentSkills(talent, 1);
            }
            else
            {
                proto.setTalentSkills(talent, 0);
            }
        }
Пример #2
0
        private static void _lcs_Hitchances(NPCProto proto, NPCTalent talent, int oldValue, int newValue)
        {
            CharStat cs = CharStat.HitChances + (int)talent;

            log_CharacterStat(proto, cs, newValue);
        }
Пример #3
0
        private static void _lcs_TalentSkill(NPCProto proto, NPCTalent talent, int oldValue, int newValue)
        {
            CharStat cs = CharStat.TalentSkillStart + (int)talent;

            log_CharacterStat(proto, cs, newValue);
        }