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 {
184 if (!c.
GetBool(
"disable_barter_choice"))
185 {
187 }
189 {
191 }
192 }
194 {
196 }
198 {
200 }
201 }
203 {
205 }
207 {
209 }
211 {
212 Choice2(flag2 ?
"daBird" :
"daTail",
"_tail");
213 }
215 bool num2;
216 if (condition == null)
217 {
219 {
220 goto IL_0971;
221 }
223 }
224 else
225 {
227 }
228 if (num2)
229 {
230 goto IL_0971;
231 }
232 goto IL_0982;
233 }
235 {
236 Choice2(flag2 ?
"daBird" :
"daTail",
"_tail");
237 }
238 }
239 goto IL_0d9b;
240 IL_09c1:
242 goto IL_09d2;
243 IL_0971:
245 goto IL_0982;
246 IL_0d9b:
248 {
250 {
252 {
254 }
255 Choice2(
"daBuyLand",
"_buyLand");
256 Choice2(
"daChangeTitle",
"_changeTitle");
257 }
259 {
260 Choice2(
"enableMove",
"_enableMove");
261 }
263 {
264 Choice2(
"daJoinParty",
"_joinParty");
265 }
267 {
269 }
270 Choice2(
"daFactionOther",
"_factionOther");
271 }
273 {
274 Choice2(
"daGreatDebt",
"_greatDebt");
275 }
276 if (!flag)
277 {
280 }
281 Step(
"_factionOther");
284 {
286 {
289 {
291 });
292 }
293 }
295 {
297 }
299 {
301 if (questDebt !=
null && questDebt.
gaveBill)
302 {
303 Choice(
"daGreatDebt2",
"_greatDebt2");
304 }
305 }
307 {
309 {
310 Choice((c.
GetInt(106) == 0) ?
"daShutup" :
"daShutup2",
"_shutup");
312 {
313 Choice((c.
GetInt(108) == 0) ?
"daInsult" :
"daInsult2",
"_insult");
314 }
315 }
316 }
318 {
319 Choice(
"disableMove",
"_disableMove");
320 }
321 Choice((c.
GetInt(123) == 0) ?
"daSleepBeside" :
"daSleepBeside2",
"_sleepBeside");
323 {
324 Choice((c.
GetInt(126) == 0) ?
"daDisableLoyal" :
"daDisableLoyal2",
"_disableLoyal");
325 }
327 {
328 Choice((c.
GetInt(119) == 0) ?
"daDisableFuck" :
"daDisableFuck2",
"_disableFuck");
329 }
331 {
332 Choice(
"daEquipSharedOff",
"_toggleSharedEquip");
333 }
334 else
335 {
336 Choice(
"daEquipSharedOn",
"_toggleSharedEquip");
337 }
339 {
340 Choice(
"daMakeMaid",
"_daMakeMaid");
341 }
343 {
344 Choice(
"daBanish",
"_depart");
345 }
347 Step(
"_toggleSharedEquip");
349 {
351 });
356 {
357 EClass.Branch.uidMaid = c.
uid;
358 });
363 {
365 {
366 GameLang.refDrama1 = c.GetBestAttribute().ToString() ?? "";
367 TempTalkTopic("invite3", StepDefault);
368 }
369 else
370 {
371 EClass.pc.party.AddMemeber(c, showMsg: true);
372 }
373 });
377 {
380 {
381 EClass.pc.Say("tame_send", c, c.homeZone.Name);
382 c.MoveZone(c.homeZone);
383 }
384 });
388 Step(
"_makeLivestock");
390 {
392 });
393 Talk(
"becomeLivestock",
StepEnd);
394 Step(
"_makeResident");
396 {
398 });
399 Talk(
"becomeResident",
StepEnd);
402 Choice(
"depart1",
"_depart1");
403 Choice(
"depart2",
"_depart2");
406 {
408 {
410 });
411 });
416 Talk("gift_good", null);
420 {
423 {
425 }
426 else
427 {
428 TempTalkTopic("goto", "_goto2");
429 }
430 });
433 {
435 {
436 destCard.Teleport(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: true, ignoreCenter: true) ?? EClass.pc.pos, silent: true, force: true);
437 }
440 });
444 Step(
"_lostProperty");
446 {
450 });
456 {
459 });
463 {
465 {
466 return "";
467 }
472 }, text);
473 string text2 = "daAccept".lang();
475 {
477 }
479 {
483 {
487 {
489 if (supply != null)
490 {
492 {
495 {
500 {
502 });
503 }
504 }
505 }
507 Step(
"_questAccept");
509 Step(
"_questAccept_instance");
512 {
520 {
523 {
524 TempTalkTopic(
"loytel_bill_give_wait",
StepDefault);
525 }
527 {
528 TempTalkTopic(
"loytel_bill_give_given",
StepDefault);
529 }
530 else
531 {
534 }
535 });
538 {
540 TempTalkTopic(
"loytel_bill_give_lost",
StepEnd);
542 });
545 {
547 });
550 Step(
"_sleepBeside");
552 {
554 {
555 c.SetInt(123, (c.GetInt(123) == 0) ? 1 : 0);
556 }
557 else
558 {
559 TempTalkTopic("refuse", StepEnd);
560 }
561 });
566 {
568 {
569 TempTalkTopic("refuse", StepEnd);
570 }
571 });
574 {
576 {
580 {
581 destThing.rarity = Rarity.Mythical;
582 }
592 });
593 });
597 {
600 {
601 TempTalkTopic("wedding_deed", StepDefault);
602 }
604 {
605 TempTalkTopic("wedding_zone", StepDefault);
606 }
607 else
608 {
609 TempTalkTopic("wedding_confirm", null);
610 Choice("yes", delegate
611 {
612 TempTalkTopic("wedding_accept", null);
613 if (deed != null)
614 {
615 deed.ModNum(-1);
616 }
617 if (c.c_love != null)
618 {
619 c.c_love.dateWedding = EClass.world.date.GetRaw();
620 }
621 });
623 }
624 });
627 {
631 {
632 EClass.pc.party.AddMemeber(c);
633 }
635 {
636 if (item6 != EClass.pc && item6 != c)
637 {
638 EClass.pc.party.RemoveMember(item6);
639 }
640 }
642 {
643 ActRide.Unride(EClass.pc, c == EClass.pc.parasite, talk: false);
644 }
647 Zone z2 = quest.CreateInstanceZone(c);
649 {
650 state = ZoneTransition.EnterState.Exact,
651 x = 50,
652 z = 53
653 });
655 });
657 Step(
"_disableLoyal");
659 {
661 });
664 Step(
"_disableFuck");
666 {
668 });
672 _Talk(
"tg", GetTalk(
"pervert4"));
674 {
676 {
677 c.UseAbility("ActBloodsuck", EClass.pc);
678 }
679 else
680 {
681 c.Sniff(EClass.pc);
682 }
684 });
688 {
690 });
693 {
695 {
696 c.Talk("insult");
697 }
698 });
702 {
704 });
710 {
711 });
713 {
714 });
717 {
719 {
720 string[] recruitItems = c.source.recruitItems;
721 if (!recruitItems.IsEmpty())
722 {
723 string[] array3 = recruitItems[0].Split('/');
724 string reqId = array3[0];
725 int reqNum = array3[1].ToInt();
726 CardBlueprint.Set(CardBlueprint.Original);
727 GameLang.refDrama1 = ThingGen.Create(reqId).SetNum(reqNum).Name;
728 TempTalkTopic("inviteReq1", null);
729 foreach (Thing t2 in EClass.pc.things.List((Thing t) => t.id == reqId && (t.Num >= reqNum || EClass.debug.enable), onlyAccessible: true))
730 {
731 Thing _t6 = t2;
732 Choice("daDeliver".lang("", _t6.GetName(NameStyle.Full, _t6.Num)), delegate
733 {
734 t2.ModNum(-reqNum);
735 TempTalk("hired", StepEnd);
736 EClass.Sound.Play("good");
737 if (c.id == "mamani")
738 {
739 Chara chara = CharaGen.Create("mamani2");
740 EClass._zone.AddCard(chara, EClass.pc.pos.GetNearestPoint());
741 chara.isCopy = true;
742 chara.MakeAlly();
743 }
744 else
745 {
746 c.MakeAlly();
747 }
748 }).SetOnTooltip(delegate(UITooltip a)
749 {
750 _t6.WriteNote(a.note);
751 });
752 }
753 Choice("no2", StepDefault, cancel: true).SetOnClick(RumorChill);
754 }
755 else
756 {
757 TempTalkTopic("invite2", StepDefault);
758 }
759 }
761 {
762 GameLang.refDrama1 = c.GetBestAttribute().ToString() ?? "";
763 TempTalkTopic("invite3", StepDefault);
764 }
765 else
766 {
767 TempTalkTopic("invite", null);
768 Choice("yes", delegate
769 {
770 TempTalk("hired", StepEnd);
771 EClass.Sound.Play("good");
772 c.MakeAlly();
773 });
775 }
776 });
779 {
780 TempTalkTopic("guide", null);
782 {
784 {
786 });
787 }
789 TempCancel();
790 });
791 BackChill();
794 {
795 TempTalkTopic(c.
IsMarried ?
"tail4" : (bird +
"1"),
null);
797 {
798 TempTalkTopic(bird +
"2",
StepEnd);
800 {
801 target = c,
802 sell = true
803 });
804 });
806 });
809 {
811 {
812 Steam.GetAchievement(ID_Achievement.MAMA);
813 string id2 = c.id;
814 if (!(id2 == "farris"))
815 {
816 if (id2 == "quru")
817 {
818 Steam.GetAchievement(ID_Achievement.MAMA3);
819 }
820 }
821 else
822 {
823 Steam.GetAchievement(ID_Achievement.MAMA2);
824 }
825 TempTalkTopic(
"mama_yes",
StepEnd);
827 {
828 target = c,
829 variation = AI_Fuck.Variation.MotherMilk
830 });
831 }
832 else
833 {
835 RumorChill();
836 }
837 });
840 {
842 {
843 TempTalkTopic("baby_yes", StepEnd);
844 EClass.pc.SetAI(new AI_Fuck
845 {
846 target = c,
847 variation = AI_Fuck.Variation.MotherMilk,
848 sell = true
849 });
850 }
851 else
852 {
854 RumorChill();
855 }
856 });
859 {
862 TempTalkTopic(bird + "3", null);
864 {
866 {
867 TempTalkTopic("nomoney", StepDefault);
868 }
869 else
870 {
871 SE.Pay();
872 EClass.pc.ModCurrency(-costWhore);
873 TempTalkTopic(bird + "2", StepEnd);
874 EClass.pc.SetAI(new AI_Fuck
875 {
876 target = c
877 });
878 }
879 });
881 });
884 {
887 TempTalkTopic("bird3", null);
889 {
891 {
892 TempTalkTopic("lockTooHard", StepDefault);
893 }
895 {
896 TempTalkTopic("nomoney", StepDefault);
897 }
898 else
899 {
900 SE.Pay();
901 EClass.pc.ModCurrency(-cost8);
902 manager.layer.SetOnKill(delegate
903 {
904 c.PlaySound("lock_open");
905 c.Say("lockpick_success", c, destThing);
906 c.ModExp(280, 200 + destThing.c_lockLv * 20);
907 destThing.c_lockLv = 0;
908 if (destThing.isLostProperty)
909 {
910 EClass.player.ModKarma(-8);
911 }
912 destThing.isLostProperty = false;
913 });
915 }
916 });
918 });
921 {
922 TempTalkTopic("blooming1", null);
924 {
927 {
928 if (EClass._zone.influence < 10)
929 {
930 TempTalkTopic("blooming3", StepDefault);
931 }
932 else
933 {
934 EClass._zone.ModInfluence(-10);
935 LayerDrama.Instance.SetOnKill(delegate
936 {
937 c.Talk("goodBoy");
938 c4.Say("dingExp", c);
939 c4.Talk("insulted");
940 c4.SetFeat(1273, 1, msg: true);
941 c4.PlayEffect("aura_heaven");
942 c4.feat += 10;
943 EClass.pc.PlaySound("pray");
944 });
945 TempTalkTopic(
"blooming2",
StepEnd);
946 }
947 });
948 }
950 });
953 {
955 {
956 SE.Play("click_chat");
957 if (EClass.pc.GetCurrency("medal") > 0)
958 {
959 TempTalkTopic("miral_medal", null);
960 }
961 else
962 {
963 TempTalkTopic("miral_medal2", StepDefault);
964 }
965 }
966 });
968 {
970 {
971 SE.Play("click_chat");
972 TempTalkTopic("shop_blackmarket_noaccess", StepEnd);
973 }
975 {
976 SE.Play("click_chat");
977 TempTalkTopic("shop_criminal", StepEnd);
978 }
979 else
980 {
981 sequence.Exit();
982 manager.layer.Close();
983 c.trait.OnBarter();
984 if ((bool)WidgetFeed.Instance)
985 {
986 WidgetFeed.Instance.Talk(c, "barter");
987 }
989 }
993 {
994 List<ResearchPlan> plans = new List<ResearchPlan>();
996 {
998 {
1000 }
1001 }
1003 {
1004 list.moldItem = Resources.Load<
ItemGeneral>(
"UI/Element/Item/ItemGeneralBarter").transform;
1006 {
1008 {
1009 b.button1.mainText.text = a.
Name;
1013 uIItem.image1.sprite = c3.resource.Sprite;
1015 {
1017 });
1018 b.
button1.onClick.AddListener(delegate
1019 {
1020 if (c3.resource.value < c3.cost)
1021 {
1022 SE.Beep();
1023 }
1024 else
1025 {
1026 c3.resource.Mod(-c3.cost);
1027 plans.Remove(a);
1029 SE.Pay();
1030 list.
List(refreshHighlight:
true);
1031 }
1032 });
1033 b.RebuildLayout(recursive: true);
1034 },
1035 onList = delegate
1036 {
1038 {
1040 }
1041 }
1042 };
1043 }).SetSize()
1045 {
1046 branchMoney = true
1047 });
1049 Step(
"_upgradeHearth");
1051 {
1054 GameLang.refDrama2 = (EClass.Branch.lv + 1).ToString() ?? "";
1056 TempTalkTopic("upgrade_heath1", null);
1058 {
1060 {
1061 TempTalkTopic("nomoney", StepDefault);
1062 }
1063 else
1064 {
1065 EClass.pc.ModCurrency(-cost7);
1066 SE.Pay();
1067 LayerDrama.Instance.SetOnKill(delegate
1068 {
1069 EClass.Branch.Upgrade();
1070 });
1071 TempTalkTopic(
"upgrade_heath2",
StepEnd);
1072 }
1073 });
1075 });
1078 {
1079 int cost6 = EClass.player.fame / 5;
1080 GameLang.refDrama1 = cost6.ToString() ?? "";
1081 if (cost6 == 0)
1082 {
1084 }
1085 else
1086 {
1087 TempTalkTopic("sellFame1", null);
1089 {
1091 SE.Pay();
1094 });
1096 }
1097 });
1098 Step(
"_investZone");
1100 {
1104 TempTalkTopic("invest1", null);
1106 {
1107 Invest(quick: false);
1108 });
1110 Choice(
"quickInvest", delegate
1111 {
1112 Invest(quick: true);
1113 });
1114 void Invest(bool quick)
1115 {
1117 {
1119 }
1120 else
1121 {
1123 SE.Pay();
1124 EClass._zone.investment += cost5;
1128 if (quick)
1129 {
1131 }
1132 else
1133 {
1135 }
1136 }
1137 }
1138 });
1139 Step(
"_investShop");
1141 {
1145 TempTalkTopic("invest_shop1", null);
1147 {
1148 Invest(quick: false);
1149 });
1151 Choice(
"quickInvest", delegate
1152 {
1153 Invest(quick: true);
1154 });
1155 void Invest(bool quick)
1156 {
1158 {
1160 }
1161 else
1162 {
1164 SE.Pay();
1169 if (quick)
1170 {
1172 }
1173 else
1174 {
1176 }
1177 }
1178 }
1179 });
1180 Step(
"_changeTitle");
1182 {
1183 EClass.player.title = WordGen.Get("title");
1189 {
1192 GameLang.refDrama1 = "";
1193 GameLang.refDrama2 = costLand.ToString() ?? "";
1194 if (!num7)
1195 {
1197 }
1198 else
1199 {
1202 {
1204 {
1205 TempTalkTopic("nomoney", StepDefault);
1206 }
1207 else
1208 {
1209 SE.Pay();
1210 EClass.pc.ModCurrency(-costLand, "money2");
1211 TempTalkTopic("expand2", StepDefault);
1212 EClass._map.bounds.Expand(1);
1213 SE.Play("good");
1214 EClass._map.RefreshAllTiles();
1215 WidgetMinimap.UpdateMap();
1216 ScreenEffect.Play("Firework");
1217 }
1218 });
1220 }
1221 });
1224 {
1228 });
1232 {
1239 {
1241 TempTalkTopic(
"blessing",
StepEnd);
1243 {
1245 {
1246 if (c.trait is TraitMiko_Mifu)
1247 {
1248 member.AddCondition<ConHolyVeil>()?.SetPerfume();
1249 }
1251 {
1252 member.AddCondition<ConEuphoric>()?.SetPerfume();
1253 }
1254 else
1255 {
1256 member.AddCondition<ConNightVision>()?.SetPerfume();
1257 }
1258 member.
Say(
"blessing", member);
1261 }
1262 c.isRestocking = true;
1263 });
1265 });
1268 {
1270 {
1271 list.moldItem = Resources.Load<
ButtonElement>(
"UI/Element/Button/ButtonElementTrain").transform;
1273 {
1275 {
1277 if (num6 == 0)
1278 {
1279 SE.Beep();
1280 }
1282 {
1284 {
1286 }
1287 else
1288 {
1290 }
1293 }
1294 },
1296 {
1298 b.imagePotential.enabled = flag5;
1302 b.mainText.text = b.mainText.text + " " + (flag5 ? "" : ("notLearned".lang() + " "));
1303 b.subText2.text = ((cost3 == 0) ? "-" : (cost3.ToString() ?? "")).TagColor(() => plat >= cost3 && cost3 != 0);
1304 b.RebuildLayout();
1305 },
1306 onInstantiate = delegate
1307 {
1308 },
1309 onList = delegate
1310 {
1312 {
1313 if (a.tag.Contains("unused"))
1314 {
1315 return false;
1316 }
1317 if (a.tag.Contains("guild"))
1318 {
1320 {
1321 return true;
1322 }
1324 {
1325 return true;
1326 }
1328 {
1329 return true;
1330 }
1332 {
1333 return true;
1334 }
1335 return false;
1336 }
1337 if (isInGuild)
1338 {
1339 return false;
1340 }
1341 return a.category ==
"skill" && a.categorySub == c.
trait.
IDTrainer;
1342 }).ToList())
1343 {
1345 }
1346 }
1347 };
1348 }).SetSize()
1352 {
1353 plat = true
1354 });
1356 Step(
"_changeDomain");
1358 {
1363 {
1367 {
1368 money = true
1369 });
1373 {
1374 LayerPeople.slaveToBuy = null;
1378 {
1379 money = true
1380 });
1382 }, () => !layer, "_buySlaveConfirm");
1383 Step(
"_buySlaveConfirm");
1385 {
1387 if (tc == null)
1388 {
1389 RumorChill();
1390 }
1391 else
1392 {
1394 GameLang.refDrama1 = cost2.ToString() ?? "";
1395 GameLang.refDrama2 = tc.
Name;
1396 TempTalkTopic("slave_buy", null);
1398 {
1400 {
1401 TempTalkTopic("nomoney", StepDefault);
1402 }
1403 else
1404 {
1405 GameLang.refDrama1 = tc.Name;
1406 EClass._zone.AddCard(tc, EClass.pc.pos.GetNearestPoint());
1407 tc.MakeAlly();
1408 c.GetObj<SlaverData>(5).list.Remove(tc);
1409 TempTalkTopic("slave_buy2", StepEnd);
1410 }
1411 }).DisableSound();
1413 }
1414 });
1418 {
1423 {
1429 Step(
"_identifyAll");
1431 {
1432 int costIdentify = 0;
1433 int numIdentify = 0;
1434 int numSuperior = 0;
1436 {
1438 {
1439 numIdentify++;
1440 costIdentify += CalcMoney.Identify(EClass.pc, superior: false);
1441 }
1442 });
1443 GameLang.refDrama1 = costIdentify.ToString() ?? "";
1444 GameLang.refDrama2 = numIdentify.ToString() ?? "";
1445 if (numIdentify == 0)
1446 {
1448 }
1449 else
1450 {
1453 {
1455 {
1456 TempTalkTopic("nomoney", StepDefault);
1457 }
1458 else
1459 {
1460 SE.Pay();
1461 EClass.pc.ModCurrency(-costIdentify);
1462 foreach (Thing item10 in EClass.pc.things.List((Thing t) => !t.IsIdentified, onlyAccessible: true))
1463 {
1464 item10.Thing.Identify(show: false);
1465 if (!item10.IsInstalled)
1466 {
1467 numSuperior++;
1468 }
1469 }
1471 }
1472 });
1474 }
1475 });
1476 Step(
"_identifySP");
1478 {
1486 {
1489 {
1491 {
1494 targetZ = c.pos.z
1495 });
1498 {
1499 target = c
1500 });
1503 {
1504 EClass.pc.MoveZone(z, ZoneTransition.EnterState.Center);
1505 });
1506 TempTalkTopic(
"bout2",
StepEnd);
1507 });
1512 {
1514 Choice(
"yes_rob", delegate
1515 {
1517 c.
Talk(
"callGuards");
1519 {
1520 if (chara2 == c || chara2.master == c)
1521 {
1522 chara2.SetHostility(Hostility.Enemy);
1523 chara2.DoHostileAction(EClass.pc.party.members.RandomItem());
1524 }
1525 }
1527 {
1528 EClass._zone.SetBGM(102);
1529 }
1532 });
1537 {
1540 {
1541 TempTalkTopic("news2", null);
1542 }
1543 else
1544 {
1545 zone.isKnown = true;
1547 GameLang.refDrama1 = zone.
Name;
1548 TempTalkTopic("news1", null);
1549 }
1551 });
1553 {
1558 {
1561 TempTalkTopic("healer1", null);
1563 {
1565 {
1566 TempTalkTopic("nomoney", StepDefault);
1567 }
1568 else
1569 {
1570 SE.Pay();
1571 foreach (Chara member2 in EClass.pc.party.members)
1572 {
1573 ActEffect.Proc(EffectId.HealComplete, member2);
1574 }
1576 TempTalkTopic(
"healer2",
StepEnd);
1577 }
1578 });
1580 });
1583 {
1586 TempTalkTopic("food1", null);
1588 {
1590 {
1591 TempTalkTopic("alreadyFull", StepDefault);
1592 }
1593 else
1594 {
1595 if (EClass.pc.GetCurrency() >= cost)
1596 {
1597 SE.Pay();
1598 EClass.pc.ModCurrency(-cost);
1599 TempTalkTopic("food2", StepDefault);
1600 {
1601 foreach (Chara member3 in EClass.pc.party.members)
1602 {
1603 if (member3.hunger.GetPhase() > 0)
1604 {
1605 FoodEffect.Proc(member3, ThingGen.Create("dish_lunch"), consume: false);
1606 member3.hunger.value = 0;
1607 }
1608 }
1609 return;
1610 }
1611 }
1613 }
1614 });
1616 });
1617 int[] bankTier = new int[5] { 100, 1000, 10000, 100000, 1000000 };
1620 {
1624 {
1625 WidgetFeed.Instance.Talk(c, "barter");
1626 }
1627 SE.Play("shop_open");
1633 {
1637 {
1638 WidgetFeed.Instance.Talk(c, "barter");
1639 }
1640 SE.Play("shop_open");
1643 {
1644 c.c_copyContainer = ThingGen.Create("container_deposit");
1645 }
1651 int[] taxTier = new int[6] { 0, 1000, 2000, 5000, 10000, 20000 };
1654 {
1656 TempTalkTopic("extraTax", null);
1657 int[] array2 = taxTier;
1658 foreach (int num5 in array2)
1659 {
1660 int _i2 = num5;
1662 {
1663 EClass.player.extraTax = _i2;
1664 GameLang.refDrama1 = Lang._currency(_i2, "money");
1665 TempTalkTopic("extraTax2", StepDefault);
1666 });
1667 }
1669 });
1672 {
1674 GameLang.refDrama1 = bankMoney.ToString() ?? "";
1675 TempTalkTopic("banker2", null);
1676 int[] array = bankTier;
1677 foreach (int num4 in array)
1678 {
1679 int _i = num4;
1681 {
1683 {
1684 SE.Pay();
1685 EClass.pc.ModCurrency(_i);
1686 EClass.player.bankMoney -= _i;
1687 TempTalkTopic("banker4", StepDefault);
1688 });
1689 }
1690 }
1692 });
1693 Step(
"_disableMove");
1695 {
1696 c.noMove = true;
1699 });
1701 Step(
"_enableMove");
1703 {
1704 c.noMove = false;
1705 c.orgPos = null;
1707 });
1711 {
1713 });
1717 return;
1718 IL_09d2:
1720 {
1722 }
1724 {
1726 }
1728 {
1729 Choice2(flag2 ?
"daBirdBuy" :
"daTailBuy",
"_whore");
1730 }
1732 {
1734 }
1736 {
1738 }
1740 {
1741 Choice2(
"daSellFame",
"_sellFame");
1742 }
1744 {
1746 {
1747 Choice2(
"daInvest",
"_investZone");
1748 }
1750 {
1751 Choice2(
"daInvest",
"_investShop");
1752 }
1753 }
1755 {
1757 Choice2(
"daIdentifyAll",
"_identifyAll");
1759 }
1761 {
1763 {
1765 }
1767 {
1770 {
1772 });
1773 }
1774 }
1776 {
1777 Choice2(
"daDeposit",
"_deposit");
1778 }
1780 {
1781 Choice2(
"daExtraTax",
"_extraTax");
1782 }
1784 {
1785 Choice2(
"daBlessing",
"_blessing");
1786 }
1787 goto IL_0d9b;
1788 IL_0982:
1790 bool num3;
1791 if (condition2 == null)
1792 {
1794 {
1795 goto IL_09c1;
1796 }
1798 }
1799 else
1800 {
1801 num3 = condition2.
IsBaby;
1802 }
1803 if (num3)
1804 {
1805 goto IL_09c1;
1806 }
1807 goto IL_09d2;
1808 void BackChill()
1809 {
1811 }
1812 string GetTalk(string id)
1813 {
1815 }
1816 void RumorChill()
1817 {
1818 rumor = GetTalk("chill");
1819 }
1820 void Talk(string idTalk, string idJump)
1821 {
1822 _Talk(
"tg", GetTalk(idTalk), idJump);
1823 }
1824 void TempCancel()
1825 {
1827 }
1828 void TempTalk(string idTalk, string idJump)
1829 {
1830 _TempTalk(
"tg", GetTalk(idTalk), idJump);
1831 }
1832 void TempTalkTopic(string idTopc, string idJump)
1833 {
1835 }
1836 bool taken()
1837 {
1838 if (c.
quest !=
null)
1839 {
1841 }
1842 return false;
1843 }
1844 }
static bool not(DramaManager dm, Dictionary< string, string > line, params string[] parameters)
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 SetInt(string id, int value=0)
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)
void SetBool(string id, bool enable)
int GetInt(string id, int? defaultInt=null)
bool HasElement(int ele, bool includeNagative=false)
void Say(string lang, string ref1=null, string ref2=null)
SourceCategory.Row GetFavCat()
override bool IsAliveInCurrentZone
BaseCondition GetCondition(string idCon)
bool HasCondition(string alias)
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 bool NeedBoutToJoin
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)