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


C# GamePlayer.AddSpecialization方法代码示例

本文整理汇总了C#中GamePlayer.AddSpecialization方法的典型用法代码示例。如果您正苦于以下问题:C# GamePlayer.AddSpecialization方法的具体用法?C# GamePlayer.AddSpecialization怎么用?C# GamePlayer.AddSpecialization使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GamePlayer的用法示例。


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

示例1: OnLevelUp

		/// <summary>
		/// Update all skills and add new for current level
		/// </summary>
		/// <param name="player"></param>
		public override void OnLevelUp(GamePlayer player) 
		{
			
			
			base.OnLevelUp(player);

			// Specializations
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Blades));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Blunt));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Music));

			// Spell lines
			player.AddSpellLine(SkillBase.GetSpellLine("Bard Music"));
			player.AddSpellLine(SkillBase.GetSpellLine("Bard Nurture Spec"));
			player.AddSpellLine(SkillBase.GetSpellLine("Regrowth Bard Spec"));
			player.AddSpellLine(SkillBase.GetSpellLine("Bard Music Spec"));

			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Instruments));

			if (player.Level >= 10) 
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 1));
			}
			if (player.Level >= 15) 
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.HibArmor, ArmorLevel.Reinforced));
				player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
			}
			if (player.Level >= 25) 
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 2));
			}
		}
开发者ID:boscorillium,项目名称:dol,代码行数:37,代码来源:ClassBard.cs

示例2: OnLevelUp

		public override void OnLevelUp(GamePlayer player) 
		{
			base.OnLevelUp(player);

			//Remove
			player.RemoveSpellLine("Darkness");
			player.RemoveSpellLine("Suppression");
			player.RemoveSpecialization(Specs.Darkness);
			player.RemoveSpecialization(Specs.Suppression);
		
			// Specializations
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Cursing));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Hexing));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Witchcraft));
						

			// Spell lines
			player.AddSpellLine(SkillBase.GetSpellLine("Cursing"));
			player.AddSpellLine(SkillBase.GetSpellLine("Cursing Spec"));
			player.AddSpellLine(SkillBase.GetSpellLine("Hexing"));
			player.AddSpellLine(SkillBase.GetSpellLine("Witchcraft"));

			if (player.Level >= 6)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
			}
		}
开发者ID:boscorillium,项目名称:dol,代码行数:27,代码来源:ClassWarlock.cs

示例3: OnLevelUp

        /// <summary>
        /// Update all skills and add new for current level
        /// </summary>
        /// <param name="player"></param>
        public override void OnLevelUp(GamePlayer player, int previousLevel)
        {
            base.OnLevelUp(player, previousLevel);

            player.AddAbility(SkillBase.GetAbility(Abilities.Shield, ShieldLevel.Large));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Shields));

            player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_LargeWeapons));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Large_Weapons));

            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Valor));
            player.AddSpellLine(SkillBase.GetSpellLine("Valor"));

            if (player.Level >= 15)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 1));
                player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
            }
            if (player.Level >= 18)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Intercept));
            }
            if (player.Level >= 20)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.HibArmor, ArmorLevel.Scale));
            }
            if (player.Level >= 25)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 2));
            }
        }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:35,代码来源:ClassChampion.cs

示例4: OnLevelUp

        public override void OnLevelUp(GamePlayer player, int previousLevel)
        {
            base.OnLevelUp(player, previousLevel);

            // Mystic

            // Specializations
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Darkness));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Suppression));

            // Spell lines
            player.AddSpellLine(SkillBase.GetSpellLine("Darkness"));
            player.AddSpellLine(SkillBase.GetSpellLine("Suppression"));

            // Abilities
            player.AddAbility(SkillBase.GetAbility(Abilities.Sprint));
            player.AddAbility(SkillBase.GetAbility(Abilities.MidArmor, ArmorLevel.Cloth));
            player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Staves));

            // Bonedancer

            // Specializations
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.BoneArmy));

            // Spell lines
            player.AddSpellLine(SkillBase.GetSpellLine("Bone Army"));
            player.AddSpellLine(SkillBase.GetSpellLine("Bone Mystics"));
            player.AddSpellLine(SkillBase.GetSpellLine("Bone Guardians"));
            player.AddSpellLine(SkillBase.GetSpellLine("Bone Warriors"));

            // Abilities
            player.AddAbility(SkillBase.GetAbility(Abilities.Quickcast));
        }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:33,代码来源:ClassBonedancer.cs

