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


C# GamePlayer.RemoveSpellLine方法代码示例

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


在下文中一共展示了GamePlayer.RemoveSpellLine方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);

			// 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

示例3: 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.RemoveAbility(Abilities.AlbArmor);
			player.AddAbility(SkillBase.GetAbility(Abilities.AlbArmor, ArmorLevel.Cloth));
			player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Flexible));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Flexible));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Crush));
			player.AddSpecialization(SkillBase.GetSpecialization(Specs.Shields));
			player.AddSpellLine(SkillBase.GetSpellLine("Heretic Rejuvenation Spec"));
			player.RemoveSpellLine("Enhancement");
			player.AddSpellLine(SkillBase.GetSpellLine("Heretic Enhancement"));
			player.AddSpellLine(SkillBase.GetSpellLine("Heretic Enhancement Spec"));

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


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