12    public string StepDefault
 
   16            return this.idDefault;
 
   31    public void Build(
Chara c)
 
   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);
 
   46            this.Step(
"Resident");
 
   47            this._Talk(
"tg", () => CS$<>8__locals1.rumor, 
null);
 
   50                DramaChoice choice = this.Choice2(
"letsTalk", this.StepDefault);
 
   51                choice.SetOnClick(delegate
 
   53                    DramaEventTalk firstTalk = CS$<>8__locals1.<>4__this.sequence.firstTalk;
 
   54                    Func<string> funcText;
 
   55                    if ((funcText = CS$<>8__locals1.<>9__91) == 
null)
 
   57                        funcText = (CS$<>8__locals1.<>9__91 = (() => CS$<>8__locals1.rumor));
 
   59                    firstTalk.funcText = funcText;
 
   60                    List<Hobby> list = CS$<>8__locals1.c.ListHobbies(
true);
 
   61                    Hobby hobby = (list.Count > 0) ? list[0] : 
null;
 
   64                        if (
EClass.rnd(2) == 0 || hobby == 
null)
 
   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;
 
   73                            GameLang.refDrama1 = hobby.Name.ToLower();
 
   74                            CS$<>8__locals1.rumor = CS$<>8__locals1.<>4__this.GetText(CS$<>8__locals1.c, 
"general", 
"talk_hobby");
 
   79                        CS$<>8__locals1.rumor = CS$<>8__locals1.<>4__this.GetRumor(CS$<>8__locals1.c);
 
   81                    CS$<>8__locals1.c.affinity.OnTalkRumor();
 
   82                    choice.forceHighlight = 
true;
 
   83                }).SetCondition(() => CS$<>8__locals1.c.interest > 0);
 
   87        if (!CS$<>8__locals1.c.IsPCFaction && CS$<>8__locals1.c.affinity.CanInvite() && !
EClass._zone.IsInstance && CS$<>8__locals1.c.c_bossType == BossType.none)
 
   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)
 
   91                this.Choice2(
"daBout", 
"_bout");
 
   96                this.Choice2(
"daInvite", 
"_invite");
 
  102            Quest _quest = quest;
 
  103            if (quest.CanDeliverToClient(CS$<>8__locals1.c))
 
  106                using (List<Thing>.Enumerator enumerator2 = questDeliver.ListDestThing().GetEnumerator())
 
  108                    while (enumerator2.MoveNext())
 
  110                        t = enumerator2.Current;
 
  112                        this.Choice2(
"daDeliver".lang(quest.GetTitle() ?? 
"", _t.GetName(NameStyle.Full, questDeliver.num), 
null, 
null, 
null), 
"_deliver").SetOnClick(delegate
 
  114                            CS$<>8__locals1.<>4__this.destThing = _t;
 
  115                            CS$<>8__locals1.<>4__this.destQuest = _quest;
 
  116                        }).SetOnTooltip(delegate(UITooltip a)
 
  118                            _t.WriteNote(a.note, 
null, 
IInspect.NoteMode.Default, 
null);
 
  124        if (CS$<>8__locals1.c.IsPCParty)
 
  126            if (!CS$<>8__locals1.c.isSummon)
 
  128                if (
EClass._zone.IsPCFaction && CS$<>8__locals1.c.homeBranch != 
EClass._zone.branch)
 
  130                    this.Choice2(
"daMakeHome", 
"_makeHome");
 
  132                if (CS$<>8__locals1.c.host == 
null)
 
  134                    this.Choice2(
"daLeaveParty", 
"_leaveParty");
 
  138        else if (CS$<>8__locals1.c.memberType != FactionMemberType.Livestock && !CS$<>8__locals1.c.IsGuest())
 
  140            if (CS$<>8__locals1.c.trait.CanGuide)
 
  144                    if (quest2.IsRandomQuest)
 
  146                        Chara dest = (quest2.chara != 
null && quest2.chara.IsAliveInCurrentZone) ? quest2.chara : 
null;
 
  149                            this.Choice2(
"daGoto".lang(dest.Name, quest2.GetTitle() ?? 
"", 
null, 
null, 
null), 
"_goto").SetOnClick(delegate
 
  151                                CS$<>8__locals1.<>4__this.destCard = dest;
 
  155                        if (questDeliver2 != 
null && questDeliver2.IsDeliver && questDeliver2.DestZone == 
EClass._zone && 
EClass._zone.dictCitizen.ContainsKey(questDeliver2.uidTarget))
 
  157                            Chara dest2 = 
EClass._zone.FindChara(questDeliver2.uidTarget);
 
  160                                this.Choice2(
"daGoto".lang(dest2.Name, quest2.GetTitle() ?? 
"", 
null, 
null, 
null), 
"_goto").SetOnClick(delegate
 
  162                                    CS$<>8__locals1.<>4__this.destCard = dest2;
 
  168                if (this.GetListGuide().Count > 0)
 
  170                    this.Choice2(
"daGuide", 
"_Guide");
 
  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);
 
  180                    if (_t.isLostProperty)
 
  182                        CS$<>8__locals1.<>4__this.Choice2(
"daLostProperty".lang(_t.Name, 
null, 
null, 
null, 
null), 
"_lostProperty").SetOnClick(delegate
 
  184                            CS$<>8__locals1.<>4__this.destThing = _t;
 
  191                this.Choice2(
"daChangeDomain", 
"_changeDomain").DisableSound();
 
  193            if (CS$<>8__locals1.c.trait.ShopType != ShopType.None)
 
  195                this.Choice2(CS$<>8__locals1.c.trait.TextNextRestock, 
"_buy").DisableSound();
 
  197            if (CS$<>8__locals1.c.trait.SlaverType != SlaverType.None)
 
  199                this.Choice2(CS$<>8__locals1.c.trait.TextNextRestockPet, 
"_buySlave").DisableSound();
 
  201            if (CS$<>8__locals1.c.trait.CopyShop != 
Trait.CopyShopType.None)
 
  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();
 
  205            if (CS$<>8__locals1.c.trait.HaveNews && CS$<>8__locals1.c.GetInt(33, 
null) + 10080 < 
EClass.world.date.GetRaw(0))
 
  207                this.Choice2(
"daNews", 
"_news");
 
  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))
 
  211                this.Choice2(
"daBout", 
"_bout");
 
  213            if (CS$<>8__locals1.c.isDrunk)
 
  215                this.Choice2(flag2 ? 
"daBird" : 
"daTail", 
"_tail");
 
  217            if (CS$<>8__locals1.c.trait.CanRevive)
 
  219                this.Choice2(
"daRevive", 
"_revive").DisableSound();
 
  221            if (!CS$<>8__locals1.c.trait.IDTrainer.IsEmpty() && !
EClass._zone.IsUserZone && (
Guild.GetCurrentGuild() == 
null || 
Guild.GetCurrentGuild().relation.IsMember()))
 
  223                this.Choice2(
"daTrain", 
"_train").DisableSound();
 
  225            if (CS$<>8__locals1.c.trait.CanWhore)
 
  227                this.Choice2(flag2 ? 
"daBirdBuy" : 
"daTailBuy", 
"_whore");
 
  229            if (CS$<>8__locals1.c.trait.CanHeal)
 
  231                this.Choice2(
"daHeal", 
"_heal");
 
  233            if (CS$<>8__locals1.c.trait.CanServeFood)
 
  235                this.Choice2(
"daFood", 
"_food");
 
  239                this.Choice2(
"daSellFame", 
"_sellFame");
 
  241            if (CS$<>8__locals1.c.trait.CanInvestTown && 
Guild.GetCurrentGuild() == 
null)
 
  243                this.Choice2(
"daInvest", 
"_investZone");
 
  245            if (CS$<>8__locals1.c.trait.CanInvest)
 
  247                this.Choice2(
"daInvest", 
"_investShop");
 
  249            if (CS$<>8__locals1.c.trait.CanIdentify)
 
  251                this.Choice2(
"daIdentify", 
"_identify").DisableSound();
 
  252                this.Choice2(
"daIdentifyAll", 
"_identifyAll");
 
  253                this.Choice2(
"daIdentifySP", 
"_identifySP").DisableSound();
 
  255            if (CS$<>8__locals1.c.trait.CanPicklock)
 
  257                if (CS$<>8__locals1.c.Evalue(280) < 20)
 
  259                    CS$<>8__locals1.c.elements.SetBase(280, 20, 0);
 
  261                foreach (
Thing t2 
in EClass.pc.things.List((
Thing a) => a.c_lockLv > 0, 
false))
 
  264                    this.Choice2(
"daPicklock".lang(_t.Name, 
null, 
null, 
null, 
null), 
"_picklock").SetOnClick(delegate
 
  266                        CS$<>8__locals1.<>4__this.destThing = _t;
 
  272                this.Choice2(
"daDeposit", 
"_deposit");
 
  274            if (CS$<>8__locals1.c.IsMaid || (CS$<>8__locals1.c.trait.CanInvestTown && (
EClass._zone.source.faction == 
"mysilia" || 
EClass._zone.IsPCFaction)))
 
  276                this.Choice2(
"daExtraTax", 
"_extraTax");
 
  278            if (CS$<>8__locals1.c.IsMaid)
 
  280                if (
EClass.Branch.meetings.CanStartMeeting)
 
  282                    this.Choice2(
"daMeeting".lang(
EClass.Branch.meetings.list.Count.ToString() ?? 
"", 
null, 
null, 
null, 
null), 
"_meeting");
 
  284                this.Choice2(
"daBuyLand", 
"_buyLand");
 
  285                this.Choice2(
"daChangeTitle", 
"_changeTitle");
 
  289                this.Choice2(
"daBlessing", 
"_blessing");
 
  292        if (CS$<>8__locals1.c.IsHomeMember())
 
  294            if (CS$<>8__locals1.c.noMove)
 
  296                this.Choice2(
"enableMove", 
"_enableMove");
 
  298            if (!CS$<>8__locals1.c.IsPCParty && CS$<>8__locals1.c.memberType != FactionMemberType.Livestock && CS$<>8__locals1.c.trait.CanJoinParty)
 
  300                this.Choice2(
"daJoinParty", 
"_joinParty");
 
  302            this.Choice2(
"daFactionOther", 
"_factionOther");
 
  306            this.Choice2(
"daGreatDebt", 
"_greatDebt");
 
  310            this.Choice2(
"bye", 
"_bye");
 
  311            this.EnableCancel(
null);
 
  313        this.Step(
"_factionOther");
 
  314        CS$<>8__locals1.<Build>g__Talk|0(
"what", this.StepDefault);
 
  315        if (CS$<>8__locals1.c.IsPCParty)
 
  317            if (!CS$<>8__locals1.c.isSummon)
 
  319                this.Choice((CS$<>8__locals1.c.GetInt(106, 
null) == 0) ? 
"daShutup" : 
"daShutup2", 
"_shutup", 
false);
 
  320                if (CS$<>8__locals1.c.CanInsult())
 
  322                    this.Choice((CS$<>8__locals1.c.GetInt(108, 
null) == 0) ? 
"daInsult" : 
"daInsult2", 
"_insult", 
false);
 
  326        else if (!CS$<>8__locals1.c.noMove)
 
  328            this.Choice(
"disableMove", 
"_disableMove", 
false);
 
  330        if (CS$<>8__locals1.c.GetInt(113, 
null) == 0)
 
  332            this.Choice(
"daEquipSharedOff", 
"_toggleSharedEquip", 
false);
 
  336            this.Choice(
"daEquipSharedOn", 
"_toggleSharedEquip", 
false);
 
  338        if (!CS$<>8__locals1.c.IsMaid && CS$<>8__locals1.c.homeBranch == 
EClass.Branch)
 
  340            this.Choice(
"daMakeMaid", 
"_daMakeMaid", 
false);
 
  342        if (CS$<>8__locals1.c.trait.CanBeBanished && !CS$<>8__locals1.c.IsPCParty)
 
  344            this.Choice(
"daBanish", 
"_depart", 
false);
 
  346        this.Choice(
"daNothing", this.StepDefault, 
true);
 
  347        this.Step(
"_toggleSharedEquip");
 
  350            CS$<>8__locals1.c.SetInt(113, (CS$<>8__locals1.c.GetInt(113, 
null) == 0) ? 1 : 0);
 
  352        this._Talk(
"tg", this.GetTopic(CS$<>8__locals1.c, (CS$<>8__locals1.c.GetInt(113, 
null) == 0) ? 
"shutup" : 
"shutup2"), 
null);
 
  354        this.Step(
"_daMakeMaid");
 
  357            EClass.Branch.uidMaid = CS$<>8__locals1.c.uid;
 
  359        this._Talk(
"tg", this.GetTopic(CS$<>8__locals1.c, 
"becomeMaid"), 
null);
 
  361        this.Step(
"_joinParty");
 
  364            if (!CS$<>8__locals1.c.trait.CanJoinPartyResident)
 
  366                GameLang.refDrama1 = (CS$<>8__locals1.c.GetBestAttribute().ToString() ?? 
"");
 
  367                base.<Build>g__TempTalkTopic|4(
"invite3", CS$<>8__locals1.<>4__this.StepDefault);
 
  370            EClass.pc.party.AddMemeber(CS$<>8__locals1.c);
 
  372        CS$<>8__locals1.<Build>g__Talk|0(
"hired", this.StepEnd);
 
  373        this.Step(
"_leaveParty");
 
  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)
 
  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);
 
  384        this.Step(
"_banish");
 
  386        this.Step(
"_makeLivestock");
 
  389            CS$<>8__locals1.c.memberType = FactionMemberType.Livestock;
 
  391        CS$<>8__locals1.<Build>g__Talk|0(
"becomeLivestock", this.StepEnd);
 
  392        this.Step(
"_makeResident");
 
  395            CS$<>8__locals1.c.memberType = FactionMemberType.Default;
 
  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");
 
  407            if ((onKill = CS$<>8__locals1.<>9__99) == 
null)
 
  409                onKill = (CS$<>8__locals1.<>9__99 = delegate()
 
  411                    EClass.Branch.BanishMember(CS$<>8__locals1.c, 
false);
 
  414            instance.SetOnKill(onKill);
 
  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);
 
  420        CS$<>8__locals1.<Build>g__Talk|0(
"gift_good", 
null);
 
  425            GameLang.refDrama1 = CS$<>8__locals1.<>4__this.destCard.Name;
 
  426            if (CS$<>8__locals1.<>4__this.destCard == CS$<>8__locals1.c)
 
  428                base.<Build>g__TempTalkTopic|4(
"goto2", CS$<>8__locals1.<>4__this.StepDefault);
 
  431            base.<Build>g__TempTalkTopic|4(
"goto", 
"_goto2");
 
  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)
 
  438                CS$<>8__locals1.<>4__this.destCard.Teleport(
EClass.pc.pos.GetNearestPoint(
false, 
false, 
true, 
true) ?? 
EClass.pc.pos, 
true, 
true);
 
  440            EClass.pc.SetAIImmediate(
new AI_Goto(CS$<>8__locals1.<>4__this.destCard, 1, 
false, 
false));
 
  441            EInput.Consume(
false, 20);
 
  445        CS$<>8__locals1.<Build>g__Talk|0(
"rumor", this.StepDefault);
 
  446        this.Step(
"_lostProperty");
 
  449            GameLang.refDrama1 = CS$<>8__locals1.<>4__this.destThing.Name;
 
  450            CS$<>8__locals1.<>4__this.destThing.Destroy();
 
  451            EClass.player.ModKarma(5);
 
  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");
 
  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);
 
  462        this._Talk(
"tg", delegate()
 
  464            if (CS$<>8__locals1.<>4__this.destQuest != 
null)
 
  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"));
 
  471        this._Talk(
"tg", delegate()
 
  473            if (CS$<>8__locals1.c.quest == 
null)
 
  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())
 
  482                return CS$<>8__locals1.c.quest.GetDetail(
false);
 
  484            return CS$<>8__locals1.c.quest.GetTalkProgress().IsEmpty(CS$<>8__locals1.<>4__this.GetTopic(CS$<>8__locals1.c, 
"questInProgress"));
 
  486        string text2 = 
"daAccept".lang();
 
  487        if (CS$<>8__locals1.c.quest != 
null && CS$<>8__locals1.c.quest.deadline != 0)
 
  489            text2 += 
"hintDeadline".lang(CS$<>8__locals1.c.quest.TextDeadline, 
null, 
null, 
null, 
null).ToLower();
 
  491        this.Choice(text2, (CS$<>8__locals1.c.quest != 
null && CS$<>8__locals1.c.quest.UseInstanceZone) ? 
"_questAccept_instance" : 
"_questAccept", 
false).SetOnClick(delegate
 
  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
 
  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);
 
  506            Zone z = CS$<>8__locals1.c.quest.CreateInstanceZone(CS$<>8__locals1.c);
 
  508        }, 
