private string GetName(BuffDebuffEntry entry) { if (entry.SpellEnum != -1) { return(GameSystems.Spell.GetSpellName(entry.SpellEnum)); } return(_names.GetValueOrDefault(entry.EffectType, null)); }
public string GetIconPath(BuffDebuffEntry entry) { if (TexturePaths.TryGetValue(entry.EffectType, out var texturePath)) { return(texturePath); } return(null); }
public string GetTooltip(BuffDebuffEntry entry) { var name = GetName(entry); if (entry.ExtraText != null) { return(name + " " + entry.ExtraText); } return(name); }
public string GetHelpTopic(BuffDebuffEntry entry) { if (entry.SpellEnum != -1) { return(GameSystems.Spell.GetSpellHelpTopic(entry.SpellEnum)); } if (HelpTopics.TryGetValue(entry.EffectType, out var topicTag)) { return(topicTag); } return(null); }