public Talent Learn(TalentId id, int rank) { var entry = TalentMgr.GetEntry(id); if (entry != null) { return(Learn(entry, rank)); } return(null); }
/// <summary> /// Whether the given talent can be learned by this Character /// </summary> public bool CanLearn(TalentId id, int rank) { TalentEntry entry = TalentMgr.GetEntry(id); if (entry != null) { return(CanLearn(entry, rank)); } return(false); }
public Talent Learn(TalentId id, int rank) { TalentEntry entry = TalentMgr.GetEntry(id); if (entry != null) { return(this.Learn(entry, rank)); } return((Talent)null); }
/// <summary> /// Whether the given talent can be learned by this Character /// </summary> public bool CanLearn(TalentId id, int rank) { var talent = TalentMgr.GetEntry(id); return(talent != null && CanLearn(talent, rank)); }
/// <summary> /// Sets the given talent to the given rank without any checks. /// Make sure that the given TalentId is valid for this Character's class. /// </summary> public Talent Set(TalentId id, int rank) { var entry = TalentMgr.GetEntry(id); return(Set(entry, rank)); }
/// <summary> /// Sets the given talent to the given rank without any checks. /// Make sure that the given TalentId is valid for this Character's class. /// </summary> public Talent Set(TalentId id, int rank) { return(Set(TalentMgr.GetEntry(id), rank)); }