Example #1
0
        public string ToScript()
        {
            Dictionary <string, string> Builder = new Dictionary <string, string>();

            Builder.Add("Code", Code.ToString());
            Builder.Add("Name", Name.ToString());
            Builder.Add("Freshness", Freshness.ToString());
            StringBuilder buffstring = new StringBuilder();

            for (int i = 0; i < Buffs.Count; i++)
            {
                buffstring.Append(Buffs[i]);
                if (i != Buffs.Count - 1)
                {
                    buffstring.Append("%%");
                }
            }
            Builder.Add("Buff", buffstring.ToString());
            Builder.Add("End", String.Empty);

            return(Scripter.BuildLine(Builder));
        }