示例5: OnLevelUp

		/// <summary>
		/// Update all skills and add new for current level
		/// </summary>
		/// <param name="player"></param>
		public override void OnLevelUp(GamePlayer player, int previousLevel)
		{
			base.OnLevelUp(player, previousLevel);

			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Staff));
			player.AddSpellLine(SkillBase.GetSpellLine("Rebirth"));
			player.AddSpellLine(SkillBase.GetSpellLine("Friar Enhancement Spec"));
			player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 1));

			if (player.Level >=10)
			{
				player.AddSpecialization(SkillBase.GetSpecialization(Specs.Parry));
			}
			if (player.Level >= 15)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
			}
			// EVADE
			if (player.Level >= 33)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 5));
			}
			else if (player.Level >= 22)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 4));
			}
			else if (player.Level >= 15)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 3));
			}
			else if (player.Level >= 10)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 2));
			}
		}
开发者ID:Refizul,项目名称:DOL-Kheldron,代码行数:39,代码来源:ClassFriar.cs

示例6: OnLevelUp

		/// <summary>
		/// Update all skills and add new for current level
		/// </summary>
		/// <param name="player"></param>
		public override void OnLevelUp(GamePlayer player) 
		{
			base.OnLevelUp(player);

			// Specializations
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Blades));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Blunt));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Shields));

			// Spell lines
			player.AddSpellLine(SkillBase.GetSpellLine("Nurture Warden Spec"));
			player.AddSpellLine(SkillBase.GetSpellLine("Regrowth Warden Spec"));

			if (player.Level >= 5) 
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Shield, ShieldLevel.Large));
			}
			if (player.Level >= 7) 
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Shortbows));
			}
			if (player.Level >= 10) 
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.HibArmor, ArmorLevel.Reinforced));
			}
			if (player.Level >= 15)
			{
				player.AddSpecialization(SkillBase.GetSpecialization(Specs.Parry));
				player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
			}
			if (player.Level >= 20)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.HibArmor, ArmorLevel.Scale));
			}
		}
开发者ID:boscorillium,项目名称:dol,代码行数:39,代码来源:ClassWarden.cs

示例7: OnLevelUp

        /// <summary>
        /// Update all skills and add new for current level
        /// </summary>
        /// <param name="player"></param>
        public override void OnLevelUp(GamePlayer player)
        {
            base.OnLevelUp(player);

            player.AddAbility(SkillBase.GetAbility(Abilities.HibArmor, ArmorLevel.Leather));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Piercing));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Dementia));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.ShadowMastery));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.VampiiricEmbrace));
            player.AddSpellLine(SkillBase.GetSpellLine("Dementia"));
            player.AddSpellLine(SkillBase.GetSpellLine("Shadow Mastery"));
            player.AddSpellLine(SkillBase.GetSpellLine("Vampiiric Embrace"));
            player.AddAbility(SkillBase.GetAbility(Abilities.VampiirBolt, 0));

            if (player.Level >= 6)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirConstitution));
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirDexterity));
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirQuickness));
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirStrength));
                player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
            }
            if (player.Level >= 10)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.SafeFall, 1));
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirBolt, 1));
            }
            if (player.Level >= 20)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.SafeFall, 2));
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirBolt, 2));
            }
            if (player.Level >= 25)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Climbing));
            }
            if (player.Level >= 30)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.SafeFall, 3));
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirBolt, 3));
            }
            if (player.Level >= 35)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirBolt, 4));
            }
            if (player.Level >= 40)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.SafeFall, 4));
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirBolt, 5));
            }
            if (player.Level >= 45)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirBolt, 6));
            }
            if (player.Level >= 50)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.SafeFall, 5));
                player.AddAbility(SkillBase.GetAbility(Abilities.VampiirBolt, 7));
            }
        }