null, this.StepEnd);
 
  509        this.Step(
"_questFull");
 
  510        this._Talk(
"tg", this.GetTopic(CS$<>8__locals1.c, 
"questFull"), text);
 
  511        this.Step(
"_greatDebt");
 
  515            if (!questDebt.CanGiveBill())
 
  517                base.<Build>g__TempTalkTopic|4(
"loytel_bill_give_wait", CS$<>8__locals1.<>4__this.StepDefault);
 
  520            if (questDebt.gaveBill)
 
  522                base.<Build>g__TempTalkTopic|4(
"loytel_bill_give_given", CS$<>8__locals1.<>4__this.StepDefault);
 
  525            base.<Build>g__TempTalkTopic|4(questDebt.GetIdTalk_GiveBill(), CS$<>8__locals1.<>4__this.StepEnd);
 
  526            questDebt.GiveBill();
 
  528        this.Step(
"_shutup");
 
  531            CS$<>8__locals1.c.SetInt(106, (CS$<>8__locals1.c.GetInt(106, 
null) == 0) ? 1 : 0);
 
  533        this._Talk(
"tg", this.GetTopic(CS$<>8__locals1.c, (CS$<>8__locals1.c.GetInt(106, 
null) == 0) ? 
"shutup" : 
"shutup2"), 
null);
 
  535        this.Step(
"_insult");
 
  538            CS$<>8__locals1.c.SetInt(108, (CS$<>8__locals1.c.GetInt(108, 
null) == 0) ? 1 : 0);
 
  540        this._Talk(
"tg", this.GetTopic(CS$<>8__locals1.c, (CS$<>8__locals1.c.GetInt(108, 
null) == 0) ? 
"insult" : 
"insult2"), 
null);
 
  543            if (CS$<>8__locals1.c.GetInt(108, 
null) == 1)
 
  545                CS$<>8__locals1.c.Talk(
"insult", 
null, 
null, 
false);
 
  549        this.Step(
"_makeHome");
 
  552            EClass._zone.branch.AddMemeber(CS$<>8__locals1.c);
 
  554        this._Talk(
"tg", this.GetTopic(CS$<>8__locals1.c, 
"ok"), 
null);
 
  557        CS$<>8__locals1.<Build>g__Talk|0(
"rumor", this.StepDefault);
 
  558        this.Choice(
"daAccept", this.StepDefault, 
false).SetOnClick(delegate
 
  561        this.Choice(
"daDecline", this.StepDefault, 
false).SetOnClick(delegate
 
  564        this.Step(
"_invite");
 
  567            if (!CS$<>8__locals1.c.trait.CanInvite)
 
  569                base.<Build>g__TempTalkTopic|4(
"invite2", CS$<>8__locals1.<>4__this.StepDefault);
 
  572            if (CS$<>8__locals1.c.GetBestAttribute() > 
EClass.pc.CHA && !
EClass.debug.godMode)
 
  574                GameLang.refDrama1 = (CS$<>8__locals1.c.GetBestAttribute().ToString() ?? 
"");
 
  575                base.<Build>g__TempTalkTopic|4(
"invite3", CS$<>8__locals1.<>4__this.StepDefault);
 
  578            base.<Build>g__TempTalkTopic|4(
"invite", 
null);
 
  579            DramaCustomSequence <>4__this = CS$<>8__locals1.<>4__this;
 
  582            if ((onJump = CS$<>8__locals1.<>9__100) == 
null)
 
  584                onJump = (CS$<>8__locals1.<>9__100 = delegate()
 
  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);
 
  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));
 
  597            base.<Build>g__TempTalkTopic|4(
"guide", 
null);
 
  598            using (List<Card>.Enumerator enumerator3 = CS$<>8__locals1.<>4__this.GetListGuide().GetEnumerator())
 
  600                while (enumerator3.MoveNext())
 
  602                    Card guide = enumerator3.Current;
 
  603                    CS$<>8__locals1.<>4__this.Choice(
"daGotoGuide".lang(guide.Name, 
"", 
null, 
null, 
null), 
"_goto", 
false).SetOnClick(delegate
 
  605                        CS$<>8__locals1.<>4__this.destCard = guide;
 
  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();
 
  612        CS$<>8__locals1.<Build>g__BackChill|88();
 
  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";
 
  620            if ((onJump = CS$<>8__locals1.<>9__102) == 
null)
 
  622                onJump = (CS$<>8__locals1.<>9__102 = delegate()
 
  624                    base.<Build>g__TempTalkTopic|4(CS$<>8__locals1.bird + 
"2", CS$<>8__locals1.<>4__this.StepEnd);
 
  627                        target = CS$<>8__locals1.c,
 
  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));
 
  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()
 
  643                if (
EClass.pc.GetCurrency(
"money") < costWhore)
 
  645                    CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"nomoney", CS$<>8__locals1.<>4__this.StepDefault);
 
  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);
 
  653                    target = CS$<>8__locals1.c
 
  656            CS$<>8__locals1.<>4__this.Choice(
"no2", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
  658        this.Step(
"_picklock");
 
  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()
 
  666                if (CS$<>8__locals1.<>4__this.destThing.c_lockedHard)
 
  668                    CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"lockTooHard", CS$<>8__locals1.<>4__this.StepDefault);
 
  671                if (
EClass.pc.GetCurrency(
"money") < cost)
 
  673                    CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"nomoney", CS$<>8__locals1.<>4__this.StepDefault);
 
  677                EClass.pc.ModCurrency(-cost, 
"money");
 
  678                Layer layer = CS$<>8__locals1.<>4__this.manager.layer;
 
  680                if ((onKill = CS$<>8__locals1.<>9__105) == 
null)
 
  682                    onKill = (CS$<>8__locals1.<>9__105 = delegate()
 
  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)
 
  690                            EClass.player.ModKarma(-8);
 
  692                        CS$<>8__locals1.<>4__this.destThing.isLostProperty = 
false;
 
  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);
 
  698            CS$<>8__locals1.<>4__this.Choice(
"no2", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
  703            if (CS$<>8__locals1.c.id == 
"miral")
 
  705                SE.Play(
"click_chat");
 
  706                if (
EClass.pc.GetCurrency(
"medal") > 0)
 
  708                    base.<Build>g__TempTalkTopic|4(
"miral_medal", 
null);
 
  711                base.<Build>g__TempTalkTopic|4(
"miral_medal2", CS$<>8__locals1.<>4__this.StepDefault);
 
  716            if (
EClass.player.IsCriminal && !
EClass._zone.AllowCriminal && !
EClass._zone.IsPCFaction && !CS$<>8__locals1.c.trait.AllowCriminal)
 
  718                SE.Play(
"click_chat");
 
  719                base.<Build>g__TempTalkTopic|4(
"shop_criminal", CS$<>8__locals1.<>4__this.StepEnd);
 
  722            CS$<>8__locals1.<>4__this.sequence.Exit();
 
  723            CS$<>8__locals1.<>4__this.manager.layer.Close();
 
  724            CS$<>8__locals1.c.trait.OnBarter();
 
  727                WidgetFeed.Instance.Talk(CS$<>8__locals1.c, 
"barter");
 
  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");
 
  734            List<ResearchPlan> plans = 
new List<ResearchPlan>();
 
  737                if (
EClass.BranchOrHomeBranch.researches.IsListBarter(row.id))
 
  744                list.moldItem = Resources.Load<
ItemGeneral>(
"UI/Element/Item/ItemGeneralBarter").transform;
 
  749                        b.button1.mainText.text = a.Name;
 
  750                        UIItem uiitem = Util.Instantiate<UIItem>(
"UI/Element/Item/Extra/costBarter", b.layout);
 
  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)
 
  758                        b.button1.onClick.AddListener(delegate()
 
  760                            if (c.resource.value < c.cost)
 
  765                            c.resource.Mod(-c.cost, 
true);
 
  767                            EClass.BranchOrHomeBranch.researches.AddPlan(a);
 
  771                        b.RebuildLayout(
true);
 
  773                    onList = delegate(UIList.SortMode m)
 
  785        }, () => !CS$<>8__locals1.layer, 
