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


C# Dungeon类代码示例

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


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

示例1: OnBoss

	public override void OnBoss(Dungeon dungeon)
	{
		dungeon.AddBoss(30006, 1); // Giant Black Spider
		dungeon.AddBoss(30012, 6); // Burgundy Spider

		dungeon.PlayCutscene("bossroom_giant_spiderB");
	}
开发者ID:tkiapril,项目名称:aura,代码行数:7,代码来源:tircho_alby_middle_1_dungeon.cs

示例2: OnBoss

	public override void OnBoss(Dungeon dungeon)
	{
		dungeon.AddBoss(30007, 1); // Giant Red Spider
		dungeon.AddBoss(30013, 6); // Dark Blue Spider

		dungeon.PlayCutscene("bossroom_Albi_GiantSpider_DarkBlueSpider");
	}
开发者ID:aura-project,项目名称:aura,代码行数:7,代码来源:tircho_alby_low_dungeon.cs

示例3: OnBoss

	public override void OnBoss(Dungeon dungeon)
	{
		dungeon.AddBoss(130008, 1); // Golem
		dungeon.AddBoss(11010, 6); // Metal Skeleton

		dungeon.PlayCutscene("bossroom_Metalskeleton_Golem4");
	}
开发者ID:aura-project,项目名称:aura,代码行数:7,代码来源:tircho_ciar_middle_2_dungeon.cs

示例4: OnBoss

	public override void OnBoss(Dungeon dungeon)
	{
		dungeon.AddBoss(170201, 5); // Werewolf
		dungeon.AddBoss(160101, 5); // Gray Gremlin

		dungeon.PlayCutscene("bossroom_WereWolf");
	}
开发者ID:aura-project,项目名称:aura,代码行数:7,代码来源:bangor_barri_low_dungeon.cs

