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