this.StepDefault);
 
  786        this.Step(
"_upgradeHearth");
 
  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()
 
  796                if (
EClass.pc.GetCurrency(
"money") < cost)
 
  798                    CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"nomoney", CS$<>8__locals1.<>4__this.StepDefault);
 
  801                EClass.pc.ModCurrency(-cost, 
"money");
 
  807                CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"upgrade_heath2", CS$<>8__locals1.<>4__this.StepEnd);
 
  809            CS$<>8__locals1.<>4__this.Choice(
"no", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
  811        this.Step(
"_sellFame");
 
  814            int cost = EClass.player.fame / 5;
 
  815            GameLang.refDrama1 = (cost.ToString() ?? 
"");
 
  818                base.<Build>g__TempTalkTopic|4(
"goto2", CS$<>8__locals1.<>4__this.StepDefault);
 
  821            base.<Build>g__TempTalkTopic|4(
"sellFame1", 
null);
 
  822            CS$<>8__locals1.<>4__this.Choice(
"yes", delegate()
 
  824                EClass.pc.ModCurrency(cost, 
"money");
 
  826                EClass.player.ModFame(-cost);
 
  827                CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"sellFame2", CS$<>8__locals1.<>4__this.StepDefault);
 
  829            CS$<>8__locals1.<>4__this.Choice(
"no", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
  831        this.Step(
"_investZone");
 
  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()
 
  840                base.<Build>g__Invest|114(
false);
 
  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()
 
  845                base.<Build>g__Invest|114(
true);
 
  848        this.Step(
"_investShop");
 
  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()
 
  857                base.<Build>g__Invest|117(
false);
 
  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()
 
  862                base.<Build>g__Invest|117(
true);
 
  865        this.Step(
"_changeTitle");
 
  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");
 
  875            bool flag5 = 
EClass._map.bounds.CanExpand(1);
 
  876            int costLand = 
CalcGold.ExpandLand();
 
  877            GameLang.refDrama1 = 
"";
 
  878            GameLang.refDrama2 = (costLand.ToString() ?? 
"");
 
  881                base.<Build>g__TempTalkTopic|4(
"expand3", CS$<>8__locals1.<>4__this.StepDefault);
 
  884            base.<Build>g__TempTalkTopic|4(
"expand1", CS$<>8__locals1.<>4__this.StepDefault);
 
  885            CS$<>8__locals1.<>4__this.Choice(
"yes", delegate()
 
  887                if (
EClass.pc.GetCurrency(
"money2") < costLand)
 
  889                    CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"nomoney", CS$<>8__locals1.<>4__this.StepDefault);
 
  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);
 
  897                EClass._map.RefreshAllTiles();
 
  900            CS$<>8__locals1.<>4__this.Choice(
"no", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
  902        this.Step(
"_meeting");
 
  905            CS$<>8__locals1.<>4__this.sequence.Exit();
 
  906            CS$<>8__locals1.<>4__this.manager.layer.Close();
 
  907            EClass.Branch.meetings.Start();
 
  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");
 
  921            base.<Build>g__TempTalkTopic|4(
"blessing", CS$<>8__locals1.<>4__this.StepEnd);
 
  924            if ((onKill = CS$<>8__locals1.<>9__121) == 
null)
 
  926                onKill = (CS$<>8__locals1.<>9__121 = delegate()
 
  933                            if (condition != 
null)
 
  935                                condition.SetPerfume(3);
 
  941                            if (condition2 != 
null)
 
  943                                condition2.SetPerfume(3);
 
  949                            if (condition3 != 
null)
 
  951                                condition3.SetPerfume(3);
 
  954                        chara.Say(
"blessing", chara, 
null, 
null);
 
  955                        chara.PlaySound(
"pray", 1f, 
true);
 
  956                        chara.PlayEffect(
"holyveil", 
true, 0f, 
default(Vector3));
 
  958                    CS$<>8__locals1.c.isRestocking = 
true;
 
  961            instance.SetOnKill(onKill);
 
  962            CS$<>8__locals1.c.c_dateStockExpire = 
EClass.world.date.GetRaw(0) + (flag5 ? 180 : 180) * 1440;
 
  968            Action<UIList, LayerList> onInit;
 
  969            if ((onInit = CS$<>8__locals1.<>9__122) == 
null)
 
  971                onInit = (CS$<>8__locals1.<>9__122 = delegate(UIList list, 
LayerList l)
 
  973                    list.moldItem = Resources.Load<
ButtonElement>(
"UI/Element/Button/ButtonElementTrain").transform;
 
  974                    BaseList list2 = list;
 
  984                        if (!
EClass.pc.TryPay(num, 
"plat"))
 
  988                        if (
EClass.pc.elements.HasBase(a.id))
 
  990                            EClass.pc.elements.Train(a.id, 10);
 
  994                            EClass.pc.elements.Learn(a.id, 1);
 
  997                        UIButton.TryShowTip(
null, 
true, 
true);
 
 1002                        int plat = 
EClass.pc.GetCurrency(
"plat");
 
 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);
 
 1010                    callback.onList = delegate(UIList.SortMode m)
 
 1014                        if ((predicate = CS$<>8__locals1.<>9__128) == 
null)
 
 1018                                if (a.tag.Contains(
"unused"))
 
 1022                                if (a.tag.Contains(
"guild"))
 
 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);
 
 1026                                return !CS$<>8__locals1.isInGuild && a.category == 
"skill" && a.categorySub == CS$<>8__locals1.c.trait.IDTrainer;
 
 1031                            list.Add(Element.Create(row.id, 0));
 
 1034                    list2.callbacks = callback;
 
 1037            CS$<>8__locals1.layer = layerList.ManualList(onInit).SetSize(450f, -1f).SetTitles(
"wTrain", 
null).SetOnKill(
new Action(SE.PopDrama));
 
 1042        }, () => !CS$<>8__locals1.layer, 
this.StepDefault);
 
 1043        this.Step(
"_changeDomain");
 
 1044        this.Method(delegate
 
 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
 
 1052            CS$<>8__locals1.layer.SetOnKill(
new Action(SE.PopDrama));
 
 1057        }, () => !CS$<>8__locals1.layer, this.StepDefault);
 
 1058        this.Step(
"_buySlave");
 
 1059        this.Method(delegate
 
 1061            LayerPeople.slaveToBuy = 
null;
 
 1063            CS$<>8__locals1.layer.SetOnKill(
new Action(SE.PopDrama));
 
 1068            CS$<>8__locals1.<>4__this.manager.Load();
 
 1069        }, () => !CS$<>8__locals1.layer, 
