• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# SkillMod类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中SkillMod的典型用法代码示例。如果您正苦于以下问题:C# SkillMod类的具体用法?C# SkillMod怎么用?C# SkillMod使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SkillMod类属于命名空间,在下文中一共展示了SkillMod类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 ); 
		}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:7,代码来源:DruidCloak.cs


示例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 ); 
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:AlligatorBelt.cs


示例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 ); 
		}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:7,代码来源:DruidCloak.cs


示例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 );
			}
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:25,代码来源:MondainHat.cs


示例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 ); 
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:GeorgesCloak.cs


示例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 ); 
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:7,代码来源:RedTunic.cs


示例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 ); 
		}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:7,代码来源:CloakOfTheMagi.cs


示例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 );
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:CloakOfTheNecromancer.cs


示例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 ); 
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:CloakofSirKen.cs


示例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 ); 
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:7,代码来源:GTunic.cs


示例11: OnRemoved

		public override void OnRemoved( object parent )
		{
			if( UseSkillMod && m_BSMod != null )
			{
				m_BSMod.Remove();
				m_BSMod = null;
			}
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:8,代码来源:GMSmithHammer.cs


示例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;
		}
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:8,代码来源:BasketOfHerbs.cs


示例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 ); 
		}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:8,代码来源:RogueCloak.cs


示例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 ); 
		}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:8,代码来源:FighterCloak.cs


示例15: OnRemoved

		public override void OnRemoved( object parent )
		{
			base.OnRemoved( parent );

			if ( m_SkillMod != null )
				m_SkillMod.Remove();

			m_SkillMod = null;
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:9,代码来源:AncientSmithyHammer.cs


示例16: AddSkillModTo

		public void AddSkillModTo( Mobile to )
		{
			m_SkillMod = new DefaultSkillMod( SkillName.Cooking, true, m_Bonus );
			m_SkillMod.ObeyCap = true;
			to.AddSkillMod( m_SkillMod );
			m_Active = true;

			to.SendLocalizedMessage( 1075540 ); //The scent of fresh herbs begins to fill your home...
		}
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:9,代码来源:BasketOfHerbs.cs


示例17: OnEquip

		public override bool OnEquip( Mobile from )
		{
			if( UseSkillMod )
			{
                if (m_BSMod != null)
                    m_BSMod.Remove();

			    m_BSMod = new DefaultSkillMod( SkillName.Blacksmith, true, 20 );
                    from.AddSkillMod( m_BSMod );
			}
			return base.OnEquip( from );
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:12,代码来源:GMSmithHammer.cs


示例18: OnAdded

		public override void OnAdded( object parent )
		{
			base.OnAdded( parent );

			if ( i_SkillBonus != 0 && parent is Mobile )
			{
				if ( sm_SkillMod != null )
					sm_SkillMod.Remove();

				sm_SkillMod = new DefaultSkillMod( sn_SkillName, true, i_SkillBonus );
				((Mobile)parent).AddSkillMod( sm_SkillMod );
			}
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:13,代码来源:Armor+of+Crafting.cs


示例19: OnAdded

		public override void OnAdded(IEntity parent)
		{
			base.OnAdded( parent );

			if ( m_Bonus != 0 && parent is Mobile )
			{
				if ( m_SkillMod != null )
					m_SkillMod.Remove();

				m_SkillMod = new DefaultSkillMod( SkillName.Blacksmith, true, m_Bonus );
				((Mobile)parent).AddSkillMod( m_SkillMod );
			}
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:13,代码来源:AncientSmithyHammer.cs


示例20: OnAdded

        }// ancient smithy hammer
        public override void OnAdded(object parent)
        {
            base.OnAdded(parent);

            if (this.m_Bonus != 0 && parent is Mobile)
            {
                if (this.m_SkillMod != null)
                    this.m_SkillMod.Remove();

                this.m_SkillMod = new DefaultSkillMod(SkillName.Blacksmith, true, this.m_Bonus);
                ((Mobile)parent).AddSkillMod(this.m_SkillMod);
            }
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:14,代码来源:AncientSmithyHammer.cs



注:本文中的SkillMod类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# SkillName类代码示例发布时间:2022-05-24
下一篇:
C# SkillId类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap