Elin Modding Docs Doc
Loading...
Searching...
No Matches
DramaCustomSequence.cs
1using System;
2using System.Collections.Generic;
3using System.IO;
4using System.Linq;
5using UnityEngine;
6
7// Token: 0x02000115 RID: 277
9{
10 // Token: 0x170001BE RID: 446
11 // (get) Token: 0x06000738 RID: 1848 RVA: 0x0002E0B1 File Offset: 0x0002C2B1
12 public string StepDefault
13 {
14 get
15 {
16 return this.idDefault;
17 }
18 }
19
20 // Token: 0x170001BF RID: 447
21 // (get) Token: 0x06000739 RID: 1849 RVA: 0x0002E0B9 File Offset: 0x0002C2B9
22 public string StepEnd
23 {
24 get
25 {
26 return "end";
27 }
28 }
29
30 // Token: 0x0600073A RID: 1850 RVA: 0x0002E0C0 File Offset: 0x0002C2C0
31 public void Build(Chara c)
32 {
33 DramaCustomSequence.<>c__DisplayClass14_0 CS$<>8__locals1 = new DramaCustomSequence.<>c__DisplayClass14_0();
34 CS$<>8__locals1.<>4__this = this;
35 CS$<>8__locals1.c = c;
36 bool flag = this.idCustom == "Unique";
37 bool flag2 = CS$<>8__locals1.c.bio.IsUnderAge || EClass.pc.bio.IsUnderAge;
38 CS$<>8__locals1.isInGuild = (Guild.Fighter.IsCurrentZone || Guild.Mage.IsCurrentZone || Guild.Thief.IsCurrentZone || Guild.Merchant.IsCurrentZone);
39 CS$<>8__locals1.bird = (flag2 ? "bird" : "tail");
40 string name = CS$<>8__locals1.c.Name;
41 CS$<>8__locals1.rumor = (CS$<>8__locals1.c.IsPCParty ? CS$<>8__locals1.<Build>g__GetTalk|6("sup") : this.GetRumor(CS$<>8__locals1.c));
42 CS$<>8__locals1.layer = null;
43 bool flag3 = CS$<>8__locals1.c.IsHuman || EClass.pc.HasElement(1640, 1);
44 if (!flag)
45 {
46 this.Step("Resident");
47 this._Talk("tg", () => CS$<>8__locals1.rumor, null);
48 if (flag3)
49 {
50 DramaChoice choice = this.Choice2("letsTalk", this.StepDefault);
51 choice.SetOnClick(delegate
52 {
53 DramaEventTalk firstTalk = CS$<>8__locals1.<>4__this.sequence.firstTalk;
54 Func<string> funcText;
55 if ((funcText = CS$<>8__locals1.<>9__91) == null)
56 {
57 funcText = (CS$<>8__locals1.<>9__91 = (() => CS$<>8__locals1.rumor));
58 }
59 firstTalk.funcText = funcText;
60 List<Hobby> list = CS$<>8__locals1.c.ListHobbies(true);
61 Hobby hobby = (list.Count > 0) ? list[0] : null;
62 if (EClass.rnd(20) == 0 || EClass.debug.showFav)
63 {
64 if (EClass.rnd(2) == 0 || hobby == null)
65 {
66 GameLang.refDrama1 = CS$<>8__locals1.c.GetFavCat().GetName().ToLower();
67 GameLang.refDrama2 = CS$<>8__locals1.c.GetFavFood().GetName();
68 CS$<>8__locals1.rumor = CS$<>8__locals1.<>4__this.GetText(CS$<>8__locals1.c, "general", "talk_fav");
69 CS$<>8__locals1.c.knowFav = true;
70 }
71 else
72 {
73 GameLang.refDrama1 = hobby.Name.ToLower();
74 CS$<>8__locals1.rumor = CS$<>8__locals1.<>4__this.GetText(CS$<>8__locals1.c, "general", "talk_hobby");
75 }
76 }
77 else
78 {
79 CS$<>8__locals1.rumor = CS$<>8__locals1.<>4__this.GetRumor(CS$<>8__locals1.c);
80 }
81 CS$<>8__locals1.c.affinity.OnTalkRumor();
82 choice.forceHighlight = true;
83 }).SetCondition(() => CS$<>8__locals1.c.interest > 0);
84 }
85 }
86 bool flag4 = false;
87 if (!CS$<>8__locals1.c.IsPCFaction && CS$<>8__locals1.c.affinity.CanInvite() && !EClass._zone.IsInstance && CS$<>8__locals1.c.c_bossType == BossType.none)
88 {
89 if ((CS$<>8__locals1.c.trait.IsUnique || CS$<>8__locals1.c.IsGlobal) && CS$<>8__locals1.c.GetInt(111, null) == 0 && !CS$<>8__locals1.c.IsPCFaction)
90 {
91 this.Choice2("daBout", "_bout");
92 flag4 = true;
93 }
94 else
95 {
96 this.Choice2("daInvite", "_invite");
97 }
98 }
99 Thing t;
100 foreach (Quest quest in EClass.game.quests.list)
101 {
102 Quest _quest = quest;
103 if (quest.CanDeliverToClient(CS$<>8__locals1.c))
104 {
105 QuestDeliver questDeliver = _quest as QuestDeliver;
106 using (List<Thing>.Enumerator enumerator2 = questDeliver.ListDestThing().GetEnumerator())
107 {
108 while (enumerator2.MoveNext())
109 {
110 t = enumerator2.Current;
111 Thing _t = t;
112 this.Choice2("daDeliver".lang(quest.GetTitle() ?? "", _t.GetName(NameStyle.Full, questDeliver.num), null, null, null), "_deliver").SetOnClick(delegate
113 {
114 CS$<>8__locals1.<>4__this.destThing = _t;
115 CS$<>8__locals1.<>4__this.destQuest = _quest;
116 }).SetOnTooltip(delegate(UITooltip a)
117 {
118 _t.WriteNote(a.note, null, IInspect.NoteMode.Default, null);
119 });
120 }
121 }
122 }
123 }
124 if (CS$<>8__locals1.c.IsPCParty)
125 {
126 if (!CS$<>8__locals1.c.isSummon)
127 {
128 if (EClass._zone.IsPCFaction && CS$<>8__locals1.c.homeBranch != EClass._zone.branch)
129 {
130 this.Choice2("daMakeHome", "_makeHome");
131 }
132 if (CS$<>8__locals1.c.host == null)
133 {
134 this.Choice2("daLeaveParty", "_leaveParty");
135 }
136 }
137 }
138 else if (CS$<>8__locals1.c.memberType != FactionMemberType.Livestock && !CS$<>8__locals1.c.IsGuest())
139 {
140 if (CS$<>8__locals1.c.trait.CanGuide)
141 {
142 foreach (Quest quest2 in EClass.game.quests.list)
143 {
144 if (quest2.IsRandomQuest)
145 {
146 Chara dest = (quest2.chara != null && quest2.chara.IsAliveInCurrentZone) ? quest2.chara : null;
147 if (dest != null)
148 {
149 this.Choice2("daGoto".lang(dest.Name, quest2.GetTitle() ?? "", null, null, null), "_goto").SetOnClick(delegate
150 {
151 CS$<>8__locals1.<>4__this.destCard = dest;
152 });
153 }
154 QuestDeliver questDeliver2 = quest2 as QuestDeliver;
155 if (questDeliver2 != null && questDeliver2.IsDeliver && questDeliver2.DestZone == EClass._zone && EClass._zone.dictCitizen.ContainsKey(questDeliver2.uidTarget))
156 {
157 Chara dest2 = EClass._zone.FindChara(questDeliver2.uidTarget);
158 if (dest2 != null)
159 {
160 this.Choice2("daGoto".lang(dest2.Name, quest2.GetTitle() ?? "", null, null, null), "_goto").SetOnClick(delegate
161 {
162 CS$<>8__locals1.<>4__this.destCard = dest2;
163 });
164 }
165 }
166 }
167 }
168 if (this.GetListGuide().Count > 0)
169 {
170 this.Choice2("daGuide", "_Guide");
171 }
172 }
173 string s = "daQuest";
174 Quest quest3 = CS$<>8__locals1.c.quest;
175 this.Choice2(s.lang(((quest3 != null) ? quest3.GetTitle() : null) ?? "", null, null, null, null), "_quest").SetCondition(() => CS$<>8__locals1.c.quest != null);
176 if (CS$<>8__locals1.c.trait is TraitGuard)
177 {
178 EClass.pc.things.Foreach(delegate(Thing _t)
179 {
180 if (_t.isLostProperty)
181 {
182 CS$<>8__locals1.<>4__this.Choice2("daLostProperty".lang(_t.Name, null, null, null, null), "_lostProperty").SetOnClick(delegate
183 {
184 CS$<>8__locals1.<>4__this.destThing = _t;
185 });
186 }
187 }, true);
188 }
189 if (CS$<>8__locals1.c.trait is TraitGM_Mage && Guild.Mage.relation.rank >= 4)
190 {
191 this.Choice2("daChangeDomain", "_changeDomain").DisableSound();
192 }
193 if (CS$<>8__locals1.c.trait.ShopType != ShopType.None)
194 {
195 this.Choice2(CS$<>8__locals1.c.trait.TextNextRestock, "_buy").DisableSound();
196 }
197 if (CS$<>8__locals1.c.trait.SlaverType != SlaverType.None)
198 {
199 this.Choice2(CS$<>8__locals1.c.trait.TextNextRestockPet, "_buySlave").DisableSound();
200 }
201 if (CS$<>8__locals1.c.trait.CopyShop != Trait.CopyShopType.None)
202 {
203 this.Choice2(("daCopy" + CS$<>8__locals1.c.trait.CopyShop.ToString()).lang(CS$<>8__locals1.c.trait.NumCopyItem.ToString() ?? "", null, null, null, null), "_copyItem").DisableSound();
204 }
205 if (CS$<>8__locals1.c.trait.HaveNews && CS$<>8__locals1.c.GetInt(33, null) + 10080 < EClass.world.date.GetRaw(0))
206 {
207 this.Choice2("daNews", "_news");
208 }
209 if (!flag4 && !EClass._zone.IsInstance && !CS$<>8__locals1.c.IsPCFaction && CS$<>8__locals1.c.trait.CanBout && CS$<>8__locals1.c.IsGlobal && CS$<>8__locals1.c.GetInt(59, null) + 10080 < EClass.world.date.GetRaw(0))
210 {
211 this.Choice2("daBout", "_bout");
212 }
213 if (CS$<>8__locals1.c.isDrunk)
214 {
215 this.Choice2(flag2 ? "daBird" : "daTail", "_tail");
216 }
217 if (CS$<>8__locals1.c.trait.CanRevive)
218 {
219 this.Choice2("daRevive", "_revive").DisableSound();
220 }
221 if (!CS$<>8__locals1.c.trait.IDTrainer.IsEmpty() && !EClass._zone.IsUserZone && (Guild.GetCurrentGuild() == null || Guild.GetCurrentGuild().relation.IsMember()))
222 {
223 this.Choice2("daTrain", "_train").DisableSound();
224 }
225 if (CS$<>8__locals1.c.trait.CanWhore)
226 {
227 this.Choice2(flag2 ? "daBirdBuy" : "daTailBuy", "_whore");
228 }
229 if (CS$<>8__locals1.c.trait.CanHeal)
230 {
231 this.Choice2("daHeal", "_heal");
232 }
233 if (CS$<>8__locals1.c.trait.CanServeFood)
234 {
235 this.Choice2("daFood", "_food");
236 }
237 if (CS$<>8__locals1.c.trait is TraitInformer)
238 {
239 this.Choice2("daSellFame", "_sellFame");
240 }
241 if (CS$<>8__locals1.c.trait.CanInvestTown && Guild.GetCurrentGuild() == null)
242 {
243 this.Choice2("daInvest", "_investZone");
244 }
245 if (CS$<>8__locals1.c.trait.CanInvest)
246 {
247 this.Choice2("daInvest", "_investShop");
248 }
249 if (CS$<>8__locals1.c.trait.CanIdentify)
250 {
251 this.Choice2("daIdentify", "_identify").DisableSound();
252 this.Choice2("daIdentifyAll", "_identifyAll");
253 this.Choice2("daIdentifySP", "_identifySP").DisableSound();
254 }
255 if (CS$<>8__locals1.c.trait.CanPicklock)
256 {
257 if (CS$<>8__locals1.c.Evalue(280) < 20)
258 {
259 CS$<>8__locals1.c.elements.SetBase(280, 20, 0);
260 }
261 foreach (Thing t2 in EClass.pc.things.List((Thing a) => a.c_lockLv > 0, false))
262 {
263 Thing _t = t2;
264 this.Choice2("daPicklock".lang(_t.Name, null, null, null, null), "_picklock").SetOnClick(delegate
265 {
266 CS$<>8__locals1.<>4__this.destThing = _t;
267 });
268 }
269 }
270 if (CS$<>8__locals1.c.trait is TraitBanker)
271 {
272 this.Choice2("daDeposit", "_deposit");
273 }
274 if (CS$<>8__locals1.c.IsMaid || (CS$<>8__locals1.c.trait.CanInvestTown && (EClass._zone.source.faction == "mysilia" || EClass._zone.IsPCFaction)))
275 {
276 this.Choice2("daExtraTax", "_extraTax");
277 }
278 if (CS$<>8__locals1.c.IsMaid)
279 {
280 if (EClass.Branch.meetings.CanStartMeeting)
281 {
282 this.Choice2("daMeeting".lang(EClass.Branch.meetings.list.Count.ToString() ?? "", null, null, null, null), "_meeting");
283 }
284 this.Choice2("daBuyLand", "_buyLand");
285 this.Choice2("daChangeTitle", "_changeTitle");
286 }
287 if ((CS$<>8__locals1.c.trait is TraitMiko_Mifu || CS$<>8__locals1.c.trait is TraitMiko_Nefu || CS$<>8__locals1.c.trait is TraitEureka) && EClass.world.date.IsExpired(CS$<>8__locals1.c.c_dateStockExpire))
288 {
289 this.Choice2("daBlessing", "_blessing");
290 }
291 }
292 if (CS$<>8__locals1.c.IsHomeMember())
293 {
294 if (CS$<>8__locals1.c.noMove)
295 {
296 this.Choice2("enableMove", "_enableMove");
297 }
298 if (!CS$<>8__locals1.c.IsPCParty && CS$<>8__locals1.c.memberType != FactionMemberType.Livestock && CS$<>8__locals1.c.trait.CanJoinParty)
299 {
300 this.Choice2("daJoinParty", "_joinParty");
301 }
302 this.Choice2("daFactionOther", "_factionOther");
303 }
304 if (CS$<>8__locals1.c.trait is TraitLoytel && EClass.game.quests.Get<QuestDebt>() != null)
305 {
306 this.Choice2("daGreatDebt", "_greatDebt");
307 }
308 if (!flag)
309 {
310 this.Choice2("bye", "_bye");
311 this.EnableCancel(null);
312 }
313 this.Step("_factionOther");
314 CS$<>8__locals1.<Build>g__Talk|0("what", this.StepDefault);
315 if (CS$<>8__locals1.c.IsPCParty)
316 {
317 if (!CS$<>8__locals1.c.isSummon)
318 {
319 this.Choice((CS$<>8__locals1.c.GetInt(106, null) == 0) ? "daShutup" : "daShutup2", "_shutup", false);
320 if (CS$<>8__locals1.c.CanInsult())
321 {
322 this.Choice((CS$<>8__locals1.c.GetInt(108, null) == 0) ? "daInsult" : "daInsult2", "_insult", false);
323 }
324 }
325 }
326 else if (!CS$<>8__locals1.c.noMove)
327 {
328 this.Choice("disableMove", "_disableMove", false);
329 }
330 if (CS$<>8__locals1.c.GetInt(113, null) == 0)
331 {
332 this.Choice("daEquipSharedOff", "_toggleSharedEquip", false);
333 }
334 else
335 {
336 this.Choice("daEquipSharedOn", "_toggleSharedEquip", false);
337 }
338 if (!CS$<>8__locals1.c.IsMaid && CS$<>8__locals1.c.homeBranch == EClass.Branch)
339 {
340 this.Choice("daMakeMaid", "_daMakeMaid", false);
341 }
342 if (CS$<>8__locals1.c.trait.CanBeBanished && !CS$<>8__locals1.c.IsPCParty)
343 {
344 this.Choice("daBanish", "_depart", false);
345 }
346 this.Choice("daNothing", this.StepDefault, true);
347 this.Step("_toggleSharedEquip");
348 this.Method(delegate
349 {
350 CS$<>8__locals1.c.SetInt(113, (CS$<>8__locals1.c.GetInt(113, null) == 0) ? 1 : 0);
351 }, null, null);
352 this._Talk("tg", this.GetTopic(CS$<>8__locals1.c, (CS$<>8__locals1.c.GetInt(113, null) == 0) ? "shutup" : "shutup2"), null);
353 this.End();
354 this.Step("_daMakeMaid");
355 this.Method(delegate
356 {
357 EClass.Branch.uidMaid = CS$<>8__locals1.c.uid;
358 }, null, null);
359 this._Talk("tg", this.GetTopic(CS$<>8__locals1.c, "becomeMaid"), null);
360 this.End();
361 this.Step("_joinParty");
362 this.Method(delegate
363 {
364 if (!CS$<>8__locals1.c.trait.CanJoinPartyResident)
365 {
366 GameLang.refDrama1 = (CS$<>8__locals1.c.GetBestAttribute().ToString() ?? "");
367 base.<Build>g__TempTalkTopic|4("invite3", CS$<>8__locals1.<>4__this.StepDefault);
368 return;
369 }
370 EClass.pc.party.AddMemeber(CS$<>8__locals1.c);
371 }, null, null);
372 CS$<>8__locals1.<Build>g__Talk|0("hired", this.StepEnd);
373 this.Step("_leaveParty");
374 this.Method(delegate
375 {
376 EClass.pc.party.RemoveMember(CS$<>8__locals1.c);
377 if (EClass.game.activeZone != CS$<>8__locals1.c.homeZone && CS$<>8__locals1.c.homeZone != null)
378 {
379 EClass.pc.Say("tame_send", CS$<>8__locals1.c, CS$<>8__locals1.c.homeZone.Name, null);
380 CS$<>8__locals1.c.MoveZone(CS$<>8__locals1.c.homeZone, ZoneTransition.EnterState.Auto);
381 }
382 }, null, null);
383 this.Goto("_bye");
384 this.Step("_banish");
385 this.Goto("_bye");
386 this.Step("_makeLivestock");
387 this.Method(delegate
388 {
389 CS$<>8__locals1.c.memberType = FactionMemberType.Livestock;
390 }, null, null);
391 CS$<>8__locals1.<Build>g__Talk|0("becomeLivestock", this.StepEnd);
392 this.Step("_makeResident");
393 this.Method(delegate
394 {
395 CS$<>8__locals1.c.memberType = FactionMemberType.Default;
396 }, null, null);
397 CS$<>8__locals1.<Build>g__Talk|0("becomeResident", this.StepEnd);
398 this.Step("_depart");
399 CS$<>8__locals1.<Build>g__Talk|0("depart_choice", this.StepDefault);
400 this.Choice("depart1", "_depart1", false);
401 this.Choice("depart2", "_depart2", false);
402 this.Step("_depart1");
403 this.Method(delegate
404 {
405 Layer instance = LayerDrama.Instance;
406 Action onKill;
407 if ((onKill = CS$<>8__locals1.<>9__99) == null)
408 {
409 onKill = (CS$<>8__locals1.<>9__99 = delegate()
410 {
411 EClass.Branch.BanishMember(CS$<>8__locals1.c, false);
412 });
413 }
414 instance.SetOnKill(onKill);
415 }, null, null);
416 CS$<>8__locals1.<Build>g__Talk|0("depart1", this.StepEnd);
417 this.Step("_depart2");
418 CS$<>8__locals1.<Build>g__Talk|0("depart2", this.StepDefault);
419 this.Step("_gift");
420 CS$<>8__locals1.<Build>g__Talk|0("gift_good", null);
421 this.End();
422 this.Step("_goto");
423 this.Method(delegate
424 {
425 GameLang.refDrama1 = CS$<>8__locals1.<>4__this.destCard.Name;
426 if (CS$<>8__locals1.<>4__this.destCard == CS$<>8__locals1.c)
427 {
428 base.<Build>g__TempTalkTopic|4("goto2", CS$<>8__locals1.<>4__this.StepDefault);
429 return;
430 }
431 base.<Build>g__TempTalkTopic|4("goto", "_goto2");
432 }, null, null);
433 this.Step("_goto2");
434 this.Method(delegate
435 {
436 if (CS$<>8__locals1.<>4__this.destCard.isChara && !PathManager.Instance.RequestPathImmediate(EClass.pc.pos, CS$<>8__locals1.<>4__this.destCard.pos, EClass.pc, PathManager.MoveType.Default, -1, 0).HasPath)
437 {
438 CS$<>8__locals1.<>4__this.destCard.Teleport(EClass.pc.pos.GetNearestPoint(false, false, true, true) ?? EClass.pc.pos, true, true);
439 }
440 EClass.pc.SetAIImmediate(new AI_Goto(CS$<>8__locals1.<>4__this.destCard, 1, false, false));
441 EInput.Consume(false, 20);
442 }, null, null);
443 this.End();
444 this.Step("_rumor");
445 CS$<>8__locals1.<Build>g__Talk|0("rumor", this.StepDefault);
446 this.Step("_lostProperty");
447 this.Method(delegate
448 {
449 GameLang.refDrama1 = CS$<>8__locals1.<>4__this.destThing.Name;
450 CS$<>8__locals1.<>4__this.destThing.Destroy();
451 EClass.player.ModKarma(5);
452 }, null, null);
453 this._Talk("tg", this.GetTopic(CS$<>8__locals1.c, "deliver_purse"), this.StepEnd);
454 Quest quest4 = CS$<>8__locals1.c.quest;
455 string text = (!this.setup.forceJump.IsEmpty()) ? this.StepEnd : this.StepDefault;
456 this.Step("_deliver");
457 this.Method(delegate
458 {
459 GameLang.refDrama1 = CS$<>8__locals1.<>4__this.destQuest.NameDeliver;
460 CS$<>8__locals1.<>4__this.destQuest.Deliver(CS$<>8__locals1.c, CS$<>8__locals1.<>4__this.destThing);
461 }, null, null);
462 this._Talk("tg", delegate()
463 {
464 if (CS$<>8__locals1.<>4__this.destQuest != null)
465 {
466 return CS$<>8__locals1.<>4__this.destQuest.GetTalkComplete().IsEmpty(CS$<>8__locals1.<>4__this.GetTopic(CS$<>8__locals1.c, (CS$<>8__locals1.<>4__this.destQuest.bonusMoney > 0) ? "questCompleteDeliverExtra" : "questCompleteDeliver"));
467 }
468 return "";
469 }, this.StepEnd);
470 this.Step("_quest");
471 this._Talk("tg", delegate()
472 {
473 if (CS$<>8__locals1.c.quest == null)
474 {
475 return "";
476 }
477 GameLang.refDrama1 = CS$<>8__locals1.c.quest.RefDrama1;
478 GameLang.refDrama2 = CS$<>8__locals1.c.quest.RefDrama2;
479 GameLang.refDrama3 = CS$<>8__locals1.c.quest.RefDrama3;
480 if (!base.<Build>g__taken|20())
481 {
482 return CS$<>8__locals1.c.quest.GetDetail(false);
483 }
484 return CS$<>8__locals1.c.quest.GetTalkProgress().IsEmpty(CS$<>8__locals1.<>4__this.GetTopic(CS$<>8__locals1.c, "questInProgress"));
485 }, text);
486 string text2 = "daAccept".lang();
487 if (CS$<>8__locals1.c.quest != null && CS$<>8__locals1.c.quest.deadline != 0)
488 {
489 text2 += "hintDeadline".lang(CS$<>8__locals1.c.quest.TextDeadline, null, null, null, null).ToLower();
490 }
491 this.Choice(text2, (CS$<>8__locals1.c.quest != null && CS$<>8__locals1.c.quest.UseInstanceZone) ? "_questAccept_instance" : "_questAccept", false).SetOnClick(delegate
492 {
493 EClass.game.quests.Start(CS$<>8__locals1.c.quest);
494 }).SetCondition(() => !base.<Build>g__taken|20() && EClass.game.quests.CountRandomQuest() < 5);
495 this.Choice(text2, "_questFull", false).SetOnClick(delegate
496 {
497 }).SetCondition(() => !base.<Build>g__taken|20() && EClass.game.quests.CountRandomQuest() >= 5);
498 this.Choice("daDecline", text, false).SetOnClick(new Action(CS$<>8__locals1.<Build>g__RumorChill|5)).SetCondition(() => !base.<Build>g__taken|20());
499 this.EnableCancel(text);
500 this.Step("_questAccept");
501 this._Talk("tg", this.GetTopic(CS$<>8__locals1.c, "questAccept"), this.StepEnd);
502 this.Step("_questAccept_instance");
503 this._Talk("tg", this.GetTopic(CS$<>8__locals1.c, "questAccept"), null);
504 this.Method(delegate
505 {
506 Zone z = CS$<>8__locals1.c.quest.CreateInstanceZone(CS$<>8__locals1.c);
507 EClass.pc.MoveZone(z, ZoneTransition.EnterState.Center);
508 }, null, this.StepEnd);
509 this.Step("_questFull");
510 this._Talk("tg", this.GetTopic(CS$<>8__locals1.c, "questFull"), text);
511 this.Step("_greatDebt");
512 this.Method(delegate
513 {
514 QuestDebt questDebt = EClass.game.quests.Get<QuestDebt>();
515 if (!questDebt.CanGiveBill())
516 {
517 base.<Build>g__TempTalkTopic|4("loytel_bill_give_wait", CS$<>8__locals1.<>4__this.StepDefault);
518 return;
519 }
520 if (questDebt.gaveBill)
521 {
522 base.<Build>g__TempTalkTopic|4("loytel_bill_give_given", CS$<>8__locals1.<>4__this.StepDefault);
523 return;
524 }
525 base.<Build>g__TempTalkTopic|4(questDebt.GetIdTalk_GiveBill(), CS$<>8__locals1.<>4__this.StepEnd);
526 questDebt.GiveBill();
527 }, null, null);
528 this.Step("_shutup");
529 this.Method(delegate
530 {
531 CS$<>8__locals1.c.SetInt(106, (CS$<>8__locals1.c.GetInt(106, null) == 0) ? 1 : 0);
532 }, null, null);
533 this._Talk("tg", this.GetTopic(CS$<>8__locals1.c, (CS$<>8__locals1.c.GetInt(106, null) == 0) ? "shutup" : "shutup2"), null);
534 this.End();
535 this.Step("_insult");
536 this.Method(delegate
537 {
538 CS$<>8__locals1.c.SetInt(108, (CS$<>8__locals1.c.GetInt(108, null) == 0) ? 1 : 0);
539 }, null, null);
540 this._Talk("tg", this.GetTopic(CS$<>8__locals1.c, (CS$<>8__locals1.c.GetInt(108, null) == 0) ? "insult" : "insult2"), null);
541 this.Method(delegate
542 {
543 if (CS$<>8__locals1.c.GetInt(108, null) == 1)
544 {
545 CS$<>8__locals1.c.Talk("insult", null, null, false);
546 }
547 }, null, null);
548 this.End();
549 this.Step("_makeHome");
550 this.Method(delegate
551 {
552 EClass._zone.branch.AddMemeber(CS$<>8__locals1.c);
553 }, null, null);
554 this._Talk("tg", this.GetTopic(CS$<>8__locals1.c, "ok"), null);
555 this.End();
556 this.Step("_hire");
557 CS$<>8__locals1.<Build>g__Talk|0("rumor", this.StepDefault);
558 this.Choice("daAccept", this.StepDefault, false).SetOnClick(delegate
559 {
560 });
561 this.Choice("daDecline", this.StepDefault, false).SetOnClick(delegate
562 {
563 });
564 this.Step("_invite");
565 this.Method(delegate
566 {
567 if (!CS$<>8__locals1.c.trait.CanInvite)
568 {
569 base.<Build>g__TempTalkTopic|4("invite2", CS$<>8__locals1.<>4__this.StepDefault);
570 return;
571 }
572 if (CS$<>8__locals1.c.GetBestAttribute() > EClass.pc.CHA && !EClass.debug.godMode)
573 {
574 GameLang.refDrama1 = (CS$<>8__locals1.c.GetBestAttribute().ToString() ?? "");
575 base.<Build>g__TempTalkTopic|4("invite3", CS$<>8__locals1.<>4__this.StepDefault);
576 return;
577 }
578 base.<Build>g__TempTalkTopic|4("invite", null);
579 DramaCustomSequence <>4__this = CS$<>8__locals1.<>4__this;
580 string lang = "yes";
581 Action onJump;
582 if ((onJump = CS$<>8__locals1.<>9__100) == null)
583 {
584 onJump = (CS$<>8__locals1.<>9__100 = delegate()
585 {
586 base.<Build>g__TempTalk|3("hired", CS$<>8__locals1.<>4__this.StepEnd);
587 EClass.Sound.Play("good");
588 CS$<>8__locals1.c.MakeAlly(true);
589 });
590 }
591 <>4__this.Choice(lang, onJump);
592 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
593 }, null, null);
594 this.Step("_Guide");
595 this.Method(delegate
596 {
597 base.<Build>g__TempTalkTopic|4("guide", null);
598 using (List<Card>.Enumerator enumerator3 = CS$<>8__locals1.<>4__this.GetListGuide().GetEnumerator())
599 {
600 while (enumerator3.MoveNext())
601 {
602 Card guide = enumerator3.Current;
603 CS$<>8__locals1.<>4__this.Choice("daGotoGuide".lang(guide.Name, "", null, null, null), "_goto", false).SetOnClick(delegate
604 {
605 CS$<>8__locals1.<>4__this.destCard = guide;
606 });
607 }
608 }
609 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
610 base.<Build>g__TempCancel|87();
611 }, null, null);
612 CS$<>8__locals1.<Build>g__BackChill|88();
613 this.Step("_tail");
614 this.Method(delegate
615 {
616 base.<Build>g__TempTalkTopic|4(CS$<>8__locals1.bird + "1", null);
617 DramaCustomSequence <>4__this = CS$<>8__locals1.<>4__this;
618 string lang = "yes2";
619 Action onJump;
620 if ((onJump = CS$<>8__locals1.<>9__102) == null)
621 {
622 onJump = (CS$<>8__locals1.<>9__102 = delegate()
623 {
624 base.<Build>g__TempTalkTopic|4(CS$<>8__locals1.bird + "2", CS$<>8__locals1.<>4__this.StepEnd);
625 EClass.pc.SetAI(new AI_Fuck
626 {
627 target = CS$<>8__locals1.c,
628 sell = true
629 });
630 });
631 }
632 <>4__this.Choice(lang, onJump);
633 CS$<>8__locals1.<>4__this.Choice("no2", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
634 }, null, null);
635 this.Step("_whore");
636 this.Method(delegate
637 {
638 int costWhore = CalcMoney.Whore(CS$<>8__locals1.c);
639 GameLang.refDrama1 = (costWhore.ToString() ?? "");
640 base.<Build>g__TempTalkTopic|4(CS$<>8__locals1.bird + "3", null);
641 CS$<>8__locals1.<>4__this.Choice("yes2", delegate()
642 {
643 if (EClass.pc.GetCurrency("money") < costWhore)
644 {
645 CS$<>8__locals1.<Build>g__TempTalkTopic|4("nomoney", CS$<>8__locals1.<>4__this.StepDefault);
646 return;
647 }
648 SE.Pay();
649 EClass.pc.ModCurrency(-costWhore, "money");
650 CS$<>8__locals1.<Build>g__TempTalkTopic|4(CS$<>8__locals1.bird + "2", CS$<>8__locals1.<>4__this.StepEnd);
651 EClass.pc.SetAI(new AI_Fuck
652 {
653 target = CS$<>8__locals1.c
654 });
655 });
656 CS$<>8__locals1.<>4__this.Choice("no2", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
657 }, null, null);
658 this.Step("_picklock");
659 this.Method(delegate
660 {
661 int cost = CalcMoney.Picklock(EClass.pc, CS$<>8__locals1.<>4__this.destThing);
662 GameLang.refDrama1 = (cost.ToString() ?? "");
663 base.<Build>g__TempTalkTopic|4("bird3", null);
664 CS$<>8__locals1.<>4__this.Choice("yes2", delegate()
665 {
666 if (CS$<>8__locals1.<>4__this.destThing.c_lockedHard)
667 {
668 CS$<>8__locals1.<Build>g__TempTalkTopic|4("lockTooHard", CS$<>8__locals1.<>4__this.StepDefault);
669 return;
670 }
671 if (EClass.pc.GetCurrency("money") < cost)
672 {
673 CS$<>8__locals1.<Build>g__TempTalkTopic|4("nomoney", CS$<>8__locals1.<>4__this.StepDefault);
674 return;
675 }
676 SE.Pay();
677 EClass.pc.ModCurrency(-cost, "money");
678 Layer layer = CS$<>8__locals1.<>4__this.manager.layer;
679 Action onKill;
680 if ((onKill = CS$<>8__locals1.<>9__105) == null)
681 {
682 onKill = (CS$<>8__locals1.<>9__105 = delegate()
683 {
684 CS$<>8__locals1.c.PlaySound("lock_open", 1f, true);
685 CS$<>8__locals1.c.Say("lockpick_success", CS$<>8__locals1.c, CS$<>8__locals1.<>4__this.destThing, null, null);
686 CS$<>8__locals1.c.ModExp(280, 200 + CS$<>8__locals1.<>4__this.destThing.c_lockLv * 20);
687 CS$<>8__locals1.<>4__this.destThing.c_lockLv = 0;
688 if (CS$<>8__locals1.<>4__this.destThing.isLostProperty)
689 {
690 EClass.player.ModKarma(-8);
691 }
692 CS$<>8__locals1.<>4__this.destThing.isLostProperty = false;
693 });
694 }
695 layer.SetOnKill(onKill);
696 CS$<>8__locals1.<Build>g__TempTalkTopic|4(CS$<>8__locals1.<>4__this.destThing.isLostProperty ? "lockpick_purse" : "bird2", CS$<>8__locals1.<>4__this.StepEnd);
697 });
698 CS$<>8__locals1.<>4__this.Choice("no2", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
699 }, null, null);
700 this.Step("_buy");
701 this.Method(delegate
702 {
703 if (CS$<>8__locals1.c.id == "miral")
704 {
705 SE.Play("click_chat");
706 if (EClass.pc.GetCurrency("medal") > 0)
707 {
708 base.<Build>g__TempTalkTopic|4("miral_medal", null);
709 return;
710 }
711 base.<Build>g__TempTalkTopic|4("miral_medal2", CS$<>8__locals1.<>4__this.StepDefault);
712 }
713 }, null, null);
714 this.Method(delegate
715 {
716 if (EClass.player.IsCriminal && !EClass._zone.AllowCriminal && !EClass._zone.IsPCFaction && !CS$<>8__locals1.c.trait.AllowCriminal)
717 {
718 SE.Play("click_chat");
719 base.<Build>g__TempTalkTopic|4("shop_criminal", CS$<>8__locals1.<>4__this.StepEnd);
720 return;
721 }
722 CS$<>8__locals1.<>4__this.sequence.Exit();
723 CS$<>8__locals1.<>4__this.manager.layer.Close();
724 CS$<>8__locals1.c.trait.OnBarter();
725 if (WidgetFeed.Instance)
726 {
727 WidgetFeed.Instance.Talk(CS$<>8__locals1.c, "barter");
728 }
729 CS$<>8__locals1.layer = EClass.ui.AddLayer(LayerInventory.CreateBuy(CS$<>8__locals1.c, CS$<>8__locals1.c.trait.CurrencyType, CS$<>8__locals1.c.trait.PriceType));
730 }, () => !CS$<>8__locals1.layer, this.StepDefault);
731 this.Step("_buyPlan");
732 this.Method(delegate
733 {
734 List<ResearchPlan> plans = new List<ResearchPlan>();
735 foreach (SourceResearch.Row row in EClass.sources.researches.rows)
736 {
737 if (EClass.BranchOrHomeBranch.researches.IsListBarter(row.id))
738 {
739 plans.Add(ResearchPlan.Create(row.id));
740 }
741 }
742 EClass.ui.AddLayer<LayerList>().ManualList(delegate(UIList list, LayerList l)
743 {
744 list.moldItem = Resources.Load<ItemGeneral>("UI/Element/Item/ItemGeneralBarter").transform;
745 list.callbacks = new UIList.Callback<ResearchPlan, ItemGeneral>
746 {
747 onInstantiate = delegate(ResearchPlan a, ItemGeneral b)
748 {
749 b.button1.mainText.text = a.Name;
750 UIItem uiitem = Util.Instantiate<UIItem>("UI/Element/Item/Extra/costBarter", b.layout);
751 HomeResource.Cost c = new HomeResource.Cost(EClass.BranchOrHomeBranch.resources.money, a.source.money);
752 uiitem.text1.SetText(c.cost.ToString() ?? "", (c.resource.value >= c.cost) ? FontColor.Good : FontColor.Bad);
753 uiitem.image1.sprite = c.resource.Sprite;
754 b.button1.SetTooltip(delegate(UITooltip t)
755 {
756 a.WriteNote(t.note);
757 }, true);
758 b.button1.onClick.AddListener(delegate()
759 {
760 if (c.resource.value < c.cost)
761 {
762 SE.Beep();
763 return;
764 }
765 c.resource.Mod(-c.cost, true);
766 plans.Remove(a);
767 EClass.BranchOrHomeBranch.researches.AddPlan(a);
768 SE.Pay();
769 list.List(true);
770 });
771 b.RebuildLayout(true);
772 },
773 onList = delegate(UIList.SortMode m)
774 {
775 foreach (ResearchPlan o in plans)
776 {
777 list.Add(o);
778 }
779 }
780 };
781 }).SetSize(450f, -1f).windows[0].AttachCurrency().Build(new UICurrency.Options
782 {
783 branchMoney = true
784 });
785 }, () => !CS$<>8__locals1.layer, this.StepDefault);
786 this.Step("_upgradeHearth");
787 this.Method(delegate
788 {
789 int cost = EClass.Branch.GetUpgradeCost();
790 GameLang.refDrama1 = Lang._currency(cost, "money");
791 GameLang.refDrama2 = ((EClass.Branch.lv + 1).ToString() ?? "");
792 GameLang.refDrama3 = "hearth_dialog".lang(EClass.Branch.GetHearthHint(EClass.Branch.lv + 1), null, null, null, null);
793 base.<Build>g__TempTalkTopic|4("upgrade_heath1", null);
794 CS$<>8__locals1.<>4__this.Choice("yes", delegate()
795 {
796 if (EClass.pc.GetCurrency("money") < cost)
797 {
798 CS$<>8__locals1.<Build>g__TempTalkTopic|4("nomoney", CS$<>8__locals1.<>4__this.StepDefault);
799 return;
800 }
801 EClass.pc.ModCurrency(-cost, "money");
802 SE.Pay();
803 LayerDrama.Instance.SetOnKill(delegate
804 {
805 EClass.Branch.Upgrade();
806 });
807 CS$<>8__locals1.<Build>g__TempTalkTopic|4("upgrade_heath2", CS$<>8__locals1.<>4__this.StepEnd);
808 });
809 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
810 }, null, null);
811 this.Step("_sellFame");
812 this.Method(delegate
813 {
814 int cost = EClass.player.fame / 5;
815 GameLang.refDrama1 = (cost.ToString() ?? "");
816 if (cost == 0)
817 {
818 base.<Build>g__TempTalkTopic|4("goto2", CS$<>8__locals1.<>4__this.StepDefault);
819 return;
820 }
821 base.<Build>g__TempTalkTopic|4("sellFame1", null);
822 CS$<>8__locals1.<>4__this.Choice("yes", delegate()
823 {
824 EClass.pc.ModCurrency(cost, "money");
825 SE.Pay();
826 EClass.player.ModFame(-cost);
827 CS$<>8__locals1.<Build>g__TempTalkTopic|4("sellFame2", CS$<>8__locals1.<>4__this.StepDefault);
828 });
829 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
830 }, null, null);
831 this.Step("_investZone");
832 this.Method(delegate
833 {
834 int cost = CalcMoney.InvestZone(EClass.pc);
835 GameLang.refDrama1 = (cost.ToString() ?? "");
836 GameLang.refDrama2 = (EClass._zone.investment.ToString() ?? "");
837 base.<Build>g__TempTalkTopic|4("invest1", null);
838 CS$<>8__locals1.<>4__this.Choice("yes", delegate()
839 {
840 base.<Build>g__Invest|114(false);
841 });
842 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
843 CS$<>8__locals1.<>4__this.Choice("quickInvest", delegate()
844 {
845 base.<Build>g__Invest|114(true);
846 });
847 }, null, null);
848 this.Step("_investShop");
849 this.Method(delegate
850 {
851 int cost = CalcMoney.InvestShop(EClass.pc, CS$<>8__locals1.c);
852 GameLang.refDrama1 = (cost.ToString() ?? "");
853 GameLang.refDrama2 = (CS$<>8__locals1.c.trait.ShopLv.ToString() ?? "");
854 base.<Build>g__TempTalkTopic|4("invest_shop1", null);
855 CS$<>8__locals1.<>4__this.Choice("yes", delegate()
856 {
857 base.<Build>g__Invest|117(false);
858 });
859 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
860 CS$<>8__locals1.<>4__this.Choice("quickInvest", delegate()
861 {
862 base.<Build>g__Invest|117(true);
863 });
864 }, null, null);
865 this.Step("_changeTitle");
866 this.Method(delegate
867 {
868 EClass.player.title = WordGen.Get("title");
869 GameLang.refDrama1 = EClass.player.title;
870 base.<Build>g__TempTalk|3("changeTitle", CS$<>8__locals1.<>4__this.StepDefault);
871 }, null, this.StepDefault);
872 this.Step("_buyLand");
873 this.Method(delegate
874 {
875 bool flag5 = EClass._map.bounds.CanExpand(1);
876 int costLand = CalcGold.ExpandLand();
877 GameLang.refDrama1 = "";
878 GameLang.refDrama2 = (costLand.ToString() ?? "");
879 if (!flag5)
880 {
881 base.<Build>g__TempTalkTopic|4("expand3", CS$<>8__locals1.<>4__this.StepDefault);
882 return;
883 }
884 base.<Build>g__TempTalkTopic|4("expand1", CS$<>8__locals1.<>4__this.StepDefault);
885 CS$<>8__locals1.<>4__this.Choice("yes", delegate()
886 {
887 if (EClass.pc.GetCurrency("money2") < costLand)
888 {
889 CS$<>8__locals1.<Build>g__TempTalkTopic|4("nomoney", CS$<>8__locals1.<>4__this.StepDefault);
890 return;
891 }
892 SE.Pay();
893 EClass.pc.ModCurrency(-costLand, "money2");
894 CS$<>8__locals1.<Build>g__TempTalkTopic|4("expand2", CS$<>8__locals1.<>4__this.StepDefault);
895 EClass._map.bounds.Expand(1);
896 SE.Play("good");
897 EClass._map.RefreshAllTiles();
898 ScreenEffect.Play("Firework");
899 });
900 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
901 }, null, null);
902 this.Step("_meeting");
903 this.Method(delegate
904 {
905 CS$<>8__locals1.<>4__this.sequence.Exit();
906 CS$<>8__locals1.<>4__this.manager.layer.Close();
907 EClass.Branch.meetings.Start();
908 }, null, null);
909 this.End();
910 this.Step("_give");
911 this.Method(delegate
912 {
913 CS$<>8__locals1.<>4__this.manager.Hide();
914 CS$<>8__locals1.layer = LayerDragGrid.CreateGive(CS$<>8__locals1.c);
915 CS$<>8__locals1.layer.SetOnKill(new Action(CS$<>8__locals1.<>4__this.manager.Show));
916 }, () => !CS$<>8__locals1.layer, this.StepDefault);
917 this.Step("_blessing");
918 this.Method(delegate
919 {
920 bool flag5 = CS$<>8__locals1.c.trait is TraitMiko_Mifu;
921 base.<Build>g__TempTalkTopic|4("blessing", CS$<>8__locals1.<>4__this.StepEnd);
922 Layer instance = LayerDrama.Instance;
923 Action onKill;
924 if ((onKill = CS$<>8__locals1.<>9__121) == null)
925 {
926 onKill = (CS$<>8__locals1.<>9__121 = delegate()
927 {
928 foreach (Chara chara in EClass.pc.party.members)
929 {
930 if (CS$<>8__locals1.c.trait is TraitMiko_Mifu)
931 {
932 Condition condition = chara.AddCondition<ConHolyVeil>(100, false);
933 if (condition != null)
934 {
935 condition.SetPerfume(3);
936 }
937 }
938 else if (CS$<>8__locals1.c.trait is TraitMiko_Nefu)
939 {
940 Condition condition2 = chara.AddCondition<ConEuphoric>(100, false);
941 if (condition2 != null)
942 {
943 condition2.SetPerfume(3);
944 }
945 }
946 else
947 {
948 Condition condition3 = chara.AddCondition<ConNightVision>(100, false);
949 if (condition3 != null)
950 {
951 condition3.SetPerfume(3);
952 }
953 }
954 chara.Say("blessing", chara, null, null);
955 chara.PlaySound("pray", 1f, true);
956 chara.PlayEffect("holyveil", true, 0f, default(Vector3));
957 }
958 CS$<>8__locals1.c.isRestocking = true;
959 });
960 }
961 instance.SetOnKill(onKill);
962 CS$<>8__locals1.c.c_dateStockExpire = EClass.world.date.GetRaw(0) + (flag5 ? 180 : 180) * 1440;
963 }, null, null);
964 this.Step("_train");
965 this.Method(delegate
966 {
967 LayerList layerList = EClass.ui.AddLayer<LayerList>();
968 Action<UIList, LayerList> onInit;
969 if ((onInit = CS$<>8__locals1.<>9__122) == null)
970 {
971 onInit = (CS$<>8__locals1.<>9__122 = delegate(UIList list, LayerList l)
972 {
973 list.moldItem = Resources.Load<ButtonElement>("UI/Element/Button/ButtonElementTrain").transform;
974 BaseList list2 = list;
975 UIList.Callback<Element, ButtonElement> callback = new UIList.Callback<Element, ButtonElement>();
976 callback.onClick = delegate(Element a, ButtonElement b)
977 {
978 int num = EClass.pc.elements.HasBase(a.id) ? CalcPlat.Train(EClass.pc, a) : CalcPlat.Learn(EClass.pc, a);
979 if (num == 0)
980 {
981 SE.Beep();
982 return;
983 }
984 if (!EClass.pc.TryPay(num, "plat"))
985 {
986 return;
987 }
988 if (EClass.pc.elements.HasBase(a.id))
989 {
990 EClass.pc.elements.Train(a.id, 10);
991 }
992 else
993 {
994 EClass.pc.elements.Learn(a.id, 1);
995 }
996 list.Redraw();
997 UIButton.TryShowTip(null, true, true);
998 };
999 callback.onRedraw = delegate(Element a, ButtonElement b, int i)
1000 {
1001 b.SetElement(EClass.pc.elements.GetElement(a.id) ?? a, EClass.pc.elements, ButtonElement.Mode.Skill);
1002 int plat = EClass.pc.GetCurrency("plat");
1003 int cost = EClass.pc.elements.HasBase(a.id) ? CalcPlat.Train(EClass.pc, a) : CalcPlat.Learn(EClass.pc, a);
1004 b.mainText.text = (EClass.pc.elements.HasBase(a.id) ? "alreadyLearned".lang() : "") + b.mainText.text;
1005 b.subText2.text = ((cost == 0) ? "-" : (cost.ToString() ?? "")).TagColor(() => plat >= cost && cost != 0, null);
1006 };
1007 callback.onInstantiate = delegate(Element a, ButtonElement b)
1008 {
1009 };
1010 callback.onList = delegate(UIList.SortMode m)
1011 {
1012 IEnumerable<SourceElement.Row> rows = EClass.sources.elements.rows;
1013 Func<SourceElement.Row, bool> predicate;
1014 if ((predicate = CS$<>8__locals1.<>9__128) == null)
1015 {
1016 predicate = (CS$<>8__locals1.<>9__128 = delegate(SourceElement.Row a)
1017 {
1018 if (a.tag.Contains("unused"))
1019 {
1020 return false;
1021 }
1022 if (a.tag.Contains("guild"))
1023 {
1024 return (a.tag.Contains("fighter") && Guild.Fighter.IsCurrentZone) || (a.tag.Contains("mage") && Guild.Mage.IsCurrentZone) || (a.tag.Contains("thief") && Guild.Thief.IsCurrentZone) || (a.tag.Contains("merchant") && Guild.Merchant.IsCurrentZone);
1025 }
1026 return !CS$<>8__locals1.isInGuild && a.category == "skill" && a.categorySub == CS$<>8__locals1.c.trait.IDTrainer;
1027 });
1028 }
1029 foreach (SourceElement.Row row in rows.Where(predicate).ToList<SourceElement.Row>())
1030 {
1031 list.Add(Element.Create(row.id, 0));
1032 }
1033 };
1034 list2.callbacks = callback;
1035 });
1036 }
1037 CS$<>8__locals1.layer = layerList.ManualList(onInit).SetSize(450f, -1f).SetTitles("wTrain", null).SetOnKill(new Action(SE.PopDrama));
1038 CS$<>8__locals1.layer.windows[0].AttachCurrency().Build(new UICurrency.Options
1039 {
1040 plat = true
1041 });
1042 }, () => !CS$<>8__locals1.layer, this.StepDefault);
1043 this.Step("_changeDomain");
1044 this.Method(delegate
1045 {
1046 CS$<>8__locals1.layer = EClass.player.SelectDomain(new Action(SE.PopDrama));
1047 }, () => !CS$<>8__locals1.layer, this.StepDefault);
1048 this.Step("_revive");
1049 this.Method(delegate
1050 {
1051 CS$<>8__locals1.layer = EClass.ui.AddLayer(LayerPeople.Create<ListPeopleRevive>("h_revive", null));
1052 CS$<>8__locals1.layer.SetOnKill(new Action(SE.PopDrama));
1053 CS$<>8__locals1.layer.windows[0].AttachCurrency().Build(new UICurrency.Options
1054 {
1055 money = true
1056 });
1057 }, () => !CS$<>8__locals1.layer, this.StepDefault);
1058 this.Step("_buySlave");
1059 this.Method(delegate
1060 {
1061 LayerPeople.slaveToBuy = null;
1062 CS$<>8__locals1.layer = EClass.ui.AddLayer(LayerPeople.Create<ListPeopleBuySlave>("h_invBuy", CS$<>8__locals1.c));
1063 CS$<>8__locals1.layer.SetOnKill(new Action(SE.PopDrama));
1064 CS$<>8__locals1.layer.windows[0].AttachCurrency().Build(new UICurrency.Options
1065 {
1066 money = true
1067 });
1068 CS$<>8__locals1.<>4__this.manager.Load();
1069 }, () => !CS$<>8__locals1.layer, "_buySlaveConfirm");
1070 this.Step("_buySlaveConfirm");
1071 this.Method(delegate
1072 {
1073 Chara tc = LayerPeople.slaveToBuy;
1074 if (tc == null)
1075 {
1076 base.<Build>g__RumorChill|5();
1077 return;
1078 }
1079 int cost = CalcMoney.BuySlave(tc);
1080 GameLang.refDrama1 = (cost.ToString() ?? "");
1081 GameLang.refDrama2 = tc.Name;
1082 base.<Build>g__TempTalkTopic|4("slave_buy", null);
1083 CS$<>8__locals1.<>4__this.Choice("yes", delegate()
1084 {
1085 if (!EClass.pc.TryPay(cost, "money"))
1086 {
1087 CS$<>8__locals1.<Build>g__TempTalkTopic|4("nomoney", CS$<>8__locals1.<>4__this.StepDefault);
1088 return;
1089 }
1090 GameLang.refDrama1 = tc.Name;
1091 EClass._zone.AddCard(tc, EClass.pc.pos.GetNearestPoint(false, true, true, false));
1092 tc.MakeAlly(true);
1093 CS$<>8__locals1.c.GetObj<SlaverData>(5).list.Remove(tc);
1094 CS$<>8__locals1.<Build>g__TempTalkTopic|4("slave_buy2", CS$<>8__locals1.<>4__this.StepEnd);
1095 }).DisableSound();
1096 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
1097 }, null, null);
1098 this.Goto(this.StepDefault);
1099 this.Step("_trade");
1100 this.Method(delegate
1101 {
1102 CS$<>8__locals1.layer = EClass.ui.AddLayer(LayerInventory.CreateContainer(CS$<>8__locals1.c));
1103 }, () => !CS$<>8__locals1.layer, this.StepDefault);
1104 this.Step("_identify");
1105 this.Method(delegate
1106 {
1107 CS$<>8__locals1.<>4__this.manager.Hide();
1108 CS$<>8__locals1.c.trait.OnBarter();
1109 CS$<>8__locals1.layer = LayerDragGrid.CreateIdentify(EClass.pc, false, BlessedState.Normal, CalcMoney.Identify(EClass.pc, false), -1);
1110 CS$<>8__locals1.layer.SetOnKill(new Action(CS$<>8__locals1.<>4__this.manager.Show));
1111 }, () => !CS$<>8__locals1.layer, this.StepDefault);
1112 this.Step("_identifyAll");
1113 this.Method(delegate
1114 {
1115 int costIdentify = 0;
1116 int numIdentify = 0;
1117 int numSuperior = 0;
1118 EClass.pc.things.Foreach(delegate(Thing t)
1119 {
1120 if (t.IsIdentified || t.c_IDTState == 1)
1121 {
1122 return;
1123 }
1124 int numIdentify = numIdentify;
1125 numIdentify++;
1126 costIdentify += CalcMoney.Identify(EClass.pc, false);
1127 }, true);
1128 GameLang.refDrama1 = (costIdentify.ToString() ?? "");
1129 GameLang.refDrama2 = (numIdentify.ToString() ?? "");
1130 if (numIdentify == 0)
1131 {
1132 base.<Build>g__TempTalkTopic|4("appraise3", CS$<>8__locals1.<>4__this.StepDefault);
1133 return;
1134 }
1135 base.<Build>g__TempTalkTopic|4("appraise1", CS$<>8__locals1.<>4__this.StepDefault);
1136 CS$<>8__locals1.<>4__this.Choice("yes", delegate()
1137 {
1138 if (EClass.pc.GetCurrency("money") < costIdentify)
1139 {
1140 CS$<>8__locals1.<Build>g__TempTalkTopic|4("nomoney", CS$<>8__locals1.<>4__this.StepDefault);
1141 return;
1142 }
1143 SE.Pay();
1144 EClass.pc.ModCurrency(-costIdentify, "money");
1145 foreach (Thing thing in EClass.pc.things.List((Thing t) => !t.IsIdentified, true))
1146 {
1147 thing.Thing.Identify(false, IDTSource.Identify);
1148 if (!thing.IsInstalled)
1149 {
1150 int numSuperior = numSuperior;
1151 numSuperior++;
1152 }
1153 }
1154 CS$<>8__locals1.<Build>g__TempTalkTopic|4("appraise2", CS$<>8__locals1.<>4__this.StepDefault);
1155 });
1156 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
1157 }, null, null);
1158 this.Step("_identifySP");
1159 this.Method(delegate
1160 {
1161 CS$<>8__locals1.<>4__this.manager.Hide();
1162 CS$<>8__locals1.c.trait.OnBarter();
1163 CS$<>8__locals1.layer = LayerDragGrid.CreateIdentify(EClass.pc, true, BlessedState.Normal, CalcMoney.Identify(EClass.pc, true), -1);
1164 CS$<>8__locals1.layer.SetOnKill(new Action(CS$<>8__locals1.<>4__this.manager.Show));
1165 }, () => !CS$<>8__locals1.layer, this.StepDefault);
1166 this.Step("_bout");
1167 this.Method(delegate
1168 {
1169 base.<Build>g__TempTalkTopic|4("bout1", CS$<>8__locals1.<>4__this.StepDefault);
1170 DramaCustomSequence <>4__this = CS$<>8__locals1.<>4__this;
1171 string lang = "yes";
1172 Action onJump;
1173 if ((onJump = CS$<>8__locals1.<>9__133) == null)
1174 {
1175 onJump = (CS$<>8__locals1.<>9__133 = delegate()
1176 {
1177 Zone z = SpatialGen.CreateInstance("field", new ZoneInstanceBout
1178 {
1179 uidTarget = CS$<>8__locals1.c.uid,
1180 targetX = CS$<>8__locals1.c.pos.x,
1181 targetZ = CS$<>8__locals1.c.pos.z
1182 });
1183 CS$<>8__locals1.c.SetGlobal();
1184 z.events.AddPreEnter(new ZonePreEnterBout
1185 {
1186 target = CS$<>8__locals1.c
1187 }, true);
1188 CS$<>8__locals1.c.SetInt(59, EClass.world.date.GetRaw(0));
1189 LayerDrama.Instance.SetOnKill(delegate
1190 {
1191 EClass.pc.MoveZone(z, ZoneTransition.EnterState.Center);
1192 });
1193 base.<Build>g__TempTalkTopic|4("bout2", CS$<>8__locals1.<>4__this.StepEnd);
1194 });
1195 }
1196 <>4__this.Choice(lang, onJump);
1197 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
1198 }, null, this.StepDefault);
1199 this.Step("_news");
1200 this.Method(delegate
1201 {
1202 Zone zone = EClass.world.region.CreateRandomSite(EClass._zone, 5, null, true);
1203 if (zone == null)
1204 {
1205 base.<Build>g__TempTalkTopic|4("news2", null);
1206 }
1207 else
1208 {
1209 zone.isKnown = true;
1210 Msg.Say("discoverZone", zone.Name, null, null, null);
1211 GameLang.refDrama1 = zone.Name;
1212 base.<Build>g__TempTalkTopic|4("news1", null);
1213 }
1214 CS$<>8__locals1.c.SetInt(33, EClass.world.date.GetRaw(0));
1215 }, null, null);
1216 this.Method(delegate
1217 {
1218 CS$<>8__locals1.<>4__this.manager.Load();
1219 }, null, this.StepDefault);
1220 this.Step("_heal");
1221 this.Method(delegate
1222 {
1223 int costHeal = CalcMoney.Heal(EClass.pc);
1224 GameLang.refDrama1 = (costHeal.ToString() ?? "");
1225 base.<Build>g__TempTalkTopic|4("healer1", null);
1226 CS$<>8__locals1.<>4__this.Choice("yes", delegate()
1227 {
1228 if (EClass.pc.GetCurrency("money") < costHeal)
1229 {
1230 CS$<>8__locals1.<Build>g__TempTalkTopic|4("nomoney", CS$<>8__locals1.<>4__this.StepDefault);
1231 return;
1232 }
1233 SE.Pay();
1234 foreach (Chara cc in EClass.pc.party.members)
1235 {
1236 ActEffect.Proc(EffectId.HealComplete, cc, null, 100, default(ActRef));
1237 }
1238 EClass.pc.ModCurrency(-costHeal, "money");
1239 CS$<>8__locals1.<Build>g__TempTalkTopic|4("healer2", CS$<>8__locals1.<>4__this.StepEnd);
1240 });
1241 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
1242 }, null, null);
1243 this.Step("_food");
1244 this.Method(delegate
1245 {
1246 int cost = CalcMoney.Meal(EClass.pc);
1247 GameLang.refDrama1 = (cost.ToString() ?? "");
1248 base.<Build>g__TempTalkTopic|4("food1", null);
1249 CS$<>8__locals1.<>4__this.Choice("yes", delegate()
1250 {
1251 if (EClass.pc.hunger.GetPhase() <= 0)
1252 {
1253 CS$<>8__locals1.<Build>g__TempTalkTopic|4("alreadyFull", CS$<>8__locals1.<>4__this.StepDefault);
1254 return;
1255 }
1256 if (EClass.pc.GetCurrency("money") < cost)
1257 {
1258 CS$<>8__locals1.<Build>g__TempTalkTopic|4("nomoney", CS$<>8__locals1.<>4__this.StepDefault);
1259 return;
1260 }
1261 SE.Pay();
1262 EClass.pc.ModCurrency(-cost, "money");
1263 CS$<>8__locals1.<Build>g__TempTalkTopic|4("food2", CS$<>8__locals1.<>4__this.StepDefault);
1264 FoodEffect.Proc(EClass.pc, ThingGen.Create("dish_lunch", -1, -1));
1265 EClass.pc.hunger.value = 0;
1266 });
1267 CS$<>8__locals1.<>4__this.Choice("no", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
1268 }, null, null);
1269 CS$<>8__locals1.bankTier = new int[]
1270 {
1271 100,
1272 1000,
1273 10000,
1274 100000,
1275 1000000
1276 };
1277 this.Step("_deposit");
1278 this.Method(delegate
1279 {
1280 CS$<>8__locals1.<>4__this.sequence.Exit();
1281 CS$<>8__locals1.<>4__this.manager.layer.Close();
1282 if (WidgetFeed.Instance)
1283 {
1284 WidgetFeed.Instance.Talk(CS$<>8__locals1.c, "barter");
1285 }
1286 SE.Play("shop_open");
1287 CS$<>8__locals1.layer = LayerInventory.CreateContainer(EClass.game.cards.container_deposit);
1288 }, () => !CS$<>8__locals1.layer, this.StepDefault);
1289 this.End();
1290 this.Step("_copyItem");
1291 this.Method(delegate
1292 {
1293 CS$<>8__locals1.<>4__this.sequence.Exit();
1294 CS$<>8__locals1.<>4__this.manager.layer.Close();
1295 if (WidgetFeed.Instance)
1296 {
1297 WidgetFeed.Instance.Talk(CS$<>8__locals1.c, "barter");
1298 }
1299 SE.Play("shop_open");
1300 CS$<>8__locals1.c.trait.OnBarter();
1301 if (CS$<>8__locals1.c.c_copyContainer == null)
1302 {
1303 CS$<>8__locals1.c.c_copyContainer = ThingGen.Create("container_deposit", -1, -1);
1304 }
1305 int numCopyItem = CS$<>8__locals1.c.trait.NumCopyItem;
1306 CS$<>8__locals1.c.c_copyContainer.things.SetSize(numCopyItem, 1);
1307 CS$<>8__locals1.layer = LayerInventory.CreateContainer<InvOwnerCopyShop>(CS$<>8__locals1.c, CS$<>8__locals1.c.c_copyContainer, CurrencyType.None);
1308 }, () => !CS$<>8__locals1.layer, this.StepDefault);
1309 this.End();
1310 CS$<>8__locals1.taxTier = new int[]
1311 {
1312 0,
1313 1000,
1314 2000,
1315 5000,
1316 10000,
1317 20000
1318 };
1319 this.Step("_extraTax");
1320 this.Method(delegate
1321 {
1322 GameLang.refDrama1 = Lang._currency(EClass.player.extraTax, "money");
1323 base.<Build>g__TempTalkTopic|4("extraTax", null);
1324 int[] taxTier = CS$<>8__locals1.taxTier;
1325 for (int i = 0; i < taxTier.Length; i++)
1326 {
1327 int i2 = taxTier[i];
1328 int _i = i2;
1329 CS$<>8__locals1.<>4__this.Choice(Lang._currency(_i, true, 14), delegate()
1330 {
1331 EClass.player.extraTax = _i;
1332 GameLang.refDrama1 = Lang._currency(_i, "money");
1333 CS$<>8__locals1.<Build>g__TempTalkTopic|4("extraTax2", CS$<>8__locals1.<>4__this.StepDefault);
1334 });
1335 }
1336 CS$<>8__locals1.<>4__this.Choice("no2", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
1337 }, null, null);
1338 this.Step("_withdraw");
1339 this.Method(delegate
1340 {
1341 int bankMoney = EClass.player.bankMoney;
1342 GameLang.refDrama1 = (bankMoney.ToString() ?? "");
1343 base.<Build>g__TempTalkTopic|4("banker2", null);
1344 int[] bankTier = CS$<>8__locals1.bankTier;
1345 for (int i = 0; i < bankTier.Length; i++)
1346 {
1347 int i2 = bankTier[i];
1348 int _i = i2;
1349 if (EClass.player.bankMoney >= _i)
1350 {
1351 CS$<>8__locals1.<>4__this.Choice(Lang._currency(_i, true, 14), delegate()
1352 {
1353 SE.Pay();
1354 EClass.pc.ModCurrency(_i, "money");
1355 EClass.player.bankMoney -= _i;
1356 CS$<>8__locals1.<Build>g__TempTalkTopic|4("banker4", CS$<>8__locals1.<>4__this.StepDefault);
1357 });
1358 }
1359 }
1360 CS$<>8__locals1.<>4__this.Choice("no2", CS$<>8__locals1.<>4__this.StepDefault, true).SetOnClick(new Action(base.<Build>g__RumorChill|5));
1361 }, null, null);
1362 this.Step("_disableMove");
1363 this.Method(delegate
1364 {
1365 CS$<>8__locals1.c.noMove = true;
1366 CS$<>8__locals1.c.orgPos = new Point(CS$<>8__locals1.c.pos);
1367 CS$<>8__locals1.c.Talk("ok", null, null, false);
1368 }, null, null);
1369 this.End();
1370 this.Step("_enableMove");
1371 this.Method(delegate
1372 {
1373 CS$<>8__locals1.c.noMove = false;
1374 CS$<>8__locals1.c.orgPos = null;
1375 CS$<>8__locals1.c.Talk("thanks", null, null, false);
1376 }, null, null);
1377 this.End();
1378 this.Step("_bye");
1379 this.Method(delegate
1380 {
1381 CS$<>8__locals1.c.Talk("bye", null, null, false);
1382 }, null, null);
1383 this.End();
1384 }
1385
1386 // Token: 0x0600073B RID: 1851 RVA: 0x0002FC44 File Offset: 0x0002DE44
1387 public string GetRumor(Chara c)
1388 {
1389 if (c.interest <= 0)
1390 {
1391 return this.GetText(c, "rumor", "bored");
1392 }
1393 if (this.HasTopic("unique", c.id))
1394 {
1395 this.manager.enableTone = false;
1396 return this.GetText(c, "unique", c.id);
1397 }
1398 if (EClass.rnd(2) == 0 && !c.trait.IDRumor.IsEmpty())
1399 {
1400 return this.GetText(c, "rumor", c.trait.IDRumor);
1401 }
1402 if (EClass.rnd(2) == 0 && this.HasTopic("zone", EClass._zone.id))
1403 {
1404 return this.GetText(c, "zone", EClass._zone.id);
1405 }
1406 if (EClass.rnd(2) == 0)
1407 {
1408 return this.GetText(c, "rumor", "interest_" + c.bio.idInterest.ToEnum<Interest>().ToString());
1409 }
1410 if (EClass.rnd(2) == 0)
1411 {
1412 return c.GetTalkText("rumor", false, true);
1413 }
1414 if (EClass.rnd(4) == 0)
1415 {
1416 return this.GetText(c, "rumor", "hint");
1417 }
1418 return this.GetText(c, "rumor", "default");
1419 }
1420
1421 // Token: 0x0600073C RID: 1852 RVA: 0x0002FD84 File Offset: 0x0002DF84
1422 public bool HasTopic(string idSheet, string idTopic)
1423 {
1424 string path = CorePath.CorePackage.TextDialog + "dialog.xlsx";
1425 if (!File.Exists(path))
1426 {
1427 return false;
1428 }
1429 ExcelData excelData = new ExcelData();
1430 excelData.path = path;
1431 excelData.BuildMap(idSheet);
1432 return excelData.sheets[idSheet].map.ContainsKey(idTopic);
1433 }
1434
1435 // Token: 0x0600073D RID: 1853 RVA: 0x0002FDD4 File Offset: 0x0002DFD4
1436 public string GetText(Chara c, string idSheet, string idTopic)
1437 {
1438 if (!idTopic.IsEmpty() && this.manager.customTalkTopics.ContainsKey(idTopic))
1439 {
1440 return this.manager.customTalkTopics[idTopic];
1441 }
1442 string[] dialog = Lang.GetDialog(idSheet, idTopic);
1443 if (!this.manager.enableTone && !(idSheet == "general"))
1444 {
1445 return dialog.RandomItem<string>();
1446 }
1447 return c.ApplyTone(dialog.RandomItem<string>(), false);
1448 }
1449
1450 // Token: 0x0600073E RID: 1854 RVA: 0x0002FE44 File Offset: 0x0002E044
1451 public string GetTopic(Chara c, string idTopic = null)
1452 {
1453 return this.GetText(c, "general", idTopic);
1454 }
1455
1456 // Token: 0x0600073F RID: 1855 RVA: 0x0002FE54 File Offset: 0x0002E054
1457 public void BuildTextData()
1458 {
1459 this.Step("import");
1460 foreach (string text in this.setup.textData.Split(new string[]
1461 {
1462 Environment.NewLine + Environment.NewLine
1463 }, StringSplitOptions.RemoveEmptyEntries))
1464 {
1465 if (!(text == Environment.NewLine))
1466 {
1467 this._Talk("", text.TrimStart(Environment.NewLine.ToCharArray()).TrimEnd(Environment.NewLine.ToCharArray()), null);
1468 }
1469 }
1470 this.End();
1471 }
1472
1473 // Token: 0x06000740 RID: 1856 RVA: 0x0002FEE6 File Offset: 0x0002E0E6
1474 public DramaEvent Event(DramaEvent e)
1475 {
1476 this.events.Add(e);
1477 e.sequence = this.sequence;
1478 return e;
1479 }
1480
1481 // Token: 0x06000741 RID: 1857 RVA: 0x0002FF01 File Offset: 0x0002E101
1482 public void Step(string step)
1483 {
1484 this.Event(new DramaEvent
1485 {
1486 step = step
1487 });
1488 }
1489
1490 // Token: 0x06000742 RID: 1858 RVA: 0x0002FF16 File Offset: 0x0002E116
1491 public void Method(Action action, Func<bool> endFunc = null, string idJump = null)
1492 {
1493 this.Event(new DramaEventMethod(action, 0f, false)
1494 {
1495 endFunc = endFunc
1496 });
1497 if (!idJump.IsEmpty())
1498 {
1499 this.Event(new DramaEventGoto(idJump));
1500 }
1501 }
1502
1503 // Token: 0x06000743 RID: 1859 RVA: 0x0002FF47 File Offset: 0x0002E147
1504 public void End()
1505 {
1506 this.Event(new DramaEventGoto("end"));
1507 }
1508
1509 // Token: 0x06000744 RID: 1860 RVA: 0x0002FF5A File Offset: 0x0002E15A
1510 public void Goto(string idJump)
1511 {
1512 this.Event(new DramaEventGoto(idJump));
1513 }
1514
1515 // Token: 0x06000745 RID: 1861 RVA: 0x0002FF69 File Offset: 0x0002E169
1516 public void GotoDefault()
1517 {
1518 this.Event(new DramaEventGoto(this.StepDefault));
1519 }
1520
1521 // Token: 0x06000746 RID: 1862 RVA: 0x0002FF7D File Offset: 0x0002E17D
1522 public void _Talk(string idActor, string text, string idJump = null)
1523 {
1524 this.manager.lastTalk = (this.Event(new DramaEventTalk
1525 {
1526 idActor = idActor,
1527 idJump = idJump,
1528 text = text
1529 }) as DramaEventTalk);
1530 }
1531
1532 // Token: 0x06000747 RID: 1863 RVA: 0x0002FFAF File Offset: 0x0002E1AF
1533 public void _Talk(string idActor, Func<string> funcText, string idJump = null)
1534 {
1535 this.manager.lastTalk = (this.Event(new DramaEventTalk
1536 {
1537 idActor = idActor,
1538 idJump = idJump,
1539 funcText = funcText
1540 }) as DramaEventTalk);
1541 }
1542
1543 // Token: 0x06000748 RID: 1864 RVA: 0x0002FFE4 File Offset: 0x0002E1E4
1544 public void _TempTalk(string idActor, string text, string idJump = null)
1545 {
1546 this.manager.lastTalk = (this.Event(new DramaEventTalk
1547 {
1548 idActor = idActor,
1549 idJump = idJump,
1550 text = text,
1551 temp = true
1552 }) as DramaEventTalk);
1553 this.sequence.tempEvents.Add(this.manager.lastTalk);
1554 }
1555
1556 // Token: 0x06000749 RID: 1865 RVA: 0x00030043 File Offset: 0x0002E243
1557 public void TempGoto(string idJump = null)
1558 {
1559 this.sequence.tempEvents.Clear();
1560 this.sequence.Play(idJump);
1561 }
1562
1563 // Token: 0x0600074A RID: 1866 RVA: 0x00030064 File Offset: 0x0002E264
1564 public DramaChoice Choice(string lang, string idJump, bool cancel = false)
1565 {
1566 DramaChoice dramaChoice = new DramaChoice(lang.lang(), idJump, "", "", "");
1567 this.manager.lastTalk.AddChoice(dramaChoice);
1568 if (cancel)
1569 {
1570 this.EnableCancel(idJump);
1571 }
1572 return dramaChoice;
1573 }
1574
1575 // Token: 0x0600074B RID: 1867 RVA: 0x000300AC File Offset: 0x0002E2AC
1576 public DramaChoice Choice(string lang, Action onJump)
1577 {
1578 DramaChoice dramaChoice = new DramaChoice(lang.lang(), null, "", "", "");
1579 dramaChoice.onJump = onJump;
1580 this.manager.lastTalk.AddChoice(dramaChoice);
1581 return dramaChoice;
1582 }
1583
1584 // Token: 0x0600074C RID: 1868 RVA: 0x000300F0 File Offset: 0x0002E2F0
1585 public DramaChoice Choice2(string lang, string idJump)
1586 {
1587 DramaChoice dramaChoice = new DramaChoice(lang.lang(), idJump, "", "", "");
1588 this.manager.lastTalk.AddChoice(dramaChoice);
1589 this.sequence.manager._choices.Add(dramaChoice);
1590 return dramaChoice;
1591 }
1592
1593 // Token: 0x0600074D RID: 1869 RVA: 0x00030141 File Offset: 0x0002E341
1594 public void EnableCancel(string idCancelJump = null)
1595 {
1596 this.manager.lastTalk.canCancel = true;
1597 this.manager.lastTalk.idCancelJump = idCancelJump;
1598 }
1599
1600 // Token: 0x0600074E RID: 1870 RVA: 0x00030168 File Offset: 0x0002E368
1601 public List<Card> GetListGuide()
1602 {
1603 List<Card> list = new List<Card>();
1604 foreach (Thing thing in EClass._map.things)
1605 {
1606 if (thing.IsInstalled && thing.trait.GuidePriotiy > 0)
1607 {
1608 list.Add(thing);
1609 }
1610 }
1611 foreach (Chara chara in EClass._map.charas)
1612 {
1613 if (!chara.IsPCParty && chara.trait.GuidePriotiy > 0)
1614 {
1615 list.Add(chara);
1616 }
1617 }
1618 list.Sort((Card a, Card b) => b.trait.GuidePriotiy - a.trait.GuidePriotiy);
1619 return list;
1620 }
1621
1622 // Token: 0x04000791 RID: 1937
1623 public Card destCard;
1624
1625 // Token: 0x04000792 RID: 1938
1626 public Chara destChara;
1627
1628 // Token: 0x04000793 RID: 1939
1629 public Quest destQuest;
1630
1631 // Token: 0x04000794 RID: 1940
1632 public Thing destThing;
1633
1634 // Token: 0x04000795 RID: 1941
1635 public string idDefault;
1636
1637 // Token: 0x04000796 RID: 1942
1638 public string idCustom;
1639
1640 // Token: 0x04000797 RID: 1943
1641 public DramaSetup setup;
1642
1643 // Token: 0x04000798 RID: 1944
1644 public DramaSequence sequence;
1645
1646 // Token: 0x04000799 RID: 1945
1647 public List<DramaEvent> events;
1648
1649 // Token: 0x0400079A RID: 1946
1650 public DramaManager manager;
1651}
Definition Card.cs:13
Definition Chara.cs:12
Definition Guild.cs:5
Definition Hobby.cs:5
Definition Msg.cs:7
Definition Point.cs:11
Definition Quest.cs:8
Definition Thing.cs:10
Definition Trait.cs:9
Definition Zone.cs:14