本文整理匯總了C#中Server.Mobiles.PlayerMobile.AddSkillGainMod方法的典型用法代碼示例。如果您正苦於以下問題:C# PlayerMobile.AddSkillGainMod方法的具體用法?C# PlayerMobile.AddSkillGainMod怎麽用?C# PlayerMobile.AddSkillGainMod使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Server.Mobiles.PlayerMobile
的用法示例。
在下文中一共展示了PlayerMobile.AddSkillGainMod方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: AddSkillGainMod
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 ) );
}
}