本文整理汇总了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");
}
示例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");
}
示例3: OnBoss
public override void OnBoss(Dungeon dungeon)
{
dungeon.AddBoss(130008, 1); // Golem
dungeon.AddBoss(11010, 6); // Metal Skeleton
dungeon.PlayCutscene("bossroom_Metalskeleton_Golem4");
}
示例4: OnBoss
public override void OnBoss(Dungeon dungeon)
{
dungeon.AddBoss(170201, 5); // Werewolf
dungeon.AddBoss(160101, 5); // Gray Gremlin
dungeon.PlayCutscene("bossroom_WereWolf");
}
示例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"));
}
}
示例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"));
}
}
示例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"));
}
}
示例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"));
}
}
示例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"));
}
}
示例10: OnBoss
public override void OnBoss(Dungeon dungeon)
{
dungeon.AddBoss(170107, 2); // Lycanthrope
dungeon.AddBoss(110102, 5); // Gorgon
dungeon.PlayCutscene("bossroom_lycan");
}
示例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");
}
});
}
示例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;
}
示例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");
}
示例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");
}
示例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");
}