示例#1
0
    public String BtlGetAttrName(Int32 pAttr)
    {
        Int32 id = 0;

        while ((pAttr >>= 1) != 0)
        {
            ++id;
        }

        return(FF9TextTool.BattleFollowText(id));
    }
示例#2
0
    public void SetBattleFollowMessage(Int32 pMesNo, params Object[] args)
    {
        String str1 = FF9TextTool.BattleFollowText(pMesNo + 7);

        if (String.IsNullOrEmpty(str1))
        {
            return;
        }

        Byte   priority = (Byte)Char.GetNumericValue(str1[0]);
        String str2     = str1.Substring(1);

        if (args.Length > 0)
        {
            String str3 = args[0].ToString();
            Int32  result;
            str2 = !Int32.TryParse(str3, out result) ? str2.Replace("%", str3) : str2.Replace("&", str3);
        }

        SetBattleMessage(str2, priority);
    }