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