public void add_skill(Skill skill, string database_value = null, int ratio = 1) { if (configuration.Skills.Value.Any(item => item.Id.Id == skill.id)) return; configuration.PrepareForEdit(); configuration.Skills.Value.Add(new DialerSkill(skill.id) { Value = database_value ?? skill.DisplayName, Ratio = ratio }); configuration.Commit(); }
public void add_skill(string skill_id, int ratio = 1) { add_skill(Skill.find(skill_id)); }