Example #1
0
        private void AddSkillGainMod(PlayerMobile pm, bool message)
        {
            pm.AddSkillGainMod("VeteranSkillGainMod-Cloak", (SkillName)(-1), 0.05 * m_Level, TimeSpan.Zero);

            if (message)
            {
                string msg = String.Empty;
                switch (m_Level)
                {
                case 10:
                default: msg = "quite drastically"; break;

                case 8:
                case 9: msg = "drastically"; break;

                case 6:
                case 7: msg = "quite a bit"; break;

                case 4:
                case 5: msg = "somewhat"; break;

                case 2:
                case 3: msg = "meagerly"; break;

                case 1: msg = "a little bit"; break;
                }

                pm.SendMessage(String.Format("Your ability to learn new skills has increased {0}.", msg));
            }
        }