Elin Decompiled Documentation EA 23.102 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", 102)).SetNum(10);
449 EClass.pc.AddCard(thing);
450 thing = ThingGen.Create("pouch");
451 for (int l = 0; l < 30; l++)
452 {
454 }
455 EClass.pc.AddCard(thing);
456 thing = ThingGen.Create("coolerbox");
457 for (int m = 0; m < 20; m++)
458 {
459 thing.AddCard(ThingGen.CreateFromCategory("foodstuff").SetNum(EScriptable.rnd(10) + 1));
460 }
461 EClass.pc.AddCard(thing);
462 List<SourceChara.Row> list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara").ToList();
463 thing = ThingGen.Create("pouch");
464 list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara_L").ToList();
465 for (int n = 0; n < 20; n++)
466 {
467 string id2 = list.RandomItem().id;
468 Thing thing3 = ThingGen.Create("figure");
469 thing3.MakeFigureFrom(id2);
470 thing.AddCard(thing3);
471 }
472 EClass.pc.AddCard(thing);
473 thing = ThingGen.Create("pouch");
474 list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara").ToList();
475 for (int num = 0; num < 20; num++)
476 {
477 string id3 = list.RandomItem().id;
478 Thing thing4 = ThingGen.Create("figure3");
479 thing4.MakeFigureFrom(id3);
480 thing.AddCard(thing4);
481 }
482 EClass.pc.AddCard(thing);
483 thing.Dye("oak");
484 thing = ThingGen.Create("pouch");
485 list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara_L").ToList();
486 for (int num2 = 0; num2 < 20; num2++)
487 {
488 string id4 = list.RandomItem().id;
489 Thing thing5 = ThingGen.Create("figure3");
490 thing5.MakeFigureFrom(id4);
491 thing.AddCard(thing5);
492 }
493 EClass.pc.AddCard(thing);
494 thing.Dye("pine");
495 thing = ThingGen.Create("pouch");
496 thing.AddCard(ThingGen.Create("flour").SetNum(10));
497 thing.AddCard(ThingGen.Create("wheat").SetNum(200));
498 thing.AddCard(ThingGen.Create("rice_plant").SetNum(200));
499 thing.AddCard(ThingGen.Create("noodle").SetNum(10));
500 thing.AddCard(ThingGen.Create("rice").SetNum(10));
501 thing.AddCard(ThingGen.Create("dough_cake").SetNum(10));
502 thing.AddCard(ThingGen.Create("dough_bread").SetNum(10));
503 thing.AddCard(ThingGen.Create("salt").SetNum(10));
504 thing.AddCard(ThingGen.Create("sugar").SetNum(10));
505 thing.AddCard(ThingGen.Create("honey").SetNum(10));
506 thing.AddCard(ThingGen.Create("yeast").SetNum(10));
507 thing.AddCard(ThingGen.Create("ketchup").SetNum(10));
508 thing.AddCard(ThingGen.Create("butter").SetNum(10));
509 thing.AddCard(ThingGen.Create("potion_empty").SetNum(10));
510 thing.AddCard(ThingGen.Create("bucket_empty").SetNum(10));
511 thing.AddCard(ThingGen.Create("battery"));
512 EClass.pc.AddCard(thing);
513 thing.Dye("saphire");
514 thing = ThingGen.Create("pouch");
515 thing.AddCard(ThingGen.Create("log").SetNum(99));
516 thing.AddCard(ThingGen.Create("log").SetNum(99).ChangeMaterial("pine"));
517 thing.AddCard(ThingGen.Create("ore").SetNum(99).ChangeMaterial("steel"));
518 thing.AddCard(ThingGen.Create("ore").SetNum(99).ChangeMaterial("copper"));
519 thing.AddCard(ThingGen.Create("ore_gem").SetNum(99).ChangeMaterial("gold"));
520 thing.AddCard(ThingGen.Create("gem").SetNum(99).ChangeMaterial("rubinus"));
521 thing.AddCard(ThingGen.Create("flower_white").SetNum(99));
522 thing.AddCard(ThingGen.Create("bait").SetNum(10));
523 EClass.pc.AddCard(thing);
524 thing.Dye("rubinus");
525 Thing thing6 = ThingGen.Create("quiver");
526 thing6.AddCard(ThingGen.Create("bullet").SetNum(250));
527 thing6.AddCard(ThingGen.Create("arrow").SetNum(250));
528 thing6.AddCard(ThingGen.Create("bolt").SetNum(250));
529 thing6.AddCard(ThingGen.Create("bullet_energy").SetNum(250));
531 thing = ThingGen.Create("backpack");
532 for (int num3 = 0; num3 < 10; num3++)
533 {
534 thing.AddThing("book", lv);
535 thing.AddThing("parchment");
536 thing.AddThing("book_ancient");
537 }
538 EClass.pc.AddCard(thing);
539 thing.Dye("rubinus");
540 thing = ThingGen.Create("backpack");
541 foreach (SourceObj.Row row3 in EClass.sources.objs.rows)
542 {
543 if (row3.tag.Contains("seed"))
544 {
545 Thing c = TraitSeed.MakeSeed(row3).SetNum(10);
546 thing.AddCard(c);
547 }
548 }
549 EClass.pc.AddCard(thing);
550 thing.Dye("silver");
551 thing = ThingGen.Create("pouch");
552 for (int num4 = 0; num4 < 30; num4++)
553 {
554 thing.AddThing((EScriptable.rnd(10) != 0) ? "potion" : "drink", lv).SetNum(99);
555 }
556 EClass.pc.AddCard(thing);
557 thing.Dye("steel");
558 thing = ThingGen.Create("pouch");
559 for (int num5 = 0; num5 < 30; num5++)
560 {
561 thing.AddThing(ThingGen.CreateFromCategory("rod", lv));
562 }
563 EClass.pc.AddCard(thing);
564 thing.Dye("steel");
565 thing = ThingGen.Create("pouch");
566 for (int num6 = 0; num6 < 30; num6++)
567 {
568 thing.AddThing("scroll", lv).SetNum(99);
569 }
570 EClass.pc.AddCard(thing);
571 thing.Dye("steel");
572 thing = ThingGen.Create("pouch");
573 for (int num7 = 0; num7 < 40; num7++)
574 {
575 thing.AddThing("372", 100);
576 }
577 EClass.pc.AddCard(thing);
578 thing.Dye("steel");
579 Thing thing7 = EClass.pc.things.Find("purse");
580 thing7.AddThing("casino_coin").SetNum(30000000);
581 thing7.AddThing("medal").SetNum(1000);
582 thing7.ModCurrency(500, "plat");
583 EClass.pc.AddThing("record");
584 EClass.pc.AddThing("deed").SetNum(5);
585 EClass.pc.AddThing("book_story");
586 EClass.pc.AddThing("book_story_home");
587 EClass.pc.AddThing("book_tutorial");
588 EClass.pc.AddThing("water").SetNum(20).SetBlessedState(BlessedState.Blessed);
590 EClass.pc.AddThing("potion_empty").SetNum(20);
591 EClass.pc.ModCurrency(10000000);
594 Thing thing8 = ThingGen.Create("scroll_random").SetNum(10);
595 thing8.refVal = 8220;
596 EClass.pc.AddCard(thing8);
597 EClass.pc.ModCurrency(50, "money2");
598 AddHotbar("hoe");
599 AddHotbar("shovel");
600 AddHotbar("axe");
601 AddHotbar("pickaxe");
602 AddHotbar("wateringCan");
603 AddHotbar("gun_assault");
604 AddHotbar("hammer");
605 AddHotbar("bow");
606 break;
607 }
608 }
609 EClass.pc.RestockEquip(onCreate: true);
610 EClass.pc.stamina.value = EClass.pc.stamina.max;
611 EClass.pc.mana.value = EClass.pc.mana.max;
612 EClass.pc.hp = EClass.pc.MaxHP;
613 if (EClass.debug.startScene == StartScene.Zone)
614 {
615 EClass._zone.ClaimZone(debug: true);
616 }
617 SoundManager.ignoreSounds = true;
618 EClass.ui.ToggleInventory();
619 SoundManager.ignoreSounds = true;
620 EClass.ui.ToggleAbility();
621 SoundManager.ignoreSounds = false;
622 EClass.ui.layerFloat.GetLayer<LayerAbility>().windows[0].SetRect(EClass.core.refs.rects.abilityDebug);
623 if (allRecipe)
624 {
626 }
627 foreach (Thing thing11 in EClass.pc.things)
628 {
629 thing11.isNew = false;
630 }
633 if (startScene == StartScene.Story_Test)
634 {
635 EClass._zone.ClaimZone(debug: true);
636 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("loytel"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
637 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("farris"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
638 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("kettle"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
639 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("quru"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
640 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("corgon"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
641 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("demitas"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
642 EClass.game.quests.Add("greatDebt");
643 EClass.game.quests.Add("farris_tulip");
644 EClass.game.quests.Add("kettle_join");
645 EClass.game.quests.Add("quru_morning");
646 EClass.game.quests.Add("vernis_gold");
647 EClass.game.quests.Add("quru_sing");
648 EClass.game.quests.Add("quru_past1");
649 EClass.game.quests.Add("quru_past2");
650 EClass.game.quests.Add("pre_debt");
651 EClass.game.quests.Add("exile_meet");
652 EClass.game.quests.Add("exile_quru");
653 EClass.game.quests.Add("exile_kettle");
654 EClass.game.quests.Add("exile_whisper");
655 EClass.game.quests.Add("exile_voice");
656 EClass.game.quests.Add("into_darkness");
657 EClass.game.quests.Add("demitas_spellwriter");
658 }
659 static Thing AddAbility(string id)
660 {
661 Thing thing9 = EClass.pc.AddThing(ThingGen.Create("catalyst"));
662 thing9.c_idAbility = id;
663 return thing9;
664 }
665 Thing AddHotbar(string id)
666 {
667 Thing thing10 = EClass.pc.AddThing(ThingGen.Create(id));
668 thing10.invX = idx;
669 thing10.invY = 1;
670 idx++;
671 return thing10;
672 }
673 void AddParty(string id)
674 {
675 Chara chara = CharaGen.Create(id);
676 chara.SetFaction(EClass.Home);
677 chara.SetHomeZone(homeZone);
678 if (chara.currentZone != EClass._zone)
679 {
680 EClass._zone.AddCard(chara, EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false));
681 }
682 EClass.pc.party.AddMemeber(chara);
683 }
684 }
685
686 public void OnLoad()
687 {
688 if (allRecipe)
689 {
691 }
692 }
693
694 public void AddAllRecipes()
695 {
697 {
698 if (!EClass.player.recipes.knownRecipes.ContainsKey(item.id))
699 {
701 }
702 }
703 }
704
705 public void SetStartStockpile(Thing container, int num = 100)
706 {
707 LittlePopper.skipPop = true;
708 foreach (SourceMaterial.Row row in EClass.sources.materials.rows)
709 {
710 if (!(row.alias == "void") && (!randomResource || EScriptable.rnd(4) == 0))
711 {
712 row.CreateByProduct(container, num);
713 }
714 }
715 foreach (SourceThing.Row row2 in EClass.sources.things.rows)
716 {
717 if ((row2.factory.IsEmpty() || !(row2.factory[0] == "x")) && !row2.isOrigin && row2.Category.tag.Contains("debug"))
718 {
719 Thing thing = ThingGen.Create(row2.id);
720 if (thing.trait.CanStack)
721 {
722 thing.ModNum(num);
723 }
724 container.AddThing(thing);
725 }
726 }
727 for (int i = 0; i < 10; i++)
728 {
729 container.AddThing(TraitSeed.MakeRandomSeed());
730 }
731 LittlePopper.skipPop = false;
732 }
733
735 {
736 foreach (Thing thing2 in EClass._map.things)
737 {
738 if (thing2.c_altName == "DebugContainer")
739 {
740 return thing2;
741 }
742 }
743 Thing thing = EClass._zone.AddThing("barrel", EClass.pc.pos).Thing;
744 thing.ChangeMaterial("obsidian");
745 thing.c_altName = "DebugContainer";
746 thing.isNPCProperty = false;
747 thing.SetPlaceState(PlaceState.installed);
748 return thing;
749 }
750
752 {
753 foreach (Thing thing in EClass._map.things)
754 {
755 if (thing.c_altName == "DebugContainer")
756 {
757 return thing;
758 }
759 }
760 return null;
761 }
762
764 {
767 enable = true;
768 if ((bool)WidgetHotbar.HotbarBuild)
769 {
771 }
773 Thing orCreateDebugContainer = GetOrCreateDebugContainer();
774 SetStartStockpile(orCreateDebugContainer, numResource);
775 }
776
778 {
779 }
780
781 public void UpdateAlways()
782 {
783 if (!EClass.debug.enable || (bool)EClass.ui.GetLayer<LayerConsole>())
784 {
785 return;
786 }
787 if (Input.GetKeyDown(KeyCode.B))
788 {
790 }
791 if (Input.GetKeyDown(KeyCode.O))
792 {
794 }
795 if (Input.GetKeyDown(KeyCode.P))
796 {
798 }
799 if (Input.GetKeyDown(KeyCode.F11))
800 {
801 if (Application.isEditor)
802 {
803 EClass.core.SetLang((Lang.langCode == "EN") ? "JP" : "EN");
804 }
805 else
806 {
808 }
809 NewsList.dict = null;
810 BookList.dict = null;
811 BookList.Init();
812 }
814 {
815 if (Input.GetKeyDown(KeyCode.U))
816 {
818 Msg.SayRaw(offset.ToString() ?? "");
819 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
820 }
821 if (Input.GetKeyDown(KeyCode.I))
822 {
824 Msg.SayRaw(offset.ToString() ?? "");
825 EClass.screen.tileMap.rendererInnerBlock.offset = new Vector3(0f, 0.54f, -0.5f);
826 }
827 }
828 }
829
830 public void ValidateData()
831 {
833 {
837 }
838 }
839
840 public void UpdateInput()
841 {
842 if (!debugInput || EInput.isInputFieldActive || (bool)EClass.ui.GetLayer<LayerConsole>())
843 {
844 return;
845 }
846 bool key = Input.GetKey(KeyCode.LeftShift);
847 bool key2 = Input.GetKey(KeyCode.LeftAlt);
848 bool key3 = Input.GetKey(KeyCode.LeftControl);
849 TraitStairs traitStairs = null;
850 if (Input.GetKeyDown(KeyCode.KeypadPlus))
851 {
852 traitStairs = EClass._map.FindThing<TraitStairsDown>();
853 }
854 if (Input.GetKeyDown(KeyCode.KeypadMinus))
855 {
856 traitStairs = EClass._map.FindThing<TraitStairsUp>();
857 }
858 traitStairs?.MoveZone();
859 if (EInput.action == EAction.ShowGrid)
860 {
861 EClass.ui.Find("_Guide").ToggleActive();
862 }
863 if (Input.GetKey(KeyCode.N))
864 {
865 if (key)
866 {
867 SoundManager.current.sourceBGM.pitch = 10f;
868 }
869 if (key3)
870 {
871 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
872 }
873 }
874 else if (Input.GetKeyUp(KeyCode.N))
875 {
876 SoundManager.current.sourceBGM.pitch = 1f;
877 }
879 {
880 string text = "festival";
881 if (Input.GetKeyDown(KeyCode.F1))
882 {
883 EClass.ui.AddLayer<LayerDebug>();
884 }
885 if (Input.GetKeyDown(KeyCode.F2))
886 {
887 Zone.forceRegenerate = true;
889 EClass.scene.Init(Scene.Mode.Zone);
891 SE.MoveZone();
892 }
893 if (Input.GetKeyDown(KeyCode.F4))
894 {
895 if (!MapSubset.Exist(text))
896 {
897 SE.Beep();
898 return;
899 }
900 Zone.forceRegenerate = true;
901 Zone.forceSubset = text;
903 EClass.scene.Init(Scene.Mode.Zone);
905 SE.MoveZone();
906 EClass.ui.Say("Loaded Subset");
907 }
908 if (Input.GetKeyDown(KeyCode.F5))
909 {
910 MapSubset.Save(text);
911 SE.WriteJournal();
912 EClass.ui.Say("Exported Subset");
913 }
914 return;
915 }
916 if (Input.GetKeyDown(KeyCode.F1))
917 {
918 EClass.ui.AddLayer<LayerDebug>();
919 Debug.Log(EClass._zone);
920 Debug.Log(EClass._zone.id + "/" + EClass._zone.parent);
922 }
923 if (Input.GetKeyDown(KeyCode.F2))
924 {
926 if (targetChara != null)
927 {
928 EClass.pc.Pick(targetChara.MakeMilk());
929 EClass.pc.Pick(targetChara.MakeGene());
930 EClass.pc.Pick(targetChara.MakeBraineCell());
931 EClass.pc.Pick(targetChara.MakeEgg(effect: true, 10));
932 }
933 if (EClass.game.quests.Get<QuestDebt>() == null)
934 {
935 Chara chara = CharaGen.Create("loytel");
937 chara.SetGlobal();
938 Quest q = EClass.game.quests.Add("debt", "loytel");
941 Hostility hostility2 = (chara.c_originalHostility = Hostility.Ally);
942 chara.hostility = hostility2;
943 }
944 return;
945 }
946 if (Input.GetKeyDown(KeyCode.F3))
947 {
949 for (int i = 0; i < 10; i++)
950 {
951 Thing thing = ThingGen.Create("egg_fertilized");
952 thing.TryMakeRandomItem(40);
953 thing.SetEncLv(200);
954 EClass.pc.Pick(thing);
955 }
956 foreach (Chara deadChara in EClass._map.deadCharas)
957 {
958 Debug.Log(deadChara);
959 }
962 Msg.Say("loytelmart:" + EClass.player.flags.loytelMartLv);
963 Guild.Fighter.relation.rank = 20;
964 Guild.Mage.relation.rank = 20;
965 Guild.Thief.relation.rank = 20;
966 Guild.Merchant.relation.rank = 20;
967 if (EClass.Branch != null)
968 {
970 }
971 foreach (Chara chara2 in EClass._map.charas)
972 {
973 chara2.AddExp(chara2.ExpToNext);
974 }
975 EClass.pc.PlayEffect("boost");
976 EClass.pc.PlaySound("boost");
977 EClass.pc.elements.SetBase(306, 100);
978 EClass.pc.elements.SetBase(85, 100);
979 EClass.pc.feat += 10;
980 EClass.player.totalFeat += 10;
981 return;
982 }
983 if (Input.GetKeyDown(KeyCode.F4))
984 {
986 return;
987 }
988 if (Input.GetKeyDown(KeyCode.F5))
989 {
990 string text2 = (Input.GetKey(KeyCode.LeftControl) ? "quick3" : (Input.GetKey(KeyCode.LeftShift) ? "quick2" : "quick"));
991 if (text2 != Game.id)
992 {
993 IO.DeleteDirectory(CorePath.RootSave + text2);
994 IO.CopyAll(CorePath.RootSave + Game.id, CorePath.RootSave + text2);
995 Game.id = text2;
996 }
997 EClass.game.isCloud = false;
998 EClass.game.Save();
999 }
1000 if (Input.GetKeyDown(KeyCode.F6))
1001 {
1003 {
1004 string id = (Input.GetKey(KeyCode.LeftControl) ? "quick3" : (Input.GetKey(KeyCode.LeftShift) ? "quick2" : "quick"));
1005 EClass.scene.Init(Scene.Mode.None);
1006 Game.Load(id, cloud: false);
1007 });
1008 }
1009 if (Input.GetKeyDown(KeyCode.F7))
1010 {
1011 MiniGame.Activate(MiniGame.Type.Scratch);
1012 return;
1013 }
1014 if (Input.GetKeyDown(KeyCode.F8))
1015 {
1016 SE.Click();
1018 runtimeGodBuild = true;
1021 }
1022 if (key3)
1023 {
1024 if (Input.GetKeyDown(KeyCode.F9))
1025 {
1027 if (indexResolution >= resolutions.Count)
1028 {
1029 indexResolution = 0;
1030 }
1031 int[] array = resolutions[indexResolution];
1032 int width = array[0];
1033 int height = array[1];
1034 Screen.SetResolution(width, height, key);
1035 WidgetFeed.Instance?.Nerun(width + "/" + height);
1036 }
1037 if (Input.GetKeyDown(KeyCode.F10))
1038 {
1039 int width2 = Screen.width;
1040 int height2 = width2 / 16 * 9;
1041 Screen.SetResolution(width2, height2, key);
1042 WidgetFeed.Instance?.Nerun(width2 + "/" + height2);
1043 }
1044 }
1045 else
1046 {
1047 Input.GetKeyDown(KeyCode.F9);
1048 if (Input.GetKey(KeyCode.F9))
1049 {
1050 EClass.scene.paused = false;
1051 for (int j = 0; j < advanceMin; j++)
1052 {
1054 }
1056 }
1057 if (Input.GetKeyDown(KeyCode.F10))
1058 {
1059 switch (EScriptable.rnd(5))
1060 {
1061 case 0:
1063 break;
1064 case 1:
1066 break;
1067 case 2:
1069 break;
1070 default:
1072 break;
1073 }
1074 }
1075 }
1076 if (Input.GetKeyDown(KeyCode.N) && !EInput.isShiftDown && !EInput.isCtrlDown)
1077 {
1078 EClass.Sound.NextBGM();
1079 }
1080 if (Input.GetKeyDown(KeyCode.Tab))
1081 {
1082 if (key)
1083 {
1084 EClass.ui.AddLayer<LayerConsole>();
1085 }
1086 else
1087 {
1088 EClass.ui.widgets.Toggle("Debug");
1089 }
1090 }
1091 Point hitPoint = Scene.HitPoint;
1092 if (!hitPoint.IsValid || EClass.ui.IsActive)
1093 {
1094 return;
1095 }
1096 if (hitPoint.detail != null)
1097 {
1098 _ = hitPoint.area;
1099 }
1100 if (hitPoint.detail?.things == null)
1101 {
1102 new List<Thing>();
1103 }
1104 if (hitPoint.detail?.charas == null)
1105 {
1106 new List<Chara>();
1107 }
1108 List<Card> list = hitPoint.ListCards();
1109 if (Input.GetMouseButtonDown(2))
1110 {
1111 if (EClass.core.releaseMode != 0)
1112 {
1113 if (key)
1114 {
1115 EClass._zone.SpawnMob(hitPoint);
1116 }
1117 else if (key3)
1118 {
1119 EClass._zone.SpawnMob(hitPoint);
1120 }
1121 else if (key2)
1122 {
1123 EClass._zone.SpawnMob(hitPoint);
1124 }
1125 }
1126 return;
1127 }
1128 if (key2)
1129 {
1130 if (Input.GetMouseButtonDown(0))
1131 {
1132 foreach (Card item in list)
1133 {
1134 Debug.Log(item.Name + "/" + item.dir + "/" + item.flipX + "/" + item.angle);
1135 }
1136 }
1137 if (Input.GetMouseButtonDown(1))
1138 {
1139 if (key)
1140 {
1141 EClass._map.charas.ForeachReverse(delegate(Chara c)
1142 {
1143 if (c.IsHostile(EClass.pc))
1144 {
1145 c.DamageHP(9999999, AttackSource.Finish, EClass.pc);
1146 }
1147 });
1148 }
1149 else if (hitPoint.detail != null)
1150 {
1151 for (int num = hitPoint.detail.charas.Count - 1; num >= 0; num--)
1152 {
1153 hitPoint.detail.charas[num].DamageHP(9999999, AttackSource.Finish, EClass.pc);
1154 }
1155 }
1156 EInput.Consume();
1157 }
1158 }
1159 if (Input.GetKeyDown(KeyCode.Delete))
1160 {
1161 if (Input.GetKey(KeyCode.RightControl))
1162 {
1163 return;
1164 }
1165 if (key)
1166 {
1167 foreach (Card item2 in EClass._map.Roaming.all)
1168 {
1169 EClass._zone.RemoveCard(item2);
1170 }
1171 }
1172 else if (hitPoint.detail != null)
1173 {
1174 for (int num2 = hitPoint.detail.things.Count - 1; num2 >= 0; num2--)
1175 {
1176 hitPoint.detail.things[num2].Destroy();
1177 }
1178 if (hitPoint.detail != null)
1179 {
1180 for (int num3 = hitPoint.detail.charas.Count - 1; num3 >= 0; num3--)
1181 {
1182 hitPoint.detail.charas[num3].Destroy();
1183 }
1184 }
1185 }
1186 }
1187 if (Input.GetKeyDown(KeyCode.End) && hitPoint.detail != null)
1188 {
1189 for (int num4 = hitPoint.detail.things.Count - 1; num4 >= 0; num4--)
1190 {
1191 Thing thing2 = hitPoint.detail.things[num4];
1192 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));
1193 }
1194 }
1195 if (!Application.isEditor)
1196 {
1197 return;
1198 }
1199 switch (debugHotkeys)
1200 {
1201 case DebugHotkey.Anime:
1202 {
1203 int num5 = -1;
1204 if (Input.GetKeyDown(KeyCode.Alpha0))
1205 {
1206 num5 = 0;
1207 }
1208 if (Input.GetKeyDown(KeyCode.Alpha1))
1209 {
1210 num5 = 1;
1211 }
1212 if (Input.GetKeyDown(KeyCode.Alpha2))
1213 {
1214 num5 = 2;
1215 }
1216 if (Input.GetKeyDown(KeyCode.Alpha3))
1217 {
1218 num5 = 3;
1219 }
1220 if (Input.GetKeyDown(KeyCode.Alpha4))
1221 {
1222 num5 = 4;
1223 }
1224 if (Input.GetKeyDown(KeyCode.Alpha5))
1225 {
1226 num5 = 5;
1227 }
1228 if (Input.GetKeyDown(KeyCode.Alpha6))
1229 {
1230 num5 = 6;
1231 }
1232 if (Input.GetKeyDown(KeyCode.Alpha7))
1233 {
1234 num5 = 7;
1235 }
1236 if (Input.GetKeyDown(KeyCode.Alpha8))
1237 {
1238 num5 = 8;
1239 }
1240 if (Input.GetKeyDown(KeyCode.Alpha9))
1241 {
1242 num5 = 9;
1243 }
1244 if (num5 == -1)
1245 {
1246 break;
1247 }
1248 foreach (Card item3 in hitPoint.ListCards())
1249 {
1250 item3.renderer.PlayAnime(num5.ToEnum<AnimeID>());
1251 }
1252 Debug.Log(num5.ToEnum<AnimeID>());
1253 break;
1254 }
1255 case DebugHotkey.Block:
1256 if (Input.GetKeyDown(KeyCode.Alpha1))
1257 {
1258 EClass._map.SetLiquid(hitPoint.x, hitPoint.z, 1, 9);
1259 }
1260 if (Input.GetKeyDown(KeyCode.Alpha2))
1261 {
1262 EClass._map.SetLiquid(hitPoint.x, hitPoint.z, 2, 9);
1263 }
1264 break;
1265 case DebugHotkey.Item:
1266 if (Input.GetKeyDown(KeyCode.Alpha1))
1267 {
1268 Thing thing3 = ThingGen.Create("stairsDown_cave");
1269 EClass._zone.AddCard(thing3, EClass.pc.pos);
1270 thing3.SetPlaceState(PlaceState.installed);
1271 }
1272 if (Input.GetKeyDown(KeyCode.Alpha2))
1273 {
1274 Thing thing4 = ThingGen.Create("stairs");
1275 EClass._zone.AddCard(thing4, EClass.pc.pos);
1276 thing4.SetPlaceState(PlaceState.installed);
1277 }
1278 if (Input.GetKeyDown(KeyCode.Alpha3))
1279 {
1280 Thing thing5 = ThingGen.Create("sign");
1281 EClass._zone.AddCard(thing5, hitPoint);
1282 thing5.SetPlaceState(PlaceState.installed);
1283 }
1284 if (Input.GetKeyDown(KeyCode.Alpha4))
1285 {
1286 Thing thing6 = ThingGen.Create("sign2");
1287 EClass._zone.AddCard(thing6, hitPoint);
1288 thing6.SetPlaceState(PlaceState.installed);
1289 }
1290 if (Input.GetKeyDown(KeyCode.Alpha5))
1291 {
1292 Thing thing7 = ThingGen.Create("well");
1293 EClass._zone.AddCard(thing7, hitPoint);
1294 thing7.SetPlaceState(PlaceState.installed);
1295 }
1296 if (Input.GetKeyDown(KeyCode.Alpha6))
1297 {
1298 Thing thing8 = ThingGen.Create("altar");
1299 EClass._zone.AddCard(thing8, hitPoint);
1300 thing8.SetPlaceState(PlaceState.installed);
1301 }
1302 if (Input.GetKeyDown(KeyCode.Alpha7))
1303 {
1304 Thing t = ThingGen.Create("torch");
1305 EClass._zone.AddCard(t, hitPoint);
1306 }
1307 if (Input.GetKeyDown(KeyCode.Alpha8))
1308 {
1309 Thing t2 = ThingGen.Create("street_lamp");
1310 EClass._zone.AddCard(t2, hitPoint);
1311 }
1312 if (Input.GetKeyDown(KeyCode.Alpha9))
1313 {
1314 Thing t3 = ThingGen.Create("statue_elin");
1315 EClass._zone.AddCard(t3, hitPoint);
1316 }
1317 if (Input.GetKeyDown(KeyCode.Alpha0))
1318 {
1319 Thing t4 = ThingGen.TestCreate();
1320 EClass._zone.AddCard(t4, hitPoint);
1321 }
1322 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1323 {
1324 Chara t5 = CharaGen.Create("korgon");
1325 EClass._zone.AddCard(t5, hitPoint);
1326 }
1327 break;
1328 case DebugHotkey.Decal:
1329 if (Input.GetKeyDown(KeyCode.Alpha1))
1330 {
1331 EClass._map.AddDecal(hitPoint.x, hitPoint.z, EClass.pc.material.decal);
1332 }
1333 if (!Input.GetKeyDown(KeyCode.Alpha2))
1334 {
1335 }
1336 break;
1337 case DebugHotkey.Test:
1338 if (Input.GetKeyDown(KeyCode.Alpha1))
1339 {
1340 QualitySettings.vSyncCount = 0;
1341 Application.targetFrameRate = 60;
1342 }
1343 if (Input.GetKeyDown(KeyCode.Alpha2))
1344 {
1345 QualitySettings.vSyncCount = 0;
1346 Application.targetFrameRate = 20;
1347 }
1348 if (Input.GetKeyDown(KeyCode.Alpha3))
1349 {
1350 QualitySettings.vSyncCount = 0;
1351 Application.targetFrameRate = 30;
1352 }
1353 if (Input.GetKeyDown(KeyCode.Alpha4))
1354 {
1355 QualitySettings.vSyncCount = 0;
1356 Application.targetFrameRate = 40;
1357 }
1358 break;
1359 }
1360 Card card = (Card)(((object)hitPoint.FirstChara) ?? ((object)hitPoint.FirstThing));
1361 if (card == null)
1362 {
1363 return;
1364 }
1365 CharaActorPCC charaActorPCC = (card.renderer.actor as CharaActor) as CharaActorPCC;
1366 if ((bool)charaActorPCC)
1367 {
1368 if (Input.GetKeyDown(KeyCode.Keypad0))
1369 {
1370 charaActorPCC.NextFrame();
1371 charaActorPCC.RefreshSprite();
1372 }
1373 if (Input.GetKeyDown(KeyCode.Keypad1))
1374 {
1375 charaActorPCC.NextDir();
1376 card.angle = charaActorPCC.provider.angle;
1377 charaActorPCC.RefreshSprite();
1378 }
1379 if (Input.GetKeyDown(KeyCode.Keypad2))
1380 {
1381 charaActorPCC.pcc.data.Randomize();
1382 charaActorPCC.provider.Rebuild();
1383 }
1384 }
1385 if (Input.GetKeyDown(KeyCode.Keypad4))
1386 {
1387 lastEmo = lastEmo.NextEnum();
1388 card.ShowEmo();
1389 card.ShowEmo(lastEmo);
1390 }
1391 if (Input.GetKeyDown(KeyCode.Keypad5))
1392 {
1393 card.ShowEmo();
1394 card.ShowEmo(lastEmo);
1395 }
1396 if (Input.GetKeyDown(KeyCode.Keypad7))
1397 {
1398 lastAnime = lastAnime.NextEnum();
1399 card.renderer.PlayAnime(lastAnime);
1400 }
1401 if (Input.GetKeyDown(KeyCode.Keypad8))
1402 {
1403 card.renderer.PlayAnime(lastAnime);
1404 animeDest = card;
1405 }
1406 if (Input.GetKeyDown(KeyCode.Keypad9))
1407 {
1408 card.renderer.PlayAnime(AnimeID.Attack, animeDest);
1409 }
1410 }
1411
1412 public void InitDebugCommands()
1413 {
1414 commands.Clear();
1415 int cat2 = 0;
1416 Add(cat2, "Save Widgets", delegate
1417 {
1418 EClass.ui.widgets.Save();
1419 });
1420 Add(cat2, "Save Widgets(Dialog)", delegate
1421 {
1422 EClass.ui.widgets.DialogSave();
1423 });
1424 Add(cat2, "Export Zone", delegate
1425 {
1427 });
1428 Add(cat2, "Export Zone(Dialog)", delegate
1429 {
1431 });
1432 Add(0, "Import Zone(Dialog)", delegate
1433 {
1435 });
1436 Add(cat2, "Validate Backer Contents", delegate
1437 {
1438 foreach (SourceBacker.Row row2 in EClass.sources.backers.rows)
1439 {
1440 if (row2.valid)
1441 {
1442 switch (row2.type)
1443 {
1444 case 1:
1445 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1446 {
1447 Debug.Log(row2.id + "/remain/" + row2.Name + "/" + row2.loot);
1448 }
1449 break;
1450 case 4:
1451 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1452 {
1453 Debug.Log(row2.id + "/pet/" + row2.Name + "/" + row2.chara);
1454 }
1455 break;
1456 case 6:
1457 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLower()))
1458 {
1459 Debug.Log(row2.id + "/" + row2.Name + "/follower/" + row2.deity);
1460 }
1461 break;
1462 }
1463 }
1464 }
1465 });
1466 Add(cat2, "Edit PCC", delegate
1467 {
1468 EClass.ui.AddLayer<LayerEditPCC>().Activate(EClass.pc, UIPCC.Mode.Full);
1469 });
1470 Add(cat2, "COM_Teleport", COM_Teleport);
1471 Add(cat2, "LOG_Spatials", LOG_Spatials);
1472 Add(cat2, "Play Start Drama", COM_PlayStartDrama);
1473 Add(cat2, "Fix Floating Items", delegate
1474 {
1475 foreach (Thing thing in EClass._map.things)
1476 {
1477 if (thing.Pref.Float)
1478 {
1479 thing.isFloating = true;
1480 }
1481 }
1482 });
1483 cat2 = 1;
1484 Add(cat2, "Add Conditions", delegate
1485 {
1486 if (EScriptable.rnd(2) == 0)
1487 {
1488 EClass.pc.AddCondition<ConWet>();
1489 }
1490 else
1491 {
1492 EClass.pc.AddCondition<ConSuffocation>();
1493 }
1494 if (EScriptable.rnd(2) == 0)
1495 {
1496 EClass.pc.AddCondition<ConPoison>();
1497 }
1498 else
1499 {
1500 EClass.pc.AddCondition<ConDisease>();
1501 }
1502 });
1503 cat2 = 2;
1504 Add(cat2, "Max Construction", COM_MaxConstruction);
1505 Add(cat2, "Add Reserves", delegate
1506 {
1507 EClass.Home.AddReserve(CharaGen.Create("merc_archer"));
1509 EClass.Home.AddReserve(CharaGen.Create("bartender"));
1510 EClass.Home.AddReserve(CharaGen.Create("merchant"));
1514 });
1515 Add(cat2, "Add Recruits", delegate
1516 {
1517 if (EClass.Branch != null)
1518 {
1519 EClass.Branch.AddRecruit(CharaGen.Create("merc_archer"));
1520 EClass.Branch.AddRecruit(CharaGen.Create("healer"));
1521 EClass.Branch.AddRecruit(CharaGen.Create("bartender"));
1522 EClass.Branch.AddRecruit(CharaGen.Create("merchant"));
1523 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter("c_wilds"));
1524 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter("c_wilds"));
1525 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter("c_wilds"));
1526 }
1527 });
1528 Add(cat2, "Add Resources", delegate
1529 {
1530 if (EClass.Branch != null)
1531 {
1532 EClass.Branch.resources.food.Mod(100);
1533 EClass.Branch.resources.knowledge.Mod(100);
1534 }
1535 });
1536 Add(cat2, "Add Influence", delegate
1537 {
1538 EClass._zone.influence += 100;
1539 });
1540 Add(cat2, "Reroll Hobbies", delegate
1541 {
1542 foreach (Chara chara in EClass._map.charas)
1543 {
1544 chara.RerollHobby();
1545 }
1546 });
1547 Add(cat2, "Test_Siege", Test_Siege);
1548 Add(cat2, "Test_SiegeGuard", Test_SiegeGuard);
1549 Add(cat2, "Log_BranchMembers", delegate
1550 {
1552 {
1553 Debug.Log(EClass.Branch.members.Count);
1554 foreach (Chara member in EClass.Branch.members)
1555 {
1556 EClass.debug.Log(member);
1557 }
1558 }
1559 });
1560 cat2 = 3;
1561 Add(cat2, "Weather.Fine", delegate
1562 {
1564 });
1565 Add(cat2, "Weather.Blossom", delegate
1566 {
1568 });
1569 Add(cat2, "Weather.Random", delegate
1570 {
1572 });
1573 Add(cat2, "Weather.Ether+50", delegate
1574 {
1575 EClass.world.ModEther(50);
1577 });
1578 Add(cat2, "Season.Next", delegate
1579 {
1581 });
1582 Add(cat2, "Unreveal Map", delegate
1583 {
1584 EClass._map.ForeachCell(delegate(Cell c)
1585 {
1586 c.isSeen = false;
1587 });
1589 });
1590 Add(cat2, "Test_GodTalk", Test_GodTalk);
1591 Add(cat2, "Test_Filter", Test_Filter);
1592 Add(cat2, "Test_Grow", Test_Grow);
1593 Add(cat2, "Turn On All Lights", delegate
1594 {
1595 foreach (Thing thing2 in EClass._map.things)
1596 {
1597 if (thing2.trait.IsLighting)
1598 {
1599 thing2.trait.Toggle(on: true);
1600 }
1601 }
1602 });
1603 Add(cat2, "Reset All Custom Lights", delegate
1604 {
1605 foreach (Thing thing3 in EClass._map.things)
1606 {
1607 thing3.c_lightColor = 0;
1608 thing3.RecalculateFOV();
1609 }
1610 });
1611 Add(cat2, "Reset All obj materials", delegate
1612 {
1613 EClass._map.ForeachCell(delegate(Cell c)
1614 {
1615 if (c.HasObj)
1616 {
1617 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1618 }
1619 });
1620 });
1621 Add(cat2, "Fix Floors under Blocks", delegate
1622 {
1623 EClass._map.ForeachCell(delegate(Cell c)
1624 {
1625 if (c.HasFullBlock)
1626 {
1627 SourceBlock.Row sourceBlock = c.sourceBlock;
1628 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1629 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1630 }
1631 });
1632 });
1633 Add(cat2, "Bless Inventory", delegate
1634 {
1635 EClass.pc.things.Foreach(delegate(Thing t)
1636 {
1637 t.SetBlessedState(BlessedState.Blessed);
1638 });
1639 });
1640 Add(cat2, "Curse Inventory", delegate
1641 {
1642 EClass.pc.things.Foreach(delegate(Thing t)
1643 {
1644 t.SetBlessedState(BlessedState.Cursed);
1645 });
1646 });
1647 Add(cat2, "List Global Charas", delegate
1648 {
1649 foreach (KeyValuePair<int, Chara> globalChara in EClass.game.cards.globalCharas)
1650 {
1651 Debug.Log(globalChara.Key + "/" + globalChara.Value.Name + "/" + ((globalChara.Value.currentZone == null) ? "NULL" : globalChara.Value.currentZone.Name) + "/" + globalChara.Value.faction?.ToString() + "/" + globalChara.Value.homeBranch);
1652 }
1653 });
1654 Add(cat2, "List Global Charas In Zone", delegate
1655 {
1656 foreach (KeyValuePair<int, Chara> globalChara2 in EClass.game.cards.globalCharas)
1657 {
1658 if (globalChara2.Value.currentZone == EClass._zone)
1659 {
1660 Debug.Log(globalChara2.Key + "/" + globalChara2.Value);
1661 }
1662 }
1663 });
1664 Add(cat2, "List Citizen", delegate
1665 {
1666 foreach (KeyValuePair<int, string> p in EClass._zone.dictCitizen)
1667 {
1668 Debug.Log(p.Value);
1669 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1670 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1671 }
1672 });
1673 void Add(int cat, string id, Action action)
1674 {
1675 DebugCommand item = new DebugCommand
1676 {
1677 name = id,
1678 action = action,
1679 cat = cat
1680 };
1681 commands.Add(item);
1682 }
1683 }
1684
1685 public void Test_Grow()
1686 {
1687 EClass._map.ForeachCell(delegate(Cell c)
1688 {
1689 if (c.sourceObj.HasGrowth)
1690 {
1691 c.TryGrow();
1692 }
1693 });
1694 foreach (Thing item in EClass._map.things.Copy())
1695 {
1696 if (item.trait is TraitSeed traitSeed)
1697 {
1698 traitSeed.TrySprout(force: true);
1699 }
1700 }
1701 }
1702
1703 public void Test_GodTalk()
1704 {
1705 foreach (Religion value in EClass.game.religions.dictAll.Values)
1706 {
1707 value.Talk("test");
1708 }
1709 }
1710
1711 public void COM_Teleport()
1712 {
1713 for (int i = 0; i < 10000; i++)
1714 {
1715 Point point = EClass.pc.pos.Copy();
1716 point.x += EScriptable.rnd(60) - EScriptable.rnd(60);
1717 point.z += EScriptable.rnd(60) - EScriptable.rnd(60);
1718 if (point.IsValid && !point.cell.blocked && point.HasFloor)
1719 {
1720 EClass.pc.Teleport(point);
1721 break;
1722 }
1723 }
1724 }
1725
1727 {
1728 EClass.ui.CloseLayers();
1729 EClass.game.world.date.hour = 2;
1731 LayerDrama.ActivateMain("mono", "1-2");
1732 }
1733
1734 public void Test_Filter()
1735 {
1736 bilinear = !bilinear;
1737 MeshPass[] passes = EClass.scene.passes;
1738 for (int i = 0; i < passes.Length; i++)
1739 {
1740 passes[i].mat.GetTexture("_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1741 }
1742 }
1743
1744 public void LOG_Spatials()
1745 {
1746 foreach (Spatial child in EClass.world.region.children)
1747 {
1748 Debug.Log(child.uid + "/" + child.Name + "/" + child.mainFaction.name + "/" + (child == EClass.player.zone));
1749 }
1750 }
1751
1752 public void Test_SiegeGuard()
1753 {
1754 if (EClass._zone.events.GetEvent<ZoneEventSiegeGuard>() == null)
1755 {
1757 }
1758 else
1759 {
1761 }
1762 }
1763
1764 public void Test_Siege()
1765 {
1766 if (EClass._zone.events.GetEvent<ZoneEventSiege>() == null)
1767 {
1769 }
1770 else
1771 {
1773 }
1774 }
1775
1777 {
1778 if (EClass.pc.homeBranch != null)
1779 {
1781 }
1782 }
1783
1784 public static bool CheatEnabled()
1785 {
1786 if (!EClass.debug.enable)
1787 {
1788 return EClass.game.config.cheat;
1789 }
1790 return true;
1791 }
1792
1793 [ConsoleCommand("")]
1794 public static string Cheat()
1795 {
1796 EClass.game.config.cheat = true;
1797 return "Cheat Enabled";
1798 }
1799
1800 [ConsoleCommand("")]
1801 public static string Fix_LoytelDebt()
1802 {
1803 QuestDebt questDebt = EClass.game.quests.Get<QuestDebt>();
1804 if (questDebt == null || questDebt.stage != 6 || EClass.player.debt == 19000000)
1805 {
1806 return "Quest Status Not Valid.";
1807 }
1808 questDebt.stage = 0;
1809 questDebt.paid = false;
1810 questDebt.gaveBill = true;
1811 EClass.player.debt = 20000000;
1812 Thing thing = ThingGen.Create("856");
1813 thing.refVal = 109;
1814 EClass.pc.Pick(thing);
1815 return "Quest Reset!";
1816 }
1817
1818 [ConsoleCommand("")]
1819 public static string Fix_RemoveDuplicateUnique()
1820 {
1821 if (EClass.Branch == null)
1822 {
1823 return "No Branch";
1824 }
1825 EClass.Branch.members.ForeachReverse(delegate(Chara c)
1826 {
1827 if ((c.id == "kettle" || c.id == "quru") && EClass.Branch.members.Where((Chara c2) => c2.id == c.id).Count() >= 2)
1828 {
1829 EClass.Branch.RemoveMemeber(c);
1830 c.Destroy();
1831 }
1832 });
1833 return "Fixed!";
1834 }
1835
1836 [ConsoleCommand("")]
1837 public static string Fix_EtherDisease()
1838 {
1839 EClass.pc.ModCorruption(-100000);
1840 Chara chara = CharaGen.Create("chara");
1841 chara.ChangeRace(EClass.pc.race.id);
1842 chara.ChangeJob(EClass.pc.job.id);
1843 string text = "";
1844 foreach (Element value in chara.elements.dict.Values)
1845 {
1846 if (!(value.source.category != "attribute"))
1847 {
1848 Element orCreateElement = EClass.pc.elements.GetOrCreateElement(value.id);
1849 if (value.vBase > orCreateElement.vBase)
1850 {
1851 text = text + "Fixing Base Value:" + orCreateElement.Name + " Before:" + orCreateElement.vBase + " Now:" + (value.vBase + 1) + Environment.NewLine;
1852 EClass.pc.elements.ModBase(orCreateElement.id, value.vBase - orCreateElement.vBase + 1);
1853 }
1854 }
1855 }
1856 return text + "Fixed!";
1857 }
1858
1859 [ConsoleCommand("")]
1860 public static string Fix_LostCore()
1861 {
1863 {
1864 return "Not in base.";
1865 }
1866 foreach (Thing thing in EClass._map.things)
1867 {
1868 if (thing.trait is TraitCoreZone)
1869 {
1870 return "Base already has core.";
1871 }
1872 }
1873 if (EClass.pc.things.Find((Thing t) => t.trait is TraitCoreZone) != null)
1874 {
1875 return "Player has core.";
1876 }
1878 return "Done.";
1879 }
1880
1881 [ConsoleCommand("")]
1882 public static string Fix_RemoveDemitas()
1883 {
1884 List<Chara> list = new List<Chara>();
1885 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1886 {
1887 if (value.id == "demitas" && value.currentZone == EClass._zone)
1888 {
1889 list.Add(value);
1890 }
1891 }
1892 if (list.Count > 1)
1893 {
1894 Chara chara = list[1];
1895 chara.homeBranch.BanishMember(chara);
1896 chara.Destroy();
1897 return "Demitas Removed!";
1898 }
1899 return "Not enough Demitas!";
1900 }
1901
1902 [ConsoleCommand("")]
1903 public static string ListChara()
1904 {
1905 string text = "";
1906 foreach (SourceChara.Row row in EClass.sources.charas.rows)
1907 {
1908 text = text + row.id + "\n";
1909 }
1910 return text;
1911 }
1912
1913 [ConsoleCommand("")]
1914 public static string ListThing()
1915 {
1916 string text = "";
1917 foreach (SourceThing.Row row in EClass.sources.things.rows)
1918 {
1919 text = text + row.id + "\n";
1920 }
1921 return text;
1922 }
1923
1924 [ConsoleCommand("")]
1925 public static string SetElement(string alias, int value, int potential = 100)
1926 {
1927 if (!CheatEnabled())
1928 {
1929 return EnableCheat;
1930 }
1931 SourceElement.Row row = EClass.sources.elements.alias.TryGetValue(alias);
1932 if (row == null)
1933 {
1934 return "Element not found.";
1935 }
1936 if (row.type == "Feat")
1937 {
1938 EClass.pc.SetFeat(row.id, value, msg: true);
1939 }
1940 else
1941 {
1942 EClass.pc.elements.SetBase(row.id, value, potential);
1943 }
1944 return "Done.";
1945 }
1946
1947 [ConsoleCommand("")]
1948 public static string SpawnBoss(string id)
1949 {
1950 if (!CheatEnabled())
1951 {
1952 return EnableCheat;
1953 }
1954 if (EClass.sources.charas.map.ContainsKey(id))
1955 {
1957 return "Spawned " + chara.Name;
1958 }
1959 return "'" + id + "' does not exist in the database.";
1960 }
1961
1962 [ConsoleCommand("")]
1963 public static string Spawn(string id, int num = 1, string aliasMat = "", int objLv = -1)
1964 {
1965 if (!CheatEnabled())
1966 {
1967 return EnableCheat;
1968 }
1969 if (EClass.sources.things.map.ContainsKey(id))
1970 {
1971 Thing thing = ThingGen.Create(id, -1, objLv).SetNum(num);
1972 if (!aliasMat.IsEmpty())
1973 {
1974 thing.ChangeMaterial(aliasMat);
1975 }
1976 EClass._zone.AddCard(thing, EClass.pc.pos);
1977 return "Spawned " + thing.Name;
1978 }
1979 if (EClass.sources.charas.map.ContainsKey(id))
1980 {
1981 Chara chara = CharaGen.Create(id);
1982 if (objLv != -1)
1983 {
1984 chara.SetLv(objLv);
1985 }
1986 EClass._zone.AddCard(chara, EClass.pc.pos);
1987 return "Spawned " + chara.Name;
1988 }
1989 return "'" + id + "' does not exist in the database.";
1990 }
1991
1992 [ConsoleCommand("")]
1993 public static string TestSpawn(int lv, int num, int lvRange = -1)
1994 {
1995 if (!CheatEnabled())
1996 {
1997 return EnableCheat;
1998 }
1999 if (EClass._zone is Zone_Arena)
2000 {
2001 EClass._zone._dangerLv = lv;
2002 }
2003 foreach (Chara item in EClass._map.charas.Where((Chara c) => c.HasEditorTag(EditorTag.SpawnTest)).ToList())
2004 {
2005 item.Destroy();
2006 }
2007 for (int i = 0; i < num; i++)
2008 {
2009 EClass._zone.SpawnMob(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: false, ignoreCenter: true), new SpawnSetting
2010 {
2011 filterLv = lv,
2012 levelRange = lvRange
2013 }).AddEditorTag(EditorTag.SpawnTest);
2014 }
2015 return "Spawned.";
2016 }
2017
2018 [ConsoleCommand("")]
2019 public static string ResetPetUpgrades()
2020 {
2021 foreach (Chara value in EClass.game.cards.globalCharas.Values)
2022 {
2023 if (value.IsPCFaction)
2024 {
2025 value.ResetUpgrade();
2026 }
2027 }
2028 return "Not Implemented.";
2029 }
2030
2031 [ConsoleCommand("")]
2032 public static string ResetPrincipalSeals()
2033 {
2034 if (!CheatEnabled())
2035 {
2036 return EnableCheat;
2037 }
2038 EClass.game.principal.modified.Clear();
2039 return "Done.";
2040 }
2041
2042 [ConsoleCommand("")]
2043 public static string GodMode()
2044 {
2045 if (!CheatEnabled())
2046 {
2047 return EnableCheat;
2048 }
2049 EClass.pc.Revive();
2050 EClass.pc.hp = EClass.pc.MaxHP;
2051 return "I'm God!";
2052 }
2053
2054 [ConsoleCommand("")]
2055 public static string ModFame(int amount)
2056 {
2057 if (!CheatEnabled())
2058 {
2059 return EnableCheat;
2060 }
2061 EClass.player.ModFame(amount);
2062 return "Done.";
2063 }
2064
2065 [ConsoleCommand("")]
2066 public static string ModKarma(int amount)
2067 {
2068 if (!CheatEnabled())
2069 {
2070 return EnableCheat;
2071 }
2072 EClass.player.ModKarma(amount);
2073 return "Done.";
2074 }
2075
2076 [ConsoleCommand("")]
2077 public static string ModContribution(int amount)
2078 {
2079 if (!CheatEnabled())
2080 {
2081 return EnableCheat;
2082 }
2084 return "Done.";
2085 }
2086
2087 [ConsoleCommand("")]
2088 public static string FlyMode()
2089 {
2091 return "I can fly!";
2092 }
2093
2094 [ConsoleCommand("")]
2095 public static string ChangeRace(string id = "?")
2096 {
2097 if (EClass.sources.races.map.ContainsKey(id))
2098 {
2099 Thing thing = null;
2100 foreach (BodySlot slot in EClass.pc.body.slots)
2101 {
2102 if (slot.thing != null)
2103 {
2104 if (slot.thing.blessedState <= BlessedState.Cursed)
2105 {
2106 slot.thing.blessedState = BlessedState.Normal;
2107 }
2108 if (slot.thing.trait is TraitToolBelt)
2109 {
2110 thing = slot.thing;
2111 }
2112 EClass.pc.body.Unequip(slot);
2113 }
2114 }
2117 EClass.pc.ChangeRace(id);
2118 if (EClass.ui.IsInventoryOpen)
2119 {
2120 EClass.ui.ToggleInventory();
2121 }
2124 EClass.pc.body.Equip(thing);
2125 return "Done.";
2126 }
2127 string text = "";
2128 foreach (SourceRace.Row row in EClass.sources.races.rows)
2129 {
2130 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2131 }
2132 return text;
2133 }
2134
2135 [ConsoleCommand("")]
2136 public static string ChangeJob(string id = "?")
2137 {
2138 if (EClass.sources.jobs.map.ContainsKey(id))
2139 {
2140 EClass.pc.ChangeJob(id);
2142 return "Done.";
2143 }
2144 string text = "";
2145 foreach (SourceJob.Row row in EClass.sources.jobs.rows)
2146 {
2147 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2148 }
2149 return text;
2150 }
2151
2152 [ConsoleCommand("")]
2153 public static string FirstAdventurer()
2154 {
2155 string text = "Steam is not running.";
2156 DateTime dateTime = new DateTime(2024, 11, 3, 6, 0, 0);
2157 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))));
2158 dateTimeOffset = dateTimeOffset.ToOffset(new TimeSpan(9, 0, 0));
2159 text = ((dateTimeOffset < dateTime) ? "Valid: " : "Invalid: ");
2160 text = text + "Arrived North Tyris on " + dateTimeOffset.Year + " " + dateTimeOffset.Month + "/" + dateTimeOffset.Day + " " + dateTimeOffset.Hour + ":" + dateTimeOffset.Minute;
2161 return text + " Eligible by " + dateTime.Year + " " + dateTime.Month + "/" + dateTime.Day + " " + dateTime.Hour + ":" + dateTime.Minute;
2162 }
2163
2164 [ConsoleCommand("")]
2165 public static string RegenerateNames()
2166 {
2168 NameGen.list = null;
2169 AliasGen.list = null;
2170 NameGen.Init();
2171 AliasGen.Init();
2172 foreach (Chara chara in EClass._map.charas)
2173 {
2174 if (!chara.IsPC)
2175 {
2176 if (chara.source.name == "*r")
2177 {
2178 chara.c_altName = NameGen.getRandomName();
2179 }
2180 if (!chara._alias.IsEmpty())
2181 {
2182 chara._alias = AliasGen.GetRandomAlias();
2183 }
2184 }
2185 }
2186 return "Done!";
2187 }
2188
2189 [ConsoleCommand("")]
2190 public static string AllRecipe(bool forget = false)
2191 {
2192 if (!CheatEnabled())
2193 {
2194 return EnableCheat;
2195 }
2196 if (forget)
2197 {
2199 }
2200 else
2201 {
2203 }
2204 return "Done!";
2205 }
2206
2207 [ConsoleCommand("")]
2208 public static string LastWish(string name)
2209 {
2210 string text = "";
2211 foreach (SourceBacker.Row row in EClass.sources.backers.rows)
2212 {
2213 if (row.name.Contains(name) || row.id.ToString() == name)
2214 {
2215 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;
2216 }
2217 }
2218 if (text == "")
2219 {
2220 return "Not Found";
2221 }
2222 return text + Resources.Load<TextAsset>("logo2").text;
2223 }
2224
2225 [ConsoleCommand("")]
2226 public static string ClearLastWishFlag()
2227 {
2228 if (!CheatEnabled())
2229 {
2230 return EnableCheat;
2231 }
2232 EClass.player.doneBackers.Clear();
2233 return Resources.Load<TextAsset>("logo2").text + Environment.NewLine + "Done!";
2234 }
2235
2236 [ConsoleCommand("")]
2237 public static string Resource()
2238 {
2239 if (!CheatEnabled())
2240 {
2241 return EnableCheat;
2242 }
2244 return "Resources spawned.";
2245 }
2246
2247 public void Log(object o)
2248 {
2249 Debug.Log(o);
2250 }
2251
2252 public void NextBGM()
2253 {
2254 if ((bool)SoundManager.current)
2255 {
2256 SoundManager.current.NextBGM();
2257 }
2258 }
2259
2260 public void ToggleRevealMap()
2261 {
2262 revealMap = !revealMap;
2263 if (revealMap)
2264 {
2266 }
2267 SE.ClickGeneral();
2268 }
2269
2270 public void LoadBroadcast()
2271 {
2272 TextAsset textAsset = Resources.Load<TextAsset>("Data/Text/broadcast");
2273 blines = textAsset.text.Split('-');
2274 }
2275
2276 public void BroadcastNext()
2277 {
2278 LoadBroadcast();
2279 if (Input.GetKey(KeyCode.LeftControl))
2280 {
2281 bidx--;
2282 }
2283 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2284 string text = blines[bidx];
2285 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
2286 EClass.pc.SayRaw(text.TrimNewLines());
2287 }
2288}
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:20
static void Set(CardBlueprint _bp)
static CardBlueprint DebugEQ
GlobalCharaList globalCharas
Definition: CardManager.cs:46
void PlayAnime(AnimeID id, bool force)
Definition: Card.cs:11
void Teleport(Point point, bool silent=false, bool force=false)
Definition: Card.cs:5153
void MakeFigureFrom(string id)
Definition: Card.cs:5089
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3454
ElementContainerCard elements
Definition: Card.cs:37
string id
Definition: Card.cs:31
bool HasElement(int ele, int req=1)
Definition: Card.cs:5214
int ExpToNext
Definition: Card.cs:1884
SourceMaterial.Row material
Definition: Card.cs:1927
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5404
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:2838
string c_altName
Definition: Card.cs:1493
Card AddCard(Card c)
Definition: Card.cs:2887
Thing AddThing(string id, int lv=-1)
Definition: Card.cs:2901
Card SetLv(int a)
Definition: Card.cs:2735
string Name
Definition: Card.cs:2013
void AddEditorTag(EditorTag tag)
Definition: Card.cs:2465
Thing SetNum(int a)
Definition: Card.cs:3242
virtual void SetBlessedState(BlessedState s)
Definition: Card.cs:3572
void RecalculateFOV()
Definition: Card.cs:5616
Point pos
Definition: Card.cs:55
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:5438
void Dye(string idMat)
Definition: Card.cs:5267
Trait trait
Definition: Card.cs:49
void ModCurrency(int a, string id="money")
Definition: Card.cs:3638
void SetEncLv(int a)
Definition: Card.cs:3567
void Destroy()
Definition: Card.cs:4538
bool HasEditorTag(EditorTag tag)
Definition: Card.cs:2460
ThingContainer things
Definition: Card.cs:34
virtual Thing Thing
Definition: Card.cs:1934
Thing TryMakeRandomItem(int lv=-1)
Definition: Card.cs:4861
BlessedState blessedState
Definition: Card.cs:262
void AddExp(int a)
Definition: Card.cs:2767
void ModNum(int a, bool notify=true)
Definition: Card.cs:3262
void SayRaw(string text, string ref1=null, string ref2=null)
Definition: Card.cs:6025
CardRenderer renderer
Definition: Card.cs:57
int LV
Definition: Card.cs:370
virtual bool isSynced
Definition: Card.cs:1963
List< Thing > things
Definition: CellDetail.cs:11
List< Chara > charas
Definition: CellDetail.cs:13
Definition: Cell.cs:7
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:372
bool Equip(Thing thing, BodySlot slot=null, bool msg=true)
Definition: CharaBody.cs:182
void RemoveBodyPart(int ele)
Definition: CharaBody.cs:310
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:1989
void SetHomeZone(Zone zone)
Definition: Chara.cs:1234
CharaBody body
Definition: Chara.cs:91
void SetFaction(Faction f)
Definition: Chara.cs:1227
Condition AddCondition(string id, int p=100, bool force=false)
Definition: Chara.cs:8415
override bool IsPC
Definition: Chara.cs:597
Thing MakeBraineCell()
Definition: Chara.cs:7371
SourceJob.Row job
Definition: Chara.cs:451
void SetFeat(int id, int value=1, bool msg=false)
Definition: Chara.cs:8964
void ResetUpgrade()
Definition: Chara.cs:7791
Party party
Definition: Chara.cs:43
Chara SetGlobal(Zone _home, int x, int z)
Definition: Chara.cs:1266
override bool IsPCFaction
Definition: Chara.cs:656
override int MaxHP
Definition: Chara.cs:693
Zone currentZone
Definition: Chara.cs:240
SourceChara.Row source
Definition: Chara.cs:143
Stats mana
Definition: Chara.cs:963
Stats stamina
Definition: Chara.cs:955
void ChangeJob(string idNew)
Definition: Chara.cs:1891
void Revive(Point p=null, bool msg=false)
Definition: Chara.cs:4649
Thing MakeGene(DNA.Type? type=null)
Definition: Chara.cs:7366
void ModCorruption(int a)
Definition: Chara.cs:8906
void RestockEquip(bool onCreate)
Definition: Chara.cs:4305
string _alias
Definition: Chara.cs:204
FactionBranch homeBranch
Definition: Chara.cs:889
bool IsHostile()
Definition: Chara.cs:5884
Thing MakeMilk(bool effect=true, int num=1, bool addToZone=true)
Definition: Chara.cs:7376
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Definition: Chara.cs:3920
void EQ_CAT(string s)
Definition: Chara.cs:4589
Thing MakeEgg(bool effect=true, int num=1, bool addToZone=true)
Definition: Chara.cs:7396
SourceRace.Row race
Definition: Chara.cs:449
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:2237
static string ModKarma(int amount)
Definition: CoreDebug.cs:2066
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:1784
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:1764
static string Fix_EtherDisease()
Definition: CoreDebug.cs:1837
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:751
IEnumerable< string > ZoneIDs()
Definition: CoreDebug.cs:316
bool allMenu
Definition: CoreDebug.cs:234
void ToggleRevealMap()
Definition: CoreDebug.cs:2260
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
bool _godBuild
Definition: CoreDebug.cs:178
void Test_Filter()
Definition: CoreDebug.cs:1734
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:2153
static string ClearLastWishFlag()
Definition: CoreDebug.cs:2226
void Test_Grow()
Definition: CoreDebug.cs:1685
bool showFav
Definition: CoreDebug.cs:225
void LoadBroadcast()
Definition: CoreDebug.cs:2270
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:2088
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:2247
bool showExtra
Definition: CoreDebug.cs:167
bool returnAnywhere
Definition: CoreDebug.cs:202
void SetStartStockpile(Thing container, int num=100)
Definition: CoreDebug.cs:705
static string SetElement(string alias, int value, int potential=100)
Definition: CoreDebug.cs:1925
void ValidateData()
Definition: CoreDebug.cs:830
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:1963
bool runtimeGodBuild
Definition: CoreDebug.cs:298
Emo lastEmo
Definition: CoreDebug.cs:293
void InitDebugCommands()
Definition: CoreDebug.cs:1412
static string GodMode()
Definition: CoreDebug.cs:2043
void COM_MaxConstruction()
Definition: CoreDebug.cs:1776
static string ModFame(int amount)
Definition: CoreDebug.cs:2055
static string Fix_RemoveDemitas()
Definition: CoreDebug.cs:1882
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:1711
void COM_PlayStartDrama()
Definition: CoreDebug.cs:1726
static string RegenerateNames()
Definition: CoreDebug.cs:2165
int param1
Definition: CoreDebug.cs:252
void QuickStart()
Definition: CoreDebug.cs:333
void Test_SiegeGuard()
Definition: CoreDebug.cs:1752
void UpdateInput()
Definition: CoreDebug.cs:840
bool enable
Definition: CoreDebug.cs:285
bool ignorePopup
Definition: CoreDebug.cs:159
void LOG_Spatials()
Definition: CoreDebug.cs:1744
bool skipModSync
Definition: CoreDebug.cs:111
int param2
Definition: CoreDebug.cs:255
Color32 fixedColor
Definition: CoreDebug.cs:263
static string Cheat()
Definition: CoreDebug.cs:1794
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:1914
bool resetPlayerConfig
Definition: CoreDebug.cs:119
void AddAllRecipes()
Definition: CoreDebug.cs:694
static string Fix_LoytelDebt()
Definition: CoreDebug.cs:1801
void UpdateAlways()
Definition: CoreDebug.cs:781
bool godBuild
Definition: CoreDebug.cs:303
bool autoAdvanceQuest
Definition: CoreDebug.cs:210
static string AllRecipe(bool forget=false)
Definition: CoreDebug.cs:2190
static string ListChara()
Definition: CoreDebug.cs:1903
int startHour
Definition: CoreDebug.cs:101
static string ChangeJob(string id="?")
Definition: CoreDebug.cs:2136
bool testThingQuality
Definition: CoreDebug.cs:214
void Test_GodTalk()
Definition: CoreDebug.cs:1703
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:2019
void EnableDebugResource()
Definition: CoreDebug.cs:763
bool debugHoard
Definition: CoreDebug.cs:155
Thing GetOrCreateDebugContainer()
Definition: CoreDebug.cs:734
bool debugProps
Definition: CoreDebug.cs:151
static string ModContribution(int amount)
Definition: CoreDebug.cs:2077
static string ResetPrincipalSeals()
Definition: CoreDebug.cs:2032
void OnLoad()
Definition: CoreDebug.cs:686
void NextBGM()
Definition: CoreDebug.cs:2252
bool maxQuests
Definition: CoreDebug.cs:229
static string LastWish(string name)
Definition: CoreDebug.cs:2208
static string Fix_LostCore()
Definition: CoreDebug.cs:1860
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:1948
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:1993
int advanceMin
Definition: CoreDebug.cs:145
void SpawnCheatContainer()
Definition: CoreDebug.cs:777
static string Fix_RemoveDuplicateUnique()
Definition: CoreDebug.cs:1819
bool ignoreBuildRule
Definition: CoreDebug.cs:184
static string ChangeRace(string id="?")
Definition: CoreDebug.cs:2095
void BroadcastNext()
Definition: CoreDebug.cs:2276
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:166
Rects rects
Definition: CoreRef.cs:345
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:697
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:240
int vBase
Definition: ELEMENT.cs:242
SourceElement.Row source
Definition: ELEMENT.cs:263
int vPotential
Definition: ELEMENT.cs:246
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:133
void AddReserve(Chara c)
Definition: FACTION.cs:325
void AddContribution(int a)
Definition: FACTION.cs:316
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:960
SpatialManager spatials
Definition: Game.cs:152
static void Create(string _id=null, bool cloud=false)
Definition: Game.cs:693
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:766
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:43
static SourceMaterial.Row sourceWaterSea
Definition: MATERIAL.cs:41
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:2324
Thing FindThing(Func< Thing, bool > func)
Definition: Map.cs:2570
PropsInstalled Installed
Definition: Map.cs:123
void SetLiquid(int x, int z, CellEffect effect=null)
Definition: Map.cs:1464
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:2007
void RevealAll(bool reveal=true)
Definition: Map.cs:899
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:84
void AddMemeber(Chara c, bool showMsg=false)
Definition: Party.cs:51
void OnEnableDebug()
Definition: Player.cs:549
int loytelMartLv
Definition: Player.cs:522
int debt
Definition: Player.cs:754
Flags flags
Definition: Player.cs:895
RecipeManager recipes
Definition: Player.cs:898
void ModFame(int a)
Definition: Player.cs:1879
void ModKarma(int a)
Definition: Player.cs:2289
void RefreshDomain()
Definition: Player.cs:1323
Zone zone
Definition: Player.cs:883
HashSet< int > doneBackers
Definition: Player.cs:874
HotbarManager hotbars
Definition: Player.cs:886
Chara TargetChara
Definition: PointTarget.cs:41
Definition: Point.cs:9
List< Card > ListCards(bool includeMasked=false)
Definition: Point.cs:1015
Point Copy()
Definition: Point.cs:467
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:264
Thing FirstThing
Definition: Point.cs:277
Cell cell
Definition: Point.cs:51
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false)
Definition: Point.cs:595
string idStartZone
Definition: Prologue.cs:7
void Validate()
Definition: Props.cs:413
PropSet all
Definition: Props.cs:8
int stage
Definition: QuestDebt.cs:12
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:89
ActionMode actionMode
Definition: Scene.cs:77
MeshPass[] passes
Definition: Scene.cs:115
PointTarget mouseTarget
Definition: Scene.cs:129
void Init(Mode newMode)
Definition: Scene.cs:172
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:47
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
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
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:77
static Thing MakeRandomSeed(bool enc=false)
Definition: TraitSeed.cs:176
virtual bool CanStack
Definition: Trait.cs:145
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:2952
Card AddThing(string id, int x, int z)
Definition: Zone.cs:1883
void ClaimZone(bool debug=false)
Definition: Zone.cs:1659
ElementContainerZone elements
Definition: Zone.cs:43
void ExportDialog(string dir=null)
Definition: Zone.cs:2939
Chara SpawnMob(Point pos=null, SpawnSetting setting=null)
Definition: Zone.cs:2543
MapBounds bounds
Definition: Zone.cs:46
void RemoveCard(Card t)
Definition: Zone.cs:1933
bool IsPCFaction
Definition: Zone.cs:464
void Export(string path, PartialMap partial=null, bool usermap=false)
Definition: Zone.cs:2898
Card AddCard(Card t, Point point)
Definition: Zone.cs:1893