本文整理汇总了C#中Dungeon.GetCreators方法的典型用法代码示例。如果您正苦于以下问题:C# Dungeon.GetCreators方法的具体用法?C# Dungeon.GetCreators怎么用?C# Dungeon.GetCreators使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dungeon
的用法示例。
在下文中一共展示了Dungeon.GetCreators方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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");
}
});
}
示例2: 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)
{
switch (rnd.Next(2))
{
case 0: treasureChest.Add(Item.CreateEnchanted(16015, 20403, 0)); break; // Victorious Bracelet
case 1: treasureChest.Add(Item.CreateEnchanted(40027, 0, 30311)); break; // Twilight Weeding Hoe
}
}
treasureChest.AddGold(rnd.Next(5200, 7120)); // Gold
treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item
dungeon.AddChest(treasureChest);
member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
}
}
示例3: 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)
{
// Mace
int prefix = 0, suffix = 0;
switch (rnd.Next(2))
{
case 0: prefix = 20701; break; // Stiff
case 1: prefix = 21003; break; // Fatal
}
switch (rnd.Next(2))
{
case 0: suffix = 30506; break; // Belligerent
case 1: suffix = 10807; break; // Considerate
}
treasureChest.Add(Item.CreateEnchanted(40079, prefix, suffix));
}
treasureChest.AddGold(rnd.Next(2112, 5200)); // Gold
treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item
dungeon.AddChest(treasureChest);
member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
}
}
示例4: 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)
{
// 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"));
}
}
示例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();
// Fluted Short Sword
int prefix = 0, suffix = 0;
switch (rnd.Next(4))
{
case 0: suffix = 30702; break; // Raven
case 1: suffix = 30602; break; // Healer
case 2: suffix = 30504; break; // Gold Goblin
case 3: suffix = 30501; break; // Giant
}
treasureChest.Add(Item.CreateEnchanted(40015, prefix, suffix));
treasureChest.AddGold(rnd.Next(2384, 2992)); // 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();
var creators = dungeon.GetCreators();
for (int i = 0; i < creators.Count; ++i)
{
var member = creators[i];
var treasureChest = new TreasureChest();
// Warhammer
int prefix = 0, suffix = 0;
switch (rnd.Next(4))
{
case 0: prefix = 1704; break; // Imitation
case 1: prefix = 1705; break; // Cheap
case 2: prefix = 1706; break; // Good
case 3: prefix = 305; break; // Fine
}
treasureChest.Add(Item.CreateEnchanted(40016, prefix, suffix));
treasureChest.AddGold(rnd.Next(688, 1728)); // Gold
treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item
dungeon.AddChest(treasureChest);
member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
}
}
示例7: 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];
member.TalkToNpc("_dungeonlostresident", "Lost Resident");
var treasureChest = new TreasureChest();
// Enchant
var enchant = 0;
switch (rnd.Next(3))
{
case 0: enchant = 1506; break; // Swan Summoner's (Prefix)
case 1: enchant = 1706; break; // Good (Prefix)
case 2: enchant = 305; break; // Fine (Prefix)
}
treasureChest.Add(Item.CreateEnchant(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();
var creators = dungeon.GetCreators();
for (int i = 0; i < creators.Count; ++i)
{
var member = creators[i];
var treasureChest = new TreasureChest();
if (i == 0)
{
// Enchanted item
Item item = null;
switch (rnd.Next(2))
{
case 0: item = Item.CreateEnchanted(40026, prefix: 20404); break; // Sacrificial Sickle
case 1: item = Item.CreateEnchanted(18024, suffix: 30411); break; // Magnolia Hairband
case 2: item = Item.CreateEnchanted(40003, suffix: 30514); break; // Hope Short Bow
}
treasureChest.Add(item);
}
treasureChest.AddGold(rnd.Next(4488, 8160)); // 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();
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"));
}
}
示例10: 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)
{
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"));
}
}
示例11: 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)
{
// 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"));
}
}
示例12: 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)
{
// Dagger
var prefix = 0;
switch (rnd.Next(3))
{
case 0: prefix = 20501; break; // Simple
case 1: prefix = 20502; break; // Scrupulous
case 2: prefix = 20201; break; // Hard
}
treasureChest.Add(Item.CreateEnchanted(40006, prefix, 0));
}
treasureChest.AddGold(rnd.Next(1072, 3680)); // Gold
treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item
dungeon.AddChest(treasureChest);
member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
}
}
示例13: OnCleared
public override void OnCleared(Dungeon dungeon)
{
var rnd = RandomProvider.Get();
var creators = dungeon.GetCreators();
if (dungeon.CountPlayers() == 1)
{
var member = creators[0];
var treasureChest = new TreasureChest();
// Cores' Healer Suit
int prefix = 0, suffix = 0;
switch (rnd.Next(3))
{
case 0: suffix = 30806; break; // Embroider
case 1: suffix = 30805; break; // Falcon
case 2: suffix = 30701; break; // Golem
}
treasureChest.Add(Item.CreateEnchanted(15030, prefix, suffix));
treasureChest.Add(Item.Create(id: 2000, amountMin: 1140, amountMax: 5040)); // Gold
treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item
dungeon.AddChest(treasureChest);
member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
}
else
{
for (int i = 0; i < creators.Count; ++i)
{
var member = creators[i];
var treasureChest = new TreasureChest();
if (i == 0)
{
// Wave-patterned Long Boots
int prefix = 20204, suffix = 0;
switch (rnd.Next(3))
{
case 0: suffix = 30902; break; // The dawn
case 1: suffix = 30602; break; // Healer
case 2: suffix = 30505; break; // Direwolf
}
treasureChest.Add(Item.CreateEnchanted(17032, prefix, suffix));
}
treasureChest.Add(Item.Create(id: 2000, amountMin: 608, amountMax: 2688)); // Gold
treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item
dungeon.AddChest(treasureChest);
member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
}
}
}
示例14: OnPlayerEnteredFloor
public override void OnPlayerEnteredFloor(Dungeon dungeon, Creature creature, int floor)
{
var leader = dungeon.GetCreators().First();
if (!leader.Keywords.Has("RP_Trefor_Failed_1") && !leader.Keywords.Has("RP_Trefor_Failed_2") && !leader.Keywords.Has("RP_Trefor_Failed_3"))
dungeon.PlayCutscene("RP_Trefor_00_e");
else if (leader.Keywords.Has("RP_Trefor_Failed_1"))
dungeon.PlayCutscene("RP_Trefor_00_f");
else
dungeon.PlayCutscene("RP_Trefor_00_g");
}
示例15: 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();
treasureChest.AddGold(rnd.Next(153, 768)); // Gold
treasureChest.Add(GetRandomTreasureItem(rnd)); // Random item
dungeon.AddChest(treasureChest);
member.GiveItemWithEffect(Item.CreateKey(70028, "chest"));
}
}