"_buySlaveConfirm");
 
 1070        this.Step(
"_buySlaveConfirm");
 
 1071        this.Method(delegate
 
 1076                base.<Build>g__RumorChill|5();
 
 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()
 
 1085                if (!
EClass.pc.TryPay(cost, 
"money"))
 
 1087                    CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"nomoney", CS$<>8__locals1.<>4__this.StepDefault);
 
 1090                GameLang.refDrama1 = tc.Name;
 
 1091                EClass._zone.AddCard(tc, 
EClass.pc.pos.GetNearestPoint(
false, 
true, 
true, 
false));
 
 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);
 
 1096            CS$<>8__locals1.<>4__this.Choice(
"no", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
 1098        this.Goto(this.StepDefault);
 
 1099        this.Step(
"_trade");
 
 1100        this.Method(delegate
 
 1103        }, () => !CS$<>8__locals1.layer, this.StepDefault);
 
 1104        this.Step(
"_identify");
 
 1105        this.Method(delegate
 
 1107            CS$<>8__locals1.<>4__this.manager.Hide();
 
 1108            CS$<>8__locals1.c.trait.OnBarter();
 
 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
 
 1115            int costIdentify = 0;
 
 1116            int numIdentify = 0;
 
 1117            int numSuperior = 0;
 
 1120                if (t.IsIdentified || t.c_IDTState == 1)
 
 1124                int numIdentify = numIdentify;
 
 1128            GameLang.refDrama1 = (costIdentify.ToString() ?? 
"");
 
 1129            GameLang.refDrama2 = (numIdentify.ToString() ?? 
"");
 
 1130            if (numIdentify == 0)
 
 1132                base.<Build>g__TempTalkTopic|4(
"appraise3", CS$<>8__locals1.<>4__this.StepDefault);
 
 1135            base.<Build>g__TempTalkTopic|4(
"appraise1", CS$<>8__locals1.<>4__this.StepDefault);
 
 1136            CS$<>8__locals1.<>4__this.Choice(
"yes", delegate()
 
 1138                if (
EClass.pc.GetCurrency(
"money") < costIdentify)
 
 1140                    CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"nomoney", CS$<>8__locals1.<>4__this.StepDefault);
 
 1144                EClass.pc.ModCurrency(-costIdentify, 
"money");
 
 1145                foreach (
Thing thing 
in EClass.pc.things.List((
Thing t) => !t.IsIdentified, 
true))
 
 1147                    thing.Thing.Identify(
false, IDTSource.Identify);
 
 1148                    if (!thing.IsInstalled)
 
 1150                        int numSuperior = numSuperior;
 
 1154                CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"appraise2", CS$<>8__locals1.<>4__this.StepDefault);
 
 1156            CS$<>8__locals1.<>4__this.Choice(
"no", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
 1158        this.Step(
"_identifySP");
 
 1159        this.Method(delegate
 
 1161            CS$<>8__locals1.<>4__this.manager.Hide();
 
 1162            CS$<>8__locals1.c.trait.OnBarter();
 
 1164            CS$<>8__locals1.layer.SetOnKill(
new Action(CS$<>8__locals1.<>4__this.manager.Show));
 
 1165        }, () => !CS$<>8__locals1.layer, this.StepDefault);
 
 1167        this.Method(delegate
 
 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";
 
 1173            if ((onJump = CS$<>8__locals1.<>9__133) == 
null)
 
 1175                onJump = (CS$<>8__locals1.<>9__133 = delegate()
 
 1179                        uidTarget = CS$<>8__locals1.c.uid,
 
 1180                        targetX = CS$<>8__locals1.c.pos.x,
 
 1181                        targetZ = CS$<>8__locals1.c.pos.z
 
 1183                    CS$<>8__locals1.c.SetGlobal();
 
 1186                        target = CS$<>8__locals1.c
 
 1188                    CS$<>8__locals1.c.SetInt(59, 
EClass.world.date.GetRaw(0));
 
 1193                    base.<Build>g__TempTalkTopic|4(
"bout2", CS$<>8__locals1.<>4__this.StepEnd);
 
 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);
 
 1200        this.Method(delegate
 
 1202            Zone zone = 
EClass.world.region.CreateRandomSite(
EClass._zone, 5, 
null, 
true);
 
 1205                base.<Build>g__TempTalkTopic|4(
"news2", 
null);
 
 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);
 
 1214            CS$<>8__locals1.c.SetInt(33, 
EClass.world.date.GetRaw(0));
 
 1216        this.Method(delegate
 
 1218            CS$<>8__locals1.<>4__this.manager.Load();
 
 1219        }, 
null, this.StepDefault);
 
 1221        this.Method(delegate
 
 1224            GameLang.refDrama1 = (costHeal.ToString() ?? 
"");
 
 1225            base.<Build>g__TempTalkTopic|4(
"healer1", 
null);
 
 1226            CS$<>8__locals1.<>4__this.Choice(
"yes", delegate()
 
 1228                if (
EClass.pc.GetCurrency(
"money") < costHeal)
 
 1230                    CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"nomoney", CS$<>8__locals1.<>4__this.StepDefault);
 
 1236                    ActEffect.Proc(EffectId.HealComplete, cc, 
null, 100, 
default(
ActRef));
 
 1238                EClass.pc.ModCurrency(-costHeal, 
"money");
 
 1239                CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"healer2", CS$<>8__locals1.<>4__this.StepEnd);
 
 1241            CS$<>8__locals1.<>4__this.Choice(
"no", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
 1244        this.Method(delegate
 
 1247            GameLang.refDrama1 = (cost.ToString() ?? 
"");
 
 1248            base.<Build>g__TempTalkTopic|4(
"food1", 
null);
 
 1249            CS$<>8__locals1.<>4__this.Choice(
"yes", delegate()
 
 1251                if (
EClass.pc.hunger.GetPhase() <= 0)
 
 1253                    CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"alreadyFull", CS$<>8__locals1.<>4__this.StepDefault);
 
 1256                if (
EClass.pc.GetCurrency(
"money") < cost)
 
 1258                    CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"nomoney", CS$<>8__locals1.<>4__this.StepDefault);
 
 1262                EClass.pc.ModCurrency(-cost, 
"money");
 
 1263                CS$<>8__locals1.<Build>g__TempTalkTopic|4(
"food2", CS$<>8__locals1.<>4__this.StepDefault);
 
 1265                EClass.pc.hunger.value = 0;
 
 1267            CS$<>8__locals1.<>4__this.Choice(
"no", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
 1269        CS$<>8__locals1.bankTier = 
new int[]
 
 1277        this.Step(
"_deposit");
 
 1278        this.Method(delegate
 
 1280            CS$<>8__locals1.<>4__this.sequence.Exit();
 
 1281            CS$<>8__locals1.<>4__this.manager.layer.Close();
 
 1284                WidgetFeed.Instance.Talk(CS$<>8__locals1.c, 
"barter");
 
 1286            SE.Play(
"shop_open");
 
 1288        }, () => !CS$<>8__locals1.layer, this.StepDefault);
 
 1290        this.Step(
"_copyItem");
 
 1291        this.Method(delegate
 
 1293            CS$<>8__locals1.<>4__this.sequence.Exit();
 
 1294            CS$<>8__locals1.<>4__this.manager.layer.Close();
 
 1297                WidgetFeed.Instance.Talk(CS$<>8__locals1.c, 
"barter");
 
 1299            SE.Play(
"shop_open");
 
 1300            CS$<>8__locals1.c.trait.OnBarter();
 
 1301            if (CS$<>8__locals1.c.c_copyContainer == 
null)
 
 1303                CS$<>8__locals1.c.c_copyContainer = 
ThingGen.Create(
"container_deposit", -1, -1);
 
 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);
 
 1310        CS$<>8__locals1.taxTier = 
new int[]
 
 1319        this.Step(
"_extraTax");
 
 1320        this.Method(delegate
 
 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++)
 
 1327                int i2 = taxTier[i];
 
 1329                CS$<>8__locals1.<>4__this.Choice(Lang._currency(_i, 
true, 14), delegate()
 
 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);
 
 1336            CS$<>8__locals1.<>4__this.Choice(
"no2", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
 1338        this.Step(
"_withdraw");
 
 1339        this.Method(delegate
 
 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++)
 
 1347                int i2 = bankTier[i];
 
 1349                if (
EClass.player.bankMoney >= _i)
 
 1351                    CS$<>8__locals1.<>4__this.Choice(Lang._currency(_i, 
true, 14), delegate()
 
 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);
 
 1360            CS$<>8__locals1.<>4__this.Choice(
"no2", CS$<>8__locals1.<>4__this.StepDefault, 
true).SetOnClick(
new Action(base.<Build>g__RumorChill|5));
 
 1362        this.Step(
"_disableMove");
 
 1363        this.Method(delegate
 
 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);
 
 1370        this.Step(
"_enableMove");
 
 1371        this.Method(delegate
 
 1373            CS$<>8__locals1.c.noMove = 
false;
 
 1374            CS$<>8__locals1.c.orgPos = 
null;
 
 1375            CS$<>8__locals1.c.Talk(
"thanks", 
null, 
null, 
false);
 
 1379        this.Method(delegate
 
 1381            CS$<>8__locals1.c.Talk(
"bye", 
null, 
null, 
false);
 
 1387    public string GetRumor(
Chara c)
 
 1389        if (c.interest <= 0)
 
 1391            return this.GetText(c, 
"rumor", 
"bored");
 
 1393        if (this.HasTopic(
"unique", c.id))
 
 1395            this.manager.enableTone = 
false;
 
 1396            return this.GetText(c, 
"unique", c.id);
 
 1398        if (
EClass.rnd(2) == 0 && !c.trait.IDRumor.IsEmpty())
 
 1400            return this.GetText(c, 
"rumor", c.trait.IDRumor);
 
 1402        if (
EClass.rnd(2) == 0 && 
this.HasTopic(
"zone", 
EClass._zone.id))
 
 1404            return this.GetText(c, 
"zone", 
EClass._zone.id);
 
 1408            return this.GetText(c, 
"rumor", 
"interest_" + c.bio.idInterest.ToEnum<Interest>().ToString());
 
 1412            return c.GetTalkText(
"rumor", 
false, 
true);
 
 1416            return this.GetText(c, 
"rumor", 
"hint");
 
 1418        return this.GetText(c, 
"rumor", 
"default");
 
 1422    public bool HasTopic(
string idSheet, 
string idTopic)
 
 1424        string path = CorePath.CorePackage.TextDialog + 
"dialog.xlsx";
 
 1425        if (!File.Exists(path))
 
 1429        ExcelData excelData = 
new ExcelData();
 
 1430        excelData.path = path;
 
 1431        excelData.BuildMap(idSheet);
 
 1432        return excelData.sheets[idSheet].map.ContainsKey(idTopic);
 
 1436    public string GetText(
Chara c, 
string idSheet, 
string idTopic)
 
 1438        if (!idTopic.IsEmpty() && 
this.manager.customTalkTopics.ContainsKey(idTopic))
 
 1440            return this.manager.customTalkTopics[idTopic];
 
 1442        string[] dialog = Lang.GetDialog(idSheet, idTopic);
 
 1443        if (!this.manager.enableTone && !(idSheet == 
"general"))
 
 1445            return dialog.RandomItem<
string>();
 
 1447        return c.ApplyTone(dialog.RandomItem<
string>(), 
false);
 
 1451    public string GetTopic(
Chara c, 
string idTopic = 
null)
 
 1453        return this.GetText(c, 
"general", idTopic);
 
 1457    public void BuildTextData()
 
 1459        this.Step(
"import");
 
 1460        foreach (
string text 
in this.setup.textData.Split(
new string[]
 
 1462            Environment.NewLine + Environment.NewLine
 
 1463        }, StringSplitOptions.RemoveEmptyEntries))
 
 1465            if (!(text == Environment.NewLine))
 
 1467                this._Talk(
"", text.TrimStart(Environment.NewLine.ToCharArray()).TrimEnd(Environment.NewLine.ToCharArray()), 
null);
 
 1477        e.sequence = this.sequence;
 
 1482    public void Step(
string step)
 
 1491    public void Method(Action action, Func<bool> endFunc = 
null, 
string idJump = 
null)
 
 1497        if (!idJump.IsEmpty())
 
 1510    public void Goto(
string idJump)
 
 1516    public void GotoDefault()
 
 1522    public void _Talk(
string idActor, 
string text, 
string idJump = 
null)
 
 1533    public void _Talk(
string idActor, Func<string> funcText, 
string idJump = 
null)
 
 1544    public void _TempTalk(
string idActor, 
string text, 
string idJump = 
null)
 
 1553        this.sequence.tempEvents.Add(this.manager.lastTalk);
 
 1557    public void TempGoto(
string idJump = 
null)
 
 1559        this.sequence.tempEvents.Clear();
 
 1560        this.sequence.Play(idJump);
 
 1564    public DramaChoice Choice(
string lang, 
string idJump, 
bool cancel = 
false)
 
 1567        this.manager.lastTalk.AddChoice(dramaChoice);
 
 1570            this.EnableCancel(idJump);
 
 1576    public DramaChoice Choice(
string lang, Action onJump)
 
 1579        dramaChoice.onJump = onJump;
 
 1580        this.manager.lastTalk.AddChoice(dramaChoice);
 
 1585    public DramaChoice Choice2(
string lang, 
string idJump)
 
 1588        this.manager.lastTalk.AddChoice(dramaChoice);
 
 1589        this.sequence.manager._choices.Add(dramaChoice);
 
 1594    public void EnableCancel(
string idCancelJump = 
null)
 
 1596        this.manager.lastTalk.canCancel = 
true;
 
 1597        this.manager.lastTalk.idCancelJump = idCancelJump;
 
 1601    public List<Card> GetListGuide()
 
 1603        List<Card> list = 
new List<Card>();
 
 1606            if (thing.IsInstalled && thing.trait.GuidePriotiy > 0)
 
 1613            if (!chara.IsPCParty && chara.trait.GuidePriotiy > 0)
 
 1618        list.Sort((
Card a, 
Card b) => b.trait.GuidePriotiy - a.trait.GuidePriotiy);
 
 1623    public Card destCard;
 
 1626    public Chara destChara;
 
 1629    public Quest destQuest;
 
 1632    public Thing destThing;
 
 1635    public string idDefault;
 
 1638    public string idCustom;
 
 1647    public List<DramaEvent> events;