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); } }
private static void _lcs_Hitchances(NPCProto proto, NPCTalent talent, int oldValue, int newValue) { CharStat cs = CharStat.HitChances + (int)talent; log_CharacterStat(proto, cs, newValue); }
private static void _lcs_TalentSkill(NPCProto proto, NPCTalent talent, int oldValue, int newValue) { CharStat cs = CharStat.TalentSkillStart + (int)talent; log_CharacterStat(proto, cs, newValue); }