Пример #1
0
    public static string GetSkillsText(CardParam _cp, ShowType _showType, bool _newLine, int _skillNum = -1)
    {
        List <string> skillsText   = _cp.SkillTexts;
        List <string> skillsScript = _cp.SkillScript;
        List <int>    Effects      = _cp.Effect;
        List <int>    EffectsValue = _cp.EffectValue;
        int           lv           = _cp.LV;
        string        SkillStr     = "";

        for (int i = 0; i < Effects.Count; i++)
        {
            string text = SystemScript.GetEffectText(Effects[i], EffectsValue[i], _showType, _newLine, i == _skillNum);
            if (text != null)
            {
                if (SkillStr != "")               //かいぎょう
                {
                    SkillStr += "\n";
                }
                SkillStr += text;                //追加
            }
        }

        for (int i = 0; i < skillsText.Count; i++)
        {
            string text = SystemScript.GetSkillText(skillsText[i], lv, _showType, _newLine, i == _skillNum);
            if (text != null)
            {
                if (SkillStr != "")               //かいぎょう
                {
                    SkillStr += "\n";
                }
                SkillStr += text;                //追加
                if (skillsScript [i] == "")
                {
                    SkillStr += "<color=#ff0000>(未実装)</color>";
                }
            }
        }
        return(SkillStr);
    }