开发者ID:boscorillium,项目名称:dol,代码行数:64,代码来源:ClassVampiir.cs

示例8: OnLevelUp

        /// <summary>
        /// Update all skills and add new for current level
        /// </summary>
        /// <param name="player"></param>
        public override void OnLevelUp(GamePlayer player, int previousLevel)
        {
            base.OnLevelUp(player, previousLevel);

            player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Flexible));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Flexible));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Shields));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Parry));

            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Soulrending));
            player.AddSpellLine(SkillBase.GetSpellLine("Soulrending"));

            if (player.Level >= 9)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 1));
            }
            if (player.Level >= 10)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.AlbArmor, ArmorLevel.Chain));
            }
            if (player.Level >= 15)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 1));
                player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
            }
            if (player.Level >= 17)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 2));
                player.AddAbility(SkillBase.GetAbility(Abilities.Shield, ShieldLevel.Large));
            }
            if (player.Level >= 30)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 3));
            }
        }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:39,代码来源:ClassReaver.cs

示例9: OnLevelUp

		public override void OnLevelUp(GamePlayer player)
		{

			base.OnLevelUp(player);

			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Shields));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Stormcalling));
			player.AddSpellLine(SkillBase.GetSpellLine("Stormcalling"));

			if (player.Level >= 10)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 1));
			}
			if (player.Level >= 12)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Shield, ShieldLevel.Large));
				player.AddAbility(SkillBase.GetAbility(Abilities.MidArmor, ArmorLevel.Chain));
			}
			if (player.Level >= 15)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Intercept));
				player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
			}
			if (player.Level >= 20)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 2));
			}
		}
开发者ID:boscorillium,项目名称:dol,代码行数:28,代码来源:ClassThane.cs

示例10: OnLevelUp

		/// <summary>
		/// Update all skills and add new for current level
		/// </summary>
		/// <param name="player"></param>
		public override void OnLevelUp(GamePlayer player, int previousLevel)
		{
			base.OnLevelUp(player, previousLevel);

			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Shields));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Dual_Wield));

			if (player.Level >= 10)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.AlbArmor, ArmorLevel.Chain));
				player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Shortbows));
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 1));

			}
			if (player.Level >= 15)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 1));
				player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
			}
			if (player.Level >= 17)
			{
				player.AddSpecialization(SkillBase.GetSpecialization(Specs.Parry));
			}
			if (player.Level >= 19)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Intercept));
			}
			if (player.Level >= 20)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.DirtyTricks));
			}
			if (player.Level >= 23)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 2));
			}
			if (player.Level >= 24)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.PreventFlight));
			}
			if (player.Level >= 30)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Flurry));
			}
			if (player.Level >= 32)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 3));
			}
			if (player.Level >= 35)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Advanced_Evade));
				player.AddAbility(SkillBase.GetAbility(Abilities.Stoicism));
			}
		}
开发者ID:Refizul,项目名称:DOL-Kheldron,代码行数:57,代码来源:ClassMercenary.cs

示例11: OnLevelUp

        /// <summary>
        /// Update all skills and add new for current level
        /// </summary>
        /// <param name="player"></param>
        public override void OnLevelUp(GamePlayer player, int previousLevel)
        {
            base.OnLevelUp(player, previousLevel);

            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Shields));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Celtic_Dual));

            player.AddAbility(SkillBase.GetAbility(Abilities.Shield, ShieldLevel.Medium));

            if (player.Level >= 10)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Shortbows));
            }
            if (player.Level >= 15)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 1));
                player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 2));
                player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
            }
            if (player.Level >= 19)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Intercept));
            }
            if (player.Level >= 20)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Triple_Wield));
            }
            if (player.Level >= 23)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 2));
            }
            if (player.Level >= 24)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.PreventFlight));
            }
            if (player.Level >= 25)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 3));
            }
            if (player.Level >= 30)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Flurry));
            }
            if (player.Level >= 32)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 3));
            }
            if (player.Level >= 35)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Advanced_Evade));
                player.AddAbility(SkillBase.GetAbility(Abilities.Stoicism));
            }
        }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:57,代码来源:ClassBlademaster.cs

