33 {
36 bool isInGuild = Guild.Fighter.IsCurrentZone || Guild.Mage.IsCurrentZone || Guild.Thief.IsCurrentZone ||
Guild.
Merchant.
IsCurrentZone;
37 string bird = (flag2 ? "bird" : "tail");
39 string rumor = (c.IsPCParty ? GetTalk(
"sup") :
GetRumor(c));
42 bool num = !c.IsUnique ||
HasTopic(
"unique", c.
id);
43 if (!flag)
44 {
46 _Talk(
"tg", () => rumor);
47 }
48 if (num && flag3)
49 {
52 {
53 sequence.firstTalk.funcText = () => rumor;
55 Hobby hobby = ((list2.Count > 0) ? list2[0] :
null);
57 {
59 {
60 GameLang.refDrama1 = c.
GetFavCat().GetName().ToLower();
62 rumor =
GetText(c,
"general",
"talk_fav");
63 c.knowFav = true;
64 }
65 else
66 {
67 GameLang.refDrama1 = hobby.
Name.ToLower();
68 rumor =
GetText(c,
"general",
"talk_hobby");
69 }
70 }
71 else
72 {
74 }
76 choice.forceHighlight = true;
77 }).SetCondition(() => c.interest > 0);
78 }
79 bool flag4 = false;
81 {
83 {
85 flag4 = true;
86 }
87 else
88 {
90 }
91 }
93 {
95 if (!
item.CanDeliverToClient(c))
96 {
97 continue;
98 }
101 {
104 {
108 {
110 });
111 }
112 }
114 {
116 {
117 Choice2(
"daMakeHome",
"_makeHome");
118 }
120 {
122 }
123 }
125 {
128 {
130 {
132 {
133 Choice2("daLostProperty".lang(_t.Name), "_lostProperty").SetOnClick(delegate
134 {
135 destThing = _t;
136 });
137 }
138 });
139 }
141 {
143 {
145 {
147 {
148 continue;
149 }
151 if (dest != null)
152 {
154 {
156 });
157 }
159 {
160 continue;
161 }
163 if (dest2 != null)
164 {
166 {
168 });
169 }
170 }
172 {
174 }
175 }
177 {
179 {
181 }
183 {
186 {
188 }
189 }
191 {
193 }
195 {
197 }
198 }
200 {
202 }
204 {
206 }
208 {
209 Choice2(flag2 ?
"daBird" :
"daTail",
"_tail");
210 }
212 bool num2;
213 if (condition == null)
214 {
216 {
217 goto IL_093e;
218 }
220 }
221 else
222 {
224 }
225 if (num2)
226 {
227 goto IL_093e;
228 }
229 goto IL_094f;
230 }
232 {
233 Choice2(flag2 ?
"daBird" :
"daTail",
"_tail");
234 }
235 }
236 goto IL_0d68;
237 IL_0d68:
239 {
241 {
243 {
245 }
246 Choice2(
"daBuyLand",
"_buyLand");
247 Choice2(
"daChangeTitle",
"_changeTitle");
248 }
250 {
251 Choice2(
"enableMove",
"_enableMove");
252 }
254 {
255 Choice2(
"daJoinParty",
"_joinParty");
256 }
258 {
260 }
261 Choice2(
"daFactionOther",
"_factionOther");
262 }
264 {
265 Choice2(
"daGreatDebt",
"_greatDebt");
266 }
267 if (!flag)
268 {
271 }
272 Step(
"_factionOther");
275 {
277 {
280 {
282 });
283 }
284 }
286 {
288 }
290 {
292 if (questDebt !=
null && questDebt.
gaveBill)
293 {
294 Choice(
"daGreatDebt2",
"_greatDebt2");
295 }
296 }
298 {
300 {
301 Choice((c.
GetInt(106) == 0) ?
"daShutup" :
"daShutup2",
"_shutup");
303 {
304 Choice((c.
GetInt(108) == 0) ?
"daInsult" :
"daInsult2",
"_insult");
305 }
306 }
307 }
309 {
310 Choice(
"disableMove",
"_disableMove");
311 }
312 Choice((c.
GetInt(123) == 0) ?
"daSleepBeside" :
"daSleepBeside2",
"_sleepBeside");
314 {
315 Choice((c.
GetInt(126) == 0) ?
"daDisableLoyal" :
"daDisableLoyal2",
"_disableLoyal");
316 }
318 {
319 Choice(
"daEquipSharedOff",
"_toggleSharedEquip");
320 }
321 else
322 {
323 Choice(
"daEquipSharedOn",
"_toggleSharedEquip");
324 }
326 {
327 Choice(
"daMakeMaid",
"_daMakeMaid");
328 }
330 {
331 Choice(
"daBanish",
"_depart");
332 }
334 Step(
"_toggleSharedEquip");
336 {
338 });
343 {
344 EClass.Branch.uidMaid = c.
uid;
345 });
350 {
352 {
353 GameLang.refDrama1 = c.GetBestAttribute().ToString() ?? "";
354 TempTalkTopic("invite3", StepDefault);
355 }
356 else
357 {
358 EClass.pc.party.AddMemeber(c, showMsg: true);
359 }
360 });
364 {
367 {
368 EClass.pc.Say("tame_send", c, c.homeZone.Name);
369 c.MoveZone(c.homeZone);
370 }
371 });
375 Step(
"_makeLivestock");
377 {
379 });
380 Talk(
"becomeLivestock",
StepEnd);
381 Step(
"_makeResident");
383 {
385 });
386 Talk(
"becomeResident",
StepEnd);
389 Choice(
"depart1",
"_depart1");
390 Choice(
"depart2",
"_depart2");
393 {
395 {
397 });
398 });
403 Talk("gift_good", null);
407 {
410 {
412 }
413 else
414 {
415 TempTalkTopic("goto", "_goto2");
416 }
417 });
420 {
422 {
423 destCard.Teleport(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: true, ignoreCenter: true) ?? EClass.pc.pos, silent: true, force: true);
424 }
427 });
431 Step(
"_lostProperty");
433 {
437 });
443 {
446 });
450 {
452 {
453 return "";
454 }
459 }, text);
460 string text2 = "daAccept".lang();
462 {
464 }
466 {
470 {
474 {
476 if (supply != null)
477 {
479 {
482 {
487 {
489 });
490 }
491 }
492 }
494 Step(
"_questAccept");
496 Step(
"_questAccept_instance");
499 {
507 {
510 {
511 TempTalkTopic(
"loytel_bill_give_wait",
StepDefault);
512 }
514 {
515 TempTalkTopic(
"loytel_bill_give_given",
StepDefault);
516 }
517 else
518 {
521 }
522 });
525 {
527 TempTalkTopic(
"loytel_bill_give_lost",
StepEnd);
529 });
532 {
534 });
537 Step(
"_sleepBeside");
539 {
541 {
542 c.SetInt(123, (c.GetInt(123) == 0) ? 1 : 0);
543 }
544 else
545 {
546 TempTalkTopic("refuse", StepEnd);
547 }
548 });
553 {
555 {
556 TempTalkTopic("refuse", StepEnd);
557 }
558 });
561 {
563 {
567 {
568 destThing.rarity = Rarity.Mythical;
569 }
579 });
580 });
584 {
587 {
588 TempTalkTopic("wedding_deed", StepDefault);
589 }
591 {
592 TempTalkTopic("wedding_zone", StepDefault);
593 }
594 else
595 {
596 TempTalkTopic("wedding_confirm", null);
597 Choice("yes", delegate
598 {
599 TempTalkTopic("wedding_accept", null);
600 if (deed != null)
601 {
602 deed.ModNum(-1);
603 }
604 if (c.c_love != null)
605 {
606 c.c_love.dateWedding = EClass.world.date.GetRaw();
607 }
608 });
610 }
611 });
614 {
618 {
619 EClass.pc.party.AddMemeber(c);
620 }
622 {
623 if (item6 != EClass.pc && item6 != c)
624 {
625 EClass.pc.party.RemoveMember(item6);
626 }
627 }
629 {
630 ActRide.Unride(EClass.pc, c == EClass.pc.parasite, talk: false);
631 }
634 Zone z2 = quest.CreateInstanceZone(c);
636 {
637 state = ZoneTransition.EnterState.Exact,
638 x = 50,
639 z = 53
640 });
642 });
644 Step(
"_disableLoyal");
646 {
648 });
652 _Talk(
"tg", GetTalk(
"pervert4"));
654 {
656 {
657 c.UseAbility("ActBloodsuck", EClass.pc);
658 }
659 else
660 {
661 c.Sniff(EClass.pc);
662 }
664 });
668 {
670 });
673 {
675 {
676 c.Talk("insult");
677 }
678 });
682 {
684 });
690 {
691 });
693 {
694 });
697 {
699 {
700 string[] recruitItems = c.source.recruitItems;
701 if (!recruitItems.IsEmpty())
702 {
703 string[] array3 = recruitItems[0].Split('/');
704 string reqId = array3[0];
705 int reqNum = array3[1].ToInt();
706 CardBlueprint.Set(CardBlueprint.Original);
707 GameLang.refDrama1 = ThingGen.Create(reqId).SetNum(reqNum).Name;
708 TempTalkTopic("inviteReq1", null);
709 foreach (Thing t2 in EClass.pc.things.List((Thing t) => t.id == reqId && t.Num >= reqNum, onlyAccessible: true))
710 {
711 Thing _t6 = t2;
712 Choice("daDeliver".lang("", _t6.GetName(NameStyle.Full, _t6.Num)), delegate
713 {
714 t2.ModNum(-reqNum);
715 TempTalk("hired", StepEnd);
716 EClass.Sound.Play("good");
717 c.MakeAlly();
718 }).SetOnTooltip(delegate(UITooltip a)
719 {
720 _t6.WriteNote(a.note);
721 });
722 }
723 Choice("no2", StepDefault, cancel: true).SetOnClick(RumorChill);
724 }
725 else
726 {
727 TempTalkTopic("invite2", StepDefault);
728 }
729 }
731 {
732 GameLang.refDrama1 = c.GetBestAttribute().ToString() ?? "";
733 TempTalkTopic("invite3", StepDefault);
734 }
735 else
736 {
737 TempTalkTopic("invite", null);
738 Choice("yes", delegate
739 {
740 TempTalk("hired", StepEnd);
741 EClass.Sound.Play("good");
742 c.MakeAlly();
743 });
745 }
746 });
749 {
750 TempTalkTopic("guide", null);
752 {
754 {
756 });
757 }
759 TempCancel();
760 });
761 BackChill();
764 {
765 TempTalkTopic(c.
IsMarried ?
"tail4" : (bird +
"1"),
null);
767 {
768 TempTalkTopic(bird +
"2",
StepEnd);
770 {
771 target = c,
772 sell = true
773 });
774 });
776 });
779 {
781 {
782 Steam.GetAchievement(ID_Achievement.MAMA);
783 string id2 = c.id;
784 if (!(id2 == "farris"))
785 {
786 if (id2 == "quru")
787 {
788 Steam.GetAchievement(ID_Achievement.MAMA3);
789 }
790 }
791 else
792 {
793 Steam.GetAchievement(ID_Achievement.MAMA2);
794 }
795 TempTalkTopic(
"mama_yes",
StepEnd);
797 {
798 target = c,
799 variation = AI_Fuck.Variation.MotherMilk
800 });
801 }
802 else
803 {
805 RumorChill();
806 }
807 });
810 {
812 {
813 TempTalkTopic("baby_yes", StepEnd);
814 EClass.pc.SetAI(new AI_Fuck
815 {
816 target = c,
817 variation = AI_Fuck.Variation.MotherMilk,
818 sell = true
819 });
820 }
821 else
822 {
824 RumorChill();
825 }
826 });
829 {
832 TempTalkTopic(bird + "3", null);
834 {
836 {
837 TempTalkTopic("nomoney", StepDefault);
838 }
839 else
840 {
841 SE.Pay();
842 EClass.pc.ModCurrency(-costWhore);
843 TempTalkTopic(bird + "2", StepEnd);
844 EClass.pc.SetAI(new AI_Fuck
845 {
846 target = c
847 });
848 }
849 });
851 });
854 {
857 TempTalkTopic("bird3", null);
859 {
861 {
862 TempTalkTopic("lockTooHard", StepDefault);
863 }
865 {
866 TempTalkTopic("nomoney", StepDefault);
867 }
868 else
869 {
870 SE.Pay();
871 EClass.pc.ModCurrency(-cost8);
872 manager.layer.SetOnKill(delegate
873 {
874 c.PlaySound("lock_open");
875 c.Say("lockpick_success", c, destThing);
876 c.ModExp(280, 200 + destThing.c_lockLv * 20);
877 destThing.c_lockLv = 0;
878 if (destThing.isLostProperty)
879 {
880 EClass.player.ModKarma(-8);
881 }
882 destThing.isLostProperty = false;
883 });
885 }
886 });
888 });
891 {
892 TempTalkTopic("blooming1", null);
894 {
897 {
898 if (EClass._zone.influence < 10)
899 {
900 TempTalkTopic("blooming3", StepDefault);
901 }
902 else
903 {
904 EClass._zone.ModInfluence(-10);
905 LayerDrama.Instance.SetOnKill(delegate
906 {
907 c.Talk("goodBoy");
908 c4.Say("dingExp", c);
909 c4.Talk("insulted");
910 c4.SetFeat(1273, 1, msg: true);
911 c4.PlayEffect("aura_heaven");
912 c4.feat += 10;
913 EClass.pc.PlaySound("pray");
914 });
915 TempTalkTopic(
"blooming2",
StepEnd);
916 }
917 });
918 }
920 });
923 {
925 {
926 SE.Play("click_chat");
927 if (EClass.pc.GetCurrency("medal") > 0)
928 {
929 TempTalkTopic("miral_medal", null);
930 }
931 else
932 {
933 TempTalkTopic("miral_medal2", StepDefault);
934 }
935 }
936 });
938 {
940 {
941 SE.Play("click_chat");
942 TempTalkTopic("shop_blackmarket_noaccess", StepEnd);
943 }
945 {
946 SE.Play("click_chat");
947 TempTalkTopic("shop_criminal", StepEnd);
948 }
949 else
950 {
951 sequence.Exit();
952 manager.layer.Close();
953 c.trait.OnBarter();
954 if ((bool)WidgetFeed.Instance)
955 {
956 WidgetFeed.Instance.Talk(c, "barter");
957 }
959 }
963 {
964 List<ResearchPlan> plans = new List<ResearchPlan>();
966 {
968 {
970 }
971 }
973 {
974 list.moldItem = Resources.Load<
ItemGeneral>(
"UI/Element/Item/ItemGeneralBarter").transform;
976 {
978 {
979 b.button1.mainText.text = a.
Name;
983 uIItem.image1.sprite = c3.resource.Sprite;
985 {
987 });
988 b.
button1.onClick.AddListener(delegate
989 {
990 if (c3.resource.value < c3.cost)
991 {
992 SE.Beep();
993 }
994 else
995 {
996 c3.resource.Mod(-c3.cost);
997 plans.Remove(a);
999 SE.Pay();
1000 list.
List(refreshHighlight:
true);
1001 }
1002 });
1003 b.RebuildLayout(recursive: true);
1004 },
1005 onList = delegate
1006 {
1008 {
1010 }
1011 }
1012 };
1013 }).SetSize()
1015 {
1016 branchMoney = true
1017 });
1019 Step(
"_upgradeHearth");
1021 {
1024 GameLang.refDrama2 = (EClass.Branch.lv + 1).ToString() ?? "";
1026 TempTalkTopic("upgrade_heath1", null);
1028 {
1030 {
1031 TempTalkTopic("nomoney", StepDefault);
1032 }
1033 else
1034 {
1035 EClass.pc.ModCurrency(-cost7);
1036 SE.Pay();
1037 LayerDrama.Instance.SetOnKill(delegate
1038 {
1039 EClass.Branch.Upgrade();
1040 });
1041 TempTalkTopic(
"upgrade_heath2",
StepEnd);
1042 }
1043 });
1045 });
1048 {
1049 int cost6 = EClass.player.fame / 5;
1050 GameLang.refDrama1 = cost6.ToString() ?? "";
1051 if (cost6 == 0)
1052 {
1054 }
1055 else
1056 {
1057 TempTalkTopic("sellFame1", null);
1059 {
1061 SE.Pay();
1064 });
1066 }
1067 });
1068 Step(
"_investZone");
1070 {
1074 TempTalkTopic("invest1", null);
1076 {
1077 Invest(quick: false);
1078 });
1080 Choice(
"quickInvest", delegate
1081 {
1082 Invest(quick: true);
1083 });
1084 void Invest(bool quick)
1085 {
1087 {
1089 }
1090 else
1091 {
1093 SE.Pay();
1094 EClass._zone.investment += cost5;
1098 if (quick)
1099 {
1101 }
1102 else
1103 {
1105 }
1106 }
1107 }
1108 });
1109 Step(
"_investShop");
1111 {
1115 TempTalkTopic("invest_shop1", null);
1117 {
1118 Invest(quick: false);
1119 });
1121 Choice(
"quickInvest", delegate
1122 {
1123 Invest(quick: true);
1124 });
1125 void Invest(bool quick)
1126 {
1128 {
1130 }
1131 else
1132 {
1134 SE.Pay();
1139 if (quick)
1140 {
1142 }
1143 else
1144 {
1146 }
1147 }
1148 }
1149 });
1150 Step(
"_changeTitle");
1152 {
1153 EClass.player.title = WordGen.Get("title");
1159 {
1162 GameLang.refDrama1 = "";
1163 GameLang.refDrama2 = costLand.ToString() ?? "";
1164 if (!num7)
1165 {
1167 }
1168 else
1169 {
1172 {
1174 {
1175 TempTalkTopic("nomoney", StepDefault);
1176 }
1177 else
1178 {
1179 SE.Pay();
1180 EClass.pc.ModCurrency(-costLand, "money2");
1181 TempTalkTopic("expand2", StepDefault);
1182 EClass._map.bounds.Expand(1);
1183 SE.Play("good");
1184 EClass._map.RefreshAllTiles();
1185 WidgetMinimap.UpdateMap();
1186 ScreenEffect.Play("Firework");
1187 }
1188 });
1190 }
1191 });
1194 {
1198 });
1202 {
1209 {
1211 TempTalkTopic(
"blessing",
StepEnd);
1213 {
1215 {
1216 if (c.trait is TraitMiko_Mifu)
1217 {
1218 member.AddCondition<ConHolyVeil>()?.SetPerfume();
1219 }
1221 {
1222 member.AddCondition<ConEuphoric>()?.SetPerfume();
1223 }
1224 else
1225 {
1226 member.AddCondition<ConNightVision>()?.SetPerfume();
1227 }
1228 member.
Say(
"blessing", member);
1231 }
1232 c.isRestocking = true;
1233 });
1235 });
1238 {
1240 {
1241 list.moldItem = Resources.Load<
ButtonElement>(
"UI/Element/Button/ButtonElementTrain").transform;
1243 {
1245 {
1247 if (num6 == 0)
1248 {
1249 SE.Beep();
1250 }
1252 {
1254 {
1256 }
1257 else
1258 {
1260 }
1263 }
1264 },
1266 {
1268 b.imagePotential.enabled = flag5;
1272 b.mainText.text = b.mainText.text + " " + (flag5 ? "" : ("notLearned".lang() + " "));
1273 b.subText2.text = ((cost3 == 0) ? "-" : (cost3.ToString() ?? "")).TagColor(() => plat >= cost3 && cost3 != 0);
1274 b.RebuildLayout();
1275 },
1276 onInstantiate = delegate
1277 {
1278 },
1279 onList = delegate
1280 {
1282 {
1283 if (a.tag.Contains("unused"))
1284 {
1285 return false;
1286 }
1287 if (a.tag.Contains("guild"))
1288 {
1290 {
1291 return true;
1292 }
1294 {
1295 return true;
1296 }
1298 {
1299 return true;
1300 }
1302 {
1303 return true;
1304 }
1305 return false;
1306 }
1307 if (isInGuild)
1308 {
1309 return false;
1310 }
1311 return a.category ==
"skill" && a.categorySub == c.
trait.
IDTrainer;
1312 }).ToList())
1313 {
1315 }
1316 }
1317 };
1318 }).SetSize()
1322 {
1323 plat = true
1324 });
1326 Step(
"_changeDomain");
1328 {
1333 {
1337 {
1338 money = true
1339 });
1343 {
1344 LayerPeople.slaveToBuy = null;
1348 {
1349 money = true
1350 });
1352 }, () => !layer, "_buySlaveConfirm");
1353 Step(
"_buySlaveConfirm");
1355 {
1357 if (tc == null)
1358 {
1359 RumorChill();
1360 }
1361 else
1362 {
1364 GameLang.refDrama1 = cost2.ToString() ?? "";
1365 GameLang.refDrama2 = tc.
Name;
1366 TempTalkTopic("slave_buy", null);
1368 {
1370 {
1371 TempTalkTopic("nomoney", StepDefault);
1372 }
1373 else
1374 {
1375 GameLang.refDrama1 = tc.Name;
1376 EClass._zone.AddCard(tc, EClass.pc.pos.GetNearestPoint());
1377 tc.MakeAlly();
1378 c.GetObj<SlaverData>(5).list.Remove(tc);
1379 TempTalkTopic("slave_buy2", StepEnd);
1380 }
1381 }).DisableSound();
1383 }
1384 });
1388 {
1393 {
1399 Step(
"_identifyAll");
1401 {
1402 int costIdentify = 0;
1403 int numIdentify = 0;
1404 int numSuperior = 0;
1406 {
1408 {
1409 numIdentify++;
1410 costIdentify += CalcMoney.Identify(EClass.pc, superior: false);
1411 }
1412 });
1413 GameLang.refDrama1 = costIdentify.ToString() ?? "";
1414 GameLang.refDrama2 = numIdentify.ToString() ?? "";
1415 if (numIdentify == 0)
1416 {
1418 }
1419 else
1420 {
1423 {
1425 {
1426 TempTalkTopic("nomoney", StepDefault);
1427 }
1428 else
1429 {
1430 SE.Pay();
1431 EClass.pc.ModCurrency(-costIdentify);
1432 foreach (Thing item10 in EClass.pc.things.List((Thing t) => !t.IsIdentified, onlyAccessible: true))
1433 {
1434 item10.Thing.Identify(show: false);
1435 if (!item10.IsInstalled)
1436 {
1437 numSuperior++;
1438 }
1439 }
1441 }
1442 });
1444 }
1445 });
1446 Step(
"_identifySP");
1448 {
1456 {
1459 {
1461 {
1464 targetZ = c.pos.z
1465 });
1468 {
1469 target = c
1470 });
1473 {
1474 EClass.pc.MoveZone(z, ZoneTransition.EnterState.Center);
1475 });
1476 TempTalkTopic(
"bout2",
StepEnd);
1477 });
1482 {
1484 Choice(
"yes_rob", delegate
1485 {
1487 c.
Talk(
"callGuards");
1489 {
1490 if (chara == c || chara.master == c)
1491 {
1492 chara.SetHostility(Hostility.Enemy);
1493 chara.DoHostileAction(EClass.pc.party.members.RandomItem());
1494 }
1495 }
1497 {
1498 EClass._zone.SetBGM(102);
1499 }
1502 });
1507 {
1509 if (zone == null)
1510 {
1511 TempTalkTopic("news2", null);
1512 }
1513 else
1514 {
1515 zone.isKnown = true;
1517 GameLang.refDrama1 = zone.
Name;
1518 TempTalkTopic("news1", null);
1519 }
1521 });
1523 {
1528 {
1531 TempTalkTopic("healer1", null);
1533 {
1535 {
1536 TempTalkTopic("nomoney", StepDefault);
1537 }
1538 else
1539 {
1540 SE.Pay();
1541 foreach (Chara member2 in EClass.pc.party.members)
1542 {
1543 ActEffect.Proc(EffectId.HealComplete, member2);
1544 }
1546 TempTalkTopic(
"healer2",
StepEnd);
1547 }
1548 });
1550 });
1553 {
1556 TempTalkTopic("food1", null);
1558 {
1560 {
1561 TempTalkTopic("alreadyFull", StepDefault);
1562 }
1564 {
1565 TempTalkTopic("nomoney", StepDefault);
1566 }
1567 else
1568 {
1569 SE.Pay();
1570 EClass.pc.ModCurrency(-cost);
1571 TempTalkTopic("food2", StepDefault);
1572 FoodEffect.Proc(EClass.pc, ThingGen.Create("dish_lunch"), consume: false);
1573 EClass.pc.hunger.value = 0;
1574 }
1575 });
1577 });
1578 int[] bankTier = new int[5] { 100, 1000, 10000, 100000, 1000000 };
1581 {
1585 {
1586 WidgetFeed.Instance.Talk(c, "barter");
1587 }
1588 SE.Play("shop_open");
1594 {
1598 {
1599 WidgetFeed.Instance.Talk(c, "barter");
1600 }
1601 SE.Play("shop_open");
1604 {
1605 c.c_copyContainer = ThingGen.Create("container_deposit");
1606 }
1612 int[] taxTier = new int[6] { 0, 1000, 2000, 5000, 10000, 20000 };
1615 {
1617 TempTalkTopic("extraTax", null);
1618 int[] array2 = taxTier;
1619 foreach (int num5 in array2)
1620 {
1621 int _i2 = num5;
1623 {
1624 EClass.player.extraTax = _i2;
1625 GameLang.refDrama1 = Lang._currency(_i2, "money");
1626 TempTalkTopic("extraTax2", StepDefault);
1627 });
1628 }
1630 });
1633 {
1635 GameLang.refDrama1 = bankMoney.ToString() ?? "";
1636 TempTalkTopic("banker2", null);
1637 int[] array = bankTier;
1638 foreach (int num4 in array)
1639 {
1640 int _i = num4;
1642 {
1644 {
1645 SE.Pay();
1646 EClass.pc.ModCurrency(_i);
1647 EClass.player.bankMoney -= _i;
1648 TempTalkTopic("banker4", StepDefault);
1649 });
1650 }
1651 }
1653 });
1654 Step(
"_disableMove");
1656 {
1657 c.noMove = true;
1660 });
1662 Step(
"_enableMove");
1664 {
1665 c.noMove = false;
1666 c.orgPos = null;
1668 });
1672 {
1674 });
1678 return;
1679 IL_093e:
1681 goto IL_094f;
1682 IL_098e:
1684 goto IL_099f;
1685 IL_094f:
1687 bool num3;
1688 if (condition2 == null)
1689 {
1691 {
1692 goto IL_098e;
1693 }
1695 }
1696 else
1697 {
1698 num3 = condition2.
IsBaby;
1699 }
1700 if (num3)
1701 {
1702 goto IL_098e;
1703 }
1704 goto IL_099f;
1705 IL_099f:
1707 {
1709 }
1711 {
1713 }
1715 {
1716 Choice2(flag2 ?
"daBirdBuy" :
"daTailBuy",
"_whore");
1717 }
1719 {
1721 }
1723 {
1725 }
1727 {
1728 Choice2(
"daSellFame",
"_sellFame");
1729 }
1731 {
1733 {
1734 Choice2(
"daInvest",
"_investZone");
1735 }
1737 {
1738 Choice2(
"daInvest",
"_investShop");
1739 }
1740 }
1742 {
1744 Choice2(
"daIdentifyAll",
"_identifyAll");
1746 }
1748 {
1750 {
1752 }
1754 {
1757 {
1759 });
1760 }
1761 }
1763 {
1764 Choice2(
"daDeposit",
"_deposit");
1765 }
1767 {
1768 Choice2(
"daExtraTax",
"_extraTax");
1769 }
1771 {
1772 Choice2(
"daBlessing",
"_blessing");
1773 }
1774 goto IL_0d68;
1775 void BackChill()
1776 {
1778 }
1779 string GetTalk(string id)
1780 {
1782 }
1783 void RumorChill()
1784 {
1785 rumor = GetTalk("chill");
1786 }
1787 void Talk(string idTalk, string idJump)
1788 {
1789 _Talk(
"tg", GetTalk(idTalk), idJump);
1790 }
1791 void TempCancel()
1792 {
1794 }
1795 void TempTalk(string idTalk, string idJump)
1796 {
1797 _TempTalk(
"tg", GetTalk(idTalk), idJump);
1798 }
1799 void TempTalkTopic(string idTopc, string idJump)
1800 {
1802 }
1803 bool taken()
1804 {
1805 if (c.
quest !=
null)
1806 {
1808 }
1809 return false;
1810 }
1811 }
void SetBool(int id, bool enable)
int GetInt(int id, int? defaultInt=null)
void SetInt(int id, int value=0)
static int Picklock(Chara c, Thing t)
static int InvestZone(Chara c)
static int Identify(Chara c, bool superior)
static int BuySlave(Chara c)
static int InvestShop(Chara c, Chara tc)
static int Whore(Chara seller, Chara buyer)
static int Learn(Chara c, Element e)
static int Train(Chara c, Element _e)
ElementContainerCard elements
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
void Talk(string idTopic, string ref1=null, string ref2=null, bool forceSync=false)
int GetCurrency(string id="money")
string GetTalkText(string idTopic, bool stripPun=false, bool useDefault=true)
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
void ModCurrency(int a, string id="money")
bool TryPay(int a, string id="money")
void ModExp(string alias, int a)
bool HasElement(int ele, bool includeNagative=false)
void Say(string lang, string ref1=null, string ref2=null)
SourceCategory.Row GetFavCat()
override bool IsAliveInCurrentZone
Chara SetGlobal(Zone _home, int x, int z)
override bool IsPCFaction
void SetAIImmediate(AIAct g)
List< Hobby > ListHobbies(bool useMemberType=true)
FactionMemberType memberType
SourceThing.Row GetFavFood()
bool TryEquip(Thing t, bool useFav=false)
void MoveZone(string alias)
int GetRaw(int offsetHours=0)
DramaChoice SetCondition(Func< bool > condition)
DramaChoice DisableSound()
DramaChoice SetOnClick(Action action)
void _TempTalk(string idActor, string text, string idJump=null)
void Method(Action action, Func< bool > endFunc=null, string idJump=null)
void EnableCancel(string idCancelJump=null)
void _Talk(string idActor, string text, string idJump=null)
DramaChoice Choice2(string lang, string idJump)
List< Card > GetListGuide()
string GetTopic(Chara c, string idTopic=null)
bool HasTopic(string idSheet, string idTopic)
DramaChoice Choice(string lang, string idJump, bool cancel=false)
void TempGoto(string idJump=null)
string GetText(Chara c, string idSheet, string idTopic)
static SourceManager sources
static FactionBranch Branch
static FactionBranch BranchOrHomeBranch
void Train(int ele, int a=10)
void Learn(int ele, int v=1)
Element ModBase(int ele, int v)
Element SetBase(string alias, int v, int potential=0)
Element GetElement(string alias)
static Element Create(int id, int v=0)
ResearchManager researches
string GetHearthHint(int a)
HomeResourceManager resources
void BanishMember(Chara c, bool skipMsg=false)
void AddContribution(int a)
ReligionManager religions
override bool IsCurrentZone
override bool IsCurrentZone
override bool IsCurrentZone
override bool IsCurrentZone
static GuildMerchant Merchant
static GuildFighter Fighter
static Guild GetCurrentGuild()
static string _currency(object a, string IDCurrency)
static LayerDragGrid CreateGive(Chara c)
static LayerDragGrid CreateIdentify(Chara cc, bool superior=false, BlessedState state=BlessedState.Normal, int price=0, int count=1)
static LayerDrama Activate(string book, string idSheet, string idStep, Chara target=null, Card ref1=null, string tag="")
static LayerDrama Instance
static LayerInventory CreateContainer(Card owner)
static LayerInventory CreateBuy(Card c, CurrencyType currency=CurrencyType.Money, PriceType price=PriceType.Default)
static LayerPeople Create(Mode mode)
Layer SetTitles(string langList, string idHeaderRow=null)
Layer SetOnKill(Action action)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
static async UniTask< bool > SendChat(string name, string msg, ChatCategory cat, string idLang)
void RemoveMember(Chara c)
void RequestPathImmediate(PathProgress progress)
static PathManager Instance
Layer SelectDomain(Action onKill=null)
void EndTurn(bool consume=true)
string GetIdTalk_GiveBill()
List< Thing > ListDestThing(bool onlyFirst=false)
Quest Start(string id, string idGlobalChara)
virtual bool IsRandomQuest
virtual string GetTalkComplete()
virtual bool UseInstanceZone
static Quest Create(string _id, string _idPerson=null, Chara c=null, bool assignQuest=true)
virtual string GetTitle()
virtual string NameDeliver
virtual string GetTalkProgress()
virtual string GetDetail(bool onJournal=false)
virtual bool Deliver(Chara c, Thing t=null)
virtual Zone CreateInstanceZone(Chara c)
Zone CreateRandomSite(Zone center, int radius=8, string idSource=null, bool updateMesh=true, int lv=0)
ReligionMoonShadow MoonShadow
bool IsListBarter(string idPlan)
static ResearchPlan Create(string id)
SourceResearch.Row source
SourceResearch researches
static Zone CreateInstance(string id, ZoneInstance instance)
List< Thing > List(Func< Thing, bool > func, bool onlyAccessible=false)
void SetSize(int w, int h)
void Foreach(Action< Thing > action, bool onlyAccessible=true)
override void WriteNote(UINote n, Action< UINote > onWriteNote=null, IInspect.NoteMode mode=IInspect.NoteMode.Default, Recipe recipe=null)
override string GetName(NameStyle style, int _num=-1)
virtual bool CanServeFood
virtual bool CanBeBanished
virtual bool CanJoinParty
virtual bool CanInvestTown
virtual bool CanJoinPartyResident
virtual CopyShopType CopyShop
virtual ShopType ShopType
virtual PriceType PriceType
string TextNextRestockPet
virtual void OnBarter(bool reroll=false)
virtual CurrencyType CurrencyType
virtual SlaverType SlaverType
virtual bool AllowCriminal
override void Add(object item)
static Transform Instantiate(string path, Component parent=null)
void AddPreEnter(ZonePreEnterEvent e, bool executeIfActiveZone=true)
Dictionary< int, string > dictCitizen
Chara FindChara(string id)
virtual bool AllowCriminal
void ModDevelopment(int a)