当前位置: 首页>>代码示例>>C#>>正文


C# SkillName类代码示例

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


SkillName类属于命名空间,在下文中一共展示了SkillName类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SWrestlingContract

		public SWrestlingContract() : base( 0x14F0 )
		{
			Weight = 1.0;
			Hue = 401;
			Name = "An Wrestling Training Contract";
			skill = SkillName.Wrestling;
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:7,代码来源:TrainingContracts.cs

示例2: RaelisDragonSpec

		// This class implements a singleton pattern; meaning that no matter how many times the
		// Instance attribute is used, there will only ever be one of these created in the entire system.
		// Copy this template and give it a new name.  Assign all of the data members of the EvoSpec
		// base class in the constructor.  Your subclass must not be abstract.
		// Never call new on this class, use the Instance attribute to get the instance instead.

		RaelisDragonSpec()
		{
			m_Tamable = true;
			m_MinTamingToHatch = 99.9; //originaly was 99.9
			m_PercentFemaleChance = 0.00;	// Made small to limit access to eggs. originaly was 0.02
			m_GuardianEggOrDeedChance = .01;
			m_AlwaysHappy = false;
			m_ProducesYoung = false; // originaly was true
			m_PregnancyTerm = 0.0; // originaly was 0.10
			m_AbsoluteStatValues = false;
			m_MaxEvoResistance = 100;
			m_MaxTrainingStage = 7;// At what stage stop atack training dummy and leveling
			m_CanAttackPlayers = false;

			m_RandomHues = new int[] { 1157, 1175, 1172, 1170, 2703, 2473, 2643, 1156, 2704, 2734, 2669, 2621, 2859, 2716, 2791, 2927, 2974, 1161, 2717, 2652, 2821, 2818, 2730, 2670, 2678, 2630, 2641, 2644, 2592, 2543, 2526, 2338, 2339, 1793, 1980, 1983 };

			m_Skills = new SkillName[7] { SkillName.Magery, SkillName.EvalInt, SkillName.Meditation, SkillName.MagicResist,
										  SkillName.Tactics, SkillName.Wrestling, SkillName.Anatomy };
			m_MinSkillValues = new int[7] { 50, 50, 50, 15, 19, 19, 19 };
			m_MaxSkillValues = new int[7] { 120, 120, 110, 110, 100, 100, 100 };

			m_Stages = new BaseEvoStage[] { new RaelisDragonStageOne(), new RaelisDragonStageTwo(),
											  new RaelisDragonStageThree(), new RaelisDragonStageFour(),
											  new RaelisDragonStageFive(), new RaelisDragonStageSix(),
											  new RaelisDragonStageSeven() };
		}
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:32,代码来源:DragonEvoSpec.cs

示例3: CheckRepairDifficulty

			private bool CheckRepairDifficulty( Mobile mob, SkillName skill, int curHits, int maxHits )
			{
				double difficulty = GetRepairDifficulty( curHits, maxHits ) * 0.1;


				if( m_Deed != null )
				{
					double value = m_Deed.SkillLevel;
					double minSkill = difficulty - 25.0;
					double maxSkill = difficulty + 25;

					if( value < minSkill )
						return false; // Too difficult
					else if( value >= maxSkill )
						return true; // No challenge

					double chance = (value - minSkill) / (maxSkill - minSkill);

					return (chance >= Utility.RandomDouble());
				}
				else
				{
					return mob.CheckSkill( skill, difficulty - 25.0, difficulty + 25.0 );
				}
			}
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:25,代码来源:Repair.cs

示例4: CheckTeach

 public override bool CheckTeach(SkillName skill, Mobile from)
 {
     return (skill == SkillName.Forensics)
         || (skill == SkillName.Healing)
         || (skill == SkillName.SpiritSpeak)
         || (skill == SkillName.Swords);
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:Jason.cs

示例5: OnSkillUse

		public override bool OnSkillUse( Mobile from, SkillName skill )
		{
			if ( from.AccessLevel == AccessLevel.Player )
				from.SendMessage( "You may not use skills in jail." );

			return ( from.AccessLevel > AccessLevel.Player );
		}
开发者ID:xrunuo,项目名称:xrunuo,代码行数:7,代码来源:Jail.cs

示例6: RegisterSkillTrigger

        public static void RegisterSkillTrigger(object o, SkillName s, Map map)
        {
            if (o == null || s == RegisteredSkill.Invalid)
                return;

            // go through the list and if the spawner is not on it yet, then add it
            bool found = false;
            
            ArrayList skilllist = RegisteredSkill.TriggerList(s, map);

            if (skilllist == null)
                return;

            foreach (RegisteredSkill rs in skilllist)
            {
                if (rs.target == o && rs.sid == s)
                {
                    found = true;
                    // dont register a skill if it is already on the list for this spawner
                    break;
                }
            }

            // if it hasnt already been added to the list, then add it
            if (!found)
            {
                RegisteredSkill newrs = new RegisteredSkill();
                newrs.target = o;
                newrs.sid = s;

                skilllist.Add(newrs);
            }
        }
开发者ID:jasegiffin,项目名称:JustUO,代码行数:33,代码来源:XmlSpawnerSkillCheck.cs

示例7: PowerScroll

        public PowerScroll(SkillName skill, double value)
            : base(skill, value)
        {
            this.Hue = 0x481;

            if (this.Value == 105.0 || skill == Server.SkillName.Blacksmith || skill == Server.SkillName.Tailoring)
                this.LootType = LootType.Regular;
        }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:8,代码来源:PowerScroll.cs

示例8: SkillDown

        public void SkillDown(SkillName skill)
        {
            var actor = GetComponentInParent<Actor>();
            if (actor == null) return;
            var sk = Skills.Single(s => s.Name == skill);

            sk.Return(actor);
        }
开发者ID:arlenner,项目名称:Puzzle,代码行数:8,代码来源:SkillSystemComponent.cs

示例9: skillBonus

 /*
  * Bonus que a habilidade da na skill.
  */
 public override double skillBonus(HabilidadeNode node, SkillName skillName)
 {
     if (SkillName.Tactics.Equals(skillName))
     {
         return node.Nivel * 5;
     }
     return 0;
 }
开发者ID:evildude807,项目名称:kaltar,代码行数:11,代码来源:PericiaTatica.cs

示例10: MerchantTitleInfo

 public MerchantTitleInfo( SkillName skill, double requirement, TextDefinition title, TextDefinition label, TextDefinition assigned )
 {
     m_Skill = skill;
     m_Requirement = requirement;
     m_Title = title;
     m_Label = label;
     m_Assigned = assigned;
 }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:8,代码来源:MerchantTitles.cs

示例11: SpecialScroll

		public SpecialScroll( SkillName skill, double value ) : base( 0x14F0 )
		{
			LootType = LootType.Cursed;
			Weight = 1.0;

			m_Skill = skill;
			m_Value = value;
		}
开发者ID:nathanvy,项目名称:runuo,代码行数:8,代码来源:SpecialScroll.cs

示例12: DismountCheck

        public static void DismountCheck( Mobile attacker, Mobile defender, int disbonus, SkillName skill, int featlevel )
        {
            IKhaerosMobile featuser = attacker as IKhaerosMobile;
            IKhaerosMobile defplayer = defender as IKhaerosMobile;
            int dischance = disbonus + (int)(Math.Max( attacker.Skills[skill].Base - defender.Skills[SkillName.Riding].Base - defplayer.RideBonus, 10 * featlevel - defplayer.RideBonus ));

            if( dischance > Utility.RandomMinMax( 1, 100 ) )
                Effect( defender, featlevel );
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:9,代码来源:Dismount.cs

示例13: FormatSkill

		private static string FormatSkill( BaseCreature c, SkillName name )
		{
			Skill skill = c.Skills[name];

			if ( skill.Base < 10.0 )
				return "<div align=right>---</div>";

			return String.Format( "<div align=right>{0:F1}</div>", skill.Value );
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:9,代码来源:AnimalLore.cs

示例14: XmlSkill

		public XmlSkill(string name, string skill)
		{
			Name = name;
			try
			{
				m_Skill = (SkillName)Enum.Parse( typeof( SkillName ), skill, true );
			} 
			catch {}
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:9,代码来源:XmlSkill.cs

示例15: SkillGainMod

		public SkillGainMod( PlayerMobile owner, string name, SkillName skill, double bonus, TimeSpan duration )
		{
			m_Owner = owner;
			m_Name = name;
			m_Skill = skill;
			m_Bonus = bonus;
			m_Duration = duration;
			m_Added = DateTime.UtcNow;
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:9,代码来源:SkillGainMod.cs


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