示例12: OnLevelUp

		public override void OnLevelUp(GamePlayer player) 
		{
			base.OnLevelUp(player);

			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Sword));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Stealth));

			player.AddAbility(SkillBase.GetAbility(Abilities.Sprint));
			player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 1));
			player.AddAbility(SkillBase.GetAbility(Abilities.MidArmor, ArmorLevel.Leather));
			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Swords));
			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Staves));
		}
开发者ID:boscorillium,项目名称:dol,代码行数:13,代码来源:ClassMidgardRogue.cs

示例13: OnLevelUp

		/// <summary>
		/// Update all skills and add new for current level
		/// </summary>
		/// <param name="player"></param>
		public override void OnLevelUp(GamePlayer player, int previousLevel)
		{
			base.OnLevelUp(player, previousLevel);

			// Specializations
			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Scythe));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Scythe));

			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Parry));

			// Spell lines
			player.AddSpellLine(SkillBase.GetSpellLine("Valewalker Arb Path Spec"));
			// Forester class adds "Arboreal Path" so we need to remove it here
			player.RemoveSpellLine( "Arboreal Path" );
			player.AddSpellLine(SkillBase.GetSpellLine("Valewalker Arboreal Path Base")); //immolation spells
			
			if (player.Level >= 5)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 1));
			}
			if (player.Level >= 10)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 2));
			}
			if (player.Level >= 15)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 1));
			}
			if(player.Level >= 19)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Intercept));
			}
			if (player.Level >= 20)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 3));
			}
			if(player.Level >= 23)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 2));
			}
			if (player.Level >= 30)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 4));
			}
			if(player.Level >= 32)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 3));
			}
		}
开发者ID:Refizul,项目名称:DOL-Kheldron,代码行数:54,代码来源:ClassValewalker.cs

示例14: OnLevelUp

		public override void OnLevelUp(GamePlayer player)
		{

			base.OnLevelUp(player);

			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Critical_Strike));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Axe));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Left_Axe));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Envenom));

			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Axes));
			player.AddAbility(SkillBase.GetAbility(Abilities.Shield, ShieldLevel.Small));
			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Thrown));
			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_LeftAxes));

			if (player.Level >= 5)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 2));
			}
			if (player.Level >= 10)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 3));
			}
			if (player.Level >= 15)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
			}
			if (player.Level >= 20)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 4));
			}
			if (player.Level >= 30)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 5));
			}
			if (player.Level >= 40)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 6));
			}
			if (player.Level >= 45)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.BloodRage));
			}
			if (player.Level >= 50)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 7));
                player.AddAbility(SkillBase.GetAbility(Abilities.BloodRage));
                player.AddAbility(SkillBase.GetAbility(Abilities.Remedy));
			}
		}
开发者ID:boscorillium,项目名称:dol,代码行数:50,代码来源:ClassShadowblade.cs

示例15: OnLevelUp

        public override void OnLevelUp(GamePlayer player, int previousLevel)
        {
            base.OnLevelUp(player, previousLevel);

            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Stealth));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Slash));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Thrust));

            player.AddAbility(SkillBase.GetAbility(Abilities.Sprint));
            player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 1));
            player.AddAbility(SkillBase.GetAbility(Abilities.AlbArmor, ArmorLevel.Leather));
            player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Slashing));
            player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Thrusting));
            player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Staves));
        }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:15,代码来源:ClassAlbionRogue.cs


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