2using System.Collections.Generic;
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);
46 _Talk(
"tg", () => rumor);
53 sequence.firstTalk.funcText = () => rumor;
55 Hobby hobby = ((list2.Count > 0) ? list2[0] :
null);
60 GameLang.refDrama1 = c.
GetFavCat().GetName().ToLower();
62 rumor =
GetText(c,
"general",
"talk_fav");
67 GameLang.refDrama1 = hobby.
Name.ToLower();
68 rumor =
GetText(c,
"general",
"talk_hobby");
76 choice.forceHighlight =
true;
77 }).SetCondition(() => c.interest > 0);
95 if (!
item.CanDeliverToClient(c))
100 foreach (
Thing item2
in questDeliver.ListDestThing())
113 if (c.IsPCParty && !c.isSummon)
117 Choice2(
"daMakeHome",
"_makeHome");
119 if (c.host ==
null && c.homeZone !=
null)
121 Choice2(
"daLeaveParty".lang(c.homeZone.Name),
"_leaveParty");
126 Choice2(
"daQuest".lang(c.quest?.GetTitle() ??
""),
"_quest").
SetCondition(() => c.quest !=
null);
133 Choice2(
"daLostProperty".lang(_t.Name),
"_lostProperty").SetOnClick(delegate
142 if (c.trait.CanGuide)
182 if (c.trait.ShopType != 0)
184 if (!c.GetBool(
"disable_barter_choice"))
193 if (c.trait.SlaverType != 0)
197 if (c.trait.CopyShop != 0)
199 Choice2((
"daCopy" + c.trait.CopyShop).lang(c.trait.NumCopyItem.ToString() ??
""),
"_copyItem").
DisableSound();
212 Choice2(flag2 ?
"daBird" :
"daTail",
"_tail");
216 if (condition ==
null)
236 Choice2(flag2 ?
"daBird" :
"daTail",
"_tail");
241 if (c.IsHomeMember())
249 Choice2(
"daBuyLand",
"_buyLand");
250 Choice2(
"daChangeTitle",
"_changeTitle");
254 Choice2(
"enableMove",
"_enableMove");
256 if (!c.IsPCParty && c.memberType !=
FactionMemberType.Livestock && c.trait.CanJoinParty)
258 Choice2(
"daJoinParty",
"_joinParty");
260 if (!c.IsDisabled && (c.HasElement(1250) || (
EClass.
pc.
IsMofuable && c.ability.Has(6627))))
264 Choice2(
"daFactionOther",
"_factionOther");
268 Choice2(
"daGreatDebt",
"_greatDebt");
275 Step(
"_factionOther");
295 if (questDebt !=
null && questDebt.
gaveBill)
297 Choice(
"daGreatDebt2",
"_greatDebt2");
304 Choice((c.GetInt(106) == 0) ?
"daShutup" :
"daShutup2",
"_shutup");
305 if (c.CanInsult() || c.GetInt(108) == 1)
307 Choice((c.GetInt(108) == 0) ?
"daInsult" :
"daInsult2",
"_insult");
313 Choice(
"disableMove",
"_disableMove");
315 Choice((c.GetInt(123) == 0) ?
"daSleepBeside" :
"daSleepBeside2",
"_sleepBeside");
316 if (c.HasElement(1225))
318 Choice((c.GetInt(126) == 0) ?
"daDisableLoyal" :
"daDisableLoyal2",
"_disableLoyal");
320 if (c.IsSlimeEvolvable || c.ability.Has(6603) || c.HasElement(1216))
322 Choice((c.GetInt(119) == 0) ?
"daDisableFuck" :
"daDisableFuck2",
"_disableFuck");
324 if (c.GetInt(113) == 0)
326 Choice(
"daEquipSharedOff",
"_toggleSharedEquip");
330 Choice(
"daEquipSharedOn",
"_toggleSharedEquip");
334 Choice(
"daMakeMaid",
"_daMakeMaid");
336 if (c.trait.CanBeBanished && !c.IsPCParty)
338 Choice(
"daBanish",
"_depart");
341 Step(
"_toggleSharedEquip");
344 c.SetInt(113, (c.GetInt(113) == 0) ? 1 : 0);
346 _Talk(
"tg",
GetTopic(c, (c.GetInt(113) == 0) ?
"shutup" :
"shutup2"));
351 EClass.Branch.uidMaid = c.uid;
358 if (!c.trait.CanJoinPartyResident)
360 GameLang.refDrama1 = c.GetBestAttribute().ToString() ??
"";
361 TempTalkTopic(
"invite3", StepDefault);
365 EClass.pc.party.AddMemeber(c, showMsg: true);
375 EClass.pc.Say(
"tame_send", c, c.homeZone.Name);
376 c.MoveZone(c.homeZone);
382 Step(
"_makeLivestock");
387 Talk(
"becomeLivestock",
StepEnd);
388 Step(
"_makeResident");
393 Talk(
"becomeResident",
StepEnd);
396 Choice(
"depart1",
"_depart1");
397 Choice(
"depart2",
"_depart2");
403 c.homeBranch.BanishMember(c);
410 Talk(
"gift_good",
null);
422 TempTalkTopic(
"goto",
"_goto2");
430 destCard.Teleport(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: true, ignoreCenter: true) ?? EClass.pc.pos, silent: true, force: true);
438 Step(
"_lostProperty");
465 return (!taken()) ? c.quest.GetDetail() : c.quest.GetTalkProgress().IsEmpty(
GetTopic(c,
"questInProgress"));
467 string text2 =
"daAccept".lang();
468 if (c.quest !=
null && c.quest.deadline != 0)
470 text2 +=
"hintDeadline".lang(c.quest.TextDeadline).ToLower();
472 Choice(text2, (c.quest !=
null && c.quest.UseInstanceZone) ?
"_questAccept_instance" :
"_questAccept").
SetOnClick(delegate
501 Step(
"_questAccept");
503 Step(
"_questAccept_instance");
507 Zone z3 = c.quest.CreateInstanceZone(c);
518 TempTalkTopic(
"loytel_bill_give_wait",
StepDefault);
522 TempTalkTopic(
"loytel_bill_give_given",
StepDefault);
534 TempTalkTopic(
"loytel_bill_give_lost",
StepEnd);
540 c.SetInt(106, (c.GetInt(106) == 0) ? 1 : 0);
542 _Talk(
"tg",
GetTopic(c, (c.GetInt(106) == 0) ?
"shutup" :
"shutup2"));
544 Step(
"_sleepBeside");
547 if (c.affinity.CanSleepBeside() || c.GetInt(123) == 1)
549 c.SetInt(123, (c.GetInt(123) == 0) ? 1 : 0);
553 TempTalkTopic(
"refuse", StepEnd);
556 _Talk(
"tg",
GetTopic(c, (c.GetInt(123) == 0) ?
"ok" :
"shutup"));
561 if (!c.affinity.CanMarry())
563 TempTalkTopic(
"refuse", StepEnd);
575 destThing.rarity = Rarity.Mythical;
595 TempTalkTopic(
"wedding_deed", StepDefault);
599 TempTalkTopic(
"wedding_zone", StepDefault);
603 TempTalkTopic(
"wedding_confirm", null);
604 Choice(
"yes", delegate
606 TempTalkTopic(
"wedding_accept", null);
611 if (c.c_love != null)
613 c.c_love.dateWedding = EClass.world.date.GetRaw();
623 c.BanishAllMinions();
626 EClass.pc.party.AddMemeber(c);
630 if (item6 != EClass.pc && item6 != c)
632 EClass.pc.party.RemoveMember(item6);
637 ActRide.Unride(EClass.pc, c == EClass.pc.parasite, talk: false);
641 Zone z2 = quest.CreateInstanceZone(c);
644 state = ZoneTransition.EnterState.Exact,
651 Step(
"_disableLoyal");
654 c.SetInt(126, (c.GetInt(126) == 0) ? 1 : 0);
656 _Talk(
"tg", GetTopic(c, (c.GetInt(126) == 0) ?
"shutup" :
"shutup2"));
658 Step(
"_disableFuck");
661 c.SetInt(119, (c.GetInt(119) == 0) ? 1 : 0);
663 _Talk(
"tg", GetTopic(c, (c.GetInt(119) == 0) ?
"shutup" :
"shutup2"));
666 _Talk(
"tg", GetTalk(
"pervert4"));
669 if (c.HasElement(1250))
671 c.UseAbility(
"ActBloodsuck", EClass.pc);
683 c.SetInt(108, (c.GetInt(108) == 0) ? 1 : 0);
685 _Talk(
"tg", GetTopic(c, (c.GetInt(108) == 0) ?
"insult" :
"insult2"));
688 if (c.GetInt(108) == 1)
699 _Talk(
"tg", GetTopic(c,
"ok"));
702 Talk(
"rumor", StepDefault);
703 Choice(
"daAccept", StepDefault).SetOnClick(delegate
706 Choice(
"daDecline", StepDefault).SetOnClick(delegate
712 if (!c.trait.CanInvite)
714 string[] recruitItems = c.source.recruitItems;
715 if (!recruitItems.IsEmpty())
717 string[] array3 = recruitItems[0].Split(
'/');
718 string reqId = array3[0];
719 int reqNum = array3[1].ToInt();
720 CardBlueprint.Set(CardBlueprint.Original);
721 GameLang.refDrama1 = ThingGen.Create(reqId).SetNum(reqNum).Name;
722 TempTalkTopic(
"inviteReq1", null);
723 foreach (Thing t2 in EClass.pc.things.List((Thing t) => t.id == reqId && (t.Num >= reqNum || EClass.debug.enable), onlyAccessible: true))
726 Choice(
"daDeliver".lang(
"", _t6.GetName(NameStyle.Full, _t6.Num)), delegate
729 TempTalk(
"hired", StepEnd);
730 EClass.Sound.Play(
"good");
731 if (c.id ==
"mamani")
733 Chara chara = CharaGen.Create(
"mamani2");
734 EClass._zone.AddCard(chara, EClass.pc.pos.GetNearestPoint());
742 }).SetOnTooltip(delegate(UITooltip a)
744 _t6.WriteNote(a.note);
747 Choice(
"no2", StepDefault, cancel: true).SetOnClick(RumorChill);
751 TempTalkTopic(
"invite2", StepDefault);
756 GameLang.refDrama1 = c.GetBestAttribute().ToString() ??
"";
757 TempTalkTopic(
"invite3", StepDefault);
761 TempTalkTopic(
"invite", null);
762 Choice(
"yes", delegate
764 TempTalk(
"hired", StepEnd);
765 EClass.Sound.Play(
"good");
768 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
774 TempTalkTopic(
"guide",
null);
775 foreach (
Card guide
in GetListGuide())
777 Choice(
"daGotoGuide".lang(guide.
Name,
""),
"_goto").SetOnClick(delegate
782 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
789 TempTalkTopic(c.IsMarried ?
"tail4" : (bird +
"1"),
null);
790 Choice(
"yes2", delegate
792 TempTalkTopic(bird +
"2", StepEnd);
799 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
806 Steam.GetAchievement(ID_Achievement.MAMA);
808 if (!(id2 ==
"farris"))
812 Steam.GetAchievement(ID_Achievement.MAMA3);
817 Steam.GetAchievement(ID_Achievement.MAMA2);
819 TempTalkTopic(
"mama_yes", StepEnd);
823 variation = AI_Fuck.Variation.MotherMilk
828 TempTalkTopic(
"mama_no", StepDefault);
837 TempTalkTopic(
"baby_yes", StepEnd);
838 EClass.pc.SetAI(new AI_Fuck
841 variation = AI_Fuck.Variation.MotherMilk,
847 TempTalkTopic(
"baby_no", StepDefault);
856 TempTalkTopic(bird +
"3",
null);
857 Choice(
"yes2", delegate
861 TempTalkTopic(
"nomoney", StepDefault);
866 EClass.pc.ModCurrency(-costWhore);
867 TempTalkTopic(bird +
"2", StepEnd);
868 EClass.pc.SetAI(new AI_Fuck
874 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
881 TempTalkTopic(
"bird3",
null);
882 Choice(
"yes2", delegate
886 TempTalkTopic(
"lockTooHard", StepDefault);
890 TempTalkTopic(
"nomoney", StepDefault);
895 EClass.pc.ModCurrency(-cost8);
896 manager.layer.SetOnKill(delegate
898 c.PlaySound(
"lock_open");
899 c.Say(
"lockpick_success", c, destThing);
900 c.ModExp(280, 200 + destThing.c_lockLv * 20);
901 destThing.c_lockLv = 0;
902 if (destThing.isLostProperty)
904 EClass.player.ModKarma(-8);
906 destThing.isLostProperty = false;
908 TempTalkTopic(destThing.
isLostProperty ?
"lockpick_purse" :
"bird2", StepEnd);
911 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
916 TempTalkTopic(
"blooming1",
null);
920 Choice(
"daBloom".lang(c4.
Name), delegate
922 if (EClass._zone.influence < 10)
924 TempTalkTopic(
"blooming3", StepDefault);
928 EClass._zone.ModInfluence(-10);
929 LayerDrama.Instance.SetOnKill(delegate
932 c4.Say(
"dingExp", c);
934 c4.SetFeat(1273, 1, msg: true);
935 c4.PlayEffect(
"aura_heaven");
937 EClass.pc.PlaySound(
"pray");
939 TempTalkTopic(
"blooming2", StepEnd);
943 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
950 SE.Play(
"click_chat");
951 if (EClass.pc.GetCurrency(
"medal") > 0)
953 TempTalkTopic(
"miral_medal", null);
957 TempTalkTopic(
"miral_medal2", StepDefault);
965 SE.Play(
"click_chat");
966 TempTalkTopic(
"shop_blackmarket_noaccess", StepEnd);
970 SE.Play(
"click_chat");
971 TempTalkTopic(
"shop_criminal", StepEnd);
976 manager.layer.Close();
978 if ((bool)WidgetFeed.Instance)
980 WidgetFeed.Instance.Talk(c,
"barter");
984 }, () => !layer, StepDefault);
988 List<ResearchPlan> plans =
new List<ResearchPlan>();
998 list.moldItem = Resources.Load<
ItemGeneral>(
"UI/Element/Item/ItemGeneralBarter").transform;
1003 b.button1.mainText.text = a.
Name;
1007 uIItem.image1.sprite = c3.resource.Sprite;
1012 b.
button1.onClick.AddListener(delegate
1014 if (c3.resource.value < c3.cost)
1020 c3.resource.Mod(-c3.cost);
1024 list.
List(refreshHighlight:
true);
1027 b.RebuildLayout(recursive:
true);
1042 }, () => !layer, StepDefault);
1043 Step(
"_upgradeHearth");
1048 GameLang.refDrama2 = (EClass.Branch.lv + 1).ToString() ??
"";
1050 TempTalkTopic(
"upgrade_heath1",
null);
1051 Choice(
"yes", delegate
1055 TempTalkTopic(
"nomoney", StepDefault);
1059 EClass.pc.ModCurrency(-cost7);
1061 LayerDrama.Instance.SetOnKill(delegate
1063 EClass.Branch.Upgrade();
1065 TempTalkTopic(
"upgrade_heath2", StepEnd);
1068 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1073 int cost6 = EClass.player.fame / 5;
1074 GameLang.refDrama1 = cost6.ToString() ??
"";
1077 TempTalkTopic(
"goto2", StepDefault);
1081 TempTalkTopic(
"sellFame1",
null);
1082 Choice(
"yes", delegate
1087 TempTalkTopic(
"sellFame2", StepDefault);
1089 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1092 Step(
"_investZone");
1098 TempTalkTopic(
"invest1",
null);
1099 Choice(
"yes", delegate
1101 Invest(quick:
false);
1103 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1104 Choice(
"quickInvest", delegate
1106 Invest(quick:
true);
1108 void Invest(
bool quick)
1112 TempTalkTopic(
"nomoney", StepDefault);
1118 EClass._zone.investment += cost5;
1124 TempGoto(
"_investZone");
1128 TempTalkTopic(
"invest2", StepDefault);
1133 Step(
"_investShop");
1139 TempTalkTopic(
"invest_shop1",
null);
1140 Choice(
"yes", delegate
1142 Invest(quick:
false);
1144 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1145 Choice(
"quickInvest", delegate
1147 Invest(quick:
true);
1149 void Invest(
bool quick)
1153 TempTalkTopic(
"nomoney", StepDefault);
1165 TempGoto(
"_investShop");
1169 TempTalkTopic(
"invest_shop2", StepDefault);
1174 Step(
"_changeTitle");
1177 EClass.player.title = WordGen.Get(
"title");
1179 TempTalk(
"changeTitle", StepDefault);
1180 },
null, StepDefault);
1186 GameLang.refDrama1 =
"";
1187 GameLang.refDrama2 = costLand.ToString() ??
"";
1190 TempTalkTopic(
"expand3", StepDefault);
1194 TempTalkTopic(
"expand1", StepDefault);
1195 Choice(
"yes", delegate
1199 TempTalkTopic(
"nomoney", StepDefault);
1204 EClass.pc.ModCurrency(-costLand,
"money2");
1205 TempTalkTopic(
"expand2", StepDefault);
1206 EClass._map.bounds.Expand(1);
1208 EClass._map.RefreshAllTiles();
1209 WidgetMinimap.UpdateMap();
1210 ScreenEffect.Play(
"Firework");
1213 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1230 }, () => !layer, StepDefault);
1235 TempTalkTopic(
"blessing", StepEnd);
1240 if (c.trait is TraitMiko_Mifu)
1242 member.AddCondition<ConHolyVeil>()?.SetPerfume();
1246 member.AddCondition<ConEuphoric>()?.SetPerfume();
1250 member.AddCondition<ConNightVision>()?.SetPerfume();
1252 member.
Say(
"blessing", member);
1256 c.isRestocking =
true;
1265 list.moldItem = Resources.Load<
ButtonElement>(
"UI/Element/Button/ButtonElementTrain").transform;
1292 b.imagePotential.enabled = flag5;
1296 b.mainText.text = b.mainText.text +
" " + (flag5 ?
"" : (
"notLearned".lang() +
" "));
1297 b.subText2.text = ((cost3 == 0) ?
"-" : (cost3.ToString() ??
"")).TagColor(() => plat >= cost3 && cost3 != 0);
1300 onInstantiate = delegate
1307 if (a.tag.Contains(
"unused"))
1311 if (a.tag.Contains(
"guild"))
1335 return a.category ==
"skill" && a.categorySub == c.trait.IDTrainer;
1349 }, () => !layer, StepDefault);
1350 Step(
"_changeDomain");
1354 }, () => !layer, StepDefault);
1359 layer.SetOnKill(SE.PopDrama);
1364 }, () => !layer, StepDefault);
1368 LayerPeople.slaveToBuy =
null;
1370 layer.SetOnKill(SE.PopDrama);
1376 }, () => !layer,
"_buySlaveConfirm");
1377 Step(
"_buySlaveConfirm");
1388 GameLang.refDrama1 = cost2.ToString() ??
"";
1389 GameLang.refDrama2 = tc.
Name;
1390 TempTalkTopic(
"slave_buy",
null);
1391 Choice(
"yes", delegate
1395 TempTalkTopic(
"nomoney", StepDefault);
1399 GameLang.refDrama1 = tc.Name;
1400 EClass._zone.AddCard(tc, EClass.pc.pos.GetNearestPoint());
1402 c.GetObj<SlaverData>(5).list.Remove(tc);
1403 TempTalkTopic(
"slave_buy2", StepEnd);
1406 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1414 }, () => !layer, StepDefault);
1422 }, () => !layer, StepDefault);
1423 Step(
"_identifyAll");
1426 int costIdentify = 0;
1427 int numIdentify = 0;
1428 int numSuperior = 0;
1434 costIdentify += CalcMoney.Identify(EClass.pc, superior: false);
1437 GameLang.refDrama1 = costIdentify.ToString() ??
"";
1438 GameLang.refDrama2 = numIdentify.ToString() ??
"";
1439 if (numIdentify == 0)
1441 TempTalkTopic(
"appraise3", StepDefault);
1445 TempTalkTopic(
"appraise1", StepDefault);
1446 Choice(
"yes", delegate
1450 TempTalkTopic(
"nomoney", StepDefault);
1455 EClass.pc.ModCurrency(-costIdentify);
1456 foreach (Thing item10 in EClass.pc.things.List((Thing t) => !t.IsIdentified, onlyAccessible: true))
1458 item10.Thing.Identify(show: false);
1459 if (!item10.IsInstalled)
1464 TempTalkTopic(
"appraise2", StepDefault);
1467 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1470 Step(
"_identifySP");
1477 }, () => !layer, StepDefault);
1481 TempTalkTopic(
"bout1", StepDefault);
1482 Choice(
"yes", delegate
1498 EClass.pc.MoveZone(z, ZoneTransition.EnterState.Center);
1500 TempTalkTopic(
"bout2", StepEnd);
1502 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1503 },
null, StepDefault);
1507 TempTalkTopic(
"rob1", StepDefault);
1508 Choice(
"yes_rob", delegate
1511 c.Talk(
"callGuards");
1514 if (chara2 == c || chara2.master == c)
1516 chara2.SetHostility(Hostility.Enemy);
1517 chara2.DoHostileAction(EClass.pc.party.members.RandomItem());
1522 EClass._zone.SetBGM(102);
1525 c.SetBool(129, enable:
true);
1527 Choice(
"no_rob", StepDefault, cancel:
true).SetOnClick(RumorChill);
1528 },
null, StepDefault);
1535 TempTalkTopic(
"news2",
null);
1539 zone.isKnown =
true;
1541 GameLang.refDrama1 = zone.
Name;
1542 TempTalkTopic(
"news1",
null);
1549 },
null, StepDefault);
1555 TempTalkTopic(
"healer1",
null);
1556 Choice(
"yes", delegate
1560 TempTalkTopic(
"nomoney", StepDefault);
1565 foreach (Chara member2 in EClass.pc.party.members)
1567 ActEffect.Proc(EffectId.HealComplete, member2);
1570 TempTalkTopic(
"healer2", StepEnd);
1573 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1580 TempTalkTopic(
"food1",
null);
1581 Choice(
"yes", delegate
1585 TempTalkTopic(
"alreadyFull", StepDefault);
1589 if (EClass.pc.GetCurrency() >= cost)
1592 EClass.pc.ModCurrency(-cost);
1593 TempTalkTopic(
"food2", StepDefault);
1595 foreach (Chara member3 in EClass.pc.party.members)
1597 if (member3.hunger.GetPhase() > 0)
1599 FoodEffect.Proc(member3, ThingGen.Create(
"dish_lunch"), consume: false);
1600 member3.hunger.value = 0;
1606 TempTalkTopic(
"nomoney", StepDefault);
1609 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1611 int[] bankTier =
new int[5] { 100, 1000, 10000, 100000, 1000000 };
1619 WidgetFeed.Instance.Talk(c,
"barter");
1621 SE.Play(
"shop_open");
1623 }, () => !layer, StepDefault);
1632 WidgetFeed.Instance.Talk(c,
"barter");
1634 SE.Play(
"shop_open");
1636 if (c.c_copyContainer ==
null)
1638 c.c_copyContainer = ThingGen.Create(
"container_deposit");
1640 int numCopyItem = c.trait.NumCopyItem;
1641 c.c_copyContainer.things.SetSize(numCopyItem, 1);
1643 }, () => !layer, StepDefault);
1645 int[] taxTier =
new int[6] { 0, 1000, 2000, 5000, 10000, 20000 };
1650 TempTalkTopic(
"extraTax",
null);
1651 int[] array2 = taxTier;
1652 foreach (
int num5
in array2)
1657 EClass.player.extraTax = _i2;
1658 GameLang.refDrama1 = Lang._currency(_i2,
"money");
1659 TempTalkTopic(
"extraTax2", StepDefault);
1662 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
1668 GameLang.refDrama1 = bankMoney.ToString() ??
"";
1669 TempTalkTopic(
"banker2",
null);
1670 int[] array = bankTier;
1671 foreach (
int num4
in array)
1679 EClass.pc.ModCurrency(_i);
1680 EClass.player.bankMoney -= _i;
1681 TempTalkTopic(
"banker4", StepDefault);
1685 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
1687 Step(
"_disableMove");
1691 c.orgPos =
new Point(c.pos);
1695 Step(
"_enableMove");
1713 Choice2(
"daBaby",
"_baby");
1716 Choice2(
"daMama",
"_mama");
1721 if (condition2 ==
null)
1723 if (c.HasElement(1232))
1727 num3 = c.HasElement(1291);
1731 num3 = condition2.
IsBaby;
1739 if (c.trait.CanRevive)
1741 Choice2(
"daRevive",
"_revive").DisableSound();
1745 Choice2(
"daTrain",
"_train").DisableSound();
1747 if (c.trait.CanWhore)
1749 Choice2(flag2 ?
"daBirdBuy" :
"daTailBuy",
"_whore");
1751 if (c.trait.CanHeal)
1753 Choice2(
"daHeal",
"_heal");
1755 if (c.trait.CanServeFood)
1757 Choice2(
"daFood",
"_food");
1761 Choice2(
"daSellFame",
"_sellFame");
1767 Choice2(
"daInvest",
"_investZone");
1769 if (c.trait.CanInvest)
1771 Choice2(
"daInvest",
"_investShop");
1774 if (c.trait.CanIdentify)
1776 Choice2(
"daIdentify",
"_identify").DisableSound();
1777 Choice2(
"daIdentifyAll",
"_identifyAll");
1778 Choice2(
"daIdentifySP",
"_identifySP").DisableSound();
1780 if (c.trait.CanPicklock)
1782 if (c.Evalue(280) < 20)
1784 c.elements.SetBase(280, 20);
1789 Choice2(
"daPicklock".lang(_t2.
Name),
"_picklock").SetOnClick(delegate
1797 Choice2(
"daDeposit",
"_deposit");
1801 Choice2(
"daExtraTax",
"_extraTax");
1805 Choice2(
"daBlessing",
"_blessing");
1810 Method(RumorChill,
null, StepDefault);
1812 string GetTalk(
string id)
1814 return c.GetTalkText(
id);
1818 rumor = GetTalk(
"chill");
1820 void Talk(
string idTalk,
string idJump)
1822 _Talk(
"tg", GetTalk(idTalk), idJump);
1826 EnableCancel(
"back");
1828 void TempTalk(
string idTalk,
string idJump)
1830 _TempTalk(
"tg", GetTalk(idTalk), idJump);
1832 void TempTalkTopic(
string idTopc,
string idJump)
1834 _TempTalk(
"tg", GetTopic(c, idTopc), idJump);
1838 if (c.quest !=
null)
1850 return GetText(c,
"rumor",
"bored");
1852 if (HasTopic(
"unique", c.
id))
1854 return GetText(c,
"unique", c.
id);
1874 return GetText(c,
"rumor",
"hint");
1876 return GetText(c,
"rumor",
"default");
1891 if (!(idSheet !=
"unique"))
1893 return dialog.RandomItem();
1895 return c.
ApplyTone(dialog.RandomItem());
1900 return GetText(c,
"general", idTopic);
1906 string[] array = setup.
textData.Split(
new string[1] { Environment.NewLine + Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
1907 foreach (
string text
in array)
1909 if (!(text == Environment.NewLine))
1911 _Talk(
"", text.TrimStart(Environment.NewLine.ToCharArray()).TrimEnd(Environment.NewLine.ToCharArray()));
1920 e.sequence = sequence;
1932 public void Method(Action action, Func<bool> endFunc =
null,
string idJump =
null)
1938 if (!idJump.IsEmpty())
1959 public void _Talk(
string idActor,
string text,
string idJump =
null)
1969 public void _Talk(
string idActor, Func<string> funcText,
string idJump =
null)
1979 public void _TempTalk(
string idActor,
string text,
string idJump =
null)
1994 sequence.
Play(idJump);
2003 EnableCancel(idJump);
2011 dramaChoice.onJump = onJump;
2026 manager.lastTalk.canCancel =
true;
2027 manager.lastTalk.idCancelJump = idCancelJump;
2032 List<Card> list =
new List<Card>();
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)
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)
int GetInt(string id, int? defaultInt=null)
bool HasElement(int ele, bool includeNagative=false)
void Say(string lang, string ref1=null, string ref2=null)
string ApplyTone(string text, bool stripPun=false)
SourceCategory.Row GetFavCat()
override bool IsAliveInCurrentZone
BaseCondition GetCondition(string idCon)
bool HasCondition(string alias)
override bool IsPCFaction
void SetAIImmediate(AIAct g)
List< Hobby > ListHobbies(bool useMemberType=true)
SourceThing.Row GetFavFood()
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)
DramaChoice Choice(string lang, Action onJump)
void _Talk(string idActor, string text, string idJump=null)
DramaChoice Choice2(string lang, string idJump)
List< DramaEvent > events
List< Card > GetListGuide()
DramaEvent Event(DramaEvent e)
string GetTopic(Chara c, string idTopic=null)
void _Talk(string idActor, Func< string > funcText, string idJump=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)
void AddChoice(DramaChoice choice)
List< DramaChoice > _choices
Dictionary< string, string > customTalkTopics
List< DramaEvent > tempEvents
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 GetElement(string alias)
static Element Create(int id, int v=0)
ResearchManager researches
string GetHearthHint(int a)
HomeResourceManager resources
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[] GetDialog(string idSheet, string idTopic)
static ExcelData.Sheet GetDialogSheet(string idSheet)
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()
static Quest Create(string _id, string _idPerson=null, Chara c=null, bool assignQuest=true)
virtual string GetTitle()
virtual string NameDeliver
virtual bool Deliver(Chara c, Thing t=null)
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 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 NeedBoutToJoin
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)