Elin Decompiled Documentation EA 23.182 Nightly
Loading...
Searching...
No Matches
CoreDebug.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using ReflexCLI.Attributes;
5using Steamworks;
6using UnityEngine;
7
8[ConsoleCommandClassCustomizer("")]
9public class CoreDebug : EScriptable
10{
11 [Serializable]
12 public class StartSetting
13 {
14 public string race;
15
16 public string job;
17
18 public int lv;
19 }
20
21 public enum DebugHotkey
22 {
23 None,
24 Block,
25 Item,
26 Decal,
27 Act,
28 Test,
29 Anime
30 }
31
32 public enum StartLoadout
33 {
34 New,
35 AllItem,
37 }
38
39 public enum StartParty
40 {
41 None,
42 Farris,
43 Full
44 }
45
46 public enum StartScene
47 {
48 Title,
49 Zone,
50 Home,
57 Tefra
58 }
59
60 [Serializable]
61 public class MatColorTest
62 {
63 public bool enable;
64
65 public Color color;
66
67 public int matColor;
68
70
71 public void Update()
72 {
73 foreach (SourceMaterial.Row row in EClass.sources.materials.rows)
74 {
75 if (row != MATERIAL.sourceWaterSea)
76 {
77 MatColors matColors = profile.matColors.TryGetValue(row.alias);
78 row.matColor = matColors.main;
79 row.altColor = matColors.alt;
80 }
81 }
82 }
83 }
84
85 public class DebugCommand
86 {
87 public Action action;
88
89 public int cat;
90
91 public string name;
92 }
93
94 [Header("Quick Start Setup")]
96
98
100
101 public int startHour;
102
104
105 public string startZone;
106
107 [Header("System(Release)")]
108 public bool showSceneSelector;
109
110 [Header("System(Release)")]
111 public bool skipModSync;
112
114
115 [Header("System")]
116 public bool ignorePool;
117
118 [Header("System")]
119 public bool resetPlayerConfig;
120
121 public bool dontUseThread;
122
123 public bool useNewConfig;
124
125 public bool ignoreAutoSave;
126
127 public bool alwaysResetWindow;
128
129 public bool validateData;
130
131 public bool dontCompressSave;
132
133 public bool skipMod;
134
135 public string command;
136
137 [Header("Input")]
138 public bool debugInput;
139
140 public bool keypadDebug;
141
143
144 [Header("Util")]
145 public int advanceMin;
146
147 public bool testLOS;
148
149 public bool testLOS2;
150
151 public bool debugProps;
152
153 public bool revealMap;
154
155 public bool debugHoard;
156
157 public bool revealInner;
158
159 public bool ignorePopup;
160
161 public bool skipEvent;
162
163 public bool skipNerun;
164
165 public bool showTone;
166
167 public bool showExtra;
168
169 public bool test;
170
171 [Header("Game")]
172 public bool godMode;
173
174 public bool randomResource;
175
176 public bool debugScatter;
177
178 public bool _godBuild;
179
180 public bool godCraft;
181
182 public bool godFood;
183
184 public bool ignoreBuildRule;
185
186 public bool ignoreWeight;
187
188 public bool autoIdentify;
189
190 public bool allAbility;
191
192 public bool allSkill;
193
194 public bool allHomeSkill;
195
196 public bool allArt;
197
198 public bool allBGM;
199
200 public bool ignoreEncounter;
201
202 public bool returnAnywhere;
203
204 public bool instaReturn;
205
206 public bool travelAnywhere;
207
209
210 public bool autoAdvanceQuest;
211
213
214 public bool testThingQuality;
215
216 public int numResource;
217
218 [Header("Game(Specific)")]
219 public bool unlimitedInterest;
220
221 public bool inviteAnytime;
222
223 public bool marryAnytime;
224
225 public bool showFav;
226
227 public bool alwaysFavFood;
228
229 public bool maxQuests;
230
231 [Header("Progress")]
232 public bool allRecipe;
233
234 public bool allMenu;
235
236 public bool allPolicy;
237
238 public bool allStory;
239
240 [Header("Log")]
241 public bool logAdv;
242
243 [Header("Log")]
244 public bool logCombat;
245
246 public bool logDice;
247
248 [Header("Once")]
249 public bool validatePref;
250
251 [Header("Test")]
252 public int param1;
253
254 [Header("Test")]
255 public int param2;
256
258
259 public bool boradcast;
260
261 public bool testFixedColor;
262
263 public Color32 fixedColor;
264
265 private readonly List<int[]> resolutions = new List<int[]>
266 {
267 new int[2] { 1920, 1080 },
268 new int[2] { 1366, 768 },
269 new int[2] { 1280, 720 }
270 };
271
273
274 [NonSerialized]
275 private int bidx;
276
277 private bool bilinear;
278
279 [NonSerialized]
280 private string[] blines;
281
282 public List<DebugCommand> commands = new List<DebugCommand>();
283
284 [NonSerialized]
285 public bool enable;
286
287 public Fov fov = new Fov();
288
289 private int indexResolution;
290
292
293 private Emo lastEmo;
294
295 private bool naked;
296
297 [NonSerialized]
298 private bool runtimeGodBuild;
299
300 private int ttt;
301
302 public bool godBuild
303 {
304 get
305 {
306 if (!_godBuild)
307 {
308 return runtimeGodBuild;
309 }
310 return true;
311 }
312 }
313
314 public static string EnableCheat => "Enable cheat by typing 'Cheat'";
315
316 private IEnumerable<string> ZoneIDs()
317 {
318 List<SourceZone.Row> rows = EClass.sources.zones.rows;
319 List<string> list = new List<string>();
320 foreach (SourceZone.Row item in rows)
321 {
322 list.Add(item.id);
323 }
324 return list;
325 }
326
327 public void Init()
328 {
330 EInput.disableKeyAxis = Application.isEditor;
331 }
332
333 public void QuickStart()
334 {
335 Game.Create("quick");
336 Tutorial.debugSkip = EClass.debug.skipNerun;
337 if (!startSetting.race.IsEmpty())
338 {
340 }
341 if (!startSetting.job.IsEmpty())
342 {
344 }
345 switch (startScene)
346 {
347 case StartScene.Zone:
348 case StartScene.Home:
349 EClass.game.world.date.hour = EClass.debug.startHour;
350 break;
351 case StartScene.Home_Cave:
352 EClass.game.idPrologue = 2;
353 break;
354 }
357 EClass.player.pref.lastIdTabAbility = 3;
359 switch (startParty)
360 {
361 case StartParty.Farris:
362 AddParty("farris");
363 break;
364 case StartParty.Full:
365 AddParty("farris");
366 AddParty("wescott");
367 break;
368 }
369 int lv = startSetting.lv;
370 if (allAbility)
371 {
372 foreach (SourceElement.Row row in EClass.sources.elements.rows)
373 {
374 if (row.category == "ability" && row.aliasRef != "mold" && !EClass.pc.HasElement(row.id) && (row.aliasRef.IsEmpty() || row.id <= 10000 || EClass.sources.elements.alias[row.aliasRef].tag.Contains(row.alias.Split('_')[0])))
375 {
376 EClass.pc.elements.ModBase(row.id, lv).vPotential = 30;
377 }
378 }
379 }
380 if (allSkill)
381 {
382 foreach (SourceElement.Row row2 in EClass.sources.elements.rows)
383 {
384 if (row2.isSkill && !row2.tag.Contains("unused"))
385 {
386 EClass.pc.elements.ModBase(row2.id, 1);
387 }
388 }
389 }
390 EClass.pc.elements.ModBase(60, lv / 2);
391 EClass.pc.elements.ModBase(61, lv / 2);
392 EClass.pc.elements.ModBase(79, lv / 5);
393 EClass.player.totalFeat = lv;
394 EClass.pc.SetLv(lv - 1);
395 EClass.player.fame = EClass.pc.LV * 100;
396 int idx = 0;
397 switch (startLoadout)
398 {
399 case StartLoadout.AllItem:
400 EClass.pc.ModCurrency(50, "plat");
401 EClass.pc.ModCurrency(50, "money2");
402 EClass.pc.EQ_CAT("weapon");
403 EClass.pc.EQ_CAT((EScriptable.rnd(2) == 0) ? "weapon" : "shield");
404 EClass.pc.EQ_CAT("torso");
405 EClass.pc.EQ_CAT("arm");
406 EClass.pc.EQ_CAT("ring");
407 EClass.pc.AddCard(ThingGen.Create("chest2"));
408 EClass.pc.AddCard(ThingGen.Create("torch_held"));
409 AddHotbar("axe");
410 AddHotbar("pickaxe");
411 AddHotbar("wateringCan");
412 AddHotbar("bow");
413 AddHotbar("deed");
414 AddAbility("SpellTeleport");
415 AddAbility("SpellCatsEye");
416 AddHotbar("map_big");
417 break;
418 case StartLoadout.FewItem:
419 {
420 Thing thing = ThingGen.Create("backpack");
421 thing.AddCard(ThingGen.Create("rp_food", -1, 10).SetNum(30));
422 thing.AddCard(ThingGen.Create("rp_block", -1, 10).SetNum(30));
423 for (int i = 0; i < 30; i++)
424 {
425 thing.AddCard(ThingGen.Create("rp_block", -1, 50));
426 }
427 EClass.pc.AddCard(thing);
428 thing = ThingGen.Create("pouch");
429 for (int j = 0; j < 30; j++)
430 {
432 Thing thing2 = ThingGen.CreateFromCategory("weapon", EClass.pc.LV);
433 thing2.elements.SetBase(653, 1);
434 if (!(thing2.trait is TraitAmmo))
435 {
436 thing.AddCard(thing2);
437 }
438 thing2 = ThingGen.CreateFromCategory("armor", EClass.pc.LV);
439 thing2.elements.SetBase(653, 1);
440 thing.AddCard(thing2);
441 }
442 EClass.pc.AddCard(thing);
443 thing = ThingGen.Create("pouch");
444 for (int k = 0; k < 30; k++)
445 {
446 thing.AddCard(ThingGen.Create("mathammer", MATERIAL.GetRandomMaterial(100).alias)).SetNum(10);
447 }
448 thing.AddCard(ThingGen.Create("mathammer", 103)).SetNum(10);
449 thing.AddCard(ThingGen.Create("mathammer", 102)).SetNum(10);
450 thing.AddCard(ThingGen.Create("mathammer", 33)).SetNum(10);
451 thing.AddCard(ThingGen.Create("mathammer", 18)).SetNum(10);
452 thing.AddCard(ThingGen.Create("mathammer", 10)).SetNum(99);
453 EClass.pc.AddCard(thing);
454 thing = ThingGen.Create("pouch");
455 for (int l = 0; l < 30; l++)
456 {
458 }
459 EClass.pc.AddCard(thing);
460 thing = ThingGen.Create("coolerbox");
461 for (int m = 0; m < 20; m++)
462 {
463 thing.AddCard(ThingGen.CreateFromCategory("foodstuff").SetNum(EScriptable.rnd(10) + 1));
464 }
465 EClass.pc.AddCard(thing);
466 List<SourceChara.Row> list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara").ToList();
467 thing = ThingGen.Create("pouch");
468 list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara_L").ToList();
469 for (int n = 0; n < 20; n++)
470 {
471 string id2 = list.RandomItem().id;
472 Thing thing3 = ThingGen.Create("figure");
473 thing3.MakeFigureFrom(id2);
474 thing.AddCard(thing3);
475 }
476 EClass.pc.AddCard(thing);
477 thing = ThingGen.Create("pouch");
478 list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara").ToList();
479 for (int num = 0; num < 20; num++)
480 {
481 string id3 = list.RandomItem().id;
482 Thing thing4 = ThingGen.Create("figure3");
483 thing4.MakeFigureFrom(id3);
484 thing.AddCard(thing4);
485 }
486 EClass.pc.AddCard(thing);
487 thing.Dye("oak");
488 thing = ThingGen.Create("pouch");
489 list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara_L").ToList();
490 for (int num2 = 0; num2 < 20; num2++)
491 {
492 string id4 = list.RandomItem().id;
493 Thing thing5 = ThingGen.Create("figure3");
494 thing5.MakeFigureFrom(id4);
495 thing.AddCard(thing5);
496 }
497 EClass.pc.AddCard(thing);
498 thing.Dye("pine");
499 thing = ThingGen.Create("pouch");
500 thing.AddCard(ThingGen.Create("flour").SetNum(10));
501 thing.AddCard(ThingGen.Create("wheat").SetNum(200));
502 thing.AddCard(ThingGen.Create("rice_plant").SetNum(200));
503 thing.AddCard(ThingGen.Create("noodle").SetNum(10));
504 thing.AddCard(ThingGen.Create("rice").SetNum(10));
505 thing.AddCard(ThingGen.Create("dough_cake").SetNum(10));
506 thing.AddCard(ThingGen.Create("dough_bread").SetNum(10));
507 thing.AddCard(ThingGen.Create("salt").SetNum(10));
508 thing.AddCard(ThingGen.Create("sugar").SetNum(10));
509 thing.AddCard(ThingGen.Create("honey").SetNum(10));
510 thing.AddCard(ThingGen.Create("yeast").SetNum(10));
511 thing.AddCard(ThingGen.Create("ketchup").SetNum(10));
512 thing.AddCard(ThingGen.Create("butter").SetNum(10));
513 thing.AddCard(ThingGen.Create("potion_empty").SetNum(10));
514 thing.AddCard(ThingGen.Create("bucket_empty").SetNum(10));
515 thing.AddCard(ThingGen.Create("battery"));
516 EClass.pc.AddCard(thing);
517 thing.Dye("saphire");
518 thing = ThingGen.Create("pouch");
519 thing.AddCard(ThingGen.Create("log").SetNum(99));
520 thing.AddCard(ThingGen.Create("log").SetNum(99).ChangeMaterial("pine"));
521 thing.AddCard(ThingGen.Create("ore").SetNum(99).ChangeMaterial("steel"));
522 thing.AddCard(ThingGen.Create("ore").SetNum(99).ChangeMaterial("copper"));
523 thing.AddCard(ThingGen.Create("ore_gem").SetNum(99).ChangeMaterial("gold"));
524 thing.AddCard(ThingGen.Create("gem").SetNum(99).ChangeMaterial("rubinus"));
525 thing.AddCard(ThingGen.Create("flower_white").SetNum(99));
526 thing.AddCard(ThingGen.Create("bait").SetNum(10));
527 EClass.pc.AddCard(thing);
528 thing.Dye("rubinus");
529 Thing thing6 = ThingGen.Create("quiver");
530 thing6.AddCard(ThingGen.Create("bullet").SetNum(250));
531 thing6.AddCard(ThingGen.Create("arrow").SetNum(250));
532 thing6.AddCard(ThingGen.Create("bolt").SetNum(250));
533 thing6.AddCard(ThingGen.Create("bullet_energy").SetNum(250));
535 thing = ThingGen.Create("backpack");
536 for (int num3 = 0; num3 < 10; num3++)
537 {
538 thing.AddThing("book", lv);
539 thing.AddThing("parchment");
540 thing.AddThing("book_ancient");
541 }
542 EClass.pc.AddCard(thing);
543 thing.Dye("rubinus");
544 thing = ThingGen.Create("backpack");
545 foreach (SourceObj.Row row3 in EClass.sources.objs.rows)
546 {
547 if (row3.tag.Contains("seed"))
548 {
549 Thing c = TraitSeed.MakeSeed(row3).SetNum(10);
550 thing.AddCard(c);
551 }
552 }
553 EClass.pc.AddCard(thing);
554 thing.Dye("silver");
555 thing = ThingGen.Create("pouch");
556 for (int num4 = 0; num4 < 30; num4++)
557 {
558 thing.AddThing((EScriptable.rnd(10) != 0) ? "potion" : "drink", lv).SetNum(99);
559 }
560 EClass.pc.AddCard(thing);
561 thing.Dye("steel");
562 thing = ThingGen.Create("pouch");
563 for (int num5 = 0; num5 < 30; num5++)
564 {
565 thing.AddThing(ThingGen.CreateFromCategory("rod", lv));
566 }
567 EClass.pc.AddCard(thing);
568 thing.Dye("steel");
569 thing = ThingGen.Create("pouch");
570 for (int num6 = 0; num6 < 30; num6++)
571 {
572 thing.AddThing("scroll", lv).SetNum(99);
573 }
574 EClass.pc.AddCard(thing);
575 thing.Dye("steel");
576 thing = ThingGen.Create("pouch");
577 for (int num7 = 0; num7 < 40; num7++)
578 {
579 thing.AddThing("372", 100);
580 }
581 EClass.pc.AddCard(thing);
582 thing.Dye("steel");
583 Thing thing7 = EClass.pc.things.Find("purse");
584 thing7.AddThing("casino_coin").SetNum(30000000);
585 thing7.AddThing("medal").SetNum(1000);
586 thing7.ModCurrency(500, "plat");
587 EClass.pc.AddThing("record");
588 EClass.pc.AddThing("deed").SetNum(5);
589 EClass.pc.AddThing("book_story");
590 EClass.pc.AddThing("book_story_home");
591 EClass.pc.AddThing("book_tutorial");
592 EClass.pc.AddThing("water").SetNum(20).SetBlessedState(BlessedState.Blessed);
594 EClass.pc.AddThing("potion_empty").SetNum(20);
595 EClass.pc.ModCurrency(10000000);
598 Thing thing8 = ThingGen.Create("scroll_random").SetNum(10);
599 thing8.refVal = 8220;
600 EClass.pc.AddCard(thing8);
601 EClass.pc.ModCurrency(50, "money2");
602 AddHotbar("hoe");
603 AddHotbar("shovel");
604 AddHotbar("axe");
605 AddHotbar("pickaxe");
606 AddHotbar("wateringCan");
607 AddHotbar("gun_assault");
608 AddHotbar("hammer");
609 AddHotbar("bow");
610 break;
611 }
612 }
613 EClass.pc.RestockEquip(onCreate: true);
614 EClass.pc.stamina.value = EClass.pc.stamina.max;
615 EClass.pc.mana.value = EClass.pc.mana.max;
616 EClass.pc.hp = EClass.pc.MaxHP;
617 if (EClass.debug.startScene == StartScene.Zone)
618 {
619 EClass._zone.ClaimZone(debug: true);
620 }
621 SoundManager.ignoreSounds = true;
622 EClass.ui.ToggleInventory();
623 SoundManager.ignoreSounds = true;
624 EClass.ui.ToggleAbility();
625 SoundManager.ignoreSounds = false;
626 EClass.ui.layerFloat.GetLayer<LayerAbility>().windows[0].SetRect(EClass.core.refs.rects.abilityDebug);
627 if (allRecipe)
628 {
630 }
631 foreach (Thing thing11 in EClass.pc.things)
632 {
633 thing11.isNew = false;
634 }
637 if (startScene == StartScene.Story_Test)
638 {
639 EClass._zone.ClaimZone(debug: true);
640 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("loytel"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
641 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("farris"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
642 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("kettle"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
643 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("quru"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
644 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("corgon"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
645 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("demitas"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
646 EClass.game.quests.Add("greatDebt");
647 EClass.game.quests.Add("farris_tulip");
648 EClass.game.quests.Add("kettle_join");
649 EClass.game.quests.Add("quru_morning");
650 EClass.game.quests.Add("vernis_gold");
651 EClass.game.quests.Add("quru_sing");
652 EClass.game.quests.Add("quru_past1");
653 EClass.game.quests.Add("quru_past2");
654 EClass.game.quests.Add("pre_debt");
655 EClass.game.quests.Add("exile_meet");
656 EClass.game.quests.Add("exile_quru");
657 EClass.game.quests.Add("exile_kettle");
658 EClass.game.quests.Add("exile_whisper");
659 EClass.game.quests.Add("exile_voice");
660 EClass.game.quests.Add("into_darkness");
661 EClass.game.quests.Add("demitas_spellwriter");
662 }
663 static Thing AddAbility(string id)
664 {
665 Thing thing9 = EClass.pc.AddThing(ThingGen.Create("catalyst"));
666 thing9.c_idAbility = id;
667 return thing9;
668 }
669 Thing AddHotbar(string id)
670 {
671 Thing thing10 = EClass.pc.AddThing(ThingGen.Create(id));
672 thing10.invX = idx;
673 thing10.invY = 1;
674 idx++;
675 return thing10;
676 }
677 void AddParty(string id)
678 {
679 Chara chara = CharaGen.Create(id);
680 chara.SetFaction(EClass.Home);
681 chara.SetHomeZone(homeZone);
682 if (chara.currentZone != EClass._zone)
683 {
684 EClass._zone.AddCard(chara, EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false));
685 }
686 EClass.pc.party.AddMemeber(chara);
687 }
688 }
689
690 public void OnLoad()
691 {
692 if (allRecipe)
693 {
695 }
696 }
697
698 public void AddAllRecipes()
699 {
701 {
702 if (!EClass.player.recipes.knownRecipes.ContainsKey(item.id))
703 {
705 }
706 }
707 }
708
709 public void SetStartStockpile(Thing container, int num = 100)
710 {
711 LittlePopper.skipPop = true;
712 foreach (SourceMaterial.Row row in EClass.sources.materials.rows)
713 {
714 if (!(row.alias == "void") && (!randomResource || EScriptable.rnd(4) == 0))
715 {
716 row.CreateByProduct(container, num);
717 }
718 }
719 foreach (SourceThing.Row row2 in EClass.sources.things.rows)
720 {
721 if ((row2.factory.IsEmpty() || !(row2.factory[0] == "x")) && !row2.isOrigin && row2.Category.tag.Contains("debug"))
722 {
723 Thing thing = ThingGen.Create(row2.id);
724 if (thing.trait.CanStack)
725 {
726 thing.ModNum(num);
727 }
728 container.AddThing(thing);
729 }
730 }
731 for (int i = 0; i < 10; i++)
732 {
733 container.AddThing(TraitSeed.MakeRandomSeed());
734 }
735 LittlePopper.skipPop = false;
736 }
737
739 {
740 foreach (Thing thing2 in EClass._map.things)
741 {
742 if (thing2.c_altName == "DebugContainer")
743 {
744 return thing2;
745 }
746 }
747 Thing thing = EClass._zone.AddThing("barrel", EClass.pc.pos).Thing;
748 thing.ChangeMaterial("obsidian");
749 thing.c_altName = "DebugContainer";
750 thing.isNPCProperty = false;
751 thing.SetPlaceState(PlaceState.installed);
752 return thing;
753 }
754
756 {
757 foreach (Thing thing in EClass._map.things)
758 {
759 if (thing.c_altName == "DebugContainer")
760 {
761 return thing;
762 }
763 }
764 return null;
765 }
766
768 {
771 enable = true;
772 if ((bool)WidgetHotbar.HotbarBuild)
773 {
775 }
777 Thing orCreateDebugContainer = GetOrCreateDebugContainer();
778 SetStartStockpile(orCreateDebugContainer, numResource);
779 }
780
782 {
783 }
784
785 public void UpdateAlways()
786 {
787 if (!EClass.debug.enable || (bool)EClass.ui.GetLayer<LayerConsole>())
788 {
789 return;
790 }
791 if (Input.GetKeyDown(KeyCode.B))
792 {
794 }
795 if (Input.GetKeyDown(KeyCode.O))
796 {
798 }
799 if (Input.GetKeyDown(KeyCode.P))
800 {
802 }
803 if (Input.GetKeyDown(KeyCode.F11))
804 {
805 if (Application.isEditor)
806 {
807 EClass.core.SetLang((Lang.langCode == "EN") ? "JP" : "EN");
808 }
809 else
810 {
812 }
813 NewsList.dict = null;
814 BookList.dict = null;
815 BookList.Init();
816 }
818 {
819 if (Input.GetKeyDown(KeyCode.U))
820 {
822 Msg.SayRaw(offset.ToString() ?? "");
823 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
824 }
825 if (Input.GetKeyDown(KeyCode.I))
826 {
828 Msg.SayRaw(offset.ToString() ?? "");
829 EClass.screen.tileMap.rendererInnerBlock.offset = new Vector3(0f, 0.54f, -0.5f);
830 }
831 }
832 }
833
834 public void ValidateData()
835 {
837 {
841 }
842 }
843
844 public void UpdateInput()
845 {
846 if (!debugInput || EInput.isInputFieldActive || (bool)EClass.ui.GetLayer<LayerConsole>())
847 {
848 return;
849 }
850 bool key = Input.GetKey(KeyCode.LeftShift);
851 bool key2 = Input.GetKey(KeyCode.LeftAlt);
852 bool key3 = Input.GetKey(KeyCode.LeftControl);
853 TraitStairs traitStairs = null;
854 if (Input.GetKeyDown(KeyCode.KeypadPlus))
855 {
856 traitStairs = EClass._map.FindThing<TraitStairsDown>();
857 }
858 if (Input.GetKeyDown(KeyCode.KeypadMinus))
859 {
860 traitStairs = EClass._map.FindThing<TraitStairsUp>();
861 }
862 traitStairs?.MoveZone();
863 if (EInput.action == EAction.ShowGrid)
864 {
865 EClass.ui.Find("_Guide").ToggleActive();
866 }
867 if (Input.GetKey(KeyCode.N))
868 {
869 if (key)
870 {
871 SoundManager.current.sourceBGM.pitch = 10f;
872 }
873 if (key3)
874 {
875 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
876 }
877 }
878 else if (Input.GetKeyUp(KeyCode.N))
879 {
880 SoundManager.current.sourceBGM.pitch = 1f;
881 }
883 {
884 string text = "festival";
885 if (Input.GetKeyDown(KeyCode.F1))
886 {
887 EClass.ui.AddLayer<LayerDebug>();
888 }
889 if (Input.GetKeyDown(KeyCode.F2))
890 {
891 Zone.forceRegenerate = true;
893 EClass.scene.Init(Scene.Mode.Zone);
895 SE.MoveZone();
896 }
897 if (Input.GetKeyDown(KeyCode.F4))
898 {
899 if (!MapSubset.Exist(text))
900 {
901 SE.Beep();
902 return;
903 }
904 Zone.forceRegenerate = true;
905 Zone.forceSubset = text;
907 EClass.scene.Init(Scene.Mode.Zone);
909 SE.MoveZone();
910 EClass.ui.Say("Loaded Subset");
911 }
912 if (Input.GetKeyDown(KeyCode.F5))
913 {
914 MapSubset.Save(text);
915 SE.WriteJournal();
916 EClass.ui.Say("Exported Subset");
917 }
918 return;
919 }
920 if (Input.GetKeyDown(KeyCode.F1))
921 {
922 EClass.ui.AddLayer<LayerDebug>();
923 Debug.Log(EClass._zone);
924 Debug.Log(EClass._zone.id + "/" + EClass._zone.parent);
926 }
927 if (Input.GetKeyDown(KeyCode.F2))
928 {
929 EClass.game.world.date.year = 3000;
930 EClass._zone.development += 10;
931 EClass._zone.development *= EClass._zone.development;
933 if (targetChara != null)
934 {
935 EClass.pc.Pick(CraftUtil.MakeLoveLunch(targetChara));
937 EClass.pc.Pick(targetChara.MakeMilk());
938 EClass.pc.Pick(targetChara.MakeGene());
939 EClass.pc.Pick(targetChara.MakeBraineCell());
940 EClass.pc.Pick(targetChara.MakeEgg(effect: true, 10));
941 targetChara.ModAffinity(EClass.pc, 10000);
942 }
943 if (EClass.game.quests.Get<QuestDebt>() == null)
944 {
945 Chara chara = CharaGen.Create("loytel");
947 chara.SetGlobal();
948 Quest q = EClass.game.quests.Add("debt", "loytel");
951 Hostility hostility2 = (chara.c_originalHostility = Hostility.Ally);
952 chara.hostility = hostility2;
953 }
954 return;
955 }
956 if (Input.GetKeyDown(KeyCode.F3))
957 {
958 for (int i = 0; i < 10; i++)
959 {
960 Thing thing = ThingGen.Create("egg_fertilized");
961 thing.TryMakeRandomItem(40);
962 thing.SetEncLv(200);
963 EClass.pc.Pick(thing);
964 }
965 foreach (Chara deadChara in EClass._map.deadCharas)
966 {
967 Debug.Log(deadChara);
968 }
971 Msg.Say("loytelmart:" + EClass.player.flags.loytelMartLv);
972 Guild.Fighter.relation.rank = 20;
973 Guild.Mage.relation.rank = 20;
974 Guild.Thief.relation.rank = 20;
975 Guild.Merchant.relation.rank = 20;
976 if (EClass.Branch != null)
977 {
979 }
980 foreach (Chara item in EClass._map.charas.ToList())
981 {
982 item.AddExp(item.ExpToNext);
983 item.Vomit();
984 }
985 EClass.pc.PlayEffect("boost");
986 EClass.pc.PlaySound("boost");
987 EClass.pc.elements.SetBase(306, 100);
988 EClass.pc.elements.SetBase(85, 100);
989 EClass.pc.feat += 10;
990 EClass.player.totalFeat += 10;
991 return;
992 }
993 if (Input.GetKeyDown(KeyCode.F4))
994 {
995 foreach (Chara member in EClass.pc.party.members)
996 {
997 member.InstantEat();
998 if (!member.IsPC)
999 {
1000 string id = "test";
1001 member.spriteReplacer = new SpriteReplacer();
1002 member.spriteReplacer.HasSprite(id);
1003 member._CreateRenderer();
1004 }
1005 }
1006 for (int j = 0; j < 10; j++)
1007 {
1008 Thing thing2 = ThingGen.CreateFromCategory("fish", 999);
1009 thing2.SetTier(EScriptable.rnd(4));
1010 EClass.pc.Pick(thing2);
1011 thing2 = ThingGen.Create("89");
1012 thing2.SetTier(EScriptable.rnd(4));
1013 EClass.pc.Pick(thing2);
1014 }
1015 EClass.pc.PlayEffect("phoenix");
1016 return;
1017 }
1018 if (Input.GetKeyDown(KeyCode.F5))
1019 {
1020 string text2 = (Input.GetKey(KeyCode.LeftControl) ? "quick3" : (Input.GetKey(KeyCode.LeftShift) ? "quick2" : "quick"));
1021 if (text2 != Game.id)
1022 {
1023 IO.DeleteDirectory(CorePath.RootSave + text2);
1024 IO.CopyAll(CorePath.RootSave + Game.id, CorePath.RootSave + text2);
1025 Game.id = text2;
1026 }
1027 EClass.game.isCloud = false;
1028 EClass.game.Save();
1029 }
1030 if (Input.GetKeyDown(KeyCode.F6))
1031 {
1033 {
1034 string id2 = (Input.GetKey(KeyCode.LeftControl) ? "quick3" : (Input.GetKey(KeyCode.LeftShift) ? "quick2" : "quick"));
1035 EClass.scene.Init(Scene.Mode.None);
1036 Game.Load(id2, cloud: false);
1037 });
1038 }
1039 if (Input.GetKeyDown(KeyCode.F7))
1040 {
1041 MiniGame.Activate(MiniGame.Type.Scratch);
1042 return;
1043 }
1044 if (Input.GetKeyDown(KeyCode.F8))
1045 {
1046 SE.Click();
1048 runtimeGodBuild = true;
1051 }
1052 if (key3)
1053 {
1054 if (Input.GetKeyDown(KeyCode.F9))
1055 {
1057 if (indexResolution >= resolutions.Count)
1058 {
1059 indexResolution = 0;
1060 }
1061 int[] array = resolutions[indexResolution];
1062 int width = array[0];
1063 int height = array[1];
1064 Screen.SetResolution(width, height, key);
1065 WidgetFeed.Instance?.Nerun(width + "/" + height);
1066 }
1067 if (Input.GetKeyDown(KeyCode.F10))
1068 {
1069 int width2 = Screen.width;
1070 int height2 = width2 / 16 * 9;
1071 Screen.SetResolution(width2, height2, key);
1072 WidgetFeed.Instance?.Nerun(width2 + "/" + height2);
1073 }
1074 }
1075 else
1076 {
1077 Input.GetKeyDown(KeyCode.F9);
1078 if (Input.GetKey(KeyCode.F9))
1079 {
1080 EClass.scene.paused = false;
1081 for (int k = 0; k < advanceMin; k++)
1082 {
1084 }
1086 }
1087 if (Input.GetKeyDown(KeyCode.F10))
1088 {
1089 switch (EScriptable.rnd(5))
1090 {
1091 case 0:
1093 break;
1094 case 1:
1096 break;
1097 case 2:
1099 break;
1100 default:
1102 break;
1103 }
1104 }
1105 }
1106 if (Input.GetKeyDown(KeyCode.N) && !EInput.isShiftDown && !EInput.isCtrlDown)
1107 {
1108 EClass.Sound.NextBGM();
1109 }
1110 if (Input.GetKeyDown(KeyCode.Tab))
1111 {
1112 if (key)
1113 {
1114 EClass.ui.AddLayer<LayerConsole>();
1115 }
1116 else
1117 {
1118 EClass.ui.widgets.Toggle("Debug");
1119 }
1120 }
1121 Point hitPoint = Scene.HitPoint;
1122 if (!hitPoint.IsValid || EClass.ui.IsActive)
1123 {
1124 return;
1125 }
1126 if (hitPoint.detail != null)
1127 {
1128 _ = hitPoint.area;
1129 }
1130 if (hitPoint.detail?.things == null)
1131 {
1132 new List<Thing>();
1133 }
1134 if (hitPoint.detail?.charas == null)
1135 {
1136 new List<Chara>();
1137 }
1138 List<Card> list = hitPoint.ListCards();
1139 if (Input.GetMouseButtonDown(2))
1140 {
1141 if (EClass.core.releaseMode != 0)
1142 {
1143 if (key)
1144 {
1145 EClass._zone.SpawnMob(hitPoint);
1146 }
1147 else if (key3)
1148 {
1149 EClass._zone.SpawnMob(hitPoint);
1150 }
1151 else if (key2)
1152 {
1153 EClass._zone.SpawnMob(hitPoint);
1154 }
1155 }
1156 return;
1157 }
1158 if (key2)
1159 {
1160 if (Input.GetMouseButtonDown(0))
1161 {
1162 foreach (Card item2 in list)
1163 {
1164 Debug.Log(item2.Name + "/" + item2.dir + "/" + item2.flipX + "/" + item2.angle);
1165 }
1166 }
1167 if (Input.GetMouseButtonDown(1))
1168 {
1169 if (key)
1170 {
1171 EClass._map.charas.ForeachReverse(delegate(Chara c)
1172 {
1173 if (c.IsHostile(EClass.pc))
1174 {
1175 c.DamageHP(9999999, AttackSource.Finish, EClass.pc);
1176 }
1177 });
1178 }
1179 else if (hitPoint.detail != null)
1180 {
1181 for (int num = hitPoint.detail.charas.Count - 1; num >= 0; num--)
1182 {
1183 hitPoint.detail.charas[num].DamageHP(9999999, AttackSource.Finish, EClass.pc);
1184 }
1185 }
1186 EInput.Consume();
1187 }
1188 }
1189 if (Input.GetKeyDown(KeyCode.Delete))
1190 {
1191 if (Input.GetKey(KeyCode.RightControl))
1192 {
1193 return;
1194 }
1195 if (key)
1196 {
1197 foreach (Card item3 in EClass._map.Roaming.all)
1198 {
1199 EClass._zone.RemoveCard(item3);
1200 }
1201 }
1202 else if (hitPoint.detail != null)
1203 {
1204 for (int num2 = hitPoint.detail.things.Count - 1; num2 >= 0; num2--)
1205 {
1206 hitPoint.detail.things[num2].Destroy();
1207 }
1208 if (hitPoint.detail != null)
1209 {
1210 for (int num3 = hitPoint.detail.charas.Count - 1; num3 >= 0; num3--)
1211 {
1212 hitPoint.detail.charas[num3].Destroy();
1213 }
1214 }
1215 }
1216 }
1217 if (Input.GetKeyDown(KeyCode.End) && hitPoint.detail != null)
1218 {
1219 for (int num4 = hitPoint.detail.things.Count - 1; num4 >= 0; num4--)
1220 {
1221 Thing thing3 = hitPoint.detail.things[num4];
1222 Debug.Log(thing3.id + "/" + thing3.Pref.height + "/" + thing3.trait?.ToString() + "/" + thing3.source.tileType.CanStack + "/" + thing3.source.tileType?.ToString() + "/" + thing3.isSynced + "/" + RenderObject.syncList.Contains(thing3.renderer));
1223 }
1224 }
1225 if (!Application.isEditor)
1226 {
1227 return;
1228 }
1229 switch (debugHotkeys)
1230 {
1231 case DebugHotkey.Anime:
1232 {
1233 int num5 = -1;
1234 if (Input.GetKeyDown(KeyCode.Alpha0))
1235 {
1236 num5 = 0;
1237 }
1238 if (Input.GetKeyDown(KeyCode.Alpha1))
1239 {
1240 num5 = 1;
1241 }
1242 if (Input.GetKeyDown(KeyCode.Alpha2))
1243 {
1244 num5 = 2;
1245 }
1246 if (Input.GetKeyDown(KeyCode.Alpha3))
1247 {
1248 num5 = 3;
1249 }
1250 if (Input.GetKeyDown(KeyCode.Alpha4))
1251 {
1252 num5 = 4;
1253 }
1254 if (Input.GetKeyDown(KeyCode.Alpha5))
1255 {
1256 num5 = 5;
1257 }
1258 if (Input.GetKeyDown(KeyCode.Alpha6))
1259 {
1260 num5 = 6;
1261 }
1262 if (Input.GetKeyDown(KeyCode.Alpha7))
1263 {
1264 num5 = 7;
1265 }
1266 if (Input.GetKeyDown(KeyCode.Alpha8))
1267 {
1268 num5 = 8;
1269 }
1270 if (Input.GetKeyDown(KeyCode.Alpha9))
1271 {
1272 num5 = 9;
1273 }
1274 if (num5 == -1)
1275 {
1276 break;
1277 }
1278 foreach (Card item4 in hitPoint.ListCards())
1279 {
1280 item4.renderer.PlayAnime(num5.ToEnum<AnimeID>());
1281 }
1282 Debug.Log(num5.ToEnum<AnimeID>());
1283 break;
1284 }
1285 case DebugHotkey.Block:
1286 if (Input.GetKeyDown(KeyCode.Alpha1))
1287 {
1288 EClass._map.SetLiquid(hitPoint.x, hitPoint.z, 1, 9);
1289 }
1290 if (Input.GetKeyDown(KeyCode.Alpha2))
1291 {
1292 EClass._map.SetLiquid(hitPoint.x, hitPoint.z, 2, 9);
1293 }
1294 break;
1295 case DebugHotkey.Item:
1296 if (Input.GetKeyDown(KeyCode.Alpha1))
1297 {
1298 Thing thing4 = ThingGen.Create("stairsDown_cave");
1299 EClass._zone.AddCard(thing4, EClass.pc.pos);
1300 thing4.SetPlaceState(PlaceState.installed);
1301 }
1302 if (Input.GetKeyDown(KeyCode.Alpha2))
1303 {
1304 Thing thing5 = ThingGen.Create("stairs");
1305 EClass._zone.AddCard(thing5, EClass.pc.pos);
1306 thing5.SetPlaceState(PlaceState.installed);
1307 }
1308 if (Input.GetKeyDown(KeyCode.Alpha3))
1309 {
1310 Thing thing6 = ThingGen.Create("sign");
1311 EClass._zone.AddCard(thing6, hitPoint);
1312 thing6.SetPlaceState(PlaceState.installed);
1313 }
1314 if (Input.GetKeyDown(KeyCode.Alpha4))
1315 {
1316 Thing thing7 = ThingGen.Create("sign2");
1317 EClass._zone.AddCard(thing7, hitPoint);
1318 thing7.SetPlaceState(PlaceState.installed);
1319 }
1320 if (Input.GetKeyDown(KeyCode.Alpha5))
1321 {
1322 Thing thing8 = ThingGen.Create("well");
1323 EClass._zone.AddCard(thing8, hitPoint);
1324 thing8.SetPlaceState(PlaceState.installed);
1325 }
1326 if (Input.GetKeyDown(KeyCode.Alpha6))
1327 {
1328 Thing thing9 = ThingGen.Create("altar");
1329 EClass._zone.AddCard(thing9, hitPoint);
1330 thing9.SetPlaceState(PlaceState.installed);
1331 }
1332 if (Input.GetKeyDown(KeyCode.Alpha7))
1333 {
1334 Thing t = ThingGen.Create("torch");
1335 EClass._zone.AddCard(t, hitPoint);
1336 }
1337 if (Input.GetKeyDown(KeyCode.Alpha8))
1338 {
1339 Thing t2 = ThingGen.Create("street_lamp");
1340 EClass._zone.AddCard(t2, hitPoint);
1341 }
1342 if (Input.GetKeyDown(KeyCode.Alpha9))
1343 {
1344 Thing t3 = ThingGen.Create("statue_elin");
1345 EClass._zone.AddCard(t3, hitPoint);
1346 }
1347 if (Input.GetKeyDown(KeyCode.Alpha0))
1348 {
1349 Thing t4 = ThingGen.TestCreate();
1350 EClass._zone.AddCard(t4, hitPoint);
1351 }
1352 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1353 {
1354 Chara t5 = CharaGen.Create("korgon");
1355 EClass._zone.AddCard(t5, hitPoint);
1356 }
1357 break;
1358 case DebugHotkey.Decal:
1359 if (Input.GetKeyDown(KeyCode.Alpha1))
1360 {
1361 EClass._map.AddDecal(hitPoint.x, hitPoint.z, EClass.pc.material.decal);
1362 }
1363 if (!Input.GetKeyDown(KeyCode.Alpha2))
1364 {
1365 }
1366 break;
1367 case DebugHotkey.Test:
1368 if (Input.GetKeyDown(KeyCode.Alpha1))
1369 {
1370 QualitySettings.vSyncCount = 0;
1371 Application.targetFrameRate = 60;
1372 }
1373 if (Input.GetKeyDown(KeyCode.Alpha2))
1374 {
1375 QualitySettings.vSyncCount = 0;
1376 Application.targetFrameRate = 20;
1377 }
1378 if (Input.GetKeyDown(KeyCode.Alpha3))
1379 {
1380 QualitySettings.vSyncCount = 0;
1381 Application.targetFrameRate = 30;
1382 }
1383 if (Input.GetKeyDown(KeyCode.Alpha4))
1384 {
1385 QualitySettings.vSyncCount = 0;
1386 Application.targetFrameRate = 40;
1387 }
1388 break;
1389 }
1390 Card card = (Card)(((object)hitPoint.FirstChara) ?? ((object)hitPoint.FirstThing));
1391 if (card == null)
1392 {
1393 return;
1394 }
1395 CharaActorPCC charaActorPCC = (card.renderer.actor as CharaActor) as CharaActorPCC;
1396 if ((bool)charaActorPCC)
1397 {
1398 if (Input.GetKeyDown(KeyCode.Keypad0))
1399 {
1400 charaActorPCC.NextFrame();
1401 charaActorPCC.RefreshSprite();
1402 }
1403 if (Input.GetKeyDown(KeyCode.Keypad1))
1404 {
1405 charaActorPCC.NextDir();
1406 card.angle = charaActorPCC.provider.angle;
1407 charaActorPCC.RefreshSprite();
1408 }
1409 if (Input.GetKeyDown(KeyCode.Keypad2))
1410 {
1411 charaActorPCC.pcc.data.Randomize();
1412 charaActorPCC.provider.Rebuild();
1413 }
1414 }
1415 if (Input.GetKeyDown(KeyCode.Keypad4))
1416 {
1417 lastEmo = lastEmo.NextEnum();
1418 card.ShowEmo();
1419 card.ShowEmo(lastEmo);
1420 }
1421 if (Input.GetKeyDown(KeyCode.Keypad5))
1422 {
1423 card.ShowEmo();
1424 card.ShowEmo(lastEmo);
1425 }
1426 if (Input.GetKeyDown(KeyCode.Keypad7))
1427 {
1428 lastAnime = lastAnime.NextEnum();
1429 card.renderer.PlayAnime(lastAnime);
1430 }
1431 if (Input.GetKeyDown(KeyCode.Keypad8))
1432 {
1433 card.renderer.PlayAnime(lastAnime);
1434 animeDest = card;
1435 }
1436 if (Input.GetKeyDown(KeyCode.Keypad9))
1437 {
1438 card.renderer.PlayAnime(AnimeID.Attack, animeDest);
1439 }
1440 }
1441
1442 public void InitDebugCommands()
1443 {
1444 commands.Clear();
1445 int cat2 = 0;
1446 Add(cat2, "Save Widgets", delegate
1447 {
1448 EClass.ui.widgets.Save();
1449 });
1450 Add(cat2, "Save Widgets(Dialog)", delegate
1451 {
1452 EClass.ui.widgets.DialogSave();
1453 });
1454 Add(cat2, "Export Zone", delegate
1455 {
1457 });
1458 Add(cat2, "Export Zone(Dialog)", delegate
1459 {
1461 });
1462 Add(0, "Import Zone(Dialog)", delegate
1463 {
1465 });
1466 Add(cat2, "Validate Backer Contents", delegate
1467 {
1468 foreach (SourceBacker.Row row2 in EClass.sources.backers.rows)
1469 {
1470 if (row2.valid)
1471 {
1472 switch (row2.type)
1473 {
1474 case 1:
1475 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1476 {
1477 Debug.Log(row2.id + "/remain/" + row2.Name + "/" + row2.loot);
1478 }
1479 break;
1480 case 4:
1481 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1482 {
1483 Debug.Log(row2.id + "/pet/" + row2.Name + "/" + row2.chara);
1484 }
1485 break;
1486 case 6:
1487 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLower()))
1488 {
1489 Debug.Log(row2.id + "/" + row2.Name + "/follower/" + row2.deity);
1490 }
1491 break;
1492 }
1493 }
1494 }
1495 });
1496 Add(cat2, "Edit PCC", delegate
1497 {
1498 EClass.ui.AddLayer<LayerEditPCC>().Activate(EClass.pc, UIPCC.Mode.Full);
1499 });
1500 Add(cat2, "COM_Teleport", COM_Teleport);
1501 Add(cat2, "LOG_Spatials", LOG_Spatials);
1502 Add(cat2, "Play Start Drama", COM_PlayStartDrama);
1503 Add(cat2, "Fix Floating Items", delegate
1504 {
1505 foreach (Thing thing in EClass._map.things)
1506 {
1507 if (thing.Pref.Float)
1508 {
1509 thing.isFloating = true;
1510 }
1511 }
1512 });
1513 cat2 = 1;
1514 Add(cat2, "Add Conditions", delegate
1515 {
1516 if (EScriptable.rnd(2) == 0)
1517 {
1518 EClass.pc.AddCondition<ConWet>();
1519 }
1520 else
1521 {
1522 EClass.pc.AddCondition<ConSuffocation>();
1523 }
1524 if (EScriptable.rnd(2) == 0)
1525 {
1526 EClass.pc.AddCondition<ConPoison>();
1527 }
1528 else
1529 {
1530 EClass.pc.AddCondition<ConDisease>();
1531 }
1532 });
1533 cat2 = 2;
1534 Add(cat2, "Max Construction", COM_MaxConstruction);
1535 Add(cat2, "Add Reserves", delegate
1536 {
1537 EClass.Home.AddReserve(CharaGen.Create("merc_archer"));
1539 EClass.Home.AddReserve(CharaGen.Create("bartender"));
1540 EClass.Home.AddReserve(CharaGen.Create("merchant"));
1544 });
1545 Add(cat2, "Add Recruits", delegate
1546 {
1547 if (EClass.Branch != null)
1548 {
1549 EClass.Branch.AddRecruit(CharaGen.Create("merc_archer"));
1550 EClass.Branch.AddRecruit(CharaGen.Create("healer"));
1551 EClass.Branch.AddRecruit(CharaGen.Create("bartender"));
1552 EClass.Branch.AddRecruit(CharaGen.Create("merchant"));
1553 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter("c_wilds"));
1554 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter("c_wilds"));
1555 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter("c_wilds"));
1556 }
1557 });
1558 Add(cat2, "Add Resources", delegate
1559 {
1560 if (EClass.Branch != null)
1561 {
1562 EClass.Branch.resources.food.Mod(100);
1563 EClass.Branch.resources.knowledge.Mod(100);
1564 }
1565 });
1566 Add(cat2, "Add Influence", delegate
1567 {
1568 EClass._zone.influence += 100;
1569 });
1570 Add(cat2, "Reroll Hobbies", delegate
1571 {
1572 foreach (Chara chara in EClass._map.charas)
1573 {
1574 chara.RerollHobby();
1575 }
1576 });
1577 Add(cat2, "Test_Siege", Test_Siege);
1578 Add(cat2, "Test_SiegeGuard", Test_SiegeGuard);
1579 Add(cat2, "Log_BranchMembers", delegate
1580 {
1582 {
1583 Debug.Log(EClass.Branch.members.Count);
1584 foreach (Chara member in EClass.Branch.members)
1585 {
1586 EClass.debug.Log(member);
1587 }
1588 }
1589 });
1590 cat2 = 3;
1591 Add(cat2, "Weather.Fine", delegate
1592 {
1594 });
1595 Add(cat2, "Weather.Blossom", delegate
1596 {
1598 });
1599 Add(cat2, "Weather.Random", delegate
1600 {
1602 });
1603 Add(cat2, "Weather.Ether+50", delegate
1604 {
1605 EClass.world.ModEther(50);
1607 });
1608 Add(cat2, "Season.Next", delegate
1609 {
1611 });
1612 Add(cat2, "Unreveal Map", delegate
1613 {
1614 EClass._map.ForeachCell(delegate(Cell c)
1615 {
1616 c.isSeen = false;
1617 });
1619 });
1620 Add(cat2, "Test_GodTalk", Test_GodTalk);
1621 Add(cat2, "Test_Filter", Test_Filter);
1622 Add(cat2, "Test_Grow", Test_Grow);
1623 Add(cat2, "Turn On All Lights", delegate
1624 {
1625 foreach (Thing thing2 in EClass._map.things)
1626 {
1627 if (thing2.trait.IsLighting)
1628 {
1629 thing2.trait.Toggle(on: true);
1630 }
1631 }
1632 });
1633 Add(cat2, "Reset All Custom Lights", delegate
1634 {
1635 foreach (Thing thing3 in EClass._map.things)
1636 {
1637 thing3.c_lightColor = 0;
1638 thing3.RecalculateFOV();
1639 }
1640 });
1641 Add(cat2, "Reset All obj materials", delegate
1642 {
1643 EClass._map.ForeachCell(delegate(Cell c)
1644 {
1645 if (c.HasObj)
1646 {
1647 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1648 }
1649 });
1650 });
1651 Add(cat2, "Reset Certain obj materials", delegate
1652 {
1653 EClass._map.ForeachCell(delegate(Cell c)
1654 {
1655 if (c.HasObj && c.obj == 79)
1656 {
1657 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1658 }
1659 });
1660 });
1661 Add(cat2, "Fix Floors under Blocks", delegate
1662 {
1663 EClass._map.ForeachCell(delegate(Cell c)
1664 {
1665 if (c.HasFullBlock)
1666 {
1667 SourceBlock.Row sourceBlock = c.sourceBlock;
1668 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1669 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1670 }
1671 });
1672 });
1673 Add(cat2, "Bless Inventory", delegate
1674 {
1675 EClass.pc.things.Foreach(delegate(Thing t)
1676 {
1677 t.SetBlessedState(BlessedState.Blessed);
1678 });
1679 });
1680 Add(cat2, "Curse Inventory", delegate
1681 {
1682 EClass.pc.things.Foreach(delegate(Thing t)
1683 {
1684 t.SetBlessedState(BlessedState.Cursed);
1685 });
1686 });
1687 Add(cat2, "List Global Charas", delegate
1688 {
1689 foreach (KeyValuePair<int, Chara> globalChara in EClass.game.cards.globalCharas)
1690 {
1691 Debug.Log(globalChara.Key + "/" + globalChara.Value.Name + "/" + ((globalChara.Value.currentZone == null) ? "NULL" : globalChara.Value.currentZone.Name) + "/" + globalChara.Value.faction?.ToString() + "/" + globalChara.Value.homeBranch);
1692 }
1693 });
1694 Add(cat2, "List Global Charas In Zone", delegate
1695 {
1696 foreach (KeyValuePair<int, Chara> globalChara2 in EClass.game.cards.globalCharas)
1697 {
1698 if (globalChara2.Value.currentZone == EClass._zone)
1699 {
1700 Debug.Log(globalChara2.Key + "/" + globalChara2.Value);
1701 }
1702 }
1703 });
1704 Add(cat2, "List Citizen", delegate
1705 {
1706 foreach (KeyValuePair<int, string> p in EClass._zone.dictCitizen)
1707 {
1708 Debug.Log(p.Value);
1709 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1710 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1711 }
1712 });
1713 void Add(int cat, string id, Action action)
1714 {
1715 DebugCommand item = new DebugCommand
1716 {
1717 name = id,
1718 action = action,
1719 cat = cat
1720 };
1721 commands.Add(item);
1722 }
1723 }
1724
1725 public void Test_Grow()
1726 {
1727 EClass._map.ForeachCell(delegate(Cell c)
1728 {
1729 if (c.sourceObj.HasGrowth)
1730 {
1731 c.TryGrow();
1732 }
1733 });
1734 foreach (Thing item in EClass._map.things.Copy())
1735 {
1736 if (item.trait is TraitSeed traitSeed)
1737 {
1738 traitSeed.TrySprout(force: true);
1739 }
1740 }
1741 }
1742
1743 public void Test_GodTalk()
1744 {
1745 foreach (Religion value in EClass.game.religions.dictAll.Values)
1746 {
1747 value.Talk("test");
1748 }
1749 }
1750
1751 public void COM_Teleport()
1752 {
1753 for (int i = 0; i < 10000; i++)
1754 {
1755 Point point = EClass.pc.pos.Copy();
1756 point.x += EScriptable.rnd(60) - EScriptable.rnd(60);
1757 point.z += EScriptable.rnd(60) - EScriptable.rnd(60);
1758 if (point.IsValid && !point.cell.blocked && point.HasFloor)
1759 {
1760 EClass.pc.Teleport(point);
1761 break;
1762 }
1763 }
1764 }
1765
1767 {
1768 EClass.ui.CloseLayers();
1769 EClass.game.world.date.hour = 2;
1771 LayerDrama.ActivateMain("mono", "1-2");
1772 }
1773
1774 public void Test_Filter()
1775 {
1776 bilinear = !bilinear;
1777 MeshPass[] passes = EClass.scene.passes;
1778 for (int i = 0; i < passes.Length; i++)
1779 {
1780 passes[i].mat.GetTexture("_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1781 }
1782 }
1783
1784 public void LOG_Spatials()
1785 {
1786 foreach (Spatial child in EClass.world.region.children)
1787 {
1788 Debug.Log(child.uid + "/" + child.Name + "/" + child.mainFaction.name + "/" + (child == EClass.player.zone));
1789 }
1790 }
1791
1792 public void Test_SiegeGuard()
1793 {
1794 if (EClass._zone.events.GetEvent<ZoneEventSiegeGuard>() == null)
1795 {
1797 }
1798 else
1799 {
1801 }
1802 }
1803
1804 public void Test_Siege()
1805 {
1806 if (EClass._zone.events.GetEvent<ZoneEventSiege>() == null)
1807 {
1809 }
1810 else
1811 {
1813 }
1814 }
1815
1817 {
1818 if (EClass.pc.homeBranch != null)
1819 {
1821 }
1822 }
1823
1824 public static bool CheatEnabled()
1825 {
1826 if (!EClass.debug.enable)
1827 {
1828 return EClass.game.config.cheat;
1829 }
1830 return true;
1831 }
1832
1833 [ConsoleCommand("")]
1834 public static string Cheat()
1835 {
1836 EClass.game.config.cheat = true;
1837 return "Cheat Enabled";
1838 }
1839
1840 [ConsoleCommand("")]
1841 public static string Reset_LoytelDebt()
1842 {
1843 QuestDebt questDebt = EClass.game.quests.Get<QuestDebt>();
1844 if (questDebt == null)
1845 {
1846 return "Quest Status Not Valid.";
1847 }
1848 questDebt.stage = 0;
1849 questDebt.paid = false;
1850 questDebt.gaveBill = false;
1851 EClass.player.debt = 20000000;
1852 Thing thing = ThingGen.Create("856");
1853 thing.refVal = 109;
1854 EClass.pc.Pick(thing);
1855 return "Quest Reset!";
1856 }
1857
1858 [ConsoleCommand("")]
1859 public static string Fix_RemoveDuplicateUnique()
1860 {
1861 if (EClass.Branch == null)
1862 {
1863 return "No Branch";
1864 }
1865 EClass.Branch.members.ForeachReverse(delegate(Chara c)
1866 {
1867 if ((c.id == "kettle" || c.id == "quru") && EClass.Branch.members.Where((Chara c2) => c2.id == c.id).Count() >= 2)
1868 {
1869 EClass.Branch.RemoveMemeber(c);
1870 c.Destroy();
1871 }
1872 });
1873 return "Fixed!";
1874 }
1875
1876 [ConsoleCommand("")]
1877 public static string Fix_EtherDisease()
1878 {
1879 EClass.pc.ModCorruption(-100000);
1880 Chara chara = CharaGen.Create("chara");
1881 chara.ChangeRace(EClass.pc.race.id);
1882 chara.ChangeJob(EClass.pc.job.id);
1883 string text = "";
1884 foreach (Element value in chara.elements.dict.Values)
1885 {
1886 if (!(value.source.category != "attribute"))
1887 {
1888 Element orCreateElement = EClass.pc.elements.GetOrCreateElement(value.id);
1889 if (value.vBase > orCreateElement.vBase)
1890 {
1891 text = text + "Fixing Base Value:" + orCreateElement.Name + " Before:" + orCreateElement.vBase + " Now:" + (value.vBase + 1) + Environment.NewLine;
1892 EClass.pc.elements.ModBase(orCreateElement.id, value.vBase - orCreateElement.vBase + 1);
1893 }
1894 }
1895 }
1896 return text + "Fixed!";
1897 }
1898
1899 [ConsoleCommand("")]
1900 public static string Fix_LostCore()
1901 {
1903 {
1904 return "Not in base.";
1905 }
1906 foreach (Thing thing in EClass._map.things)
1907 {
1908 if (thing.trait is TraitCoreZone)
1909 {
1910 return "Base already has core.";
1911 }
1912 }
1913 if (EClass.pc.things.Find((Thing t) => t.trait is TraitCoreZone) != null)
1914 {
1915 return "Player has core.";
1916 }
1918 return "Done.";
1919 }
1920
1921 [ConsoleCommand("")]
1922 public static string Fix_RemoveDemitas()
1923 {
1924 List<Chara> list = new List<Chara>();
1925 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1926 {
1927 if (value.id == "demitas" && value.currentZone == EClass._zone)
1928 {
1929 list.Add(value);
1930 }
1931 }
1932 if (list.Count > 1)
1933 {
1934 Chara chara = list[1];
1935 chara.homeBranch.BanishMember(chara);
1936 chara.Destroy();
1937 return "Demitas Removed!";
1938 }
1939 return "Not enough Demitas!";
1940 }
1941
1942 [ConsoleCommand("")]
1943 public static string Fix_RemoveDesignations()
1944 {
1945 EClass._map.ForeachCell(delegate(Cell c)
1946 {
1947 if (c.detail != null && c.detail.designation != null)
1948 {
1949 c.detail.designation.taskList.Remove(c.detail.designation);
1950 }
1951 });
1952 return "Done.";
1953 }
1954
1955 [ConsoleCommand("")]
1956 public static string ListChara()
1957 {
1958 string text = "";
1959 foreach (SourceChara.Row row in EClass.sources.charas.rows)
1960 {
1961 text = text + row.id + "\n";
1962 }
1963 return text;
1964 }
1965
1966 [ConsoleCommand("")]
1967 public static string ListThing()
1968 {
1969 string text = "";
1970 foreach (SourceThing.Row row in EClass.sources.things.rows)
1971 {
1972 text = text + row.id + "\n";
1973 }
1974 return text;
1975 }
1976
1977 [ConsoleCommand("")]
1978 public static string SetElement(string alias, int value, int potential = 100)
1979 {
1980 if (!CheatEnabled())
1981 {
1982 return EnableCheat;
1983 }
1984 SourceElement.Row row = EClass.sources.elements.alias.TryGetValue(alias);
1985 if (row == null)
1986 {
1987 return "Element not found.";
1988 }
1989 if (row.type == "Feat")
1990 {
1991 EClass.pc.SetFeat(row.id, value, msg: true);
1992 }
1993 else
1994 {
1995 EClass.pc.elements.SetBase(row.id, value, potential);
1996 }
1997 return "Done.";
1998 }
1999
2000 [ConsoleCommand("")]
2001 public static string SpawnBoss(string id)
2002 {
2003 if (!CheatEnabled())
2004 {
2005 return EnableCheat;
2006 }
2007 if (EClass.sources.charas.map.ContainsKey(id))
2008 {
2010 return "Spawned " + chara.Name;
2011 }
2012 return "'" + id + "' does not exist in the database.";
2013 }
2014
2015 [ConsoleCommand("")]
2016 public static string Spawn(string id, int num = 1, string aliasMat = "", int objLv = -1)
2017 {
2018 if (!CheatEnabled())
2019 {
2020 return EnableCheat;
2021 }
2022 if (EClass.sources.things.map.ContainsKey(id))
2023 {
2024 Thing thing = ThingGen.Create(id, -1, objLv).SetNum(num);
2025 if (!aliasMat.IsEmpty())
2026 {
2027 thing.ChangeMaterial(aliasMat);
2028 }
2029 EClass._zone.AddCard(thing, EClass.pc.pos);
2030 return "Spawned " + thing.Name;
2031 }
2032 if (EClass.sources.charas.map.ContainsKey(id))
2033 {
2034 Chara chara = CharaGen.Create(id);
2035 if (objLv != -1)
2036 {
2037 chara.SetLv(objLv);
2038 }
2039 EClass._zone.AddCard(chara, EClass.pc.pos);
2040 return "Spawned " + chara.Name;
2041 }
2042 return "'" + id + "' does not exist in the database.";
2043 }
2044
2045 [ConsoleCommand("")]
2046 public static string TestSpawn(int lv, int num, int lvRange = -1)
2047 {
2048 if (!CheatEnabled())
2049 {
2050 return EnableCheat;
2051 }
2052 if (EClass._zone is Zone_Arena)
2053 {
2054 EClass._zone._dangerLv = lv;
2055 }
2056 foreach (Chara item in EClass._map.charas.Where((Chara c) => c.HasEditorTag(EditorTag.SpawnTest)).ToList())
2057 {
2058 item.Destroy();
2059 }
2060 for (int i = 0; i < num; i++)
2061 {
2062 EClass._zone.SpawnMob(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: false, ignoreCenter: true), new SpawnSetting
2063 {
2064 filterLv = lv,
2065 levelRange = lvRange
2066 }).AddEditorTag(EditorTag.SpawnTest);
2067 }
2068 return "Spawned.";
2069 }
2070
2071 [ConsoleCommand("")]
2072 public static string ResetPetUpgrades()
2073 {
2074 foreach (Chara value in EClass.game.cards.globalCharas.Values)
2075 {
2076 if (value.IsPCFaction)
2077 {
2078 value.ResetUpgrade();
2079 }
2080 }
2081 return "Not Implemented.";
2082 }
2083
2084 [ConsoleCommand("")]
2085 public static string ResetPrincipalSeals()
2086 {
2087 if (!CheatEnabled())
2088 {
2089 return EnableCheat;
2090 }
2091 EClass.game.principal.modified.Clear();
2092 return "Done.";
2093 }
2094
2095 [ConsoleCommand("")]
2096 public static string GodMode()
2097 {
2098 if (!CheatEnabled())
2099 {
2100 return EnableCheat;
2101 }
2102 EClass.pc.Revive();
2103 EClass.pc.hp = EClass.pc.MaxHP;
2104 return "I'm God!";
2105 }
2106
2107 [ConsoleCommand("")]
2108 public static string ModFame(int amount)
2109 {
2110 if (!CheatEnabled())
2111 {
2112 return EnableCheat;
2113 }
2114 EClass.player.ModFame(amount);
2115 return "Done.";
2116 }
2117
2118 [ConsoleCommand("")]
2119 public static string ModKarma(int amount)
2120 {
2121 if (!CheatEnabled())
2122 {
2123 return EnableCheat;
2124 }
2125 EClass.player.ModKarma(amount);
2126 return "Done.";
2127 }
2128
2129 [ConsoleCommand("")]
2130 public static string ModContribution(int amount)
2131 {
2132 if (!CheatEnabled())
2133 {
2134 return EnableCheat;
2135 }
2137 return "Done.";
2138 }
2139
2140 [ConsoleCommand("")]
2141 public static string FlyMode()
2142 {
2144 return "I can fly!";
2145 }
2146
2147 [ConsoleCommand("")]
2148 public static string ChangeRace(string id = "?")
2149 {
2150 if (EClass.sources.races.map.ContainsKey(id))
2151 {
2152 Thing thing = null;
2153 foreach (BodySlot slot in EClass.pc.body.slots)
2154 {
2155 if (slot.thing != null)
2156 {
2157 if (slot.thing.blessedState <= BlessedState.Cursed)
2158 {
2159 slot.thing.blessedState = BlessedState.Normal;
2160 }
2161 if (slot.thing.trait is TraitToolBelt)
2162 {
2163 thing = slot.thing;
2164 }
2165 EClass.pc.body.Unequip(slot);
2166 }
2167 }
2170 EClass.pc.ChangeRace(id);
2171 if (EClass.ui.IsInventoryOpen)
2172 {
2173 EClass.ui.ToggleInventory();
2174 }
2177 EClass.pc.body.Equip(thing);
2178 return "Done.";
2179 }
2180 string text = "";
2181 foreach (SourceRace.Row row in EClass.sources.races.rows)
2182 {
2183 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2184 }
2185 return text;
2186 }
2187
2188 [ConsoleCommand("")]
2189 public static string ChangeJob(string id = "?")
2190 {
2191 if (EClass.sources.jobs.map.ContainsKey(id))
2192 {
2193 EClass.pc.ChangeJob(id);
2195 return "Done.";
2196 }
2197 string text = "";
2198 foreach (SourceJob.Row row in EClass.sources.jobs.rows)
2199 {
2200 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2201 }
2202 return text;
2203 }
2204
2205 [ConsoleCommand("")]
2206 public static string FirstAdventurer()
2207 {
2208 string text = "Steam is not running.";
2209 DateTime dateTime = new DateTime(2024, 11, 3, 6, 0, 0);
2210 DateTimeOffset dateTimeOffset = (Application.isEditor ? new DateTimeOffset(2024, 11, 6, 1, 9, 0, default(TimeSpan)) : ((!SteamAPI.IsSteamRunning()) ? new DateTimeOffset(9999, 1, 1, 1, 9, 0, default(TimeSpan)) : DateTimeOffset.FromUnixTimeSeconds(SteamApps.GetEarliestPurchaseUnixTime(EClass.core.steam.steamworks.settings.applicationId))));
2211 dateTimeOffset = dateTimeOffset.ToOffset(new TimeSpan(9, 0, 0));
2212 text = ((dateTimeOffset < dateTime) ? "Valid: " : "Invalid: ");
2213 text = text + "Arrived North Tyris on " + dateTimeOffset.Year + " " + dateTimeOffset.Month + "/" + dateTimeOffset.Day + " " + dateTimeOffset.Hour + ":" + dateTimeOffset.Minute;
2214 return text + " Eligible by " + dateTime.Year + " " + dateTime.Month + "/" + dateTime.Day + " " + dateTime.Hour + ":" + dateTime.Minute;
2215 }
2216
2217 [ConsoleCommand("")]
2218 public static string RegenerateNames()
2219 {
2221 NameGen.list = null;
2222 AliasGen.list = null;
2223 NameGen.Init();
2224 AliasGen.Init();
2225 foreach (Chara chara in EClass._map.charas)
2226 {
2227 if (!chara.IsPC)
2228 {
2229 if (chara.source.name == "*r")
2230 {
2231 chara.c_altName = NameGen.getRandomName();
2232 }
2233 if (!chara._alias.IsEmpty())
2234 {
2235 chara._alias = AliasGen.GetRandomAlias();
2236 }
2237 }
2238 }
2239 return "Done!";
2240 }
2241
2242 [ConsoleCommand("")]
2243 public static string AllRecipe(bool forget = false)
2244 {
2245 if (!CheatEnabled())
2246 {
2247 return EnableCheat;
2248 }
2249 if (forget)
2250 {
2252 }
2253 else
2254 {
2256 }
2257 return "Done!";
2258 }
2259
2260 [ConsoleCommand("")]
2261 public static string LastWish(string name)
2262 {
2263 string text = "";
2264 foreach (SourceBacker.Row row in EClass.sources.backers.rows)
2265 {
2266 if (row.name.Contains(name) || row.id.ToString() == name)
2267 {
2268 text = text + row.id + " valid?:" + row.valid + " lang:" + row.lang + " type:" + row.type + " destroyed:" + EClass.player.doneBackers.Contains(row.id) + " loc:" + (row.loc.IsEmpty() ? "random" : row.loc) + Environment.NewLine;
2269 }
2270 }
2271 if (text == "")
2272 {
2273 return "Not Found";
2274 }
2275 return text + Resources.Load<TextAsset>("logo2").text;
2276 }
2277
2278 [ConsoleCommand("")]
2279 public static string ClearLastWishFlag()
2280 {
2281 if (!CheatEnabled())
2282 {
2283 return EnableCheat;
2284 }
2285 EClass.player.doneBackers.Clear();
2286 return Resources.Load<TextAsset>("logo2").text + Environment.NewLine + "Done!";
2287 }
2288
2289 [ConsoleCommand("")]
2290 public static string Resource()
2291 {
2292 if (!CheatEnabled())
2293 {
2294 return EnableCheat;
2295 }
2297 return "Resources spawned.";
2298 }
2299
2300 public void Log(object o)
2301 {
2302 Debug.Log(o);
2303 }
2304
2305 public void NextBGM()
2306 {
2307 if ((bool)SoundManager.current)
2308 {
2309 SoundManager.current.NextBGM();
2310 }
2311 }
2312
2313 public void ToggleRevealMap()
2314 {
2315 revealMap = !revealMap;
2316 if (revealMap)
2317 {
2319 }
2320 SE.ClickGeneral();
2321 }
2322
2323 public void LoadBroadcast()
2324 {
2325 TextAsset textAsset = Resources.Load<TextAsset>("Data/Text/broadcast");
2326 blines = textAsset.text.Split('-');
2327 }
2328
2329 public void BroadcastNext()
2330 {
2331 LoadBroadcast();
2332 if (Input.GetKey(KeyCode.LeftControl))
2333 {
2334 bidx--;
2335 }
2336 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2337 string text = blines[bidx];
2338 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
2339 EClass.pc.SayRaw(text.TrimNewLines());
2340 }
2341}
AnimeID
Definition: AnimeID.cs:2
AttackSource
Definition: AttackSource.cs:2
BlessedState
Definition: BlessedState.cs:2
EAction
Definition: EAction.cs:2
EditorTag
Definition: EditorTag.cs:2
Emo
Definition: Emo.cs:2
Hostility
Definition: Hostility.cs:2
ID_Achievement
PlaceState
Definition: PlaceState.cs:2
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
Definition: UIBook.cs:627
list. Add(item3)
void Activate(Thing t)
static AM_Inspect Inspect
Definition: ActionMode.cs:23
void Deactivate()
Definition: ActionMode.cs:529
virtual bool IsBuildMode
Definition: ActionMode.cs:181
Definition: Anime.cs:6
void WaitForEndOfFrame(Action action)
Definition: BaseCore.cs:61
List< Action > actionsNextFrame
Definition: BaseCore.cs:31
ReleaseMode releaseMode
Definition: BaseCore.cs:23
BaseTileMap tileMap
RenderData rendererInnerBlock
Definition: BaseTileMap.cs:203
Thing thing
Definition: BodySlot.cs:8
static void Init()
Definition: BookList.cs:22
static void Set(CardBlueprint _bp)
static CardBlueprint DebugEQ
GlobalCharaList globalCharas
Definition: CardManager.cs:46
void PlayAnime(AnimeID id, bool force)
Definition: Card.cs:11
float angle
Definition: Card.cs:69
void SetTier(int a, bool setTraits=true)
Definition: Card.cs:3761
Thing TryMakeRandomItem(int lv=-1, TryMakeRandomItemSource itemSource=TryMakeRandomItemSource.Default, Chara crafter=null)
Definition: Card.cs:5204
void Teleport(Point point, bool silent=false, bool force=false)
Definition: Card.cs:5577
void MakeFigureFrom(string id)
Definition: Card.cs:5453
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3639
ElementContainerCard elements
Definition: Card.cs:39
string id
Definition: Card.cs:33
bool HasElement(int ele, int req=1)
Definition: Card.cs:5638
SourceMaterial.Row material
Definition: Card.cs:2013
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5852
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:2994
string c_altName
Definition: Card.cs:1567
Card AddCard(Card c)
Definition: Card.cs:3043
Thing AddThing(string id, int lv=-1)
Definition: Card.cs:3057
Card SetLv(int a)
Definition: Card.cs:2858
string Name
Definition: Card.cs:2099
void AddEditorTag(EditorTag tag)
Definition: Card.cs:2567
Thing SetNum(int a)
Definition: Card.cs:3393
virtual void SetBlessedState(BlessedState s)
Definition: Card.cs:3787
void RecalculateFOV()
Definition: Card.cs:6064
Point pos
Definition: Card.cs:57
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:5886
void Dye(string idMat)
Definition: Card.cs:5708
Trait trait
Definition: Card.cs:51
void ModCurrency(int a, string id="money")
Definition: Card.cs:3853
Thing MakeMilk(bool effect=true, int num=1, bool addToZone=true, BlessedState? state=null)
Definition: Card.cs:5491
void SetEncLv(int a)
Definition: Card.cs:3756
void Destroy()
Definition: Card.cs:4850
bool HasEditorTag(EditorTag tag)
Definition: Card.cs:2562
ThingContainer things
Definition: Card.cs:36
virtual Thing Thing
Definition: Card.cs:2020
BlessedState blessedState
Definition: Card.cs:264
int dir
Definition: Card.cs:144
void ModNum(int a, bool notify=true)
Definition: Card.cs:3413
void SayRaw(string text, string ref1=null, string ref2=null)
Definition: Card.cs:6478
CardRenderer renderer
Definition: Card.cs:59
virtual bool flipX
Definition: Card.cs:2078
int LV
Definition: Card.cs:372
virtual bool isSynced
Definition: Card.cs:2049
Thing MakeEgg(bool effect=true, int num=1, bool addToZone=true, int fertChance=20, BlessedState? state=null)
Definition: Card.cs:5475
TaskDesignation designation
Definition: CellDetail.cs:19
List< Thing > things
Definition: CellDetail.cs:11
List< Chara > charas
Definition: CellDetail.cs:13
Definition: Cell.cs:7
CellDetail detail
Definition: Cell.cs:92
byte obj
Definition: Cell.cs:38
SourceObj.Row sourceObj
Definition: Cell.cs:1072
bool HasObj
Definition: Cell.cs:641
bool HasFullBlock
Definition: Cell.cs:817
override void RefreshSprite()
override void NextDir()
override void NextFrame()
SpriteProvider provider
Definition: CharaActorPCC.cs:9
void AddBodyPart(int ele, Thing thing=null)
Definition: CharaBody.cs:261
void Unequip(Thing thing, bool refresh=true)
Definition: CharaBody.cs:49
List< BodySlot > slots
Definition: CharaBody.cs:8
Thing GetEquippedThing(int elementId)
Definition: CharaBody.cs:378
bool Equip(Thing thing, BodySlot slot=null, bool msg=true)
Definition: CharaBody.cs:182
void RemoveBodyPart(int ele)
Definition: CharaBody.cs:316
static Chara CreateFromFilter(string id, int lv=-1, int levelRange=-1)
Definition: CharaGen.cs:22
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
void ChangeRace(string idNew)
Definition: Chara.cs:2197
void SetHomeZone(Zone zone)
Definition: Chara.cs:1408
CharaBody body
Definition: Chara.cs:94
void SetFaction(Faction f)
Definition: Chara.cs:1401
void InstantEat(Thing t=null, bool sound=true)
Definition: Chara.cs:7201
Condition AddCondition(string id, int p=100, bool force=false)
Definition: Chara.cs:8769
void ModAffinity(Chara c, int a, bool show=true, bool showOnlyEmo=false)
Definition: Chara.cs:7535
override bool IsPC
Definition: Chara.cs:610
Thing MakeBraineCell()
Definition: Chara.cs:7752
SourceJob.Row job
Definition: Chara.cs:464
void SetFeat(int id, int value=1, bool msg=false)
Definition: Chara.cs:9327
void ResetUpgrade()
Definition: Chara.cs:8145
Party party
Definition: Chara.cs:43
SpriteReplacer spriteReplacer
Definition: Chara.cs:152
Chara SetGlobal(Zone _home, int x, int z)
Definition: Chara.cs:1444
override CardRenderer _CreateRenderer()
Definition: Chara.cs:6302
override bool IsPCFaction
Definition: Chara.cs:669
override int MaxHP
Definition: Chara.cs:706
Zone currentZone
Definition: Chara.cs:253
SourceChara.Row source
Definition: Chara.cs:156
Stats mana
Definition: Chara.cs:1136
Stats stamina
Definition: Chara.cs:1128
void ChangeJob(string idNew)
Definition: Chara.cs:2098
void Revive(Point p=null, bool msg=false)
Definition: Chara.cs:4903
Thing MakeGene(DNA.Type? type=null)
Definition: Chara.cs:7747
void ModCorruption(int a)
Definition: Chara.cs:9269
void RestockEquip(bool onCreate)
Definition: Chara.cs:4553
string _alias
Definition: Chara.cs:217
FactionBranch homeBranch
Definition: Chara.cs:1052
bool IsHostile()
Definition: Chara.cs:6193
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Definition: Chara.cs:4168
void EQ_CAT(string s)
Definition: Chara.cs:4843
SourceRace.Row race
Definition: Chara.cs:462
UD_String_MatData matColors
ColorProfile profile
Definition: CoreDebug.cs:69
bool ignoreWeight
Definition: CoreDebug.cs:186
bool marryAnytime
Definition: CoreDebug.cs:223
bool godMode
Definition: CoreDebug.cs:172
bool godFood
Definition: CoreDebug.cs:182
bool allStory
Definition: CoreDebug.cs:238
static string Resource()
Definition: CoreDebug.cs:2290
static string ModKarma(int amount)
Definition: CoreDebug.cs:2119
void Init()
Definition: CoreDebug.cs:327
bool godCraft
Definition: CoreDebug.cs:180
bool debugScatter
Definition: CoreDebug.cs:176
bool skipMod
Definition: CoreDebug.cs:133
bool allBGM
Definition: CoreDebug.cs:198
bool dontCompressSave
Definition: CoreDebug.cs:131
static bool CheatEnabled()
Definition: CoreDebug.cs:1824
StartParty startParty
Definition: CoreDebug.cs:99
bool showSceneSelector
Definition: CoreDebug.cs:108
bool allSkill
Definition: CoreDebug.cs:192
string[] blines
Definition: CoreDebug.cs:280
void Test_Siege()
Definition: CoreDebug.cs:1804
static string Fix_EtherDisease()
Definition: CoreDebug.cs:1877
bool showTone
Definition: CoreDebug.cs:165
bool allPolicy
Definition: CoreDebug.cs:236
bool testFixedColor
Definition: CoreDebug.cs:261
bool naked
Definition: CoreDebug.cs:295
Thing GetDebugContainer()
Definition: CoreDebug.cs:755
IEnumerable< string > ZoneIDs()
Definition: CoreDebug.cs:316
bool allMenu
Definition: CoreDebug.cs:234
void ToggleRevealMap()
Definition: CoreDebug.cs:2313
bool alwaysResetWindow
Definition: CoreDebug.cs:127
bool test
Definition: CoreDebug.cs:169
int indexResolution
Definition: CoreDebug.cs:289
int bidx
Definition: CoreDebug.cs:275
string startZone
Definition: CoreDebug.cs:105
bool logCombat
Definition: CoreDebug.cs:244
DebugHotkey debugHotkeys
Definition: CoreDebug.cs:142
bool inviteAnytime
Definition: CoreDebug.cs:221
static string Fix_RemoveDesignations()
Definition: CoreDebug.cs:1943
bool _godBuild
Definition: CoreDebug.cs:178
void Test_Filter()
Definition: CoreDebug.cs:1774
int numResource
Definition: CoreDebug.cs:216
MatColorTest matColorTest
Definition: CoreDebug.cs:257
Card animeDest
Definition: CoreDebug.cs:272
bool debugInput
Definition: CoreDebug.cs:138
List< DebugCommand > commands
Definition: CoreDebug.cs:282
bool logDice
Definition: CoreDebug.cs:246
bool revealMap
Definition: CoreDebug.cs:153
static string FirstAdventurer()
Definition: CoreDebug.cs:2206
static string ClearLastWishFlag()
Definition: CoreDebug.cs:2279
void Test_Grow()
Definition: CoreDebug.cs:1725
static string Reset_LoytelDebt()
Definition: CoreDebug.cs:1841
bool showFav
Definition: CoreDebug.cs:225
void LoadBroadcast()
Definition: CoreDebug.cs:2323
bool keypadDebug
Definition: CoreDebug.cs:140
bool unlimitedInterest
Definition: CoreDebug.cs:219
static string EnableCheat
Definition: CoreDebug.cs:314
bool travelAnywhere
Definition: CoreDebug.cs:206
static string FlyMode()
Definition: CoreDebug.cs:2141
bool allAbility
Definition: CoreDebug.cs:190
bool instaReturn
Definition: CoreDebug.cs:204
bool ignorePool
Definition: CoreDebug.cs:116
bool alwaysFavFood
Definition: CoreDebug.cs:227
bool useNewConfig
Definition: CoreDebug.cs:123
string command
Definition: CoreDebug.cs:135
void Log(object o)
Definition: CoreDebug.cs:2300
bool showExtra
Definition: CoreDebug.cs:167
bool returnAnywhere
Definition: CoreDebug.cs:202
void SetStartStockpile(Thing container, int num=100)
Definition: CoreDebug.cs:709
static string SetElement(string alias, int value, int potential=100)
Definition: CoreDebug.cs:1978
void ValidateData()
Definition: CoreDebug.cs:834
bool ignoreEncounter
Definition: CoreDebug.cs:200
bool validateData
Definition: CoreDebug.cs:129
static string Spawn(string id, int num=1, string aliasMat="", int objLv=-1)
Definition: CoreDebug.cs:2016
bool runtimeGodBuild
Definition: CoreDebug.cs:298
Emo lastEmo
Definition: CoreDebug.cs:293
void InitDebugCommands()
Definition: CoreDebug.cs:1442
static string GodMode()
Definition: CoreDebug.cs:2096
void COM_MaxConstruction()
Definition: CoreDebug.cs:1816
static string ModFame(int amount)
Definition: CoreDebug.cs:2108
static string Fix_RemoveDemitas()
Definition: CoreDebug.cs:1922
bool validatePref
Definition: CoreDebug.cs:249
bool allHomeSkill
Definition: CoreDebug.cs:194
readonly List< int[]> resolutions
Definition: CoreDebug.cs:265
void COM_Teleport()
Definition: CoreDebug.cs:1751
void COM_PlayStartDrama()
Definition: CoreDebug.cs:1766
static string RegenerateNames()
Definition: CoreDebug.cs:2218
int param1
Definition: CoreDebug.cs:252
void QuickStart()
Definition: CoreDebug.cs:333
void Test_SiegeGuard()
Definition: CoreDebug.cs:1792
void UpdateInput()
Definition: CoreDebug.cs:844
bool enable
Definition: CoreDebug.cs:285
bool ignorePopup
Definition: CoreDebug.cs:159
void LOG_Spatials()
Definition: CoreDebug.cs:1784
bool skipModSync
Definition: CoreDebug.cs:111
int param2
Definition: CoreDebug.cs:255
Color32 fixedColor
Definition: CoreDebug.cs:263
static string Cheat()
Definition: CoreDebug.cs:1834
bool skipEvent
Definition: CoreDebug.cs:161
bool testLOS2
Definition: CoreDebug.cs:149
bool logAdv
Definition: CoreDebug.cs:241
bool autoIdentify
Definition: CoreDebug.cs:188
AnimeID lastAnime
Definition: CoreDebug.cs:291
static string ListThing()
Definition: CoreDebug.cs:1967
bool resetPlayerConfig
Definition: CoreDebug.cs:119
void AddAllRecipes()
Definition: CoreDebug.cs:698
void UpdateAlways()
Definition: CoreDebug.cs:785
bool godBuild
Definition: CoreDebug.cs:303
bool autoAdvanceQuest
Definition: CoreDebug.cs:210
static string AllRecipe(bool forget=false)
Definition: CoreDebug.cs:2243
static string ListChara()
Definition: CoreDebug.cs:1956
int startHour
Definition: CoreDebug.cs:101
static string ChangeJob(string id="?")
Definition: CoreDebug.cs:2189
bool testThingQuality
Definition: CoreDebug.cs:214
void Test_GodTalk()
Definition: CoreDebug.cs:1743
bool allRecipe
Definition: CoreDebug.cs:232
bool bilinear
Definition: CoreDebug.cs:277
StartLoadout startLoadout
Definition: CoreDebug.cs:97
bool skipNerun
Definition: CoreDebug.cs:163
static string ResetPetUpgrades()
Definition: CoreDebug.cs:2072
void EnableDebugResource()
Definition: CoreDebug.cs:767
bool debugHoard
Definition: CoreDebug.cs:155
Thing GetOrCreateDebugContainer()
Definition: CoreDebug.cs:738
bool debugProps
Definition: CoreDebug.cs:151
static string ModContribution(int amount)
Definition: CoreDebug.cs:2130
static string ResetPrincipalSeals()
Definition: CoreDebug.cs:2085
void OnLoad()
Definition: CoreDebug.cs:690
void NextBGM()
Definition: CoreDebug.cs:2305
bool maxQuests
Definition: CoreDebug.cs:229
static string LastWish(string name)
Definition: CoreDebug.cs:2261
static string Fix_LostCore()
Definition: CoreDebug.cs:1900
bool enableMapPieceEditor
Definition: CoreDebug.cs:212
bool revealInner
Definition: CoreDebug.cs:157
bool allArt
Definition: CoreDebug.cs:196
bool testLOS
Definition: CoreDebug.cs:147
static string SpawnBoss(string id)
Definition: CoreDebug.cs:2001
StartSetting startSetting
Definition: CoreDebug.cs:103
bool ignoreAutoSave
Definition: CoreDebug.cs:125
bool boradcast
Definition: CoreDebug.cs:259
static string TestSpawn(int lv, int num, int lvRange=-1)
Definition: CoreDebug.cs:2046
int advanceMin
Definition: CoreDebug.cs:145
void SpawnCheatContainer()
Definition: CoreDebug.cs:781
static string Fix_RemoveDuplicateUnique()
Definition: CoreDebug.cs:1859
bool ignoreBuildRule
Definition: CoreDebug.cs:184
static string ChangeRace(string id="?")
Definition: CoreDebug.cs:2148
void BroadcastNext()
Definition: CoreDebug.cs:2329
bool hidePCItemsInBuild
Definition: CoreDebug.cs:208
Lang.LangCode langCode
Definition: CoreDebug.cs:113
bool randomResource
Definition: CoreDebug.cs:174
bool dontUseThread
Definition: CoreDebug.cs:121
StartScene startScene
Definition: CoreDebug.cs:95
static string RootSave
Definition: CorePath.cs:206
RectData abilityDebug
Definition: CoreRef.cs:168
Rects rects
Definition: CoreRef.cs:359
CoreRef refs
Definition: Core.cs:51
ModManager mods
Definition: Core.cs:39
Steam steam
Definition: Core.cs:57
bool IsGameStarted
Definition: Core.cs:84
void SetLang(string langCode, bool force=false)
Definition: Core.cs:704
static Thing MakeLoveLunch(Chara c)
Definition: CraftUtil.cs:116
static Thing MakeDarkSoup()
Definition: CraftUtil.cs:96
Definition: EClass.cs:5
static Game game
Definition: EClass.cs:8
static Scene scene
Definition: EClass.cs:30
static Faction Home
Definition: EClass.cs:26
static Core core
Definition: EClass.cs:6
static Zone _zone
Definition: EClass.cs:20
static World world
Definition: EClass.cs:40
static Map _map
Definition: EClass.cs:18
static SourceManager sources
Definition: EClass.cs:42
static FactionBranch Branch
Definition: EClass.cs:22
static BaseGameScreen screen
Definition: EClass.cs:32
static Player player
Definition: EClass.cs:12
static Chara pc
Definition: EClass.cs:14
static CoreDebug debug
Definition: EClass.cs:48
static SoundManager Sound
Definition: EClass.cs:46
static UI ui
Definition: EClass.cs:16
Definition: EInput.cs:8
static bool isCtrlDown
Definition: EInput.cs:263
static void Consume(int _skipFrame)
Definition: EInput.cs:656
static bool isInputFieldActive
Definition: EInput.cs:277
static bool isShiftDown
Definition: EInput.cs:261
static EAction action
Definition: EInput.cs:259
static int rnd(int a)
Definition: EScriptable.cs:5
Dictionary< int, Element > dict
Element ModBase(int ele, int v)
Element SetBase(string alias, int v, int potential=0)
Element GetOrCreateElement(Element ele)
int id
Definition: ELEMENT.cs:248
int vBase
Definition: ELEMENT.cs:250
SourceElement.Row source
Definition: ELEMENT.cs:271
int vPotential
Definition: ELEMENT.cs:254
void ModExp(int a)
int GetNextExp(int _lv=-1)
List< Chara > members
void BanishMember(Chara c, bool skipMsg=false)
void AddMemeber(Chara c)
string name
Definition: FACTION.cs:135
void AddReserve(Chara c)
Definition: FACTION.cs:327
void AddContribution(int a)
Definition: FACTION.cs:318
Definition: Fov.cs:6
void AdvanceMin(int a)
Definition: GameDate.cs:22
HashSet< string > modified
void FixedUpdate()
Definition: GameUpdater.cs:436
bool cheat
Definition: Game.cs:54
Definition: Game.cs:8
ReligionManager religions
Definition: Game.cs:158
static void Load(string id, bool cloud)
Definition: Game.cs:313
GamePrincipal principal
Definition: Game.cs:221
static string id
Definition: Game.cs:147
bool Save(bool isAutoSave=false, bool silent=false)
Definition: Game.cs:983
SpatialManager spatials
Definition: Game.cs:152
static void Create(string _id=null, bool cloud=false)
Definition: Game.cs:695
Prologue Prologue
Definition: Game.cs:257
CardManager cards
Definition: Game.cs:155
GameUpdater updater
Definition: Game.cs:243
new World world
Definition: Game.cs:173
Config config
Definition: Game.cs:215
QuestManager quests
Definition: Game.cs:179
void StartNewGame()
Definition: Game.cs:768
Definition: Guild.cs:2
static Guild GetCurrentGuild()
Definition: Guild.cs:41
void ResetHotbar(int id)
Definition: HotbarManager.cs:8
Definition: Lang.cs:6
static string langCode
Definition: Lang.cs:28
LangCode
Definition: Lang.cs:8
static LayerDrama ActivateMain(string idSheet, string idStep=null, Chara target=null, Card ref1=null, string tag="")
Definition: LayerDrama.cs:61
static void SetDirtyAll(bool immediate=false)
static SourceMaterial.Row GetRandomMaterial(int lv, string group=null, bool tryLevelMatTier=false)
Definition: MATERIAL.cs:47
static SourceMaterial.Row sourceWaterSea
Definition: MATERIAL.cs:45
Point GetCenterPos()
Definition: MapBounds.cs:52
static bool Exist(string id)
Definition: MapSubset.cs:17
static void Save(string id)
Definition: MapSubset.cs:22
new void ForeachCell(Action< Cell > action)
Definition: Map.cs:2332
Thing FindThing(Func< Thing, bool > func)
Definition: Map.cs:2578
PropsInstalled Installed
Definition: Map.cs:123
void SetLiquid(int x, int z, CellEffect effect=null)
Definition: Map.cs:1472
PropsRoaming Roaming
Definition: Map.cs:125
List< Thing > things
Definition: Map.cs:49
List< Chara > deadCharas
Definition: Map.cs:46
PropsStocked Stocked
Definition: Map.cs:121
List< Chara > charas
Definition: Map.cs:81
void AddDecal(int x, int z, int id, int amount=1, bool refresh=true)
Definition: Map.cs:2015
void RevealAll(bool reveal=true)
Definition: Map.cs:900
Color main
Definition: MatColors.cs:7
Color alt
Definition: MatColors.cs:9
Material mat
Definition: MeshPass.cs:21
static void Activate(Type type)
Definition: MiniGame.cs:44
Definition: Msg.cs:5
static string SayRaw(string text)
Definition: Msg.cs:113
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
void RemoveMember(Chara c)
Definition: Party.cs:89
List< Chara > members
Definition: Party.cs:18
void AddMemeber(Chara c, bool showMsg=false)
Definition: Party.cs:56
void OnEnableDebug()
Definition: Player.cs:665
int loytelMartLv
Definition: Player.cs:638
Flags flags
Definition: Player.cs:1014
RecipeManager recipes
Definition: Player.cs:1017
void ModFame(int a)
Definition: Player.cs:1997
void ModKarma(int a)
Definition: Player.cs:2408
void RefreshDomain()
Definition: Player.cs:1442
Zone zone
Definition: Player.cs:1002
HashSet< int > doneBackers
Definition: Player.cs:993
HotbarManager hotbars
Definition: Player.cs:1005
Chara TargetChara
Definition: PointTarget.cs:41
Definition: Point.cs:9
List< Card > ListCards(bool includeMasked=false)
Definition: Point.cs:1031
Point Copy()
Definition: Point.cs:479
CellDetail detail
Definition: Point.cs:71
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
bool IsValid
Definition: Point.cs:88
Area area
Definition: Point.cs:73
bool HasFloor
Definition: Point.cs:207
Chara FirstChara
Definition: Point.cs:276
Thing FirstThing
Definition: Point.cs:289
Cell cell
Definition: Point.cs:51
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false)
Definition: Point.cs:607
string idStartZone
Definition: Prologue.cs:7
void Validate()
Definition: Props.cs:445
PropSet all
Definition: Props.cs:8
Quest Add(string id, string idGlobalChara=null)
Definition: QuestManager.cs:29
Quest Start(string id, string idGlobalChara)
Definition: QuestManager.cs:41
Quest Get(string id)
Definition: Quest.cs:7
static List< RecipeSource > list
Definition: RecipeManager.cs:9
Dictionary< string, int > knownRecipes
Dictionary< string, Religion > dictAll
void Talk(string idTalk, Card c=null, Card agent=null)
Definition: Religion.cs:153
Vector3 offset
Definition: RenderData.cs:18
static List< ISyncScreen > syncList
Definition: RenderObject.cs:24
Definition: Scene.cs:8
static Point HitPoint
Definition: Scene.cs:21
GameScreen screenElin
Definition: Scene.cs:93
ActionMode actionMode
Definition: Scene.cs:79
MeshPass[] passes
Definition: Scene.cs:121
PointTarget mouseTarget
Definition: Scene.cs:135
void Init(Mode newMode)
Definition: Scene.cs:178
Mode
Definition: Scene.cs:10
void Next()
Definition: Season.cs:85
SourceMaterial materials
SourceRace races
SourceObj objs
SourceThing things
SourceZone zones
void ImportSourceTexts()
SourceBacker backers
SourceElement elements
SourceChara charas
SourceJob jobs
float height
Definition: SourcePref.cs:51
Zone Find(string id)
int uid
Definition: Spatial.cs:70
Spatial parent
Definition: Spatial.cs:10
virtual string Name
Definition: Spatial.cs:495
Faction mainFaction
Definition: Spatial.cs:430
string id
Definition: Spatial.cs:13
int development
Definition: Spatial.cs:238
virtual Point RegionPos
Definition: Spatial.cs:546
List< Spatial > children
Definition: Spatial.cs:37
static SpawnSetting Boss(int filterLv, int fixedLv=-1)
Definition: SpawnSetting.cs:45
bool HasSprite(string id)
virtual int max
Definition: Stats.cs:68
Definition: Steam.cs:8
SteamworksBehaviour steamworks
Definition: Steam.cs:11
static void GetAchievement(ID_Achievement id)
Definition: Steam.cs:49
void CheckUpdate()
Definition: Steam.cs:30
Thing Find(int uid)
void Foreach(Action< Thing > action, bool onlyAccessible=true)
static Thing CreateBlock(int id, int idMat)
Definition: ThingGen.cs:101
static Thing TestCreate()
Definition: ThingGen.cs:32
static Thing CreateFloor(int id, int idMat, bool platform=false)
Definition: ThingGen.cs:108
static Thing CreateFromCategory(string idCat, int lv=-1)
Definition: ThingGen.cs:75
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
Definition: Thing.cs:8
SourceThing.Row source
Definition: Thing.cs:11
override SourcePref Pref
Definition: Thing.cs:50
bool MoveZone(bool confirmed=false)
static Thing MakeSeed(SourceObj.Row obj, PlantData plant=null)
Definition: TraitSeed.cs:88
static Thing MakeRandomSeed(bool enc=false)
Definition: TraitSeed.cs:187
virtual bool CanStack
Definition: Trait.cs:150
bool TryGetValue(TKey key, out TValue value)
Definition: UDictionary.cs:178
static void TryShowTip(Transform root=null, bool highlight=true, bool ignoreWhenRightClick=true)
Definition: UIButton.cs:778
void SetCondition(Condition condition, int _duration=20, bool silent=false)
Definition: Weather.cs:308
Condition
Definition: Weather.cs:16
Condition CurrentCondition
Definition: Weather.cs:79
void SetRandomCondition()
Definition: Weather.cs:295
void Nerun(string text, string idPortrait="UN_nerun")
Definition: WidgetFeed.cs:93
static WidgetFeed Instance
Definition: WidgetFeed.cs:14
void RebuildPage(int page=-1)
static WidgetHotbar HotbarBuild
Definition: WidgetHotbar.cs:36
static void OnChangeMode()
static WidgetMinimap Instance
Region region
Definition: World.cs:23
GameDate date
Definition: World.cs:6
void ModEther(int a=3)
Definition: World.cs:58
Weather weather
Definition: World.cs:12
int ether
Definition: World.cs:21
Season season
Definition: World.cs:9
void Add(ZoneEvent e, bool allowDuplicate=false)
void Remove(ZoneEvent e)
Definition: Zone.cs:12
Dictionary< int, string > dictCitizen
Definition: Zone.cs:49
ZoneEventManager events
Definition: Zone.cs:40
void ImportDialog(string dir=null)
Definition: Zone.cs:3075
Card AddThing(string id, int x, int z)
Definition: Zone.cs:1915
void ClaimZone(bool debug=false)
Definition: Zone.cs:1691
ElementContainerZone elements
Definition: Zone.cs:43
void ExportDialog(string dir=null)
Definition: Zone.cs:3062
Chara SpawnMob(Point pos=null, SpawnSetting setting=null)
Definition: Zone.cs:2660
MapBounds bounds
Definition: Zone.cs:46
void RemoveCard(Card t)
Definition: Zone.cs:1965
bool IsPCFaction
Definition: Zone.cs:466
void Export(string path, PartialMap partial=null, bool usermap=false)
Definition: Zone.cs:3021
Card AddCard(Card t, Point point)
Definition: Zone.cs:1925