本文整理汇总了C#中SkillMod类的典型用法代码示例。如果您正苦于以下问题:C# SkillMod类的具体用法?C# SkillMod怎么用?C# SkillMod使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SkillMod类属于命名空间,在下文中一共展示了SkillMod类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.AnimalLore, true, 15 );
m_SkillMod1 = new DefaultSkillMod( SkillName.Herding, true, 15 );
m_SkillMod2 = new DefaultSkillMod( SkillName.Tracking, true, 15 );
m_StatMod0 = new StatMod( StatType.Int, "Arch Druid Cloak", 15, TimeSpan.Zero );
}
示例2: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.Swords, true, 5 );
m_SkillMod1 = new DefaultSkillMod( SkillName.Tactics, true, 5 );
m_SkillMod2 = new DefaultSkillMod( SkillName.Anatomy, true, 5 );
//m_StatMod0 = new StatMod( StatType.Int, "MagiCloak", 5, TimeSpan.Zero );
}
示例3: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.AnimalLore, true, 10 );
m_SkillMod1 = new DefaultSkillMod( SkillName.AnimalTaming, true, 10 );
m_SkillMod2 = new DefaultSkillMod( SkillName.Peacemaking, true, 10 );
m_StatMod0 = new StatMod( StatType.Dex, "DruidCloak", 15, TimeSpan.Zero );
}
示例4: OnAdded
public override void OnAdded( object parent )
{
base.OnAdded( parent );
if ( parent is Mobile )
{
Mobile from = parent as Mobile;
if ( m_SkillMod1 != null )
m_SkillMod1.Remove();
if (m_SkillMod2 != null )
m_SkillMod2.Remove();
int amount = 25;
if (from.SkillsCap < from.SkillsTotal + (amount * 10))
amount = (from.SkillsCap - from.SkillsTotal) / 10;
m_SkillMod1 = new DefaultSkillMod( m_Skill1, true, amount );
m_SkillMod1.ObeyCap = true;
from.AddSkillMod( m_SkillMod1 );
amount = 25;
if (from.SkillsCap < from.SkillsTotal + (amount * 10))
amount = (from.SkillsCap - from.SkillsTotal) / 10;
m_SkillMod2 = new DefaultSkillMod( m_Skill2, true, amount );
m_SkillMod2.ObeyCap = true;
from.AddSkillMod( m_SkillMod2 );
}
}
示例5: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.Hiding, true, 10 );
m_SkillMod1 = new DefaultSkillMod( SkillName.Stealth, true, 10 );
m_SkillMod2 = new DefaultSkillMod( SkillName.Healing, true, -10 );
m_StatMod0 = new StatMod( StatType.Dex, "ElvenCloak", 5, TimeSpan.Zero );
}
示例6: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.Necromancy, true, 20 );
m_SkillMod1 = new DefaultSkillMod( SkillName.SpiritSpeak, true, 20 );
m_SkillMod2 = new DefaultSkillMod( SkillName.MagicResist, true, 20 );
m_StatMod0 = new StatMod( StatType.Dex, "DruidCloak", 15, TimeSpan.Zero );
}
示例7: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.Magery, true, 20 );
m_SkillMod1 = new DefaultSkillMod( SkillName.EvalInt, true, 20 );
m_SkillMod2 = new DefaultSkillMod( SkillName.Meditation, true, 20 );
m_StatMod0 = new StatMod( StatType.Int, "MagiCloak", 20, TimeSpan.Zero );
}
示例8: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.SpiritSpeak, true, 5 );
m_SkillMod1 = new DefaultSkillMod( SkillName.EvalInt, true, 5 );
m_SkillMod2 = new DefaultSkillMod( SkillName.Necromancy, true, 5 );
m_StatMod0 = new StatMod( StatType.Int, "MagiCloak", 5, TimeSpan.Zero );
}
示例9: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.Peacemaking, true, 15 );
m_SkillMod1 = new DefaultSkillMod( SkillName.Swords, true, 15 );
m_SkillMod2 = new DefaultSkillMod( SkillName.Healing, true, 15 );
m_StatMod0 = new StatMod( StatType.Str, "CloakofSirKen", 15, TimeSpan.Zero );
}
示例10: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.Swords, true, 20 );
m_SkillMod1 = new DefaultSkillMod( SkillName.Parry, true, 20 );
m_SkillMod2 = new DefaultSkillMod( SkillName.MagicResist, true, 20 );
m_StatMod0 = new StatMod( StatType.Dex, "DruidCloak", 15, TimeSpan.Zero );
}
示例11: OnRemoved
public override void OnRemoved( object parent )
{
if( UseSkillMod && m_BSMod != null )
{
m_BSMod.Remove();
m_BSMod = null;
}
}
示例12: RemoveSkillMod
public void RemoveSkillMod()
{
m_SkillMod.Owner.SendLocalizedMessage( 1075541 ); //The scent of herbs gradually fades away...
m_SkillMod.Remove();
m_SkillMod = null;
m_Active = false;
}
示例13: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.Stealth, true, 20 );
m_SkillMod1 = new DefaultSkillMod( SkillName.Hiding, true, 20 );
m_SkillMod2 = new DefaultSkillMod( SkillName.Stealing, true, 20 );
m_SkillMod3 = new DefaultSkillMod( SkillName.Fencing, true, 20 );
m_StatMod0 = new StatMod( StatType.Dex, "RogueCloak", 15, TimeSpan.Zero );
}
示例14: DefineMods
private void DefineMods()
{
m_SkillMod0 = new DefaultSkillMod( SkillName.Healing, true, 20 );
m_SkillMod1 = new DefaultSkillMod( SkillName.Swords, true, 20 );
m_SkillMod2 = new DefaultSkillMod( SkillName.Chivalry, true, 20 );
m_SkillMod3 = new DefaultSkillMod( SkillName.Macing, true, 20 );
m_StatMod0 = new StatMod( StatType.Str, "FighterCloak", 15, TimeSpan.Zero );
}
示例15: OnRemoved
public override void OnRemoved( object parent )
{
base.OnRemoved( parent );
if ( m_SkillMod != null )
m_SkillMod.Remove();
m_SkillMod = null;
}