14 return this.manager.sequence;
24 return this.manager.tg;
39 public void StartNewGame()
45 EMono.game.StartNewGame();
49 public void StartNewGame2()
56 EMono.pc.MoveZone(
EMono.game.Prologue.idStartZone);
60 x =
EMono.game.Prologue.startX,
61 z = EMono.game.Prologue.startZ
66 public void PutOutFire()
70 EMono._zone.AddCard(
ThingGen.Create(
"dish_soup", -1, -1), card.pos.GetRandomNeighbor());
75 public void OnClaimLand()
77 Chara c =
EMono.game.cards.globalCharas.Find(
"ashland");
78 EMono.game.quests.globalList.Add(
Quest.Create(
"sharedContainer",
null,
null).SetClient(c,
false));
79 EMono.game.quests.globalList.Add(
Quest.Create(
"crafter",
null,
null).SetClient(c,
false));
80 EMono.game.quests.globalList.Add(
Quest.Create(
"defense",
null,
null).SetClient(c,
false));
91 public void QuestSharedContainer_Drop1()
93 EMono.player.DropReward(
ThingGen.Create(
"chest6", -1, -1),
false);
97 public void QuestShippingChest_Drop1()
99 Recipe.DropIngredients(
"container_shipping",
"palm", 6);
103 public void QuestExploration_Drop1()
105 EMono.player.DropReward(
ThingGen.CreateScroll(8220, 1),
true).c_IDTState = 0;
106 EMono.player.DropReward(
ThingGen.CreateScroll(8221, 1),
false).c_IDTState = 0;
110 public void QuestExploration_MeetFarris()
113 this.cc.RemoveEditorTag(EditorTag.AINoMove);
114 this.cc.RemoveEditorTag(EditorTag.InvulnerableToMobs);
115 this.cc.RemoveEditorTag(EditorTag.Invulnerable);
116 this.cc.homeZone =
EMono.game.StartZone;
121 public void QuestExploration_MeetFarris2()
124 if (
EMono.Branch ==
null)
126 EMono._zone.ClaimZone(
false);
128 EMono.Branch.Recruit(this.cc);
129 EMono.game.quests.Main.ChangePhase(300);
133 public void QuestExploration_AfterCrystal()
138 quest =
EMono.game.quests.Start(
"exploration",
EMono.game.cards.globalCharas.Find(
"ashland"),
false);
140 quest.ChangePhase(5);
141 Chara chara =
EMono.game.cards.globalCharas.Find(
"fiama");
142 EMono._zone.AddCard(
ThingGen.CreateScroll(8220, 1).Identify(
false, IDTSource.Identify), chara.pos);
144 chara.RemoveEditorTag(EditorTag.AINoMove);
148 public void QuestExploration_AfterComplete()
150 Chara chara =
EMono.game.cards.globalCharas.Find(
"ashland");
151 chara.MoveHome(
"lothria", 40, 49);
152 EMono.game.quests.RemoveAll(chara);
153 chara =
EMono.game.cards.globalCharas.Find(
"fiama");
154 chara.MoveHome(
"lothria", 46, 56);
155 EMono.game.quests.RemoveAll(chara);
156 EMono.game.quests.Main.ChangePhase(700);
160 public void QuestCraft_Drop1()
162 EMono.player.DropReward(
ThingGen.CreateRawMaterial(
EMono.sources.materials.alias[
"straw"]),
false);
166 public void QuestDefense_0()
169 Card card =
EMono._zone.AddChara(
"punk", prologue.posPunk.x, prologue.posPunk.y);
170 card.things.DestroyAll(
null);
171 (
EMono._zone.AddThing(
"gallows", prologue.posPunk.x, prologue.posPunk.y).Install().trait as
TraitShackle).Restrain(card,
false);
176 public void QuestVernis_DropRecipe()
178 EMono.player.DropReward(
ThingGen.CreateRecipe(
"explosive"),
false);
182 public void QuestDefense_1()
185 Card tc =
EMono._zone.AddChara(
"boar", prologue.posPunk.x + 1, prologue.posPunk.y);
186 (
EMono._zone.AddThing(
"gallows", prologue.posPunk.x + 1, prologue.posPunk.y).Install().trait as
TraitShackle).Restrain(tc,
false);
187 EMono.player.DropReward(
ThingGen.Create(
"stone", -1, -1).SetNum(20),
false);
188 EMono.player.DropReward(
ThingGen.Create(
"330", -1, -1).SetNum(3),
true).Identify(
false, IDTSource.Identify);
189 EMono.player.DropReward(
ThingGen.Create(
"331", -1, -1).SetNum(3),
true).Identify(
false, IDTSource.Identify);
190 EMono.player.DropReward(
ThingGen.Create(
"bandage", -1, -1).SetNum(5),
false);
194 public void QuestDefense_2()
199 public void QuestDebt_reward()
205 public void Tutorial1()
209 EMono._zone.AddCard(t, point).SetPlaceState(PlaceState.installed,
false);
210 t =
ThingGen.Create(
"crimAle", -1, -1);
211 EMono._zone.AddCard(t, point).SetPlaceState(PlaceState.installed,
false);
215 public void WelcomeMsg()
220 public void chara_hired()
222 if (
EMono.Branch.IsRecruit(
this.cc))
225 this.cc.SetBool(18,
true);
227 EMono.Sound.Play(
"good");
228 EMono.Branch.Recruit(this.cc);
232 public void chara_hired_ticket()
234 EMono.pc.things.Find(
"ticket_resident", -1, -1).ModNum(-1,
true);
235 EMono.Sound.Play(
"good");
236 this.cc.SetBool(18,
true);
237 EMono.Branch.Recruit(this.cc);
241 public void nerun_gift()
250 public void nerun_gift2()
259 public void nerun_gift3()
261 Dialog.Gift(
"",
true,
new List<Card>
272 public void fiama_gold()
274 EMono.player.DropReward(
ThingGen.Create(
"money2", -1, -1).SetNum(10),
false);
275 if (
EMono.game.idPrologue == 2)
277 EMono.player.DropReward(
ThingGen.Create(
"hammer", -1, -1),
false);
282 public void fiama_pet1()
289 public void fiama_pet2()
296 public void fiama_pet3()
303 public void fiama_pet4()
310 private void fiama_pet(
Chara c)
318 public void fiama_starter_gift()
324 Thing thing =
ThingGen.Create(
"ring_decorative", -1, -1).SetNoSell();
325 thing.elements.SetBase(65, 10, 0);
326 EMono.player.DropReward(thing,
false);
330 EMono.player.DropReward(
ThingGen.Create(
"ticket_resident", -1, -1).SetNoSell(),
false);
331 EMono.player.DropReward(
ThingGen.Create(
"1174", -1, -1).SetNoSell(),
false);
336 thing.elements.SetBase(65, 5, 0);
337 thing.elements.SetBase(407, 5, 0);
338 EMono.player.DropReward(thing,
false);
342 EMono.player.DropReward(
ThingGen.Create(
"1085", -1, -1).SetNum(3).SetNoSell(),
false);
345 for (
int i = 0; i < 10; i++)
347 EMono.player.DropReward(
ThingGen.Create(
"234", -1, -1).SetNoSell(),
false);
351 this.cc.DoHostileAction(
EMono.pc,
true);
352 this.cc.calmCheckTurn = 100;
358 public void revive_pet()
360 foreach (
Chara chara
in EMono.pc.homeBranch.members)
362 if (chara.isDead && chara.GetInt(100,
null) != 0)
367 this.cc.ModAffinity(
EMono.pc, -2,
true);
371 public void melilith_friend()
373 if (this.cc.id ==
"melilith" &&
EMono.game.quests.completedIDs.Contains(
"melilith"))
375 this.cc.MakeAlly(
true);
380 public void sister_friend()
382 if (this.cc.id ==
"olderyoungersister")
384 this.cc.MakeAlly(
true);
386 EMono.pc.ModCurrency(-10000,
"money");
387 this.cc.Say(
"hug", this.cc,
EMono.pc,
null,
null);
391 public void sister_change()
393 this.cc.idSkin = ((this.cc.idSkin == 1) ? 2 : 1);
397 public void get_scratch()
400 EMono.game.dateScratch =
EMono.world.date.GetRaw(24);
404 public void poppy_found()
406 if (this.cc.id ==
"poppy")
408 this.cc.MakeAlly(
true);
410 EMono.game.quests.Get(
"puppy").NextPhase();
411 Msg.Say(
"npc_rescue", this.cc,
null,
null,
null);
412 this.cc.RemoveEditorTag(EditorTag.InvulnerableToMobs);
413 this.cc.RemoveEditorTag(EditorTag.Invulnerable);
417 public void event_swordkeeper()
419 EMono._zone.AddChara(
"swordkeeper", 45, 52);
425 item.IF.Split(
'/', StringSplitOptions.None)[0] ==
"costHire";
430 public void guild_trial()
432 if (
Guild.Current ==
EMono.game.factions.Merchant)
434 EMono.game.quests.Start(
"guild_merchant", this.cc,
false);
441 public void guild_join()
443 if (
Guild.Current !=
EMono.game.factions.Merchant)
447 Msg.Say(
"guild_join",
Guild.Current.Name,
null,
null,
null);
448 SE.Play(
"questComplete");
450 Guild.CurrentQuest.ChangePhase(10);
454 public void guild_mageTrial()
456 Guild.CurrentQuest.NextPhase();
457 Thing thing =
EMono.pc.things.Find(
"letter_trial", -1, -1);
460 thing.ModNum(-1,
true);
465 public void guild_promote()
467 Guild.Current.relation.Promote();
469 if (currentGuild ==
null)
473 currentGuild.RefreshDevelopment();
477 public bool check_sketch()
479 Thing thing =
EMono.pc.things.Find(
"sketch_old", -1, -1);
487 for (
int i = 0; i < num; i++)
489 for (
int j = 0; j < 5; j++)
491 int item =
EMono.core.refs.dictSketches.Keys.RandomItem<
int>();
492 if (!
EMono.player.sketches.Contains(item))
494 EMono.player.sketches.Add(item);
495 Msg.Say(
"add_sketch", item.ToString() ??
"",
null,
null,
null);
510 public int GetFelmeraRewardIndex()
512 int count =
EMono.player.sketches.Count;
513 int num = count / 10;
518 Debug.Log(
string.Concat(
new string[]
524 EMono.player.lastFelmeraReward.ToString()
530 public bool check_sketch2()
532 return this.GetFelmeraRewardIndex() >
EMono.player.lastFelmeraReward;
536 public List<Thing> ListFelmeraBarter()
538 List<Thing> list =
new List<Thing>();
539 int felmeraRewardIndex = this.GetFelmeraRewardIndex();
540 for (
int i = 0; i < felmeraRewardIndex; i++)
550 public void give_sketch_reward()
552 int felmeraRewardIndex = this.GetFelmeraRewardIndex();
553 for (
int i =
EMono.player.lastFelmeraReward; i < felmeraRewardIndex; i++)
557 EMono.player.DropReward(thing,
false);
559 EMono.player.lastFelmeraReward = felmeraRewardIndex;
563 public void give_sketch_special()
565 foreach (
int num
in EMono.core.refs.dictSketches.Keys)
567 if (num >= 500 && num < 700)
569 EMono.player.sketches.Add(num);
572 Msg.Say(
"add_sketch_special");
574 EMono.pc.things.Find(
"sketch_special", -1, -1).Destroy();
578 public static string idJump;