Exemple #1
0
    private string GetName(BuffDebuffEntry entry)
    {
        if (entry.SpellEnum != -1)
        {
            return(GameSystems.Spell.GetSpellName(entry.SpellEnum));
        }

        return(_names.GetValueOrDefault(entry.EffectType, null));
    }
Exemple #2
0
    public string GetIconPath(BuffDebuffEntry entry)
    {
        if (TexturePaths.TryGetValue(entry.EffectType, out var texturePath))
        {
            return(texturePath);
        }

        return(null);
    }
Exemple #3
0
    public string GetTooltip(BuffDebuffEntry entry)
    {
        var name = GetName(entry);

        if (entry.ExtraText != null)
        {
            return(name + " " + entry.ExtraText);
        }

        return(name);
    }
Exemple #4
0
    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);
    }