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


C# GamePlayer.RemoveSpecialization方法代码示例

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


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

示例1: 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

示例2: 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.Sprint));
            player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_MaulerStaff));
            player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_FistWraps));

            player.RemoveSpecialization(Specs.Slash);
            player.RemoveSpecialization(Specs.Thrust);
            player.RemoveSpecialization(Specs.Parry);
            player.RemoveSpecialization(Specs.Crush);
            player.RemoveAllStyles();
            player.RemoveAbility(Abilities.AlbArmor);
            player.RemoveAbility(Abilities.Shield);
            player.RemoveAbility(Abilities.Weapon_Slashing);
            player.RemoveAbility(Abilities.Weapon_Thrusting);
            player.RemoveAbility(Abilities.Weapon_Crushing);
            player.AddAbility(SkillBase.GetAbility(Abilities.AlbArmor, ArmorLevel.Leather));
            player.AddAbility(SkillBase.GetAbility(Abilities.DefensiveCombatPowerRegeneration, 1));

            player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 1));

            player.AddSpellLine(SkillBase.GetSpellLine("Aura Manipulation"));
            player.AddSpellLine(SkillBase.GetSpellLine("Magnetism"));
            player.AddSpellLine(SkillBase.GetSpellLine("Power Strikes"));

            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Aura_Manipulation));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Magnetism));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Power_Strikes));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Mauler_Staff));
            player.AddSpecialization(SkillBase.GetSpecialization(Specs.Fist_Wraps));

            if (player.Level >= 7)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 1));
            }
            if (player.Level >= 13)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 2));
            }
            if (player.Level >= 15)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
                player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 2));
            }
            if (player.Level >= 18)
            {
                player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 3));
            }
        }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:55,代码来源:ClassMaulerAlb.cs

示例3: OnLevelUp

		public override void OnLevelUp(GamePlayer player)
		{

			base.OnLevelUp(player);

			player.RemoveSpecialization(Specs.Axe);
			player.RemoveSpecialization(Specs.Hammer);
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Shields));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Spear));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Sword));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Mending));
			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Swords));
			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Spears));
			player.AddAbility(SkillBase.GetAbility(Abilities.Guard, 1));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.OdinsWill));
			player.AddSpellLine(SkillBase.GetSpellLine("Odin's Will"));
			player.AddSpellLine(SkillBase.GetSpellLine("Mending"));
			player.AddSpellLine(SkillBase.GetSpellLine("Valkyrie Mending Spec"));

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

示例4: 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.Sprint));
			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_MaulerStaff));
			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_FistWraps));

            player.RemoveSpecialization(Specs.Sword);
            player.RemoveSpecialization(Specs.Hammer);
            player.RemoveSpecialization(Specs.Axe);
            player.RemoveSpecialization(Specs.Parry);
            player.RemoveAllStyles();
            player.RemoveAbility(Abilities.MidArmor);
			player.RemoveAbility(Abilities.Weapon_Axes);
			player.RemoveAbility(Abilities.Weapon_Hammers);
			player.RemoveAbility(Abilities.Weapon_Swords);
            player.AddAbility(SkillBase.GetAbility(Abilities.MidArmor, ArmorLevel.Leather));
			player.AddAbility(SkillBase.GetAbility(Abilities.DefensiveCombatPowerRegeneration, 1));

			player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 1));

			player.AddSpellLine(SkillBase.GetSpellLine("Aura Manipulation"));
			player.AddSpellLine(SkillBase.GetSpellLine("Magnetism"));
			player.AddSpellLine(SkillBase.GetSpellLine("Power Strikes"));

			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Aura_Manipulation));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Magnetism));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Power_Strikes));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Mauler_Staff));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Fist_Wraps));

			if (player.Level >= 7)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 1));
			}
			if (player.Level >= 13)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 2));
			}
			if (player.Level >= 15)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
				player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 2));
			}
			if (player.Level >= 18)
			{
				player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 3));
			}
		}
开发者ID:boscorillium,项目名称:dol,代码行数:54,代码来源:ClassMaulerMid.cs


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