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 = ((list.Count > 0) ? list[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(thing.Name),
"_lostProperty").SetOnClick(delegate
142 if (c.trait.CanGuide)
182 if (c.trait.ShopType !=
ShopType.None)
184 if (!c.GetBool(
"disable_barter_choice"))
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.trait.CanRevive)
249 if (c.trait.CanWhore)
251 Choice2(flag2 ?
"daBirdBuy" :
"daTailBuy",
"_whore");
257 if (c.trait.CanServeFood)
263 Choice2(
"daSellFame",
"_sellFame");
269 Choice2(
"daInvest",
"_investZone");
271 if (c.trait.CanInvest)
273 Choice2(
"daInvest",
"_investShop");
276 if (c.trait.CanIdentify)
279 Choice2(
"daIdentifyAll",
"_identifyAll");
282 if (c.trait.CanPicklock)
284 if (c.Evalue(280) < 20)
286 c.elements.SetBase(280, 20);
299 Choice2(
"daDeposit",
"_deposit");
303 Choice2(
"daExtraTax",
"_extraTax");
307 Choice2(
"daBlessing",
"_blessing");
313 if (condition2 ==
null)
315 if (c.HasElement(1232))
319 num3 = c.HasElement(1291);
337 if (c.IsHomeMember())
345 Choice2(
"daBuyLand",
"_buyLand");
346 Choice2(
"daChangeTitle",
"_changeTitle");
350 Choice2(
"enableMove",
"_enableMove");
352 if (!c.IsPCParty && c.memberType !=
FactionMemberType.Livestock && c.trait.CanJoinParty)
354 Choice2(
"daJoinParty",
"_joinParty");
356 if (!c.IsDisabled && (c.HasElement(1250) || (
EClass.
pc.
IsMofuable && c.ability.Has(6627))))
360 Choice2(
"daFactionOther",
"_factionOther");
364 Choice2(
"daGreatDebt",
"_greatDebt");
371 Step(
"_factionOther");
391 if (questDebt !=
null && questDebt.
gaveBill)
393 Choice(
"daGreatDebt2",
"_greatDebt2");
400 Choice((c.GetInt(106) == 0) ?
"daShutup" :
"daShutup2",
"_shutup");
401 if (c.CanInsult() || c.GetInt(108) == 1)
403 Choice((c.GetInt(108) == 0) ?
"daInsult" :
"daInsult2",
"_insult");
409 Choice(
"disableMove",
"_disableMove");
411 Choice((c.GetInt(123) == 0) ?
"daSleepBeside" :
"daSleepBeside2",
"_sleepBeside");
412 if (c.HasElement(1225))
414 Choice((c.GetInt(126) == 0) ?
"daDisableLoyal" :
"daDisableLoyal2",
"_disableLoyal");
416 if (c.IsSlimeEvolvable || c.ability.Has(6603) || c.HasElement(1216))
418 Choice((c.GetInt(119) == 0) ?
"daDisableFuck" :
"daDisableFuck2",
"_disableFuck");
420 if (c.GetInt(113) == 0)
422 Choice(
"daEquipSharedOff",
"_toggleSharedEquip");
426 Choice(
"daEquipSharedOn",
"_toggleSharedEquip");
430 Choice(
"daMakeMaid",
"_daMakeMaid");
432 if (c.trait.CanBeBanished)
434 Choice(
"daBanish",
"_depart");
437 Step(
"_toggleSharedEquip");
440 c.SetInt(113, (c.GetInt(113) == 0) ? 1 : 0);
442 _Talk(
"tg",
GetTopic(c, (c.GetInt(113) == 0) ?
"shutup" :
"shutup2"));
447 EClass.Branch.uidMaid = c.uid;
454 if (!c.trait.CanJoinPartyResident)
456 GameLang.refDrama1 = c.GetBestAttribute().ToString() ??
"";
457 TempTalkTopic(
"invite3", StepDefault);
461 EClass.pc.party.AddMemeber(c, showMsg: true);
471 EClass.pc.Say(
"tame_send", c, c.homeZone.Name);
472 c.MoveZone(c.homeZone);
478 Step(
"_makeLivestock");
483 Talk(
"becomeLivestock",
StepEnd);
484 Step(
"_makeResident");
489 Talk(
"becomeResident",
StepEnd);
492 Choice(
"depart1",
"_depart1");
493 if (c.c_uniqueData ==
null && !c.trait.IsUnique && !c.IsAdventurer)
495 Choice(
"depart3",
"_depart3");
497 Choice(
"depart2",
"_depart2");
503 c.homeBranch.BanishMember(c);
512 c.homeBranch.BanishMember(c, skipMsg:
false, sendback:
false);
519 Talk(
"gift_good",
null);
531 TempTalkTopic(
"goto",
"_goto2");
539 destCard.Teleport(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: true, ignoreCenter: true) ?? EClass.pc.pos, silent: true, force: true);
547 Step(
"_lostProperty");
574 return (!taken()) ? c.quest.GetDetail() : c.quest.GetTalkProgress().IsEmpty(
GetTopic(c,
"questInProgress"));
576 string text2 =
"daAccept".lang();
577 if (c.quest !=
null && c.quest.deadline != 0)
579 text2 +=
"hintDeadline".lang(c.quest.TextDeadline).ToLower();
581 Choice(text2, (c.quest !=
null && c.quest.UseInstanceZone) ?
"_questAccept_instance" :
"_questAccept").
SetOnClick(delegate
610 Step(
"_questAccept");
612 Step(
"_questAccept_instance");
616 Zone z = c.quest.CreateInstanceZone(c);
627 TempTalkTopic(
"loytel_bill_give_wait",
StepDefault);
631 TempTalkTopic(
"loytel_bill_give_given",
StepDefault);
643 TempTalkTopic(
"loytel_bill_give_lost",
StepEnd);
649 c.SetInt(106, (c.GetInt(106) == 0) ? 1 : 0);
651 _Talk(
"tg",
GetTopic(c, (c.GetInt(106) == 0) ?
"shutup" :
"shutup2"));
653 Step(
"_sleepBeside");
656 if (c.affinity.CanSleepBeside() || c.GetInt(123) == 1)
658 c.SetInt(123, (c.GetInt(123) == 0) ? 1 : 0);
662 TempTalkTopic(
"refuse", StepEnd);
665 _Talk(
"tg",
GetTopic(c, (c.GetInt(123) == 0) ?
"ok" :
"shutup"));
670 if (!c.affinity.CanMarry())
672 TempTalkTopic(
"refuse", StepEnd);
684 destThing.rarity = Rarity.Mythical;
704 TempTalkTopic(
"wedding_deed", StepDefault);
708 TempTalkTopic(
"wedding_zone", StepDefault);
712 TempTalkTopic(
"wedding_confirm", null);
713 Choice(
"yes", delegate
715 TempTalkTopic(
"wedding_accept", null);
720 if (c.c_love != null)
722 c.c_love.dateWedding = EClass.world.date.GetRaw();
732 c.BanishAllMinions();
735 EClass.pc.party.AddMemeber(c);
739 if (item7 != EClass.pc && item7 != c)
741 EClass.pc.party.RemoveMember(item7);
746 ActRide.Unride(EClass.pc, c == EClass.pc.parasite, talk: false);
750 Zone z = quest.CreateInstanceZone(c);
753 state = ZoneTransition.EnterState.Exact,
760 Step(
"_disableLoyal");
763 c.SetInt(126, (c.GetInt(126) == 0) ? 1 : 0);
765 _Talk(
"tg", GetTopic(c, (c.GetInt(126) == 0) ?
"shutup" :
"shutup2"));
767 Step(
"_disableFuck");
770 c.SetInt(119, (c.GetInt(119) == 0) ? 1 : 0);
772 _Talk(
"tg", GetTopic(c, (c.GetInt(119) == 0) ?
"shutup" :
"shutup2"));
775 _Talk(
"tg", GetTalk(
"pervert4"));
778 if (c.HasElement(1250))
780 c.UseAbility(
"ActBloodsuck", EClass.pc);
792 c.SetInt(108, (c.GetInt(108) == 0) ? 1 : 0);
794 _Talk(
"tg", GetTopic(c, (c.GetInt(108) == 0) ?
"insult" :
"insult2"));
797 if (c.GetInt(108) == 1)
808 _Talk(
"tg", GetTopic(c,
"ok"));
811 Talk(
"rumor", StepDefault);
812 Choice(
"daAccept", StepDefault).SetOnClick(delegate
815 Choice(
"daDecline", StepDefault).SetOnClick(delegate
821 if (!c.trait.CanInvite)
823 string[] recruitItems = c.source.recruitItems;
824 if (!recruitItems.IsEmpty())
826 string[] array = recruitItems[0].Split(
'/');
827 string reqId = array[0];
828 int reqNum = array[1].ToInt();
829 CardBlueprint.Set(CardBlueprint.Original);
830 GameLang.refDrama1 = ThingGen.Create(reqId).SetNum(reqNum).Name;
831 TempTalkTopic(
"inviteReq1", null);
832 foreach (Thing t in EClass.pc.things.List((Thing thing) => thing.id == reqId && (thing.Num >= reqNum || EClass.debug.enable), onlyAccessible: true))
835 Choice(
"daDeliver".lang(
"", _t5.GetName(NameStyle.Full, _t5.Num)), delegate
838 TempTalk(
"hired", StepEnd);
839 EClass.Sound.Play(
"good");
840 if (c.id ==
"mamani")
842 Chara chara = CharaGen.Create(
"mamani2");
843 EClass._zone.AddCard(chara, EClass.pc.pos.GetNearestPoint());
851 }).SetOnTooltip(delegate(UITooltip a)
853 _t5.WriteNote(a.note);
856 Choice(
"no2", StepDefault, cancel: true).SetOnClick(RumorChill);
860 TempTalkTopic(
"invite2", StepDefault);
865 GameLang.refDrama1 = c.GetBestAttribute().ToString() ??
"";
866 TempTalkTopic(
"invite3", StepDefault);
870 TempTalkTopic(
"invite", null);
871 Choice(
"yes", delegate
873 TempTalk(
"hired", StepEnd);
874 EClass.Sound.Play(
"good");
877 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
883 TempTalkTopic(
"guide",
null);
884 foreach (
Card guide
in GetListGuide())
886 Choice(
"daGotoGuide".lang(guide.
Name,
""),
"_goto").SetOnClick(delegate
891 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
898 TempTalkTopic(c.IsMarried ?
"tail4" : (bird +
"1"),
null);
899 Choice(
"yes2", delegate
901 TempTalkTopic(bird +
"2", StepEnd);
908 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
915 Steam.GetAchievement(ID_Achievement.MAMA);
917 if (!(id ==
"farris"))
921 Steam.GetAchievement(ID_Achievement.MAMA3);
926 Steam.GetAchievement(ID_Achievement.MAMA2);
928 TempTalkTopic(
"mama_yes", StepEnd);
932 variation = AI_Fuck.Variation.MotherMilk
937 TempTalkTopic(
"mama_no", StepDefault);
946 TempTalkTopic(
"baby_yes", StepEnd);
947 EClass.pc.SetAI(new AI_Fuck
950 variation = AI_Fuck.Variation.MotherMilk,
956 TempTalkTopic(
"baby_no", StepDefault);
965 TempTalkTopic(bird +
"3",
null);
966 Choice(
"yes2", delegate
970 TempTalkTopic(
"nomoney", StepDefault);
975 EClass.pc.ModCurrency(-costWhore);
976 TempTalkTopic(bird +
"2", StepEnd);
977 EClass.pc.SetAI(new AI_Fuck
983 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
990 TempTalkTopic(
"bird3",
null);
991 Choice(
"yes2", delegate
995 TempTalkTopic(
"lockTooHard", StepDefault);
999 TempTalkTopic(
"nomoney", StepDefault);
1004 EClass.pc.ModCurrency(-cost);
1005 manager.layer.SetOnKill(delegate
1007 c.PlaySound(
"lock_open");
1008 c.Say(
"lockpick_success", c, destThing);
1009 c.ModExp(280, 200 + destThing.c_lockLv * 20);
1010 destThing.c_lockLv = 0;
1011 if (destThing.isLostProperty)
1013 EClass.player.ModKarma(-8);
1015 destThing.isLostProperty = false;
1017 TempTalkTopic(destThing.
isLostProperty ?
"lockpick_purse" :
"bird2", StepEnd);
1020 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
1025 TempTalkTopic(
"blooming1",
null);
1029 Choice(
"daBloom".lang(c2.
Name), delegate
1031 if (EClass._zone.influence < 10)
1033 TempTalkTopic(
"blooming3", StepDefault);
1037 EClass._zone.ModInfluence(-10);
1038 LayerDrama.Instance.SetOnKill(delegate
1041 c2.Say(
"dingExp", c);
1042 c2.Talk(
"insulted");
1043 c2.SetFeat(1273, 1, msg: true);
1044 c2.PlayEffect(
"aura_heaven");
1046 EClass.pc.PlaySound(
"pray");
1048 TempTalkTopic(
"blooming2", StepEnd);
1052 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
1057 if (c.id ==
"miral")
1059 SE.Play(
"click_chat");
1060 if (EClass.pc.GetCurrency(
"medal") > 0)
1062 TempTalkTopic(
"miral_medal", null);
1066 TempTalkTopic(
"miral_medal2", StepDefault);
1074 SE.Play(
"click_chat");
1075 TempTalkTopic(
"shop_blackmarket_noaccess", StepEnd);
1079 SE.Play(
"click_chat");
1080 TempTalkTopic(
"shop_criminal", StepEnd);
1085 manager.layer.Close();
1087 if ((bool)WidgetFeed.Instance)
1089 WidgetFeed.Instance.Talk(c,
"barter");
1093 }, () => !layer, StepDefault);
1097 List<ResearchPlan> plans =
new List<ResearchPlan>();
1107 list.moldItem = Resources.Load<
ItemGeneral>(
"UI/Element/Item/ItemGeneralBarter").transform;
1112 b.button1.mainText.text = a.
Name;
1116 uIItem.image1.sprite = c2.resource.Sprite;
1121 b.
button1.onClick.AddListener(delegate
1123 if (c2.resource.value < c2.cost)
1129 c2.resource.Mod(-c2.cost);
1133 list.
List(refreshHighlight:
true);
1136 b.RebuildLayout(recursive:
true);
1151 }, () => !layer, StepDefault);
1152 Step(
"_upgradeHearth");
1157 GameLang.refDrama2 = (EClass.Branch.lv + 1).ToString() ??
"";
1159 TempTalkTopic(
"upgrade_heath1",
null);
1160 Choice(
"yes", delegate
1164 TempTalkTopic(
"nomoney", StepDefault);
1168 EClass.pc.ModCurrency(-cost);
1170 LayerDrama.Instance.SetOnKill(delegate
1172 EClass.Branch.Upgrade();
1174 TempTalkTopic(
"upgrade_heath2", StepEnd);
1177 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1182 int cost = EClass.player.fame / 5;
1183 GameLang.refDrama1 = cost.ToString() ??
"";
1186 TempTalkTopic(
"goto2", StepDefault);
1190 TempTalkTopic(
"sellFame1",
null);
1191 Choice(
"yes", delegate
1196 TempTalkTopic(
"sellFame2", StepDefault);
1198 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1201 Step(
"_investZone");
1207 TempTalkTopic(
"invest1",
null);
1208 Choice(
"yes", delegate
1210 Invest(quick:
false);
1212 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1213 Choice(
"quickInvest", delegate
1215 Invest(quick:
true);
1217 void Invest(
bool quick)
1221 TempTalkTopic(
"nomoney", StepDefault);
1227 EClass._zone.investment += cost;
1233 TempGoto(
"_investZone");
1237 TempTalkTopic(
"invest2", StepDefault);
1242 Step(
"_investShop");
1248 TempTalkTopic(
"invest_shop1",
null);
1249 Choice(
"yes", delegate
1251 Invest(quick:
false);
1253 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1254 Choice(
"quickInvest", delegate
1256 Invest(quick:
true);
1258 void Invest(
bool quick)
1262 TempTalkTopic(
"nomoney", StepDefault);
1274 TempGoto(
"_investShop");
1278 TempTalkTopic(
"invest_shop2", StepDefault);
1283 Step(
"_changeTitle");
1286 EClass.player.title = WordGen.Get(
"title");
1288 TempTalk(
"changeTitle", StepDefault);
1289 },
null, StepDefault);
1295 GameLang.refDrama1 =
"";
1296 GameLang.refDrama2 = costLand.ToString() ??
"";
1299 TempTalkTopic(
"expand3", StepDefault);
1303 TempTalkTopic(
"expand1", StepDefault);
1304 Choice(
"yes", delegate
1308 TempTalkTopic(
"nomoney", StepDefault);
1313 EClass.pc.ModCurrency(-costLand,
"money2");
1314 TempTalkTopic(
"expand2", StepDefault);
1315 EClass._map.bounds.Expand(1);
1317 EClass._map.RefreshAllTiles();
1318 WidgetMinimap.UpdateMap();
1319 ScreenEffect.Play(
"Firework");
1322 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1339 }, () => !layer, StepDefault);
1344 TempTalkTopic(
"blessing", StepEnd);
1349 if (c.trait is TraitMiko_Mifu)
1351 member.AddCondition<ConHolyVeil>()?.SetPerfume();
1355 member.AddCondition<ConEuphoric>()?.SetPerfume();
1359 member.AddCondition<ConNightVision>()?.SetPerfume();
1361 member.
Say(
"blessing", member);
1365 c.isRestocking =
true;
1374 list.moldItem = Resources.Load<
ButtonElement>(
"UI/Element/Button/ButtonElementTrain").transform;
1401 b.imagePotential.enabled = flag5;
1405 b.mainText.text = b.mainText.text +
" " + (flag5 ?
"" : (
"notLearned".lang() +
" "));
1406 b.subText2.text = ((cost == 0) ?
"-" : (cost.ToString() ??
"")).TagColor(() => plat >= cost && cost != 0);
1409 onInstantiate = delegate
1416 if (a.tag.Contains(
"unused"))
1420 if (a.tag.Contains(
"guild"))
1444 return a.category ==
"skill" && a.categorySub == c.trait.IDTrainer;
1458 }, () => !layer, StepDefault);
1459 Step(
"_changeDomain");
1463 }, () => !layer, StepDefault);
1468 layer.SetOnKill(SE.PopDrama);
1473 }, () => !layer, StepDefault);
1477 LayerPeople.slaveToBuy =
null;
1479 layer.SetOnKill(SE.PopDrama);
1485 }, () => !layer,
"_buySlaveConfirm");
1486 Step(
"_buySlaveConfirm");
1497 GameLang.refDrama1 = cost.ToString() ??
"";
1498 GameLang.refDrama2 = tc.
Name;
1499 TempTalkTopic(
"slave_buy",
null);
1500 Choice(
"yes", delegate
1504 TempTalkTopic(
"nomoney", StepDefault);
1508 GameLang.refDrama1 = tc.Name;
1509 EClass._zone.AddCard(tc, EClass.pc.pos.GetNearestPoint());
1511 c.GetObj<SlaverData>(5).list.Remove(tc);
1512 TempTalkTopic(
"slave_buy2", StepEnd);
1515 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1523 }, () => !layer, StepDefault);
1531 }, () => !layer, StepDefault);
1532 Step(
"_identifyAll");
1535 int costIdentify = 0;
1536 int numIdentify = 0;
1537 int numSuperior = 0;
1543 costIdentify += CalcMoney.Identify(EClass.pc, superior: false);
1546 GameLang.refDrama1 = costIdentify.ToString() ??
"";
1547 GameLang.refDrama2 = numIdentify.ToString() ??
"";
1548 if (numIdentify == 0)
1550 TempTalkTopic(
"appraise3", StepDefault);
1554 TempTalkTopic(
"appraise1", StepDefault);
1555 Choice(
"yes", delegate
1559 TempTalkTopic(
"nomoney", StepDefault);
1564 EClass.pc.ModCurrency(-costIdentify);
1565 foreach (Thing item11 in EClass.pc.things.List((Thing t) => !t.IsIdentified, onlyAccessible: true))
1567 item11.Thing.Identify(show: false);
1568 if (!item11.IsInstalled)
1573 TempTalkTopic(
"appraise2", StepDefault);
1576 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1579 Step(
"_identifySP");
1586 }, () => !layer, StepDefault);
1590 TempTalkTopic(
"bout1", StepDefault);
1591 Choice(
"yes", delegate
1607 EClass.pc.MoveZone(z, ZoneTransition.EnterState.Center);
1609 TempTalkTopic(
"bout2", StepEnd);
1611 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1612 },
null, StepDefault);
1616 TempTalkTopic(
"rob1", StepDefault);
1617 Choice(
"yes_rob", delegate
1620 c.Talk(
"callGuards");
1623 if (chara2 == c || chara2.master == c)
1625 chara2.SetHostility(Hostility.Enemy);
1626 chara2.DoHostileAction(EClass.pc.party.members.RandomItem());
1631 EClass._zone.SetBGM(102);
1634 c.SetBool(129, enable:
true);
1636 Choice(
"no_rob", StepDefault, cancel:
true).SetOnClick(RumorChill);
1637 },
null, StepDefault);
1644 TempTalkTopic(
"news2",
null);
1648 zone.isKnown =
true;
1650 GameLang.refDrama1 = zone.
Name;
1651 TempTalkTopic(
"news1",
null);
1658 },
null, StepDefault);
1664 TempTalkTopic(
"healer1",
null);
1665 Choice(
"yes", delegate
1669 TempTalkTopic(
"nomoney", StepDefault);
1674 foreach (Chara member2 in EClass.pc.party.members)
1676 ActEffect.Proc(EffectId.HealComplete, member2);
1679 TempTalkTopic(
"healer2", StepEnd);
1682 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1689 TempTalkTopic(
"food1",
null);
1690 Choice(
"yes", delegate
1694 TempTalkTopic(
"alreadyFull", StepDefault);
1698 if (EClass.pc.GetCurrency() >= cost)
1701 EClass.pc.ModCurrency(-cost);
1702 TempTalkTopic(
"food2", StepDefault);
1704 foreach (Chara member3 in EClass.pc.party.members)
1706 if (member3.hunger.GetPhase() > 0)
1708 FoodEffect.Proc(member3, ThingGen.Create(
"dish_lunch"), consume: false);
1709 member3.hunger.value = 0;
1715 TempTalkTopic(
"nomoney", StepDefault);
1718 Choice(
"no", StepDefault, cancel:
true).SetOnClick(RumorChill);
1720 int[] bankTier =
new int[5] { 100, 1000, 10000, 100000, 1000000 };
1728 WidgetFeed.Instance.Talk(c,
"barter");
1730 SE.Play(
"shop_open");
1732 }, () => !layer, StepDefault);
1741 WidgetFeed.Instance.Talk(c,
"barter");
1743 SE.Play(
"shop_open");
1745 if (c.c_copyContainer ==
null)
1747 c.c_copyContainer = ThingGen.Create(
"container_deposit");
1749 int numCopyItem = c.trait.NumCopyItem;
1750 c.c_copyContainer.things.SetSize(numCopyItem, 1);
1752 }, () => !layer, StepDefault);
1754 int[] taxTier =
new int[6] { 0, 1000, 2000, 5000, 10000, 20000 };
1759 TempTalkTopic(
"extraTax",
null);
1760 int[] array = taxTier;
1761 foreach (
int num4
in array)
1766 EClass.player.extraTax = _i;
1767 GameLang.refDrama1 = Lang._currency(_i,
"money");
1768 TempTalkTopic(
"extraTax2", StepDefault);
1771 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
1777 GameLang.refDrama1 = bankMoney.ToString() ??
"";
1778 TempTalkTopic(
"banker2",
null);
1779 int[] array = bankTier;
1780 foreach (
int num4
in array)
1788 EClass.pc.ModCurrency(_i);
1789 EClass.player.bankMoney -= _i;
1790 TempTalkTopic(
"banker4", StepDefault);
1794 Choice(
"no2", StepDefault, cancel:
true).SetOnClick(RumorChill);
1796 Step(
"_disableMove");
1800 c.orgPos =
new Point(c.pos);
1804 Step(
"_enableMove");
1822 Method(RumorChill,
null, StepDefault);
1824 string GetTalk(
string id)
1826 return c.GetTalkText(
id);
1830 rumor = GetTalk(
"chill");
1832 void Talk(
string idTalk,
string idJump)
1834 _Talk(
"tg", GetTalk(idTalk), idJump);
1838 EnableCancel(
"back");
1840 void TempTalk(
string idTalk,
string idJump)
1842 _TempTalk(
"tg", GetTalk(idTalk), idJump);
1844 void TempTalkTopic(
string idTopc,
string idJump)
1846 _TempTalk(
"tg", GetTopic(c, idTopc), idJump);
1850 if (c.quest !=
null)
1862 return GetText(c,
"rumor",
"bored");
1864 if (HasTopic(
"unique", c.
id))
1866 return GetText(c,
"unique", c.
id);
1886 return GetText(c,
"rumor",
"hint");
1888 return GetText(c,
"rumor",
"default");
1903 if (!(idSheet !=
"unique"))
1905 return dialog.RandomItem();
1907 return c.
ApplyTone(dialog.RandomItem());
1912 return GetText(c,
"general", idTopic);
1918 string[] array = setup.
textData.Split(
new string[1] { Environment.NewLine + Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
1919 foreach (
string text
in array)
1921 if (!(text == Environment.NewLine))
1923 _Talk(
"", text.TrimStart(Environment.NewLine.ToCharArray()).TrimEnd(Environment.NewLine.ToCharArray()));
1932 e.sequence = sequence;
1944 public void Method(Action action, Func<bool> endFunc =
null,
string idJump =
null)
1950 if (!idJump.IsEmpty())
1971 public void _Talk(
string idActor,
string text,
string idJump =
null)
1981 public void _Talk(
string idActor, Func<string> funcText,
string idJump =
null)
1991 public void _TempTalk(
string idActor,
string text,
string idJump =
null)
2006 sequence.
Play(idJump);
2015 EnableCancel(idJump);
2023 dramaChoice.onJump = onJump;
2038 manager.lastTalk.canCancel =
true;
2039 manager.lastTalk.idCancelJump = idCancelJump;
2044 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)