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