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_095c;
221 }
223 }
224 else
225 {
227 }
228 if (num2)
229 {
230 goto IL_095c;
231 }
232 goto IL_096d;
233 }
235 {
236 Choice2(flag2 ?
"daBird" :
"daTail",
"_tail");
237 }
238 }
239 goto IL_0d86;
240 IL_095c:
242 goto IL_096d;
243 IL_09bd:
245 {
247 }
249 {
251 }
253 {
254 Choice2(flag2 ?
"daBirdBuy" :
"daTailBuy",
"_whore");
255 }
257 {
259 }
261 {
263 }
265 {
266 Choice2(
"daSellFame",
"_sellFame");
267 }
269 {
271 {
272 Choice2(
"daInvest",
"_investZone");
273 }
275 {
276 Choice2(
"daInvest",
"_investShop");
277 }
278 }
280 {
282 Choice2(
"daIdentifyAll",
"_identifyAll");
284 }
286 {
288 {
290 }
292 {
295 {
297 });
298 }
299 }
301 {
302 Choice2(
"daDeposit",
"_deposit");
303 }
305 {
306 Choice2(
"daExtraTax",
"_extraTax");
307 }
309 {
310 Choice2(
"daBlessing",
"_blessing");
311 }
312 goto IL_0d86;
313 IL_09ac:
315 goto IL_09bd;
316 IL_096d:
318 bool num3;
319 if (condition2 == null)
320 {
322 {
323 goto IL_09ac;
324 }
326 }
327 else
328 {
330 }
331 if (num3)
332 {
333 goto IL_09ac;
334 }
335 goto IL_09bd;
336 IL_0d86:
338 {
340 {
342 {
344 }
345 Choice2(
"daBuyLand",
"_buyLand");
346 Choice2(
"daChangeTitle",
"_changeTitle");
347 }
349 {
350 Choice2(
"enableMove",
"_enableMove");
351 }
353 {
354 Choice2(
"daJoinParty",
"_joinParty");
355 }
357 {
359 }
360 Choice2(
"daFactionOther",
"_factionOther");
361 }
363 {
364 Choice2(
"daGreatDebt",
"_greatDebt");
365 }
366 if (!flag)
367 {
370 }
371 Step(
"_factionOther");
374 {
376 {
379 {
381 });
382 }
383 }
385 {
387 }
389 {
391 if (questDebt !=
null && questDebt.
gaveBill)
392 {
393 Choice(
"daGreatDebt2",
"_greatDebt2");
394 }
395 }
397 {
399 {
400 Choice((c.
GetInt(106) == 0) ?
"daShutup" :
"daShutup2",
"_shutup");
402 {
403 Choice((c.
GetInt(108) == 0) ?
"daInsult" :
"daInsult2",
"_insult");
404 }
405 }
406 }
408 {
409 Choice(
"disableMove",
"_disableMove");
410 }
411 Choice((c.
GetInt(123) == 0) ?
"daSleepBeside" :
"daSleepBeside2",
"_sleepBeside");
413 {
414 Choice((c.
GetInt(126) == 0) ?
"daDisableLoyal" :
"daDisableLoyal2",
"_disableLoyal");
415 }
417 {
418 Choice(
"daEquipSharedOff",
"_toggleSharedEquip");
419 }
420 else
421 {
422 Choice(
"daEquipSharedOn",
"_toggleSharedEquip");
423 }
425 {
426 Choice(
"daMakeMaid",
"_daMakeMaid");
427 }
429 {
430 Choice(
"daBanish",
"_depart");
431 }
433 Step(
"_toggleSharedEquip");
435 {
437 });
442 {
443 EClass.Branch.uidMaid = c.
uid;
444 });
449 {
451 {
452 GameLang.refDrama1 = c.GetBestAttribute().ToString() ?? "";
453 TempTalkTopic("invite3", StepDefault);
454 }
455 else
456 {
457 EClass.pc.party.AddMemeber(c, showMsg: true);
458 }
459 });
463 {
466 {
467 EClass.pc.Say("tame_send", c, c.homeZone.Name);
468 c.MoveZone(c.homeZone);
469 }
470 });
474 Step(
"_makeLivestock");
476 {
478 });
479 Talk(
"becomeLivestock",
StepEnd);
480 Step(
"_makeResident");
482 {
484 });
485 Talk(
"becomeResident",
StepEnd);
488 Choice(
"depart1",
"_depart1");
489 Choice(
"depart2",
"_depart2");
492 {
494 {
496 });
497 });
502 Talk("gift_good", null);
506 {
509 {
511 }
512 else
513 {
514 TempTalkTopic("goto", "_goto2");
515 }
516 });
519 {
521 {
522 destCard.Teleport(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: true, ignoreCenter: true) ?? EClass.pc.pos, silent: true, force: true);
523 }
526 });
530 Step(
"_lostProperty");
532 {
536 });
542 {
545 });
549 {
551 {
552 return "";
553 }
558 }, text);
559 string text2 = "daAccept".lang();
561 {
563 }
565 {
569 {
573 {
575 if (supply != null)
576 {
578 {
581 {
586 {
588 });
589 }
590 }
591 }
593 Step(
"_questAccept");
595 Step(
"_questAccept_instance");
598 {
606 {
609 {
610 TempTalkTopic(
"loytel_bill_give_wait",
StepDefault);
611 }
613 {
614 TempTalkTopic(
"loytel_bill_give_given",
StepDefault);
615 }
616 else
617 {
620 }
621 });
624 {
626 TempTalkTopic(
"loytel_bill_give_lost",
StepEnd);
628 });
631 {
633 });
636 Step(
"_sleepBeside");
638 {
640 {
641 c.SetInt(123, (c.GetInt(123) == 0) ? 1 : 0);
642 }
643 else
644 {
645 TempTalkTopic("refuse", StepEnd);
646 }
647 });
652 {
654 {
655 TempTalkTopic("refuse", StepEnd);
656 }
657 });
660 {
662 {
666 {
667 destThing.rarity = Rarity.Mythical;
668 }
678 });
679 });
683 {
686 {
687 TempTalkTopic("wedding_deed", StepDefault);
688 }
690 {
691 TempTalkTopic("wedding_zone", StepDefault);
692 }
693 else
694 {
695 TempTalkTopic("wedding_confirm", null);
696 Choice("yes", delegate
697 {
698 TempTalkTopic("wedding_accept", null);
699 if (deed != null)
700 {
701 deed.ModNum(-1);
702 }
703 if (c.c_love != null)
704 {
705 c.c_love.dateWedding = EClass.world.date.GetRaw();
706 }
707 });
709 }
710 });
713 {
717 {
718 EClass.pc.party.AddMemeber(c);
719 }
721 {
722 if (item7 != EClass.pc && item7 != c)
723 {
724 EClass.pc.party.RemoveMember(item7);
725 }
726 }
728 {
729 ActRide.Unride(EClass.pc, c == EClass.pc.parasite, talk: false);
730 }
733 Zone z2 = quest.CreateInstanceZone(c);
735 {
736 state = ZoneTransition.EnterState.Exact,
737 x = 50,
738 z = 53
739 });
741 });
743 Step(
"_disableLoyal");
745 {
747 });
751 _Talk(
"tg", GetTalk(
"pervert4"));
753 {
755 {
756 c.UseAbility("ActBloodsuck", EClass.pc);
757 }
758 else
759 {
760 c.Sniff(EClass.pc);
761 }
763 });
767 {
769 });
772 {
774 {
775 c.Talk("insult");
776 }
777 });
781 {
783 });
789 {
790 });
792 {
793 });
796 {
798 {
799 string[] recruitItems = c.source.recruitItems;
800 if (!recruitItems.IsEmpty())
801 {
802 string[] array3 = recruitItems[0].Split('/');
803 string reqId = array3[0];
804 int reqNum = array3[1].ToInt();
805 CardBlueprint.Set(CardBlueprint.Original);
806 GameLang.refDrama1 = ThingGen.Create(reqId).SetNum(reqNum).Name;
807 TempTalkTopic("inviteReq1", null);
808 foreach (Thing t2 in EClass.pc.things.List((Thing t) => t.id == reqId && t.Num >= reqNum, onlyAccessible: true))
809 {
810 Thing _t6 = t2;
811 Choice("daDeliver".lang("", _t6.GetName(NameStyle.Full, _t6.Num)), delegate
812 {
813 t2.ModNum(-reqNum);
814 TempTalk("hired", StepEnd);
815 EClass.Sound.Play("good");
816 c.MakeAlly();
817 }).SetOnTooltip(delegate(UITooltip a)
818 {
819 _t6.WriteNote(a.note);
820 });
821 }
822 Choice("no2", StepDefault, cancel: true).SetOnClick(RumorChill);
823 }
824 else
825 {
826 TempTalkTopic("invite2", StepDefault);
827 }
828 }
830 {
831 GameLang.refDrama1 = c.GetBestAttribute().ToString() ?? "";
832 TempTalkTopic("invite3", StepDefault);
833 }
834 else
835 {
836 TempTalkTopic("invite", null);
837 Choice("yes", delegate
838 {
839 TempTalk("hired", StepEnd);
840 EClass.Sound.Play("good");
841 c.MakeAlly();
842 });
844 }
845 });
848 {
849 TempTalkTopic("guide", null);
851 {
853 {
855 });
856 }
858 TempCancel();
859 });
860 BackChill();
863 {
864 TempTalkTopic(c.
IsMarried ?
"tail4" : (bird +
"1"),
null);
866 {
867 TempTalkTopic(bird +
"2",
StepEnd);
869 {
870 target = c,
871 sell = true
872 });
873 });
875 });
878 {
880 {
881 Steam.GetAchievement(ID_Achievement.MAMA);
882 string id2 = c.id;
883 if (!(id2 == "farris"))
884 {
885 if (id2 == "quru")
886 {
887 Steam.GetAchievement(ID_Achievement.MAMA3);
888 }
889 }
890 else
891 {
892 Steam.GetAchievement(ID_Achievement.MAMA2);
893 }
894 TempTalkTopic(
"mama_yes",
StepEnd);
896 {
897 target = c,
898 variation = AI_Fuck.Variation.MotherMilk
899 });
900 }
901 else
902 {
904 RumorChill();
905 }
906 });
909 {
911 {
912 TempTalkTopic("baby_yes", StepEnd);
913 EClass.pc.SetAI(new AI_Fuck
914 {
915 target = c,
916 variation = AI_Fuck.Variation.MotherMilk,
917 sell = true
918 });
919 }
920 else
921 {
923 RumorChill();
924 }
925 });
928 {
931 TempTalkTopic(bird + "3", null);
933 {
935 {
936 TempTalkTopic("nomoney", StepDefault);
937 }
938 else
939 {
940 SE.Pay();
941 EClass.pc.ModCurrency(-costWhore);
942 TempTalkTopic(bird + "2", StepEnd);
943 EClass.pc.SetAI(new AI_Fuck
944 {
945 target = c
946 });
947 }
948 });
950 });
953 {
956 TempTalkTopic("bird3", null);
958 {
960 {
961 TempTalkTopic("lockTooHard", StepDefault);
962 }
964 {
965 TempTalkTopic("nomoney", StepDefault);
966 }
967 else
968 {
969 SE.Pay();
970 EClass.pc.ModCurrency(-cost8);
971 manager.layer.SetOnKill(delegate
972 {
973 c.PlaySound("lock_open");
974 c.Say("lockpick_success", c, destThing);
975 c.ModExp(280, 200 + destThing.c_lockLv * 20);
976 destThing.c_lockLv = 0;
977 if (destThing.isLostProperty)
978 {
979 EClass.player.ModKarma(-8);
980 }
981 destThing.isLostProperty = false;
982 });
984 }
985 });
987 });
990 {
991 TempTalkTopic("blooming1", null);
993 {
996 {
997 if (EClass._zone.influence < 10)
998 {
999 TempTalkTopic("blooming3", StepDefault);
1000 }
1001 else
1002 {
1003 EClass._zone.ModInfluence(-10);
1004 LayerDrama.Instance.SetOnKill(delegate
1005 {
1006 c.Talk("goodBoy");
1007 c4.Say("dingExp", c);
1008 c4.Talk("insulted");
1009 c4.SetFeat(1273, 1, msg: true);
1010 c4.PlayEffect("aura_heaven");
1011 c4.feat += 10;
1012 EClass.pc.PlaySound("pray");
1013 });
1014 TempTalkTopic(
"blooming2",
StepEnd);
1015 }
1016 });
1017 }
1019 });
1022 {
1023 if (c.
id ==
"miral")
1024 {
1025 SE.Play("click_chat");
1026 if (EClass.pc.GetCurrency("medal") > 0)
1027 {
1028 TempTalkTopic("miral_medal", null);
1029 }
1030 else
1031 {
1032 TempTalkTopic("miral_medal2", StepDefault);
1033 }
1034 }
1035 });
1037 {
1039 {
1040 SE.Play("click_chat");
1041 TempTalkTopic("shop_blackmarket_noaccess", StepEnd);
1042 }
1044 {
1045 SE.Play("click_chat");
1046 TempTalkTopic("shop_criminal", StepEnd);
1047 }
1048 else
1049 {
1050 sequence.Exit();
1051 manager.layer.Close();
1052 c.trait.OnBarter();
1053 if ((bool)WidgetFeed.Instance)
1054 {
1055 WidgetFeed.Instance.Talk(c, "barter");
1056 }
1058 }
1062 {
1063 List<ResearchPlan> plans = new List<ResearchPlan>();
1065 {
1067 {
1069 }
1070 }
1072 {
1073 list.moldItem = Resources.Load<
ItemGeneral>(
"UI/Element/Item/ItemGeneralBarter").transform;
1075 {
1077 {
1078 b.button1.mainText.text = a.
Name;
1082 uIItem.image1.sprite = c3.resource.Sprite;
1084 {
1086 });
1087 b.
button1.onClick.AddListener(delegate
1088 {
1089 if (c3.resource.value < c3.cost)
1090 {
1091 SE.Beep();
1092 }
1093 else
1094 {
1095 c3.resource.Mod(-c3.cost);
1096 plans.Remove(a);
1098 SE.Pay();
1099 list.
List(refreshHighlight:
true);
1100 }
1101 });
1102 b.RebuildLayout(recursive: true);
1103 },
1104 onList = delegate
1105 {
1107 {
1109 }
1110 }
1111 };
1112 }).SetSize()
1114 {
1115 branchMoney = true
1116 });
1118 Step(
"_upgradeHearth");
1120 {
1123 GameLang.refDrama2 = (EClass.Branch.lv + 1).ToString() ?? "";
1125 TempTalkTopic("upgrade_heath1", null);
1127 {
1129 {
1130 TempTalkTopic("nomoney", StepDefault);
1131 }
1132 else
1133 {
1134 EClass.pc.ModCurrency(-cost7);
1135 SE.Pay();
1136 LayerDrama.Instance.SetOnKill(delegate
1137 {
1138 EClass.Branch.Upgrade();
1139 });
1140 TempTalkTopic(
"upgrade_heath2",
StepEnd);
1141 }
1142 });
1144 });
1147 {
1148 int cost6 = EClass.player.fame / 5;
1149 GameLang.refDrama1 = cost6.ToString() ?? "";
1150 if (cost6 == 0)
1151 {
1153 }
1154 else
1155 {
1156 TempTalkTopic("sellFame1", null);
1158 {
1160 SE.Pay();
1163 });
1165 }
1166 });
1167 Step(
"_investZone");
1169 {
1173 TempTalkTopic("invest1", null);
1175 {
1176 Invest(quick: false);
1177 });
1179 Choice(
"quickInvest", delegate
1180 {
1181 Invest(quick: true);
1182 });
1183 void Invest(bool quick)
1184 {
1186 {
1188 }
1189 else
1190 {
1192 SE.Pay();
1193 EClass._zone.investment += cost5;
1197 if (quick)
1198 {
1200 }
1201 else
1202 {
1204 }
1205 }
1206 }
1207 });
1208 Step(
"_investShop");
1210 {
1214 TempTalkTopic("invest_shop1", null);
1216 {
1217 Invest(quick: false);
1218 });
1220 Choice(
"quickInvest", delegate
1221 {
1222 Invest(quick: true);
1223 });
1224 void Invest(bool quick)
1225 {
1227 {
1229 }
1230 else
1231 {
1233 SE.Pay();
1238 if (quick)
1239 {
1241 }
1242 else
1243 {
1245 }
1246 }
1247 }
1248 });
1249 Step(
"_changeTitle");
1251 {
1252 EClass.player.title = WordGen.Get("title");
1258 {
1261 GameLang.refDrama1 = "";
1262 GameLang.refDrama2 = costLand.ToString() ?? "";
1263 if (!num7)
1264 {
1266 }
1267 else
1268 {
1271 {
1273 {
1274 TempTalkTopic("nomoney", StepDefault);
1275 }
1276 else
1277 {
1278 SE.Pay();
1279 EClass.pc.ModCurrency(-costLand, "money2");
1280 TempTalkTopic("expand2", StepDefault);
1281 EClass._map.bounds.Expand(1);
1282 SE.Play("good");
1283 EClass._map.RefreshAllTiles();
1284 WidgetMinimap.UpdateMap();
1285 ScreenEffect.Play("Firework");
1286 }
1287 });
1289 }
1290 });
1293 {
1297 });
1301 {
1308 {
1310 TempTalkTopic(
"blessing",
StepEnd);
1312 {
1314 {
1315 if (c.trait is TraitMiko_Mifu)
1316 {
1317 member.AddCondition<ConHolyVeil>()?.SetPerfume();
1318 }
1320 {
1321 member.AddCondition<ConEuphoric>()?.SetPerfume();
1322 }
1323 else
1324 {
1325 member.AddCondition<ConNightVision>()?.SetPerfume();
1326 }
1327 member.
Say(
"blessing", member);
1330 }
1331 c.isRestocking = true;
1332 });
1334 });
1337 {
1339 {
1340 list.moldItem = Resources.Load<
ButtonElement>(
"UI/Element/Button/ButtonElementTrain").transform;
1342 {
1344 {
1346 if (num6 == 0)
1347 {
1348 SE.Beep();
1349 }
1351 {
1353 {
1355 }
1356 else
1357 {
1359 }
1362 }
1363 },
1365 {
1367 b.imagePotential.enabled = flag5;
1371 b.mainText.text = b.mainText.text + " " + (flag5 ? "" : ("notLearned".lang() + " "));
1372 b.subText2.text = ((cost3 == 0) ? "-" : (cost3.ToString() ?? "")).TagColor(() => plat >= cost3 && cost3 != 0);
1373 b.RebuildLayout();
1374 },
1375 onInstantiate = delegate
1376 {
1377 },
1378 onList = delegate
1379 {
1381 {
1382 if (a.tag.Contains("unused"))
1383 {
1384 return false;
1385 }
1386 if (a.tag.Contains("guild"))
1387 {
1389 {
1390 return true;
1391 }
1393 {
1394 return true;
1395 }
1397 {
1398 return true;
1399 }
1401 {
1402 return true;
1403 }
1404 return false;
1405 }
1406 if (isInGuild)
1407 {
1408 return false;
1409 }
1410 return a.category ==
"skill" && a.categorySub == c.
trait.
IDTrainer;
1411 }).ToList())
1412 {
1414 }
1415 }
1416 };
1417 }).SetSize()
1421 {
1422 plat = true
1423 });
1425 Step(
"_changeDomain");
1427 {
1432 {
1436 {
1437 money = true
1438 });
1442 {
1443 LayerPeople.slaveToBuy = null;
1447 {
1448 money = true
1449 });
1451 }, () => !layer, "_buySlaveConfirm");
1452 Step(
"_buySlaveConfirm");
1454 {
1456 if (tc == null)
1457 {
1458 RumorChill();
1459 }
1460 else
1461 {
1463 GameLang.refDrama1 = cost2.ToString() ?? "";
1464 GameLang.refDrama2 = tc.
Name;
1465 TempTalkTopic("slave_buy", null);
1467 {
1469 {
1470 TempTalkTopic("nomoney", StepDefault);
1471 }
1472 else
1473 {
1474 GameLang.refDrama1 = tc.Name;
1475 EClass._zone.AddCard(tc, EClass.pc.pos.GetNearestPoint());
1476 tc.MakeAlly();
1477 c.GetObj<SlaverData>(5).list.Remove(tc);
1478 TempTalkTopic("slave_buy2", StepEnd);
1479 }
1480 }).DisableSound();
1482 }
1483 });
1487 {
1492 {
1498 Step(
"_identifyAll");
1500 {
1501 int costIdentify = 0;
1502 int numIdentify = 0;
1503 int numSuperior = 0;
1505 {
1507 {
1508 numIdentify++;
1509 costIdentify += CalcMoney.Identify(EClass.pc, superior: false);
1510 }
1511 });
1512 GameLang.refDrama1 = costIdentify.ToString() ?? "";
1513 GameLang.refDrama2 = numIdentify.ToString() ?? "";
1514 if (numIdentify == 0)
1515 {
1517 }
1518 else
1519 {
1522 {
1524 {
1525 TempTalkTopic("nomoney", StepDefault);
1526 }
1527 else
1528 {
1529 SE.Pay();
1530 EClass.pc.ModCurrency(-costIdentify);
1531 foreach (Thing item11 in EClass.pc.things.List((Thing t) => !t.IsIdentified, onlyAccessible: true))
1532 {
1533 item11.Thing.Identify(show: false);
1534 if (!item11.IsInstalled)
1535 {
1536 numSuperior++;
1537 }
1538 }
1540 }
1541 });
1543 }
1544 });
1545 Step(
"_identifySP");
1547 {
1555 {
1558 {
1560 {
1563 targetZ = c.pos.z
1564 });
1567 {
1568 target = c
1569 });
1572 {
1573 EClass.pc.MoveZone(z, ZoneTransition.EnterState.Center);
1574 });
1575 TempTalkTopic(
"bout2",
StepEnd);
1576 });
1581 {
1583 Choice(
"yes_rob", delegate
1584 {
1586 c.
Talk(
"callGuards");
1588 {
1589 if (chara == c || chara.master == c)
1590 {
1591 chara.SetHostility(Hostility.Enemy);
1592 chara.DoHostileAction(EClass.pc.party.members.RandomItem());
1593 }
1594 }
1596 {
1597 EClass._zone.SetBGM(102);
1598 }
1601 });
1606 {
1609 {
1610 TempTalkTopic("news2", null);
1611 }
1612 else
1613 {
1614 zone.isKnown = true;
1616 GameLang.refDrama1 = zone.
Name;
1617 TempTalkTopic("news1", null);
1618 }
1620 });
1622 {
1627 {
1630 TempTalkTopic("healer1", null);
1632 {
1634 {
1635 TempTalkTopic("nomoney", StepDefault);
1636 }
1637 else
1638 {
1639 SE.Pay();
1640 foreach (Chara member2 in EClass.pc.party.members)
1641 {
1642 ActEffect.Proc(EffectId.HealComplete, member2);
1643 }
1645 TempTalkTopic(
"healer2",
StepEnd);
1646 }
1647 });
1649 });
1652 {
1655 TempTalkTopic("food1", null);
1657 {
1659 {
1660 TempTalkTopic("alreadyFull", StepDefault);
1661 }
1662 else
1663 {
1664 if (EClass.pc.GetCurrency() >= cost)
1665 {
1666 SE.Pay();
1667 EClass.pc.ModCurrency(-cost);
1668 TempTalkTopic("food2", StepDefault);
1669 {
1670 foreach (Chara member3 in EClass.pc.party.members)
1671 {
1672 if (member3.hunger.GetPhase() > 0)
1673 {
1674 FoodEffect.Proc(member3, ThingGen.Create("dish_lunch"), consume: false);
1675 member3.hunger.value = 0;
1676 }
1677 }
1678 return;
1679 }
1680 }
1682 }
1683 });
1685 });
1686 int[] bankTier = new int[5] { 100, 1000, 10000, 100000, 1000000 };
1689 {
1693 {
1694 WidgetFeed.Instance.Talk(c, "barter");
1695 }
1696 SE.Play("shop_open");
1702 {
1706 {
1707 WidgetFeed.Instance.Talk(c, "barter");
1708 }
1709 SE.Play("shop_open");
1712 {
1713 c.c_copyContainer = ThingGen.Create("container_deposit");
1714 }
1720 int[] taxTier = new int[6] { 0, 1000, 2000, 5000, 10000, 20000 };
1723 {
1725 TempTalkTopic("extraTax", null);
1726 int[] array2 = taxTier;
1727 foreach (int num5 in array2)
1728 {
1729 int _i2 = num5;
1731 {
1732 EClass.player.extraTax = _i2;
1733 GameLang.refDrama1 = Lang._currency(_i2, "money");
1734 TempTalkTopic("extraTax2", StepDefault);
1735 });
1736 }
1738 });
1741 {
1743 GameLang.refDrama1 = bankMoney.ToString() ?? "";
1744 TempTalkTopic("banker2", null);
1745 int[] array = bankTier;
1746 foreach (int num4 in array)
1747 {
1748 int _i = num4;
1750 {
1752 {
1753 SE.Pay();
1754 EClass.pc.ModCurrency(_i);
1755 EClass.player.bankMoney -= _i;
1756 TempTalkTopic("banker4", StepDefault);
1757 });
1758 }
1759 }
1761 });
1762 Step(
"_disableMove");
1764 {
1765 c.noMove = true;
1768 });
1770 Step(
"_enableMove");
1772 {
1773 c.noMove = false;
1774 c.orgPos = null;
1776 });
1780 {
1782 });
1786 void BackChill()
1787 {
1789 }
1790 string GetTalk(string id)
1791 {
1793 }
1794 void RumorChill()
1795 {
1796 rumor = GetTalk("chill");
1797 }
1798 void Talk(string idTalk, string idJump)
1799 {
1800 _Talk(
"tg", GetTalk(idTalk), idJump);
1801 }
1802 void TempCancel()
1803 {
1805 }
1806 void TempTalk(string idTalk, string idJump)
1807 {
1808 _TempTalk(
"tg", GetTalk(idTalk), idJump);
1809 }
1810 void TempTalkTopic(string idTopc, string idJump)
1811 {
1813 }
1814 bool taken()
1815 {
1816 if (c.
quest !=
null)
1817 {
1819 }
1820 return false;
1821 }
1822 }
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
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 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)