示例5: OnCleared

	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();
		var creators = dungeon.GetCreators();

		for (int i = 0; i < creators.Count; ++i)
		{
			var member = creators[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Cooking Knife
				int prefix = 0, suffix = 0;
				switch (rnd.Next(2))
				{
					case 0: prefix = 20206; break; // Nervous
					case 1: prefix = 20711; break; // Famous
				}
				treasureChest.Add(Item.CreateEnchanted(40042, prefix, suffix));
			}

			treasureChest.AddGold(rnd.Next(2880, 4380)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
开发者ID:aura-project,项目名称:aura,代码行数:30,代码来源:gairech_fiodh_middle_1_dungeon.cs

示例6: OnCleared

	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				switch (rnd.Next(3))
				{
					case 0: treasureChest.Add(Item.CreateEnchanted(40023, 20611, 0)); break; // Strict Gathering Knife
					case 1: treasureChest.Add(Item.CreateEnchanted(18006, 0, 30807)); break; // Prophet Wizard Hat
					case 2: treasureChest.Add(Item.CreateEnchanted(18012, 0, 30521)); break; // Fancy Tork Merchant Cap
				}
			}

			treasureChest.AddGold(rnd.Next(6630, 8670)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
开发者ID:xKamuna,项目名称:aura,代码行数:27,代码来源:gairech_fiodh_middle_4_dungeon.cs

示例7: OnCleared

	public override void OnCleared(Dungeon dungeon)
	{
		foreach (var member in dungeon.Party)
			member.TalkToNpc("_dungeonlostresident", "Lost Resident");

		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			// Enchant
			var enchant = new Item(62005);
			switch (rnd.Next(3))
			{
				case 0: enchant.OptionInfo.Prefix = 1506; break; // Swan Summoner's
				case 1: enchant.OptionInfo.Prefix = 1706; break; // Good
				case 2: enchant.OptionInfo.Prefix = 305; break;  // Fine
			}
			treasureChest.Add(enchant);

			treasureChest.AddGold(rnd.Next(153, 768)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
开发者ID:ripxfrostbite,项目名称:aura,代码行数:30,代码来源:tircho_alby_dungeon_tutorial_ranald.cs

示例8: OnCleared

	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Enchanted item
				Item item = null;
				switch (rnd.Next(2))
				{
					case 0: item = Item.CreateEnchanted(40004, prefix: 20105); break; // Artless Lute
					case 1: item = Item.CreateEnchanted(15022, prefix: 20612); break; // Splendit Popo's Skirt
				}
				treasureChest.Add(item);
			}

			treasureChest.AddGold(rnd.Next(2080, 4160)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
开发者ID:xKamuna,项目名称:aura,代码行数:29,代码来源:tircho_alby_middle_1_dungeon.cs

示例9: OnCleared

	public override void OnCleared(Dungeon dungeon)
	{
		var rnd = RandomProvider.Get();

		for (int i = 0; i < dungeon.Party.Count; ++i)
		{
			var member = dungeon.Party[i];
			var treasureChest = new TreasureChest();

			if (i == 0)
			{
				// Enchanted item
				Item item = null;
				switch (rnd.Next(2))
				{
					case 0: item = Item.CreateEnchanted(40043, prefix: 20105); break; // Maltreat Rolling Pin
					case 1: item = Item.CreateEnchanted(40001, prefix: 20612); break; // Careful Wooden Stick
				}
				treasureChest.Add(item);
			}

			treasureChest.AddGold(rnd.Next(3360, 6272)); // Gold
			treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item

			dungeon.AddChest(treasureChest);

			member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
		}
	}
开发者ID:tkiapril,项目名称:aura,代码行数:29,代码来源:tircho_alby_middle_2_dungeon.cs

示例10: OnBoss

	public override void OnBoss(Dungeon dungeon)
	{
		dungeon.AddBoss(170107, 2); // Lycanthrope
		dungeon.AddBoss(110102, 5); // Gorgon

		dungeon.PlayCutscene("bossroom_lycan");
	}
开发者ID:tkiapril,项目名称:aura,代码行数:7,代码来源:tircho_alby_middle_2_dungeon.cs

示例11: OnCleared

	public override void OnCleared(Dungeon dungeon)
	{
		var creators = dungeon.GetCreators();
		var leader = creators[0].Party.Leader;

		if (leader.Keywords.Has("g1_38"))
		{
			leader.Keywords.Remove("g1");
			leader.Keywords.Remove("g1_38");
			leader.Keywords.Remove("g1_revive_of_glasgavelen");
			leader.Keywords.Give("g1_complete");
			leader.Keywords.Give("g1_KnightOfTheLight");

			leader.Titles.Enable(WhoSavedTheGoddessTitle);
			leader.AcquireItem(Item.CreateEnchant(GoddessEnchant, 3600));
		}

		dungeon.PlayCutscene("G1_41_b_Glas", cutscene =>
		{
			foreach (var member in dungeon.GetCreators())
			{
				member.Warp("Uladh_main/town_TirChonaill/TirChonaill_Spawn_A");
			}
		});
	}
开发者ID:aura-project,项目名称:aura,代码行数:25,代码来源:g1_39_tirnanog_dungeon.cs

示例12: EventSquareControl

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="eventsquare">EventSquare handle</param>
		/// <param name="dungeon">Dungeon handle</param>
		public EventSquareControl(EventSquare eventsquare, Dungeon dungeon)
		{
			InitializeComponent();


			DirectionBox.DataSource = Enum.GetValues(typeof(CardinalPoint));
			DirectionBox.SelectedItem = eventsquare.Direction;
			DisplayBorderBox.Checked = eventsquare.DisplayBorder;
			IntelligenceBox.Value = eventsquare.Intelligence;
			ColorPanelBox.BackColor = eventsquare.MessageColor;
			RemainingBox.Value = eventsquare.Remaining;
			TextBox.Text = eventsquare.Text;
			TextJustificationBox.DataSource = Enum.GetValues(typeof(TextJustification));

			ActorControlBox.Actor = eventsquare;

			#region Choices

			ChoicesBox.DataSource = eventsquare.Choices;

			#endregion

			EventSquare = eventsquare;
			Dungeon = dungeon;
		}
开发者ID:melkor54248,项目名称:dungeoneye,代码行数:30,代码来源:EventSquareControl.cs

示例13: OnBoss

	public override void OnBoss(Dungeon dungeon)
	{
		dungeon.AddBoss(30018, 1); // Giant Spiderling
		dungeon.AddBoss(30019, 3); // Red Spiderling

		dungeon.PlayCutscene("bossroom_GiantSpider_kid");
	}
开发者ID:tkiapril,项目名称:aura,代码行数:7,代码来源:tircho_alby_beginner_1_dungeon.cs

示例14: OnBoss

	public override void OnBoss(Dungeon dungeon)
	{
		dungeon.AddBoss(30022, 1); // Giant Spiderling
		dungeon.AddBoss(1002, 1);  // Lost Resident

		dungeon.PlayCutscene("bossroom_tutorial_giantspider_kid");
	}
开发者ID:aura-project,项目名称:aura,代码行数:7,代码来源:tircho_alby_dungeon_tutorial_ranald.cs

示例15: OnBoss

	public override void OnBoss(Dungeon dungeon)
	{
		dungeon.AddBoss(130003, 1); // Small Golem
		dungeon.AddBoss(190001, 3); // Flying Sword

		dungeon.PlayCutscene("bossroom_SmallGolem_FlyingSword");
	}
开发者ID:tkiapril,项目名称:aura,代码行数:7,代码来源:gairech_fiodh_dungeon.cs


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