19 return this._godBuild || this.runtimeGodBuild;
24 private IEnumerable<string> ZoneIDs()
27 List<string> list =
new List<string>();
38 this.InitDebugCommands();
39 EInput.disableKeyAxis = Application.isEditor;
43 public void QuickStart()
46 Tutorial.debugSkip =
EClass.debug.skipNerun;
47 if (!this.startSetting.race.IsEmpty())
49 EClass.pc.ChangeRace(this.startSetting.race);
51 if (!this.startSetting.job.IsEmpty())
53 EClass.pc.ChangeJob(this.startSetting.job);
55 CoreDebug.StartScene startScene = this.startScene;
56 if (startScene -
CoreDebug.StartScene.Zone > 1)
58 if (startScene ==
CoreDebug.StartScene.Home_Cave)
60 EClass.game.idPrologue = 2;
65 EClass.game.world.date.hour =
EClass.debug.startHour;
67 EClass.game.StartNewGame();
68 EClass.player.flags.OnEnableDebug();
69 EClass.player.pref.lastIdTabAbility = 3;
70 EClass.player.flags.KilledBossInVoid =
true;
71 CoreDebug.<>c__DisplayClass102_0 CS$<>8__locals1;
72 CS$<>8__locals1.homeZone =
EClass.game.spatials.Find(
EClass.game.Prologue.idStartZone);
73 CoreDebug.StartParty startParty = this.startParty;
74 if (startParty !=
CoreDebug.StartParty.Farris)
76 if (startParty ==
CoreDebug.StartParty.Full)
78 CoreDebug.<QuickStart>g__AddParty|102_0(
"farris", ref CS$<>8__locals1);
79 CoreDebug.<QuickStart>g__AddParty|102_0(
"wescott", ref CS$<>8__locals1);
84 CoreDebug.<QuickStart>g__AddParty|102_0(
"farris", ref CS$<>8__locals1);
86 int lv = this.startSetting.lv;
91 if (row.category ==
"ability" && row.aliasRef !=
"mold" && !
EClass.pc.HasElement(row.id, 1) && (row.aliasRef.IsEmpty() || row.id <= 10000 ||
EClass.sources.elements.alias[row.aliasRef].tag.Contains(row.alias.Split(
'_', StringSplitOptions.None)[0])))
93 EClass.pc.elements.ModBase(row.id, lv).vPotential = 30;
101 if (row2.isSkill && !row2.tag.Contains(
"unused"))
103 EClass.pc.elements.ModBase(row2.id, 1);
107 EClass.pc.elements.ModBase(60, lv / 2);
108 EClass.pc.elements.ModBase(61, lv / 2);
109 EClass.pc.elements.ModBase(79, lv / 5);
110 EClass.player.totalFeat = lv;
112 CS$<>8__locals1.idx = 0;
113 CoreDebug.StartLoadout startLoadout = this.startLoadout;
114 if (startLoadout !=
CoreDebug.StartLoadout.AllItem)
116 if (startLoadout ==
CoreDebug.StartLoadout.FewItem)
119 thing.AddCard(
ThingGen.Create(
"rp_food", -1, 10).SetNum(30));
120 thing.AddCard(
ThingGen.Create(
"rp_block", -1, 10).SetNum(30));
121 for (
int i = 0; i < 30; i++)
123 thing.AddCard(
ThingGen.Create(
"rp_block", -1, 50));
126 thing =
ThingGen.Create(
"pouch", -1, -1);
127 for (
int j = 0; j < 30; j++)
131 thing2.elements.SetBase(653, 1, 0);
134 thing.AddCard(thing2);
137 thing2.elements.SetBase(653, 1, 0);
138 thing.AddCard(thing2);
141 thing =
ThingGen.Create(
"pouch", -1, -1);
142 for (
int k = 0; k < 30; k++)
144 thing.AddCard(
ThingGen.Create(
"mathammer",
MATERIAL.GetRandomMaterial(100,
null,
false).alias));
147 thing =
ThingGen.Create(
"pouch", -1, -1);
148 for (
int l = 0; l < 30; l++)
153 thing =
ThingGen.Create(
"coolerbox", -1, -1);
154 for (
int m = 0; m < 20; m++)
156 thing.AddCard(
ThingGen.CreateFromCategory(
"foodstuff", -1).SetNum(
EScriptable.rnd(10) + 1));
159 List<
SourceChara.
Row> source = (from a in EClass.sources.charas.map.Values
160 where a._idRenderData ==
"chara"
161 select a).ToList<SourceChara.Row>();
162 thing =
ThingGen.Create(
"pouch", -1, -1);
163 source = (from a in EClass.sources.charas.map.Values
164 where a._idRenderData ==
"chara_L"
165 select a).ToList<SourceChara.Row>();
166 for (
int n = 0; n < 20; n++)
170 thing3.MakeFigureFrom(
id);
171 thing.AddCard(thing3);
174 thing =
ThingGen.Create(
"pouch", -1, -1);
175 source = (from a in EClass.sources.charas.map.Values
176 where a._idRenderData ==
"chara"
177 select a).ToList<SourceChara.Row>();
178 for (
int num = 0; num < 20; num++)
182 thing4.MakeFigureFrom(id2);
183 thing.AddCard(thing4);
187 thing =
ThingGen.Create(
"pouch", -1, -1);
188 source = (from a in EClass.sources.charas.map.Values
189 where a._idRenderData ==
"chara_L"
190 select a).ToList<SourceChara.Row>();
191 for (
int num2 = 0; num2 < 20; num2++)
195 thing5.MakeFigureFrom(id3);
196 thing.AddCard(thing5);
200 thing =
ThingGen.Create(
"pouch", -1, -1);
201 thing.AddCard(
ThingGen.Create(
"flour", -1, -1).SetNum(10));
202 thing.AddCard(
ThingGen.Create(
"wheat", -1, -1).SetNum(200));
203 thing.AddCard(
ThingGen.Create(
"rice_plant", -1, -1).SetNum(200));
204 thing.AddCard(
ThingGen.Create(
"noodle", -1, -1).SetNum(10));
205 thing.AddCard(
ThingGen.Create(
"rice", -1, -1).SetNum(10));
206 thing.AddCard(
ThingGen.Create(
"dough_cake", -1, -1).SetNum(10));
207 thing.AddCard(
ThingGen.Create(
"dough_bread", -1, -1).SetNum(10));
208 thing.AddCard(
ThingGen.Create(
"salt", -1, -1).SetNum(10));
209 thing.AddCard(
ThingGen.Create(
"sugar", -1, -1).SetNum(10));
210 thing.AddCard(
ThingGen.Create(
"honey", -1, -1).SetNum(10));
211 thing.AddCard(
ThingGen.Create(
"yeast", -1, -1).SetNum(10));
212 thing.AddCard(
ThingGen.Create(
"ketchup", -1, -1).SetNum(10));
213 thing.AddCard(
ThingGen.Create(
"butter", -1, -1).SetNum(10));
214 thing.AddCard(
ThingGen.Create(
"potion_empty", -1, -1).SetNum(10));
215 thing.AddCard(
ThingGen.Create(
"bucket_empty", -1, -1).SetNum(10));
216 thing.AddCard(
ThingGen.Create(
"battery", -1, -1));
218 thing.Dye(
"saphire");
219 thing =
ThingGen.Create(
"pouch", -1, -1);
220 thing.AddCard(
ThingGen.Create(
"log", -1, -1).SetNum(99));
221 thing.AddCard(
ThingGen.Create(
"log", -1, -1).SetNum(99).ChangeMaterial(
"pine"));
222 thing.AddCard(
ThingGen.Create(
"ore", -1, -1).SetNum(99).ChangeMaterial(
"steel"));
223 thing.AddCard(
ThingGen.Create(
"ore", -1, -1).SetNum(99).ChangeMaterial(
"copper"));
224 thing.AddCard(
ThingGen.Create(
"ore_gem", -1, -1).SetNum(99).ChangeMaterial(
"gold"));
225 thing.AddCard(
ThingGen.Create(
"gem", -1, -1).SetNum(99).ChangeMaterial(
"rubinus"));
226 thing.AddCard(
ThingGen.Create(
"flower_white", -1, -1).SetNum(99));
227 thing.AddCard(
ThingGen.Create(
"bait", -1, -1).SetNum(10));
228 thing.AddCard(
ThingGen.Create(
"seed", -1, -1).SetNum(99));
230 thing.Dye(
"rubinus");
232 thing6.AddCard(
ThingGen.Create(
"bullet", -1, -1).SetNum(250));
233 thing6.AddCard(
ThingGen.Create(
"arrow", -1, -1).SetNum(250));
234 thing6.AddCard(
ThingGen.Create(
"bolt", -1, -1).SetNum(250));
235 thing6.AddCard(
ThingGen.Create(
"bullet_energy", -1, -1).SetNum(250));
236 EClass.pc.body.GetEquippedThing(44).AddCard(thing6);
237 thing =
ThingGen.Create(
"backpack", -1, -1);
238 for (
int num3 = 0; num3 < 10; num3++)
240 thing.AddThing(
"book", lv);
241 thing.AddThing(
"parchment", -1);
242 thing.AddThing(
"book_ancient", -1);
245 thing.Dye(
"rubinus");
246 thing =
ThingGen.Create(
"pouch", -1, -1);
247 for (
int num4 = 0; num4 < 30; num4++)
249 thing.AddThing((
EScriptable.rnd(10) != 0) ?
"potion" :
"drink", lv).SetNum(99);
253 thing =
ThingGen.Create(
"pouch", -1, -1);
254 for (
int num5 = 0; num5 < 30; num5++)
256 thing.AddThing(
ThingGen.CreateFromCategory(
"rod", lv),
true, -1, -1);
260 thing =
ThingGen.Create(
"pouch", -1, -1);
261 for (
int num6 = 0; num6 < 30; num6++)
263 thing.AddThing(
"scroll", lv).SetNum(99);
267 thing =
ThingGen.Create(
"pouch", -1, -1);
268 for (
int num7 = 0; num7 < 40; num7++)
270 thing.AddThing(
"372", 100);
274 Thing thing7 =
EClass.pc.things.Find(
"purse", -1, -1);
275 thing7.AddThing(
"casino_coin", -1).SetNum(30000000);
276 thing7.AddThing(
"medal", -1).SetNum(1000);
277 thing7.ModCurrency(500,
"plat");
278 EClass.pc.AddThing(
"record", -1);
279 EClass.pc.AddThing(
"deed", -1).SetNum(5);
280 EClass.pc.AddThing(
"book_story", -1);
281 EClass.pc.AddThing(
"book_tutorial", -1);
282 EClass.pc.AddThing(
"water", -1).SetNum(20).SetBlessedState(BlessedState.Blessed);
283 EClass.pc.AddThing(
"water", -1).SetNum(20).SetBlessedState(BlessedState.Cursed);
284 EClass.pc.AddThing(
"potion_empty", -1).SetNum(20);
285 EClass.pc.ModCurrency(10000000,
"money");
288 Thing thing8 =
ThingGen.Create(
"scroll_random", -1, -1).SetNum(10);
289 thing8.refVal = 8220;
290 EClass.pc.AddCard(thing8);
291 EClass.pc.ModCurrency(50,
"money2");
292 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"hoe", ref CS$<>8__locals1);
293 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"shovel", ref CS$<>8__locals1);
294 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"axe", ref CS$<>8__locals1);
295 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"pickaxe", ref CS$<>8__locals1);
296 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"wateringCan", ref CS$<>8__locals1);
297 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"gun_assault", ref CS$<>8__locals1);
298 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"hammer", ref CS$<>8__locals1);
299 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"bow", ref CS$<>8__locals1);
304 EClass.pc.ModCurrency(50,
"plat");
305 EClass.pc.ModCurrency(50,
"money2");
306 EClass.pc.EQ_CAT(
"weapon");
308 EClass.pc.EQ_CAT(
"torso");
313 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"axe", ref CS$<>8__locals1);
314 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"pickaxe", ref CS$<>8__locals1);
315 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"wateringCan", ref CS$<>8__locals1);
316 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"bow", ref CS$<>8__locals1);
317 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"deed", ref CS$<>8__locals1);
318 CoreDebug.<QuickStart>g__AddAbility|102_2(
"SpellTeleport");
319 CoreDebug.<QuickStart>g__AddAbility|102_2(
"SpellCatsEye");
320 CoreDebug.<QuickStart>g__AddHotbar|102_1(
"map_big", ref CS$<>8__locals1);
322 EClass.pc.RestockEquip(
true);
323 EClass.pc.stamina.value =
EClass.pc.stamina.max;
324 EClass.pc.mana.value =
EClass.pc.mana.max;
325 EClass.pc.hp =
EClass.pc.MaxHP;
328 EClass._zone.ClaimZone(
true);
330 SoundManager.ignoreSounds =
true;
331 EClass.ui.ToggleInventory(
false);
332 SoundManager.ignoreSounds =
true;
333 EClass.ui.ToggleAbility(
false);
334 SoundManager.ignoreSounds =
false;
338 this.AddAllRecipes();
342 thing9.isNew =
false;
345 EClass.core.actionsNextFrame.Add(
new Action(
EClass.pc.RecalculateFOV));
346 if (this.startScene ==
CoreDebug.StartScene.Story_Test)
348 EClass._zone.ClaimZone(
true);
355 EClass.game.quests.Add(
"greatDebt",
null);
356 EClass.game.quests.Add(
"farris_tulip",
null);
357 EClass.game.quests.Add(
"kettle_join",
null);
358 EClass.game.quests.Add(
"quru_morning",
null);
359 EClass.game.quests.Add(
"vernis_gold",
null);
360 EClass.game.quests.Add(
"quru_sing",
null);
361 EClass.game.quests.Add(
"quru_past1",
null);
362 EClass.game.quests.Add(
"quru_past2",
null);
363 EClass.game.quests.Add(
"pre_debt",
null);
364 EClass.game.quests.Add(
"exile_meet",
null);
365 EClass.game.quests.Add(
"exile_quru",
null);
366 EClass.game.quests.Add(
"exile_kettle",
null);
367 EClass.game.quests.Add(
"exile_whisper",
null);
368 EClass.game.quests.Add(
"exile_voice",
null);
369 EClass.game.quests.Add(
"into_darkness",
null);
370 EClass.game.quests.Add(
"into_darkness",
null);
379 this.AddAllRecipes();
384 public void AddAllRecipes()
388 if (!
EClass.player.recipes.knownRecipes.ContainsKey(recipeSource.id))
390 EClass.player.recipes.knownRecipes.Add(recipeSource.id, 1);
396 public void SetStartStockpile(
Thing container,
int num = 100)
398 LittlePopper.skipPop =
true;
401 if (!(row.alias ==
"void") && (!
this.randomResource ||
EScriptable.rnd(4) == 0))
403 row.CreateByProduct(container, num);
408 if ((row2.factory.IsEmpty() || !(row2.factory[0] ==
"x")) && !row2.isOrigin && row2.Category.tag.Contains(
"debug"))
411 if (thing.trait.CanStack)
413 thing.ModNum(num,
true);
415 container.AddThing(thing,
true, -1, -1);
418 for (
int i = 0; i < 10; i++)
420 container.AddThing(
TraitSeed.MakeRandomSeed(
false),
true, -1, -1);
422 LittlePopper.skipPop =
false;
426 public Thing GetOrCreateDebugContainer()
430 if (thing.c_altName ==
"DebugContainer")
436 thing2.ChangeMaterial(
"obsidian");
437 thing2.c_altName =
"DebugContainer";
438 thing2.isNPCProperty =
false;
439 thing2.SetPlaceState(PlaceState.installed,
false);
444 public Thing GetDebugContainer()
448 if (thing.c_altName ==
"DebugContainer")
457 public void EnableDebugResource()
459 this.AddAllRecipes();
460 EClass.player.flags.OnEnableDebug();
467 Thing orCreateDebugContainer = this.GetOrCreateDebugContainer();
468 this.SetStartStockpile(orCreateDebugContainer, this.numResource);
472 public void SpawnCheatContainer()
477 public void UpdateAlways()
483 if (Input.GetKeyDown(KeyCode.B))
485 UIButton.TryShowTip(
null,
true,
true);
487 if (Input.GetKeyDown(KeyCode.O))
489 Steam.GetAchievement(ID_Achievement.test);
491 if (Input.GetKeyDown(KeyCode.P))
493 Steam.GetAchievement(ID_Achievement.mew);
495 if (Input.GetKeyDown(KeyCode.F11))
497 if (Application.isEditor)
499 EClass.core.SetLang((Lang.langCode ==
"EN") ?
"JP" :
"EN",
false);
503 EClass.sources.ImportSourceTexts();
505 NewsList.dict =
null;
506 BookList.dict =
null;
509 if (!
EClass.core.IsGameStarted)
513 if (Input.GetKeyDown(KeyCode.U))
515 Vector3 offset =
EClass.screen.tileMap.rendererInnerBlock.offset;
516 Msg.SayRaw(offset.ToString() ??
"");
517 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
519 if (Input.GetKeyDown(KeyCode.I))
521 Vector3 offset =
EClass.screen.tileMap.rendererInnerBlock.offset;
522 Msg.SayRaw(offset.ToString() ??
"");
523 EClass.screen.tileMap.rendererInnerBlock.offset =
new Vector3(0f, 0.54f, -0.5f);
528 public void ValidateData()
530 if (!
EClass.core.IsGameStarted)
534 EClass._map.Stocked.Validate();
535 EClass._map.Roaming.Validate();
536 EClass._map.Installed.Validate();
540 public void UpdateInput()
542 if (!this.debugInput || EInput.isInputFieldActive ||
EClass.ui.GetLayer<
LayerConsole>(
false))
546 bool key = Input.GetKey(KeyCode.LeftShift);
547 bool key2 = Input.GetKey(KeyCode.LeftAlt);
548 bool key3 = Input.GetKey(KeyCode.LeftControl);
550 if (Input.GetKeyDown(KeyCode.KeypadPlus))
554 if (Input.GetKeyDown(KeyCode.KeypadMinus))
558 if (traitStairs !=
null)
560 traitStairs.MoveZone(
false);
562 if (EInput.action == EAction.ShowGrid)
564 EClass.ui.Find(
"_Guide").ToggleActive();
566 if (Input.GetKey(KeyCode.N))
570 SoundManager.current.sourceBGM.pitch = 10f;
574 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
577 else if (Input.GetKeyUp(KeyCode.N))
579 SoundManager.current.sourceBGM.pitch = 1f;
581 if (
EClass.scene.actionMode.IsBuildMode)
583 string text =
"festival";
584 if (Input.GetKeyDown(KeyCode.F1))
588 if (Input.GetKeyDown(KeyCode.F2))
590 Zone.forceRegenerate =
true;
591 EClass.scene.actionMode.Deactivate();
596 if (Input.GetKeyDown(KeyCode.F4))
603 Zone.forceRegenerate =
true;
604 Zone.forceSubset = text;
605 EClass.scene.actionMode.Deactivate();
609 EClass.ui.Say(
"Loaded Subset",
null);
611 if (Input.GetKeyDown(KeyCode.F5))
615 EClass.ui.Say(
"Exported Subset",
null);
619 if (Input.GetKeyDown(KeyCode.F1))
623 string id =
EClass._zone.id;
626 Debug.Log(
id + str + ((parent !=
null) ? parent.ToString() :
null));
627 Debug.Log(
EClass._zone.RegionPos);
629 if (Input.GetKeyDown(KeyCode.F2))
631 EClass._zone.TryGenerateEvolved(
true);
632 Chara targetChara =
EClass.scene.mouseTarget.TargetChara;
633 if (targetChara !=
null)
635 EClass.pc.Pick(targetChara.MakeMilk(
true, 1,
true),
true,
true);
636 EClass.pc.Pick(targetChara.MakeGene(
null),
true,
true);
637 EClass.pc.Pick(targetChara.MakeBraineCell(),
true,
true);
638 EClass.pc.Pick(targetChara.MakeEgg(
true, 10,
true),
true,
true);
642 if (Input.GetKeyDown(KeyCode.F3))
644 EClass.core.steam.CheckUpdate();
646 int loytelMartLv = flags.loytelMartLv;
647 flags.loytelMartLv = loytelMartLv + 1;
648 Msg.Say(
"loytelmart:" +
EClass.player.flags.loytelMartLv.ToString());
649 Guild.Fighter.relation.rank = 20;
650 Guild.Mage.relation.rank = 20;
651 Guild.Thief.relation.rank = 20;
652 Guild.Merchant.relation.rank = 20;
653 if (
EClass.Branch !=
null)
659 chara.AddExp(chara.ExpToNext);
661 EClass.pc.PlayEffect(
"boost",
true, 0f,
default(Vector3));
662 EClass.pc.PlaySound(
"boost", 1f,
true);
663 EClass.pc.elements.SetBase(306, 100, 0);
664 EClass.pc.elements.SetBase(85, 100, 0);
665 EClass.pc.feat += 10;
666 EClass.player.totalFeat += 10;
669 if (Input.GetKeyDown(KeyCode.F4))
674 chara2.TryUpgrade(
true);
678 if (Input.GetKeyDown(KeyCode.F5))
680 string text2 = Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick");
681 if (text2 !=
Game.id)
683 IO.DeleteDirectory(
GameIO.pathSaveRoot + text2);
687 EClass.game.Save(
false,
null,
false);
689 if (Input.GetKeyDown(KeyCode.F6))
691 EClass.core.WaitForEndOfFrame(delegate
693 string slot = Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick");
698 if (Input.GetKeyDown(KeyCode.F7))
703 if (Input.GetKeyDown(KeyCode.F8))
706 this.EnableDebugResource();
707 this.runtimeGodBuild =
true;
709 EClass.player.hotbars.ResetHotbar(2);
713 if (Input.GetKeyDown(KeyCode.F9))
715 this.indexResolution++;
716 if (this.indexResolution >= this.resolutions.Count)
718 this.indexResolution = 0;
720 int[] array = this.resolutions[this.indexResolution];
721 int width = array[0];
722 int height = array[1];
723 Screen.SetResolution(width, height, key);
725 if (instance !=
null)
727 instance.Nerun(width.ToString() +
"/" + height.ToString(),
"UN_nerun");
730 if (Input.GetKeyDown(KeyCode.F10))
732 int width2 = Screen.width;
733 int height2 = width2 / 16 * 9;
734 Screen.SetResolution(width2, height2, key);
736 if (instance2 !=
null)
738 instance2.Nerun(width2.ToString() +
"/" + height2.ToString(),
"UN_nerun");
744 Input.GetKeyDown(KeyCode.F9);
745 if (Input.GetKey(KeyCode.F9))
747 EClass.scene.paused =
false;
748 for (
int i = 0; i < this.advanceMin; i++)
750 EClass.game.updater.FixedUpdate();
752 EClass.game.world.date.AdvanceMin(this.advanceMin);
754 if (Input.GetKeyDown(KeyCode.F10))
759 EClass.world.weather.SetCondition(
Weather.Condition.Rain, 20,
false);
762 EClass.world.weather.SetCondition(
Weather.Condition.Snow, 20,
false);
765 EClass.world.weather.SetCondition(
Weather.Condition.Ether, 20,
false);
768 EClass.world.weather.SetCondition(
Weather.Condition.Fine, 20,
false);
773 if (Input.GetKeyDown(KeyCode.N) && !EInput.isShiftDown && !EInput.isCtrlDown)
777 if (Input.GetKeyDown(KeyCode.M))
779 EClass.scene.ToggleMuteBGM();
781 if (Input.GetKeyDown(KeyCode.Tab))
789 EClass.ui.widgets.Toggle(
"Debug");
793 if (!hitPoint.IsValid ||
EClass.ui.IsActive)
797 if (hitPoint.detail !=
null)
799 Area area = hitPoint.area;
802 if (((detail !=
null) ? detail.things :
null) ==
null)
807 if (((detail2 !=
null) ? detail2.charas :
null) ==
null)
811 List<Card> list = hitPoint.ListCards(
false);
812 if (Input.GetMouseButtonDown(2))
814 if (
EClass.core.releaseMode != ReleaseMode.Public)
818 EClass._zone.SpawnMob(hitPoint,
null);
823 EClass._zone.SpawnMob(hitPoint,
null);
828 EClass._zone.SpawnMob(hitPoint,
null);
835 if (Input.GetMouseButtonDown(0))
837 foreach (
Card card
in list)
839 Debug.Log(
string.Concat(
new string[]
845 card.flipX.ToString(),
847 card.angle.ToString()
851 if (Input.GetMouseButtonDown(1))
855 EClass._map.charas.ForeachReverse(delegate(
Chara c)
857 if (c.IsHostile(
EClass.pc))
859 c.DamageHP(9999999, AttackSource.Finish,
EClass.pc);
863 else if (hitPoint.detail !=
null)
865 for (
int j = hitPoint.detail.charas.Count - 1; j >= 0; j--)
867 hitPoint.detail.charas[j].DamageHP(9999999, AttackSource.Finish,
EClass.pc);
870 EInput.Consume(
false, 1);
873 if (Input.GetKeyDown(KeyCode.Delete))
875 if (Input.GetKey(KeyCode.RightControl))
881 using (List<Card>.Enumerator enumerator2 =
EClass._map.Roaming.all.GetList<
Card>().GetEnumerator())
883 while (enumerator2.MoveNext())
885 Card t = enumerator2.Current;
886 EClass._zone.RemoveCard(t);
891 if (hitPoint.detail !=
null)
893 for (
int k = hitPoint.detail.things.Count - 1; k >= 0; k--)
895 hitPoint.detail.things[k].Destroy();
897 if (hitPoint.detail !=
null)
899 for (
int l = hitPoint.detail.charas.Count - 1; l >= 0; l--)
901 hitPoint.detail.charas[l].Destroy();
907 if (Input.GetKeyDown(KeyCode.End) && hitPoint.detail !=
null)
909 for (
int m = hitPoint.detail.things.Count - 1; m >= 0; m--)
911 Thing thing = hitPoint.detail.things[m];
912 string[] array2 =
new string[13];
913 array2[0] = thing.id;
915 array2[2] = thing.Pref.height.ToString();
918 Trait trait = thing.trait;
919 array2[num] = ((trait !=
null) ? trait.ToString() :
null);
921 array2[6] = thing.source.tileType.CanStack.ToString();
924 TileType tileType = thing.source.tileType;
925 array2[num2] = ((tileType !=
null) ? tileType.ToString() :
null);
927 array2[10] = thing.isSynced.ToString();
929 array2[12] =
RenderObject.syncList.Contains(thing.renderer).ToString();
930 Debug.Log(
string.Concat(array2));
933 if (!Application.isEditor)
937 switch (this.debugHotkeys)
940 if (Input.GetKeyDown(KeyCode.Alpha1))
942 EClass._map.SetLiquid(hitPoint.x, hitPoint.z, 1, 9);
944 if (Input.GetKeyDown(KeyCode.Alpha2))
946 EClass._map.SetLiquid(hitPoint.x, hitPoint.z, 2, 9);
950 if (Input.GetKeyDown(KeyCode.Alpha1))
954 thing2.SetPlaceState(PlaceState.installed,
false);
956 if (Input.GetKeyDown(KeyCode.Alpha2))
960 thing3.SetPlaceState(PlaceState.installed,
false);
962 if (Input.GetKeyDown(KeyCode.Alpha3))
965 EClass._zone.AddCard(thing4, hitPoint);
966 thing4.SetPlaceState(PlaceState.installed,
false);
968 if (Input.GetKeyDown(KeyCode.Alpha4))
971 EClass._zone.AddCard(thing5, hitPoint);
972 thing5.SetPlaceState(PlaceState.installed,
false);
974 if (Input.GetKeyDown(KeyCode.Alpha5))
977 EClass._zone.AddCard(thing6, hitPoint);
978 thing6.SetPlaceState(PlaceState.installed,
false);
980 if (Input.GetKeyDown(KeyCode.Alpha6))
983 EClass._zone.AddCard(thing7, hitPoint);
984 thing7.SetPlaceState(PlaceState.installed,
false);
986 if (Input.GetKeyDown(KeyCode.Alpha7))
989 EClass._zone.AddCard(t2, hitPoint);
991 if (Input.GetKeyDown(KeyCode.Alpha8))
994 EClass._zone.AddCard(t3, hitPoint);
996 if (Input.GetKeyDown(KeyCode.Alpha9))
999 EClass._zone.AddCard(t4, hitPoint);
1001 if (Input.GetKeyDown(KeyCode.Alpha0))
1004 EClass._zone.AddCard(t5, hitPoint);
1006 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1009 EClass._zone.AddCard(t6, hitPoint);
1013 if (Input.GetKeyDown(KeyCode.Alpha1))
1015 EClass._map.AddDecal(hitPoint.x, hitPoint.z,
EClass.pc.material.decal, 1,
true);
1017 if (Input.GetKeyDown(KeyCode.Alpha2))
1022 if (Input.GetKeyDown(KeyCode.Alpha1))
1024 QualitySettings.vSyncCount = 0;
1025 Application.targetFrameRate = 60;
1027 if (Input.GetKeyDown(KeyCode.Alpha2))
1029 QualitySettings.vSyncCount = 0;
1030 Application.targetFrameRate = 20;
1032 if (Input.GetKeyDown(KeyCode.Alpha3))
1034 QualitySettings.vSyncCount = 0;
1035 Application.targetFrameRate = 30;
1037 if (Input.GetKeyDown(KeyCode.Alpha4))
1039 QualitySettings.vSyncCount = 0;
1040 Application.targetFrameRate = 40;
1046 if (Input.GetKeyDown(KeyCode.Alpha0))
1050 if (Input.GetKeyDown(KeyCode.Alpha1))
1054 if (Input.GetKeyDown(KeyCode.Alpha2))
1058 if (Input.GetKeyDown(KeyCode.Alpha3))
1062 if (Input.GetKeyDown(KeyCode.Alpha4))
1066 if (Input.GetKeyDown(KeyCode.Alpha5))
1070 if (Input.GetKeyDown(KeyCode.Alpha6))
1074 if (Input.GetKeyDown(KeyCode.Alpha7))
1078 if (Input.GetKeyDown(KeyCode.Alpha8))
1082 if (Input.GetKeyDown(KeyCode.Alpha9))
1088 foreach (
Card card2
in hitPoint.ListCards(
false))
1090 card2.renderer.PlayAnime(num3.ToEnum<AnimeID>(),
default(Vector3),
false);
1092 Debug.Log(num3.ToEnum<AnimeID>());
1097 Card card3 = hitPoint.FirstChara ?? hitPoint.FirstThing;
1103 if (Input.GetKeyDown(KeyCode.Keypad0))
1105 charaActorPCC.NextFrame();
1106 charaActorPCC.RefreshSprite();
1108 if (Input.GetKeyDown(KeyCode.Keypad1))
1110 charaActorPCC.NextDir();
1111 card3.angle = charaActorPCC.provider.angle;
1112 charaActorPCC.RefreshSprite();
1114 if (Input.GetKeyDown(KeyCode.Keypad2))
1116 charaActorPCC.pcc.data.Randomize(
null,
null,
true);
1117 charaActorPCC.provider.Rebuild(PCCState.Normal);
1120 if (Input.GetKeyDown(KeyCode.Keypad4))
1122 this.lastEmo = this.lastEmo.NextEnum<Emo>();
1123 card3.ShowEmo(Emo.none, 0f,
true);
1124 card3.ShowEmo(this.lastEmo, 0f,
true);
1126 if (Input.GetKeyDown(KeyCode.Keypad5))
1128 card3.ShowEmo(Emo.none, 0f,
true);
1129 card3.ShowEmo(this.lastEmo, 0f,
true);
1131 if (Input.GetKeyDown(KeyCode.Keypad7))
1133 this.lastAnime = this.lastAnime.NextEnum<AnimeID>();
1134 card3.renderer.PlayAnime(this.lastAnime,
default(Vector3),
false);
1136 if (Input.GetKeyDown(KeyCode.Keypad8))
1138 card3.renderer.PlayAnime(this.lastAnime,
default(Vector3),
false);
1139 this.animeDest = card3;
1141 if (Input.GetKeyDown(KeyCode.Keypad9))
1143 card3.renderer.PlayAnime(AnimeID.Attack,
this.animeDest);
1149 public void InitDebugCommands()
1151 this.commands.Clear();
1153 this.<InitDebugCommands>g__Add|113_0(cat,
"Save Widgets", delegate
1155 EClass.ui.widgets.Save(
null);
1157 this.<InitDebugCommands>g__Add|113_0(cat,
"Save Widgets(Dialog)", delegate
1159 EClass.ui.widgets.DialogSave(
null);
1161 this.<InitDebugCommands>g__Add|113_0(cat,
"Export Zone", delegate
1165 this.<InitDebugCommands>g__Add|113_0(cat,
"Export Zone(Dialog)", delegate
1167 EClass._zone.ExportDialog(
null);
1169 this.<InitDebugCommands>g__Add|113_0(0,
"Import Zone(Dialog)", delegate
1171 EClass._zone.ImportDialog(
null);
1173 this.<InitDebugCommands>g__Add|113_0(cat,
"Validate Backer Contents", delegate
1179 int type = row.type;
1186 if (!
EClass.sources.religions.map.ContainsKey(row.deity.ToLower()))
1188 Debug.Log(
string.Concat(
new string[]
1199 else if (!
EClass.sources.charas.map.ContainsKey(row.chara))
1201 Debug.Log(
string.Concat(
new string[]
1211 else if (!
EClass.sources.things.map.ContainsKey(row.loot))
1213 Debug.Log(
string.Concat(
new string[]
1225 this.<InitDebugCommands>g__Add|113_0(cat,
"Edit PCC", delegate
1229 this.<InitDebugCommands>g__Add|113_0(cat,
"COM_Teleport",
new Action(this.COM_Teleport));
1230 this.<InitDebugCommands>g__Add|113_0(cat,
"LOG_Spatials",
new Action(this.LOG_Spatials));
1231 this.<InitDebugCommands>g__Add|113_0(cat,
"Play Start Drama",
new Action(this.COM_PlayStartDrama));
1232 this.<InitDebugCommands>g__Add|113_0(cat,
"Fix Floating Items", delegate
1236 if (thing.Pref.Float)
1238 thing.isFloating =
true;
1243 this.<InitDebugCommands>g__Add|113_0(cat,
"Add Conditions", delegate
1261 this.<InitDebugCommands>g__Add|113_0(cat,
"Max Construction",
new Action(this.COM_MaxConstruction));
1262 this.<InitDebugCommands>g__Add|113_0(cat,
"Add Reserves", delegate
1268 EClass.Home.AddReserve(
CharaGen.CreateFromFilter(
"c_wilds", -1, -1));
1269 EClass.Home.AddReserve(
CharaGen.CreateFromFilter(
"c_wilds", -1, -1));
1270 EClass.Home.AddReserve(
CharaGen.CreateFromFilter(
"c_wilds", -1, -1));
1272 this.<InitDebugCommands>g__Add|113_0(cat,
"Add Recruits", delegate
1274 if (
EClass.Branch ==
null)
1282 EClass.Branch.AddRecruit(
CharaGen.CreateFromFilter(
"c_wilds", -1, -1));
1283 EClass.Branch.AddRecruit(
CharaGen.CreateFromFilter(
"c_wilds", -1, -1));
1284 EClass.Branch.AddRecruit(
CharaGen.CreateFromFilter(
"c_wilds", -1, -1));
1286 this.<InitDebugCommands>g__Add|113_0(cat,
"Add Resources", delegate
1288 if (
EClass.Branch ==
null)
1292 EClass.Branch.resources.food.Mod(100,
true);
1293 EClass.Branch.resources.knowledge.Mod(100,
true);
1295 this.<InitDebugCommands>g__Add|113_0(cat,
"Add Influence", delegate
1297 EClass._zone.influence += 100;
1299 this.<InitDebugCommands>g__Add|113_0(cat,
"Reroll Hobbies", delegate
1303 chara.RerollHobby(
true);
1306 this.<InitDebugCommands>g__Add|113_0(cat,
"Test_Siege",
new Action(this.Test_Siege));
1307 this.<InitDebugCommands>g__Add|113_0(cat,
"Test_SiegeGuard",
new Action(this.Test_SiegeGuard));
1308 this.<InitDebugCommands>g__Add|113_0(cat,
"Log_BranchMembers", delegate
1310 if (
EClass._zone.IsPCFaction)
1312 Debug.Log(
EClass.Branch.members.Count);
1320 this.<InitDebugCommands>g__Add|113_0(cat,
"Weather.Fine", delegate
1322 EClass.world.weather.SetCondition(
Weather.Condition.Fine, 20,
false);
1324 this.<InitDebugCommands>g__Add|113_0(cat,
"Weather.Blossom", delegate
1326 EClass.world.weather.SetCondition(
Weather.Condition.Blossom, 20,
false);
1328 this.<InitDebugCommands>g__Add|113_0(cat,
"Weather.Random", delegate
1330 EClass.world.weather.SetRandomCondition();
1332 this.<InitDebugCommands>g__Add|113_0(cat,
"Weather.Ether+50", delegate
1334 EClass.world.ModEther(50);
1335 Debug.Log(
EClass.world.ether.ToString() +
"/" +
EClass.world.weather.CurrentCondition.ToString());
1337 this.<InitDebugCommands>g__Add|113_0(cat,
"Season.Next", delegate
1339 EClass.world.season.Next();
1341 this.<InitDebugCommands>g__Add|113_0(cat,
"Unreveal Map", delegate
1349 this.<InitDebugCommands>g__Add|113_0(cat,
"Test_GodTalk",
new Action(this.Test_GodTalk));
1350 this.<InitDebugCommands>g__Add|113_0(cat,
"Test_Filter",
new Action(this.Test_Filter));
1351 this.<InitDebugCommands>g__Add|113_0(cat,
"Test_Grow",
new Action(this.Test_Grow));
1352 this.<InitDebugCommands>g__Add|113_0(cat,
"Turn On All Lights", delegate
1356 if (thing.trait.IsLighting)
1358 thing.trait.Toggle(
true,
false);
1362 this.<InitDebugCommands>g__Add|113_0(cat,
"Reset All Custom Lights", delegate
1366 thing.c_lightColor = 0;
1367 thing.RecalculateFOV();
1370 this.<InitDebugCommands>g__Add|113_0(cat,
"Reset All obj materials", delegate
1376 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1380 this.<InitDebugCommands>g__Add|113_0(cat,
"Fix Floors under Blocks", delegate
1388 EClass._map.SetFloor((
int)c.x, (
int)c.z, row.DefaultMaterial.id, row.id);
1392 this.<InitDebugCommands>g__Add|113_0(cat,
"Bless Inventory", delegate
1396 t.SetBlessedState(BlessedState.Blessed);
1399 this.<InitDebugCommands>g__Add|113_0(cat,
"Curse Inventory", delegate
1403 t.SetBlessedState(BlessedState.Cursed);
1406 this.<InitDebugCommands>g__Add|113_0(cat,
"List Global Charas", delegate
1408 foreach (KeyValuePair<int, Chara> keyValuePair
in EClass.game.cards.globalCharas)
1410 string str = keyValuePair.Key.ToString();
1412 Chara value = keyValuePair.Value;
1413 Debug.Log(str + str2 + ((value !=
null) ? value.ToString() :
null));
1416 this.<InitDebugCommands>g__Add|113_0(cat,
"List Global Charas In Zone", delegate
1418 foreach (KeyValuePair<int, Chara> keyValuePair
in EClass.game.cards.globalCharas)
1420 if (keyValuePair.Value.currentZone ==
EClass._zone)
1422 string str = keyValuePair.Key.ToString();
1424 Chara value = keyValuePair.Value;
1425 Debug.Log(str + str2 + ((value !=
null) ? value.ToString() :
null));
1429 this.<InitDebugCommands>g__Add|113_0(cat,
"List Citizen", delegate
1431 using (Dictionary<int, string>.Enumerator enumerator =
EClass._zone.dictCitizen.GetEnumerator())
1433 while (enumerator.MoveNext())
1435 KeyValuePair<int, string> p = enumerator.Current;
1436 string[] array =
new string[7];
1437 array[0] = p.Key.ToString();
1443 array[num] = ((chara !=
null) ? chara.ToString() :
null);
1446 IEnumerable<Chara> enumerable = from c in EClass._map.deadCharas
1447 where c.uid == p.Key
1449 array[num2] = ((enumerable !=
null) ? enumerable.ToString() :
null);
1450 Debug.Log(
string.Concat(array));
1457 public void Test_Grow()
1461 if (c.sourceObj.HasGrowth)
1469 if (traitSeed !=
null)
1471 traitSeed.TrySprout(
true,
false,
null);
1477 public void Test_GodTalk()
1479 foreach (
Religion religion
in EClass.game.religions.dictAll.Values)
1481 religion.Talk(
"test",
null,
null);
1486 public void COM_Teleport()
1488 for (
int i = 0; i < 10000; i++)
1493 if (point.IsValid && !point.cell.blocked && point.HasFloor)
1495 EClass.pc.Teleport(point,
false,
false);
1502 public void COM_PlayStartDrama()
1505 EClass.game.world.date.hour = 2;
1506 EClass.scene.screenElin.RefreshAll();
1507 LayerDrama.ActivateMain(
"mono",
"1-2",
null,
null,
"");
1511 public void Test_Filter()
1513 this.bilinear = !this.bilinear;
1515 for (
int i = 0; i < passes.Length; i++)
1517 passes[i].mat.GetTexture(
"_MainTex").filterMode = (this.bilinear ? FilterMode.Bilinear : FilterMode.Point);
1522 public void LOG_Spatials()
1526 Debug.Log(
string.Concat(
new string[]
1528 spatial.uid.ToString(),
1532 spatial.mainFaction.name,
1534 (spatial ==
EClass.player.zone).ToString()
1540 public void Test_SiegeGuard()
1551 public void Test_Siege()
1562 public void COM_MaxConstruction()
1564 if (
EClass.pc.homeBranch ==
null)
1568 EClass.pc.homeBranch.owner.elements.ModBase(2003, 50);
1572 public static bool CheatEnabled()
1574 return EClass.debug.enable ||
EClass.game.config.cheat;
1579 public static string EnableCheat
1583 return "Enable cheat by typing 'Cheat'";
1588 [ConsoleCommand(
"")]
1589 public static string Cheat()
1591 EClass.game.config.cheat =
true;
1592 return "Cheat Enabled";
1596 [ConsoleCommand(
"")]
1597 public static string Fix_RemoveDuplicateUnique()
1599 if (
EClass.Branch ==
null)
1603 EClass.Branch.members.ForeachReverse(delegate(
Chara c)
1605 if ((c.id ==
"kettle" || c.id ==
"quru") && (from c2 in
EClass.Branch.members
1607 select c2).Count<
Chara>() >= 2)
1609 EClass.Branch.RemoveMemeber(c);
1617 [ConsoleCommand(
"")]
1618 public static string Fix_EtherDisease()
1620 EClass.pc.ModCorruption(-100000);
1622 chara.ChangeRace(
EClass.pc.race.id);
1623 chara.ChangeJob(
EClass.pc.job.id);
1625 foreach (
Element element
in chara.elements.dict.Values)
1627 if (!(element.source.category !=
"attribute"))
1629 Element orCreateElement =
EClass.pc.elements.GetOrCreateElement(element.id);
1630 if (element.vBase > orCreateElement.vBase)
1632 text =
string.Concat(
new string[]
1635 "Fixing Base Value:",
1636 orCreateElement.Name,
1638 orCreateElement.vBase.ToString(),
1640 (element.vBase + 1).ToString(),
1643 EClass.pc.elements.ModBase(orCreateElement.id, element.vBase - orCreateElement.vBase + 1);
1647 return text +
"Fixed!";
1651 [ConsoleCommand(
"")]
1652 public static string ListChara()
1657 text = text + row.id +
"\n";
1663 [ConsoleCommand(
"")]
1664 public static string ListThing()
1669 text = text + row.id +
"\n";
1675 [ConsoleCommand(
"")]
1676 public static string SetElement(
string alias,
int value,
int potential = 100)
1685 return "Element not found.";
1687 EClass.pc.elements.SetBase(row.id, value, potential);
1692 [ConsoleCommand(
"")]
1693 public static string Spawn(
string id,
int num = 1)
1699 if (
EClass.sources.things.map.ContainsKey(
id))
1703 return "Spawned " + thing.Name;
1705 if (
EClass.sources.charas.map.ContainsKey(
id))
1709 return "Spawned " + chara.Name;
1711 return "'" +
id +
"' does not exist in the database.";
1715 [ConsoleCommand(
"")]
1716 public static string TestSpawn(
int lv,
int num)
1722 foreach (
Chara chara
in (from c
in EClass._map.charas
1723 where c.HasEditorTag(EditorTag.SpawnTest)
1724 select c).ToList<
Chara>())
1728 for (
int i = 0; i < num; i++)
1733 }).AddEditorTag(EditorTag.SpawnTest);
1739 [ConsoleCommand(
"")]
1740 public static string ResetPetUpgrades()
1742 foreach (
Chara chara
in EClass.game.cards.globalCharas.Values)
1744 if (chara.IsPCFaction)
1746 chara.ResetUpgrade();
1749 return "Not Implemented.";
1753 [ConsoleCommand(
"")]
1754 public static string GodMode()
1760 EClass.pc.Revive(
null,
false);
1761 EClass.pc.hp =
EClass.pc.MaxHP;
1766 [ConsoleCommand(
"")]
1767 public static string ModFame(
int amount)
1773 EClass.player.ModFame(amount);
1778 [ConsoleCommand(
"")]
1779 public static string ModKarma(
int amount)
1785 EClass.player.ModKarma(amount);
1790 [ConsoleCommand(
"")]
1791 public static string ModContribution(
int amount)
1797 Guild currentGuild =
Guild.GetCurrentGuild();
1798 if (currentGuild !=
null)
1800 currentGuild.AddContribution(amount);
1806 [ConsoleCommand(
"")]
1807 public static string FlyMode()
1810 return "I can fly!";
1814 [ConsoleCommand(
"")]
1815 public static string ChangeRace(
string id =
"?")
1817 if (
EClass.sources.races.map.ContainsKey(
id))
1822 if (bodySlot.thing !=
null)
1824 if (bodySlot.thing.blessedState <= BlessedState.Cursed)
1826 bodySlot.thing.blessedState = BlessedState.Normal;
1830 thing = bodySlot.thing;
1832 EClass.pc.body.Unequip(bodySlot,
true);
1835 EClass.pc.body.RemoveBodyPart(45);
1836 EClass.pc.body.RemoveBodyPart(44);
1837 EClass.pc.ChangeRace(
id);
1838 if (
EClass.ui.IsInventoryOpen)
1840 EClass.ui.ToggleInventory(
false);
1842 EClass.pc.body.AddBodyPart(45,
null);
1843 EClass.pc.body.AddBodyPart(44,
null);
1844 EClass.pc.body.Equip(thing,
null,
true);
1850 text =
string.Concat(
new string[]
1863 [ConsoleCommand(
"")]
1864 public static string ChangeJob(
string id =
"?")
1866 if (
EClass.sources.jobs.map.ContainsKey(
id))
1869 EClass.player.RefreshDomain();
1875 text =
string.Concat(
new string[]
1888 [ConsoleCommand(
"")]
1889 public static string FirstAdventurer()
1891 string text =
"Steam is not running.";
1892 if (SteamAPI.IsSteamRunning())
1894 DateTime dateTime =
new DateTime(2024, 11, 2, 18, 0, 0);
1895 DateTimeOffset left = DateTimeOffset.FromUnixTimeSeconds((
long)((ulong)SteamApps.GetEarliestPurchaseUnixTime(
EClass.core.steam.steamworks.settings.applicationId)));
1896 left.ToOffset(
new TimeSpan(9, 0, 0));
1897 Debug.Log(
string.Concat(
new string[]
1899 dateTime.Year.ToString(),
1901 dateTime.Month.ToString(),
1903 dateTime.Day.ToString(),
1905 dateTime.Hour.ToString()
1907 text = ((left > dateTime) ?
"" :
"");
1908 text =
string.Concat(
new string[]
1911 "Arrived North Tyris on ",
1912 left.Year.ToString(),
1914 left.Month.ToString(),
1916 left.Day.ToString(),
1918 left.Hour.ToString(),
1920 left.Minute.ToString()
1922 text =
string.Concat(
new string[]
1926 dateTime.Year.ToString(),
1928 dateTime.Month.ToString(),
1930 dateTime.Day.ToString(),
1932 dateTime.Hour.ToString(),
1934 dateTime.Minute.ToString()
1941 [ConsoleCommand(
"")]
1942 public static string AllRecipe(
bool forget =
false)
1950 EClass.player.recipes.knownRecipes.Clear();
1954 EClass.debug.AddAllRecipes();
1960 [ConsoleCommand(
"")]
1961 public static string LastWish(
string name)
1966 if (row.name.Contains(name) || row.id.ToString() == name)
1968 text =
string.Concat(
new string[]
1973 row.valid.ToString(),
1977 row.type.ToString(),
1979 EClass.player.doneBackers.Contains(row.id).ToString(),
1981 row.loc.IsEmpty() ?
"random" : row.loc,
1990 text += Resources.Load<TextAsset>(
"logo2").text;
1995 [ConsoleCommand(
"")]
1996 public static string ClearLastWishFlag()
2002 EClass.player.doneBackers.Clear();
2003 return Resources.Load<TextAsset>(
"logo2").text + Environment.NewLine +
"Done!";
2007 [ConsoleCommand(
"")]
2008 public static string Resource()
2014 EClass.debug.SpawnCheatContainer();
2015 return "Resources spawned.";
2019 public void Log(
object o)
2025 public void NextBGM()
2027 if (!SoundManager.current)
2031 SoundManager.current.NextBGM();
2035 public void ToggleRevealMap()
2037 this.revealMap = !this.revealMap;
2040 EClass._map.RevealAll(
true);
2046 public void LoadBroadcast()
2048 TextAsset textAsset = Resources.Load<TextAsset>(
"Data/Text/broadcast");
2049 this.blines = textAsset.text.Split(
'-', StringSplitOptions.None);
2053 public void BroadcastNext()
2055 this.LoadBroadcast();
2056 if (Input.GetKey(KeyCode.LeftControl))
2060 this.bidx = Mathf.Clamp(this.bidx, 0, this.blines.Length - 1);
2061 string text = this.blines[this.bidx];
2062 this.bidx += (Input.GetKey(KeyCode.LeftShift) ? -1 : 1);
2063 EClass.pc.SayRaw(text.TrimNewLines(),
null,
null);
2068 internal static void <QuickStart>g__AddParty|102_0(
string id, ref
CoreDebug.<>c__DisplayClass102_0 A_1)
2071 chara.SetFaction(
EClass.Home);
2072 chara.SetHomeZone(A_1.homeZone);
2073 if (chara.currentZone !=
EClass._zone)
2075 EClass._zone.AddCard(chara,
EClass.pc.pos.GetNearestPoint(
false,
false,
true,
false));
2077 EClass.pc.party.AddMemeber(chara);
2082 internal static Thing <QuickStart>g__AddHotbar|102_1(
string id, ref
CoreDebug.<>c__DisplayClass102_0 A_1)
2085 thing.invX = A_1.idx;
2094 internal static Thing <QuickStart>g__AddAbility|102_2(
string id)
2097 thing.c_idAbility = id;
2103 private void <InitDebugCommands>g__Add|113_0(
int cat,
string id, Action action)
2111 this.commands.Add(item);
2115 [Header(
"Quick Start Setup")]
2116 public CoreDebug.StartScene startScene;
2119 public CoreDebug.StartLoadout startLoadout;
2122 public CoreDebug.StartParty startParty;
2125 public int startHour;
2131 public string startZone;
2134 [Header(
"System(Release)")]
2135 public bool showSceneSelector;
2138 [Header(
"System(Release)")]
2139 public bool skipModSync;
2142 public Lang.LangCode langCode;
2146 public bool ignorePool;
2150 public bool resetPlayerConfig;
2153 public bool dontUseThread;
2156 public bool useNewConfig;
2159 public bool ignoreAutoSave;
2162 public bool alwaysResetWindow;
2165 public bool validateData;
2168 public bool dontCompressSave;
2171 public bool skipMod;
2174 public string command;
2178 public bool debugInput;
2181 public bool keypadDebug;
2184 public CoreDebug.DebugHotkey debugHotkeys;
2188 public int advanceMin;
2191 public bool testLOS;
2194 public bool testLOS2;
2197 public bool debugProps;
2200 public bool revealMap;
2203 public bool debugHoard;
2206 public bool revealInner;
2209 public bool ignorePopup;
2212 public bool skipEvent;
2215 public bool skipNerun;
2218 public bool showTone;
2221 public bool showExtra;
2228 public bool godMode;
2231 public bool randomResource;
2234 public bool debugScatter;
2237 public bool _godBuild;
2240 public bool godCraft;
2243 public bool godFood;
2246 public bool ignoreBuildRule;
2249 public bool ignoreWeight;
2252 public bool autoIdentify;
2255 public bool allAbility;
2258 public bool allSkill;
2261 public bool allHomeSkill;
2270 public bool ignoreEncounter;
2273 public bool returnAnywhere;
2276 public bool instaReturn;
2279 public bool travelAnywhere;
2282 public bool hidePCItemsInBuild;
2285 public bool autoAdvanceQuest;
2288 public bool enableMapPieceEditor;
2291 public bool testThingQuality;
2294 public int numResource;
2297 [Header(
"Game(Specific)")]
2298 public bool unlimitedInterest;
2301 public bool inviteAnytime;
2304 public bool marryAnytime;
2307 public bool showFav;
2310 public bool alwaysFavFood;
2313 public bool maxQuests;
2316 [Header(
"Progress")]
2317 public bool allRecipe;
2320 public bool allMenu;
2323 public bool allPolicy;
2326 public bool allStory;
2329 public bool skipInitialQuest;
2337 public bool logCombat;
2340 public bool logDice;
2344 public bool validatePref;
2358 public bool boradcast;
2361 public bool testFixedColor;
2364 public Color32 fixedColor;
2367 private readonly List<int[]> resolutions =
new List<int[]>
2387 private Card animeDest;
2394 private bool bilinear;
2398 private string[] blines;
2408 public Fov fov =
new Fov();
2411 private int indexResolution;
2414 private AnimeID lastAnime;
2417 private Emo lastEmo;
2424 private bool runtimeGodBuild;
2444 public enum DebugHotkey
2463 public enum StartLoadout
2474 public enum StartParty
2485 public enum StartScene
2514 public void Update()
2518 if (row !=
MATERIAL.sourceWaterSea)
2520 MatColors matColors = this.profile.matColors.TryGetValue(row.alias,
null);
2521 row.matColor = matColors.main;
2522 row.altColor = matColors.alt;
2534 public int matColor;
2544 public Action action;