2using System.Collections.Generic;
4using ReflexCLI.Attributes;
8[ConsoleCommandClassCustomizer(
"")]
94 row.matColor = matColors.
main;
95 row.altColor = matColors.
alt;
110 [
Header(
"Quick Start Setup")]
123 [
Header(
"System(Release)")]
126 [
Header(
"System(Release)")]
234 [
Header(
"Game(Specific)")]
283 new int[2] { 1920, 1080 },
284 new int[2] { 1366, 768 },
285 new int[2] { 1280, 720 }
298 public List<DebugCommand>
commands =
new List<DebugCommand>();
330 public static string EnableCheat =>
"Enable cheat by typing 'Cheat'";
335 List<string> list =
new List<string>();
346 EInput.disableKeyAxis = Application.isEditor;
369 EClass.game.idPrologue = 3;
372 EClass.game.idPrologue = 2;
377 EClass.player.pref.lastIdTabAbility = 3;
394 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])))
404 if (row2.isSkill && !row2.tag.Contains(
"unused"))
413 EClass.player.totalFeat = lv;
414 EClass.pc.feat = 1000;
416 EClass.player.fame = EClass.pc.LV * 100;
431 AddHotbar(
"pickaxe");
432 AddHotbar(
"wateringCan");
435 AddAbility(
"SpellTeleport");
436 AddAbility(
"SpellCatsEye");
437 AddHotbar(
"map_big");
443 AddHotbar(
"pickaxe").ChangeMaterial(0);
450 for (
int i = 0; i < 30; i++)
456 for (
int j = 0; j < 30; j++)
472 for (
int k = 0; k < 5; k++)
478 for (
int l = 0; l < 30; l++)
491 for (
int m = 0; m < 30; m++)
497 for (
int n = 0; n < 20; n++)
505 for (
int num = 0; num < 20; num++)
507 string id2 = list.RandomItem().id;
515 for (
int num2 = 0; num2 < 20; num2++)
517 string id3 = list.RandomItem().id;
526 for (
int num3 = 0; num3 < 20; num3++)
528 string id4 = list.RandomItem().id;
553 thing.
Dye(
"saphire");
564 thing.
Dye(
"rubinus");
572 for (
int num4 = 0; num4 < 10; num4++)
581 thing.
Dye(
"rubinus");
585 if (row3.tag.Contains(
"seed"))
594 for (
int num5 = 0; num5 < 30; num5++)
601 for (
int num6 = 0; num6 < 30; num6++)
608 for (
int num7 = 0; num7 < 30; num7++)
615 for (
int num8 = 0; num8 < 40; num8++)
641 thing9.refVal = 8220;
647 AddHotbar(
"pickaxe");
648 AddHotbar(
"wateringCan");
649 AddHotbar(
"gun_assault");
663 SoundManager.ignoreSounds =
true;
665 SoundManager.ignoreSounds =
true;
667 SoundManager.ignoreSounds =
false;
675 thing12.isNew =
false;
710 static Thing AddAbility(
string id)
713 thing10.c_idAbility = id;
716 Thing AddHotbar(
string id)
724 void AddParty(
string id)
758 LittlePopper.skipPop =
true;
763 row.CreateByProduct(container, num);
768 if ((row2.factory.IsEmpty() || !(row2.factory[0] ==
"x")) && !row2.isOrigin && row2.Category.tag.Contains(
"debug"))
778 for (
int i = 0; i < 10; i++)
782 LittlePopper.skipPop =
false;
789 if (thing2.
c_altName ==
"DebugContainer")
796 thing.c_altName =
"DebugContainer";
797 thing.isNPCProperty =
false;
838 if (Input.GetKeyDown(KeyCode.B))
842 if (Input.GetKeyDown(KeyCode.P))
846 if (Input.GetKeyDown(KeyCode.F11))
848 if (Application.isEditor)
856 NewsList.dict =
null;
857 BookList.dict =
null;
858 BottleMessageList.list =
null;
862 if (Input.GetKeyDown(KeyCode.U))
866 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
868 if (Input.GetKeyDown(KeyCode.I))
872 EClass.screen.tileMap.rendererInnerBlock.offset =
new Vector3(0f, 0.54f, -0.5f);
893 bool key = Input.GetKey(KeyCode.LeftShift);
894 bool key2 = Input.GetKey(KeyCode.LeftAlt);
895 bool key3 = Input.GetKey(KeyCode.LeftControl);
897 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (
EInput.
isShiftDown && Input.GetKeyDown(KeyCode.Period)))
905 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Period)))
909 if (Input.GetKeyDown(KeyCode.KeypadMinus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Comma)))
916 EClass.
ui.Find(
"_Guide").ToggleActive();
918 if (Input.GetKey(KeyCode.N))
922 SoundManager.current.sourceBGM.pitch = 10f;
926 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
929 else if (Input.GetKeyUp(KeyCode.N))
931 SoundManager.current.sourceBGM.pitch = 1f;
935 string text =
"festival";
936 if (Input.GetKeyDown(KeyCode.F1))
940 if (Input.GetKeyDown(KeyCode.F2))
942 Zone.forceRegenerate =
true;
948 if (Input.GetKeyDown(KeyCode.F4))
955 Zone.forceRegenerate =
true;
956 Zone.forceSubset = text;
963 if (Input.GetKeyDown(KeyCode.F5))
971 if (Input.GetKeyDown(KeyCode.F1))
978 if (Input.GetKeyDown(KeyCode.F2))
981 EClass._zone.development += 10;
984 if (targetChara !=
null)
1001 chara.hostility = hostility2;
1005 if (Input.GetKeyDown(KeyCode.F3))
1007 for (
int i = 0; i < 10; i++)
1016 Debug.Log(deadChara);
1021 Guild.Fighter.relation.rank = 20;
1022 Guild.Mage.relation.rank = 20;
1023 Guild.Thief.relation.rank = 20;
1024 Guild.Merchant.relation.rank = 20;
1038 EClass.pc.feat += 10;
1039 EClass.player.totalFeat += 10;
1042 if (Input.GetKeyDown(KeyCode.F4))
1044 string text2 =
new string[4] {
"エターナルフォースブリザード",
"Eternal Force Blizzard",
"ぬるぽ",
"Null Pointer" }.RandomItem();
1048 if (Input.GetKeyDown(KeyCode.F5))
1050 string text3 = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1057 EClass.game.isCloud =
false;
1060 if (Input.GetKeyDown(KeyCode.F6))
1064 string id = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1069 if (Input.GetKeyDown(KeyCode.F7))
1074 if (Input.GetKeyDown(KeyCode.F8))
1084 if (Input.GetKeyDown(KeyCode.F9))
1092 int width = array[0];
1093 int height = array[1];
1094 Screen.SetResolution(width, height, key);
1097 if (Input.GetKeyDown(KeyCode.F10))
1099 int width2 = Screen.width;
1100 int height2 = width2 / 16 * 9;
1101 Screen.SetResolution(width2, height2, key);
1107 Input.GetKeyDown(KeyCode.F9);
1108 if (Input.GetKey(KeyCode.F9))
1110 EClass.scene.paused =
false;
1117 if (Input.GetKeyDown(KeyCode.F10))
1140 if (Input.GetKeyDown(KeyCode.Tab))
1156 if (hitPoint.
detail !=
null)
1169 if (Input.GetMouseButtonDown(2))
1190 if (Input.GetMouseButtonDown(0))
1192 foreach (
Card item2
in list)
1197 if (Input.GetMouseButtonDown(1))
1205 c.DamageHP(999999999L, AttackSource.Finish, EClass.pc);
1209 else if (hitPoint.
detail !=
null)
1211 for (
int num = hitPoint.
detail.
charas.Count - 1; num >= 0; num--)
1219 if (Input.GetKeyDown(KeyCode.Delete))
1221 if (Input.GetKey(KeyCode.RightControl))
1232 else if (hitPoint.
detail !=
null)
1234 for (
int num2 = hitPoint.
detail.
things.Count - 1; num2 >= 0; num2--)
1238 if (hitPoint.
detail !=
null)
1240 for (
int num3 = hitPoint.
detail.
charas.Count - 1; num3 >= 0; num3--)
1247 if (Input.GetKeyDown(KeyCode.End) && hitPoint.
detail !=
null)
1249 for (
int num4 = hitPoint.
detail.
things.Count - 1; num4 >= 0; num4--)
1255 if (!Application.isEditor)
1264 if (Input.GetKeyDown(KeyCode.Alpha0))
1268 if (Input.GetKeyDown(KeyCode.Alpha1))
1272 if (Input.GetKeyDown(KeyCode.Alpha2))
1276 if (Input.GetKeyDown(KeyCode.Alpha3))
1280 if (Input.GetKeyDown(KeyCode.Alpha4))
1284 if (Input.GetKeyDown(KeyCode.Alpha5))
1288 if (Input.GetKeyDown(KeyCode.Alpha6))
1292 if (Input.GetKeyDown(KeyCode.Alpha7))
1296 if (Input.GetKeyDown(KeyCode.Alpha8))
1300 if (Input.GetKeyDown(KeyCode.Alpha9))
1316 if (Input.GetKeyDown(KeyCode.Alpha1))
1320 if (Input.GetKeyDown(KeyCode.Alpha2))
1326 if (Input.GetKeyDown(KeyCode.Alpha1))
1332 if (Input.GetKeyDown(KeyCode.Alpha2))
1338 if (Input.GetKeyDown(KeyCode.Alpha3))
1344 if (Input.GetKeyDown(KeyCode.Alpha4))
1350 if (Input.GetKeyDown(KeyCode.Alpha5))
1356 if (Input.GetKeyDown(KeyCode.Alpha6))
1362 if (Input.GetKeyDown(KeyCode.Alpha7))
1367 if (Input.GetKeyDown(KeyCode.Alpha8))
1372 if (Input.GetKeyDown(KeyCode.Alpha9))
1377 if (Input.GetKeyDown(KeyCode.Alpha0))
1382 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1389 if (Input.GetKeyDown(KeyCode.Alpha1))
1393 if (!Input.GetKeyDown(KeyCode.Alpha2))
1398 if (Input.GetKeyDown(KeyCode.Alpha1))
1400 QualitySettings.vSyncCount = 0;
1401 Application.targetFrameRate = 60;
1403 if (Input.GetKeyDown(KeyCode.Alpha2))
1405 QualitySettings.vSyncCount = 0;
1406 Application.targetFrameRate = 20;
1408 if (Input.GetKeyDown(KeyCode.Alpha3))
1410 QualitySettings.vSyncCount = 0;
1411 Application.targetFrameRate = 30;
1413 if (Input.GetKeyDown(KeyCode.Alpha4))
1415 QualitySettings.vSyncCount = 0;
1416 Application.targetFrameRate = 40;
1426 if ((
bool)charaActorPCC)
1428 if (Input.GetKeyDown(KeyCode.Keypad0))
1433 if (Input.GetKeyDown(KeyCode.Keypad1))
1436 card.angle = charaActorPCC.
provider.angle;
1439 if (Input.GetKeyDown(KeyCode.Keypad2))
1441 charaActorPCC.
pcc.data.Randomize();
1445 if (Input.GetKeyDown(KeyCode.Keypad4))
1451 if (Input.GetKeyDown(KeyCode.Keypad5))
1456 if (Input.GetKeyDown(KeyCode.Keypad7))
1461 if (Input.GetKeyDown(KeyCode.Keypad8))
1466 if (Input.GetKeyDown(KeyCode.Keypad9))
1476 Add(cat2,
"Save Widgets", delegate
1480 Add(cat2,
"Save Widgets(Dialog)", delegate
1484 Add(cat2,
"Export Zone", delegate
1488 Add(cat2,
"Export Zone(Dialog)", delegate
1492 Add(0,
"Import Zone(Dialog)", delegate
1496 Add(cat2,
"Validate Backer Contents", delegate
1505 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1507 Debug.Log(row2.id +
"/remain/" + row2.Name +
"/" + row2.loot);
1511 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1513 Debug.Log(row2.id +
"/pet/" + row2.Name +
"/" + row2.chara);
1517 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLowerInvariant()))
1519 Debug.Log(row2.id +
"/" + row2.Name +
"/follower/" + row2.deity);
1526 Add(cat2,
"Edit PCC", delegate
1533 Add(cat2,
"Fix Floating Items", delegate
1537 if (thing.Pref.Float)
1539 thing.isFloating = true;
1544 Add(cat2,
"Add Conditions", delegate
1548 EClass.pc.AddCondition<ConWet>();
1552 EClass.pc.AddCondition<ConSuffocation>();
1556 EClass.pc.AddCondition<ConPoison>();
1560 EClass.pc.AddCondition<ConDisease>();
1564 Add(cat2,
"Max Construction", COM_MaxConstruction);
1565 Add(cat2,
"Add Reserves", delegate
1575 Add(cat2,
"Add Recruits", delegate
1579 EClass.Branch.AddRecruit(CharaGen.Create(
"merc_archer"));
1580 EClass.Branch.AddRecruit(CharaGen.Create(
"healer"));
1581 EClass.Branch.AddRecruit(CharaGen.Create(
"bartender"));
1582 EClass.Branch.AddRecruit(CharaGen.Create(
"merchant"));
1583 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1584 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1585 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1588 Add(cat2,
"Add Resources", delegate
1592 EClass.Branch.resources.food.Mod(100);
1593 EClass.Branch.resources.knowledge.Mod(100);
1596 Add(cat2,
"Remove Influence", delegate
1598 EClass._zone.influence = 0;
1600 Add(cat2,
"Reroll Hobbies", delegate
1604 chara.RerollHobby();
1607 Add(cat2,
"Test_Siege", Test_Siege);
1608 Add(cat2,
"Test_SiegeGuard", Test_SiegeGuard);
1609 Add(cat2,
"Log_BranchMembers", delegate
1613 Debug.Log(EClass.Branch.members.Count);
1614 foreach (Chara member in EClass.Branch.members)
1616 EClass.debug.Log(member);
1621 Add(cat2,
"Weather.Fine", delegate
1625 Add(cat2,
"Weather.Blossom", delegate
1629 Add(cat2,
"Weather.Random", delegate
1633 Add(cat2,
"Weather.Ether+50", delegate
1638 Add(cat2,
"Season.Next", delegate
1642 Add(cat2,
"Unreveal Map", delegate
1650 Add(cat2,
"Test_GodTalk", Test_GodTalk);
1651 Add(cat2,
"Test_Filter", Test_Filter);
1652 Add(cat2,
"Test_Grow", Test_Grow);
1653 Add(cat2,
"Turn On All Lights", delegate
1657 if (thing2.trait.IsLighting)
1659 thing2.trait.Toggle(on: true);
1663 Add(cat2,
"Reset All Custom Lights", delegate
1667 thing3.c_lightColor = 0;
1668 thing3.RecalculateFOV();
1671 Add(cat2,
"Reset All obj materials", delegate
1677 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1681 Add(cat2,
"Reset Certain obj materials", delegate
1687 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1691 Add(cat2,
"Fix Floors under Blocks", delegate
1697 SourceBlock.Row sourceBlock = c.sourceBlock;
1698 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1699 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1703 Add(cat2,
"Bless Inventory", delegate
1710 Add(cat2,
"Curse Inventory", delegate
1717 Add(cat2,
"List Global Charas", delegate
1721 Debug.Log(globalChara.Key +
"/" + globalChara.Value.Name +
"/" + ((globalChara.Value.currentZone == null) ?
"NULL" : globalChara.Value.currentZone.Name) +
"/" + globalChara.Value.faction?.ToString() +
"/" + globalChara.Value.homeBranch);
1724 Add(cat2,
"List Global Charas In Zone", delegate
1728 if (globalChara2.Value.currentZone == EClass._zone)
1730 Debug.Log(globalChara2.Key +
"/" + globalChara2.Value);
1734 Add(cat2,
"List Citizen", delegate
1739 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1740 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1743 void Add(
int cat,
string id, Action action)
1745 DebugCommand
item =
new DebugCommand
1768 traitSeed.TrySprout(force:
true);
1783 for (
int i = 0; i < 10000; i++)
1799 EClass.game.world.date.hour = 2;
1806 bilinear = !bilinear;
1808 for (
int i = 0; i < passes.Length; i++)
1810 passes[i].
mat.GetTexture(
"_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1863 [ConsoleCommand(
"")]
1866 EClass.game.config.cheat =
true;
1867 return "Cheat Enabled";
1870 [ConsoleCommand(
"")]
1874 if (questDebt ==
null)
1876 return "Quest Status Not Valid.";
1878 questDebt.stage = 0;
1879 questDebt.paid =
false;
1880 questDebt.gaveBill =
false;
1881 EClass.player.debt = 20000000;
1885 return "Quest Reset!";
1888 [ConsoleCommand(
"")]
1893 if (thing.
id ==
"ash3")
1895 thing.id =
"awning ";
1903 [ConsoleCommand(
"")]
1914 EClass.Branch.RemoveMemeber(c);
1921 [ConsoleCommand(
"")]
1931 if (!(value.
source.category !=
"attribute"))
1936 text = text +
"Fixing Base Value:" + orCreateElement.Name +
" Before:" + orCreateElement.vBase +
" Now:" + (value.vBase + 1) + Environment.NewLine;
1941 return text +
"Fixed!";
1944 [ConsoleCommand(
"")]
1949 return "Not in base.";
1955 return "Base already has core.";
1960 return "Player has core.";
1966 [ConsoleCommand(
"")]
1969 List<Chara> list =
new List<Chara>();
1979 Chara chara = list[1];
1983 return "Demitas Removed!";
1985 return "Not enough Demitas!";
1988 [ConsoleCommand(
"")]
1991 List<Chara> list =
new List<Chara>();
1994 if (value.
id ==
"ashland")
2001 Chara chara = list[1];
2005 return "Ashland Removed!";
2007 return "Not enough Ashland!";
2010 [ConsoleCommand(
"")]
2017 c.detail.designation.taskList.Remove(c.detail.designation);
2023 [ConsoleCommand(
"")]
2029 text = text + row.id +
"\n";
2034 [ConsoleCommand(
"")]
2040 text = text + row.id +
"\n";
2045 [ConsoleCommand(
"")]
2046 public static string SetElement(
string alias,
int value,
int potential = 100)
2048 if (!CheatEnabled())
2055 return "Element not found.";
2057 if (row.
type ==
"Feat")
2068 [ConsoleCommand(
"")]
2071 if (!CheatEnabled())
2078 return "Spawned " + chara.
Name;
2080 return "'" +
id +
"' does not exist in the database.";
2083 [ConsoleCommand(
"")]
2084 public static string Spawn(
string id,
int num = 1,
string aliasMat =
"",
int objLv = -1)
2086 if (!CheatEnabled())
2093 if (!aliasMat.IsEmpty())
2098 return "Spawned " + thing.
Name;
2109 return "Spawned " + chara.
Name;
2111 return "'" +
id +
"' does not exist in the database.";
2114 [ConsoleCommand(
"")]
2117 if (!CheatEnabled())
2123 return "'" +
id +
"' does not exist in the database.";
2127 string c_idRefCard = (thing2.c_idRefCard = id);
2128 thing.c_idRefCard = c_idRefCard;
2131 return "Spawned figures for '" +
id +
"'";
2134 [ConsoleCommand(
"")]
2135 public static string TestSpawn(
int lv,
int num,
int lvRange = -1)
2137 if (!CheatEnabled())
2143 EClass._zone._dangerLv = lv;
2149 for (
int i = 0; i < num; i++)
2154 levelRange = lvRange
2160 [ConsoleCommand(
"")]
2170 return "Not Implemented.";
2173 [ConsoleCommand(
"")]
2176 if (!CheatEnabled())
2184 [ConsoleCommand(
"")]
2187 if (!CheatEnabled())
2196 [ConsoleCommand(
"")]
2199 if (!CheatEnabled())
2207 [ConsoleCommand(
"")]
2210 if (!CheatEnabled())
2222 [ConsoleCommand(
"")]
2225 if (!CheatEnabled())
2233 [ConsoleCommand(
"")]
2236 if (!CheatEnabled())
2244 [ConsoleCommand(
"")]
2247 if (!CheatEnabled())
2258 [ConsoleCommand(
"")]
2261 if (!CheatEnabled())
2266 return "I can fly!";
2269 [ConsoleCommand(
"")]
2272 if (!CheatEnabled())
2282 [ConsoleCommand(
"")]
2285 if (!CheatEnabled())
2295 [ConsoleCommand(
"")]
2298 if (!CheatEnabled())
2307 if (slot.
thing !=
null)
2337 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2342 [ConsoleCommand(
"")]
2349 [ConsoleCommand(
"")]
2356 [ConsoleCommand(
"")]
2359 if (!CheatEnabled())
2372 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2377 [ConsoleCommand(
"")]
2380 string text =
"Steam is not running.";
2381 DateTime dateTime =
new DateTime(2024, 11, 3, 6, 0, 0);
2382 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))));
2383 dateTimeOffset = dateTimeOffset.ToOffset(
new TimeSpan(9, 0, 0));
2384 text = ((dateTimeOffset < dateTime) ?
"Valid: " :
"Invalid: ");
2385 text = text +
"Arrived North Tyris on " + dateTimeOffset.Year +
" " + dateTimeOffset.Month +
"/" + dateTimeOffset.Day +
" " + dateTimeOffset.Hour +
":" + dateTimeOffset.Minute;
2386 return text +
" Eligible by " + dateTime.Year +
" " + dateTime.Month +
"/" + dateTime.Day +
" " + dateTime.Hour +
":" + dateTime.Minute;
2389 [ConsoleCommand(
"")]
2393 NameGen.list =
null;
2394 AliasGen.list =
null;
2395 AliasGen.listMix.Clear();
2396 AliasGen.listBuiltin.Clear();
2397 WordGen.listMix.Clear();
2398 WordGen.listBuiltin.Clear();
2405 if (chara.
source.name ==
"*r")
2407 chara.c_altName = NameGen.getRandomName();
2409 if (!chara.
_alias.IsEmpty())
2411 chara._alias = AliasGen.GetRandomAlias();
2418 [ConsoleCommand(
"")]
2421 return string.Concat(
string.Concat(
string.Concat(
string.Concat(
string.Concat(
string.Concat(
string.Concat(
string.Concat(
string.Concat(
string.Concat(
string.Concat(
string.Concat(
string.Concat(
string.Concat(
"" +
"Fish Stolen: " +
EClass.
player.
flags.
fishStolen + Environment.NewLine,
"Little Saved: ",
EClass.
player.
little_saved.ToString(), Environment.NewLine),
"Little Lost: ",
EClass.
player.
little_dead.ToString(), Environment.NewLine),
"Little Depart: ",
EClass.
player.
stats.
sistersDepart.ToString(), Environment.NewLine),
"Cat Depart: ",
EClass.
player.
stats.
catDepart.ToString(), Environment.NewLine),
"Angry Cats: ",
EClass.
player.
stats.
angryCats.ToString(), Environment.NewLine),
"Love Made: ",
EClass.
player.
stats.
kimo.ToString(), Environment.NewLine),
"Nefia Beaten: ",
EClass.
player.
stats.
nefiaBeaten.ToString(), Environment.NewLine),
"Sheared: ",
EClass.
player.
stats.
shear.ToString(), Environment.NewLine),
"Brushed: ",
EClass.
player.
stats.
brush.ToString(), Environment.NewLine),
"Egg Hatched: ",
EClass.
player.
stats.
eggHatched.ToString(), Environment.NewLine),
"Plowed: ",
EClass.
player.
stats.
plow.ToString(), Environment.NewLine),
"Cleaned: ",
EClass.
player.
stats.
clean.ToString(), Environment.NewLine),
"Unpaid Bill: ",
EClass.
player.
unpaidBill.ToString(), Environment.NewLine),
"Statue Shipped: ",
EClass.
player.
flags.
statueShipped.ToString(), Environment.NewLine);
2424 [ConsoleCommand(
"")]
2427 if (!CheatEnabled())
2442 [ConsoleCommand(
"")]
2448 if (row.name.Contains(name) || row.id.ToString() == name)
2450 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;
2457 return text + Resources.Load<TextAsset>(
"logo2").text;
2460 [ConsoleCommand(
"")]
2463 if (!CheatEnabled())
2468 return Resources.Load<TextAsset>(
"logo2").text + Environment.NewLine +
"Done!";
2471 [ConsoleCommand(
"")]
2474 if (!CheatEnabled())
2479 return "Resources spawned.";
2489 if ((
bool)SoundManager.current)
2491 SoundManager.current.NextBGM();
2497 revealMap = !revealMap;
2507 TextAsset textAsset = Resources.Load<TextAsset>(
"Data/Text/broadcast");
2508 blines = textAsset.text.Split(
'-');
2514 if (Input.GetKey(KeyCode.LeftControl))
2518 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2519 string text = blines[bidx];
2520 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
static AM_Inspect Inspect
void WaitForEndOfFrame(Action action)
List< Action > actionsNextFrame
RenderData rendererInnerBlock
static void Set(CardBlueprint _bp=null)
static CardBlueprint DebugEQ
GlobalCharaList globalCharas
void PlayAnime(AnimeID id, bool force)
void Say(string text, Color c=default(Color), float duration=0f)
Thing TryMakeRandomItem(int lv=-1, TryMakeRandomItemSource itemSource=TryMakeRandomItemSource.Default, Chara crafter=null)
void Teleport(Point point, bool silent=false, bool force=false)
void MakeFigureFrom(string id)
void SetPlaceState(PlaceState newState, bool byPlayer=false)
ElementContainerCard elements
SourceMaterial.Row material
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
virtual CardRenderer _CreateRenderer()
Thing AddThing(string id, int lv=-1)
void AddEditorTag(EditorTag tag)
virtual void SetBlessedState(BlessedState s)
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
void ModCurrency(int a, string id="money")
Thing MakeMilk(bool effect=true, int num=1, bool addToZone=true, BlessedState? state=null)
bool HasEditorTag(EditorTag tag)
BlessedState blessedState
void ModNum(int a, bool notify=true)
void SayRaw(string text, string ref1=null, string ref2=null)
bool HasElement(int ele, bool includeNagative=false)
Thing MakeEgg(bool effect=true, int num=1, bool addToZone=true, int fertChance=20, BlessedState? state=null)
TaskDesignation designation
override void RefreshSprite()
override void NextFrame()
void AddBodyPart(int ele, Thing thing=null)
void Unequip(Thing thing, bool refresh=true)
Thing GetEquippedThing(int elementId)
bool Equip(Thing thing, BodySlot slot=null, bool msg=true)
void RemoveBodyPart(int ele)
static Chara CreateFromFilter(string id, int lv=-1, int levelRange=-1)
static Chara Create(string id, int lv=-1)
void ChangeRace(string idNew)
Condition AddCondition(string id, int p=100, bool force=false)
void SetFeat(int id, int value=1, bool msg=false)
Chara SetHomeZone(Zone zone)
Chara SetFaction(Faction f)
Chara SetGlobal(Zone _home, int x, int z)
override bool IsPCFaction
void ChangeJob(string idNew)
void Revive(Point p=null, bool msg=false)
Thing MakeGene(DNA.Type? type=null)
void ModCorruption(int a)
void RestockEquip(bool onCreate)
void DropThing(Thing t, int num=-1)
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
UD_String_MatData matColors
static string ResetAchievement(ID_Achievement id)
static string ModKarma(int amount)
static string ResetAllAchievement()
static bool CheatEnabled()
static string Fix_EtherDisease()
static string RemoveBodyPart(BodyCode bodyCode)
Thing GetDebugContainer()
IEnumerable< string > ZoneIDs()
static string Fix_RemoveDesignations()
MatColorTest matColorTest
List< DebugCommand > commands
static string FirstAdventurer()
static string ClearLastWishFlag()
static string Reset_LoytelDebt()
static string EnableCheat
void SetStartStockpile(Thing container, int num=100)
static string SetElement(string alias, int value, int potential=100)
static string Spawn(string id, int num=1, string aliasMat="", int objLv=-1)
void COM_MaxConstruction()
static string ModFame(int amount)
static string Fix_RemoveDemitas()
readonly List< int[]> resolutions
void COM_PlayStartDrama()
static string RegenerateNames()
static string ListThing()
static string AllRecipe(bool forget=false)
static string ListChara()
static string ChangeJob(string id="?")
StartLoadout startLoadout
static string ResetPetUpgrades()
void EnableDebugResource()
Thing GetOrCreateDebugContainer()
static string ModContribution(int amount)
static string ResetPrincipalSeals()
static string AddBodyPart(BodyCode bodyCode)
static string SpawnFigure(string id)
static string LastWish(string name)
static string Fix_LostCore()
bool enableMapPieceEditor
static string SpawnBoss(string id)
StartSetting startSetting
static string Fix_RemoveAshland()
static string TestSpawn(int lv, int num, int lvRange=-1)
void SpawnCheatContainer()
static string Fix_RemoveDuplicateUnique()
static string Fix_Awning()
static string ChangeRace(string id="?")
void SetLang(string langCode, bool force=false)
static SourceManager sources
static FactionBranch Branch
static BaseGameScreen screen
static SoundManager Sound
Dictionary< int, Element > dict
Element ModBase(int ele, int v)
Element SetBase(string alias, int v, int potential=0)
Element GetOrCreateElement(Element ele)
int GetNextExp(int _lv=-1)
void BanishMember(Chara c, bool skipMsg=false)
void AddContribution(int a)
HashSet< string > modified
ReligionManager religions
static void Load(string id, bool cloud)
bool Save(bool isAutoSave=false, bool silent=false)
static void Create(string _id=null, bool cloud=false)
static Guild GetCurrentGuild()
static LayerDrama ActivateMain(string idSheet, string idStep=null, Chara target=null, Card ref1=null, string tag="")
static void SetDirtyAll(bool immediate=false)
static SourceMaterial.Row GetRandomMaterial(int lv, string group=null, bool tryLevelMatTier=false)
static SourceMaterial.Row sourceWaterSea
static bool Exist(string id)
static void Save(string id)
new void ForeachCell(Action< Cell > action)
Thing FindThing(Func< Thing, bool > func)
void SetLiquid(int x, int z, CellEffect effect=null)
void AddDecal(int x, int z, int id, int amount=1, bool refresh=true)
void RevealAll(bool reveal=true)
override void Init(string path, string defaultPackage="_Elona")
static string SayRaw(string text)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
void RemoveMember(Chara c)
void AddMemeber(Chara c, bool showMsg=false)
HashSet< int > doneBackers
int CountKeyItem(string alias)
void ModKeyItem(string alias, int num=1, bool msg=true)
List< Card > ListCards(bool includeMasked=false)
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false, int minRadius=0)
Quest Add(string id, string idGlobalChara=null)
Quest Start(string id, string idGlobalChara)
static List< RecipeSource > list
Dictionary< string, int > knownRecipes
Dictionary< string, Religion > dictAll
virtual void Talk(string idTalk, Card c=null, Card agent=null)
static List< ISyncScreen > syncList
static SpawnSetting Boss(int filterLv, int fixedLv=-1)
SteamworksBehaviour steamworks
static void GetAchievement(ID_Achievement id)
static void ResetAchievement(ID_Achievement id)
static void ResetAllAchievement()
void Foreach(Action< Thing > action, bool onlyAccessible=true)
static Thing CreateBlock(int id, int idMat)
static Thing CreateRedBook(string id, int num=1)
static Thing TestCreate()
static Thing CreateFloor(int id, int idMat, bool platform=false)
static Thing CreateFromCategory(string idCat, int lv=-1)
static Thing CreateScroll(int ele, int num=1)
static Thing Create(string id, int idMat=-1, int lv=-1)
static Chara Incubate(Thing egg, Point pos, Card incubator=null)
bool MoveZone(bool confirmed=false)
static Thing MakeSeed(string idSource)
static Thing MakeRandomSeed(bool enc=false)
override bool OnUse(Chara c)
bool TryGetValue(TKey key, out TValue value)
void SetCondition(Condition condition, int _duration=20, bool silent=false)
Condition CurrentCondition
void SetRandomCondition()
void Add(ZoneEvent e, bool allowDuplicate=false)
Dictionary< int, string > dictCitizen
void ImportDialog(string dir=null)
void ClaimZone(bool debug=false, Point pos=null)
Card AddThing(string id, int x, int z)
ElementContainerZone elements
void ExportDialog(string dir=null)
virtual bool CanUnlockExit
Chara SpawnMob(string id, Point pos=null)
void Export(string path, PartialMap partial=null, bool usermap=false)
Card AddCard(Card t, Point point)