2using System.Collections.Generic;
4using ReflexCLI.Attributes;
8[ConsoleCommandClassCustomizer(
"")]
95 row.matColor = matColors.
main;
96 row.altColor = matColors.
alt;
111 [
Header(
"Quick Start Setup")]
124 [
Header(
"System(Release)")]
127 [
Header(
"System(Release)")]
235 [
Header(
"Game(Specific)")]
284 new int[2] { 1920, 1080 },
285 new int[2] { 1366, 768 },
286 new int[2] { 1280, 720 }
299 public List<DebugCommand>
commands =
new List<DebugCommand>();
331 public static string EnableCheat =>
"Enable cheat by typing 'Cheat'";
336 List<string> list =
new List<string>();
347 EInput.disableKeyAxis = Application.isEditor;
370 EClass.game.idPrologue = 3;
373 EClass.game.idPrologue = 2;
378 EClass.player.pref.lastIdTabAbility = 3;
395 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])))
405 if (row2.isSkill && !row2.tag.Contains(
"unused"))
414 EClass.player.totalFeat = lv;
417 EClass.player.fame = EClass.pc.LV * 100;
432 AddHotbar(
"pickaxe");
433 AddHotbar(
"wateringCan");
436 AddAbility(
"SpellTeleport");
437 AddAbility(
"SpellCatsEye");
438 AddHotbar(
"map_big");
444 AddHotbar(
"pickaxe").ChangeMaterial(0);
454 for (
int i = 0; i < 30; i++)
460 for (
int j = 0; j < 30; j++)
476 for (
int k = 0; k < 5; k++)
482 for (
int l = 0; l < 30; l++)
495 for (
int m = 0; m < 30; m++)
501 for (
int n = 0; n < 20; n++)
509 for (
int num = 0; num < 20; num++)
511 string id = list.RandomItem().id;
519 for (
int num2 = 0; num2 < 20; num2++)
521 string id2 = list.RandomItem().id;
530 for (
int num3 = 0; num3 < 20; num3++)
532 string id3 = list.RandomItem().id;
557 thing.
Dye(
"saphire");
568 thing.
Dye(
"rubinus");
576 for (
int num4 = 0; num4 < 10; num4++)
585 thing.
Dye(
"rubinus");
589 if (row3.tag.Contains(
"seed"))
598 for (
int num5 = 0; num5 < 30; num5++)
605 for (
int num6 = 0; num6 < 30; num6++)
612 for (
int num7 = 0; num7 < 30; num7++)
619 for (
int num8 = 0; num8 < 40; num8++)
645 thing9.refVal = 8220;
651 AddHotbar(
"pickaxe");
652 AddHotbar(
"wateringCan");
653 AddHotbar(
"gun_assault");
667 SoundManager.ignoreSounds =
true;
669 SoundManager.ignoreSounds =
true;
671 SoundManager.ignoreSounds =
false;
679 thing11.isNew =
false;
714 static Thing AddAbility(
string c_idAbility)
717 thing10.c_idAbility = c_idAbility;
720 Thing AddHotbar(
string id4)
728 void AddParty(
string id4)
762 LittlePopper.skipPop =
true;
767 row.CreateByProduct(container, num);
772 if ((row2.factory.IsEmpty() || !(row2.factory[0] ==
"x")) && !row2.isOrigin && row2.Category.tag.Contains(
"debug"))
782 for (
int i = 0; i < 10; i++)
786 LittlePopper.skipPop =
false;
793 if (thing2.
c_altName ==
"DebugContainer")
800 thing.c_altName =
"DebugContainer";
801 thing.isNPCProperty =
false;
842 if (Input.GetKeyDown(KeyCode.B))
846 if (Input.GetKeyDown(KeyCode.P))
850 if (Input.GetKeyDown(KeyCode.F11))
852 if (Application.isEditor)
860 NewsList.dict =
null;
861 BookList.dict =
null;
862 BottleMessageList.list =
null;
866 if (Input.GetKeyDown(KeyCode.U))
870 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
872 if (Input.GetKeyDown(KeyCode.I))
876 EClass.screen.tileMap.rendererInnerBlock.offset =
new Vector3(0f, 0.54f, -0.5f);
897 bool key = Input.GetKey(KeyCode.LeftShift);
898 bool key2 = Input.GetKey(KeyCode.LeftAlt);
899 bool key3 = Input.GetKey(KeyCode.LeftControl);
901 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (
EInput.
isShiftDown && Input.GetKeyDown(KeyCode.Period)))
909 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Period)))
913 if (Input.GetKeyDown(KeyCode.KeypadMinus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Comma)))
920 EClass.
ui.Find(
"_Guide").ToggleActive();
922 if (Input.GetKey(KeyCode.N))
926 SoundManager.current.sourceBGM.pitch = 10f;
930 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
933 else if (Input.GetKeyUp(KeyCode.N))
935 SoundManager.current.sourceBGM.pitch = 1f;
939 string text =
"festival";
940 if (Input.GetKeyDown(KeyCode.F1))
944 if (Input.GetKeyDown(KeyCode.F2))
946 Zone.forceRegenerate =
true;
952 if (Input.GetKeyDown(KeyCode.F4))
959 Zone.forceRegenerate =
true;
960 Zone.forceSubset = text;
967 if (Input.GetKeyDown(KeyCode.F5))
975 if (Input.GetKeyDown(KeyCode.F1))
982 if (Input.GetKeyDown(KeyCode.F2))
984 EClass._zone.development += 10;
987 if (targetChara !=
null)
1000 chara.hostility = hostility;
1004 if (Input.GetKeyDown(KeyCode.F3))
1006 for (
int i = 0; i < 10; i++)
1015 Debug.Log(deadChara);
1020 Guild.Fighter.relation.rank = 20;
1021 Guild.Mage.relation.rank = 20;
1022 Guild.Thief.relation.rank = 20;
1023 Guild.Merchant.relation.rank = 20;
1037 EClass.pc.feat += 10;
1038 EClass.player.totalFeat += 10;
1041 if (Input.GetKeyDown(KeyCode.F4))
1043 string text2 =
new string[4] {
"エターナルフォースブリザード",
"Eternal Force Blizzard",
"ぬるぽ",
"Null Pointer" }.RandomItem();
1047 if (Input.GetKeyDown(KeyCode.F5))
1049 string text3 = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1056 EClass.game.isCloud =
false;
1059 if (Input.GetKeyDown(KeyCode.F6))
1063 string id = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1068 if (Input.GetKeyDown(KeyCode.F7))
1073 if (Input.GetKeyDown(KeyCode.F8))
1083 if (Input.GetKeyDown(KeyCode.F9))
1091 int width = array[0];
1092 int height = array[1];
1093 Screen.SetResolution(width, height, key);
1096 if (Input.GetKeyDown(KeyCode.F10))
1098 int width2 = Screen.width;
1099 int height2 = width2 / 16 * 9;
1100 Screen.SetResolution(width2, height2, key);
1106 if (Input.GetKeyDown(KeyCode.F9))
1108 for (
int num = 0; num < 8; num++)
1113 if (Input.GetKey(KeyCode.F9))
1115 EClass.scene.paused =
false;
1116 for (
int num2 = 0; num2 <
advanceMin; num2++)
1122 if (Input.GetKeyDown(KeyCode.F10))
1145 if (Input.GetKeyDown(KeyCode.Tab))
1161 if (hitPoint.
detail !=
null)
1174 if (Input.GetMouseButtonDown(2))
1195 if (Input.GetMouseButtonDown(0))
1197 foreach (
Card item2
in list)
1202 if (Input.GetMouseButtonDown(1))
1210 c.DamageHP(999999999L, AttackSource.Finish, EClass.pc);
1214 else if (hitPoint.
detail !=
null)
1216 for (
int num3 = hitPoint.
detail.
charas.Count - 1; num3 >= 0; num3--)
1224 if (Input.GetKeyDown(KeyCode.Delete))
1226 if (Input.GetKey(KeyCode.RightControl))
1237 else if (hitPoint.
detail !=
null)
1239 for (
int num4 = hitPoint.
detail.
things.Count - 1; num4 >= 0; num4--)
1243 if (hitPoint.
detail !=
null)
1245 for (
int num5 = hitPoint.
detail.
charas.Count - 1; num5 >= 0; num5--)
1252 if (Input.GetKeyDown(KeyCode.End) && hitPoint.
detail !=
null)
1254 for (
int num6 = hitPoint.
detail.
things.Count - 1; num6 >= 0; num6--)
1260 if (!Application.isEditor)
1269 if (Input.GetKeyDown(KeyCode.Alpha0))
1273 if (Input.GetKeyDown(KeyCode.Alpha1))
1277 if (Input.GetKeyDown(KeyCode.Alpha2))
1281 if (Input.GetKeyDown(KeyCode.Alpha3))
1285 if (Input.GetKeyDown(KeyCode.Alpha4))
1289 if (Input.GetKeyDown(KeyCode.Alpha5))
1293 if (Input.GetKeyDown(KeyCode.Alpha6))
1297 if (Input.GetKeyDown(KeyCode.Alpha7))
1301 if (Input.GetKeyDown(KeyCode.Alpha8))
1305 if (Input.GetKeyDown(KeyCode.Alpha9))
1321 if (Input.GetKeyDown(KeyCode.Alpha1))
1325 if (Input.GetKeyDown(KeyCode.Alpha2))
1331 if (Input.GetKeyDown(KeyCode.Alpha1))
1337 if (Input.GetKeyDown(KeyCode.Alpha2))
1343 if (Input.GetKeyDown(KeyCode.Alpha3))
1349 if (Input.GetKeyDown(KeyCode.Alpha4))
1355 if (Input.GetKeyDown(KeyCode.Alpha5))
1361 if (Input.GetKeyDown(KeyCode.Alpha6))
1367 if (Input.GetKeyDown(KeyCode.Alpha7))
1372 if (Input.GetKeyDown(KeyCode.Alpha8))
1377 if (Input.GetKeyDown(KeyCode.Alpha9))
1382 if (Input.GetKeyDown(KeyCode.Alpha0))
1387 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1394 if (Input.GetKeyDown(KeyCode.Alpha1))
1398 if (!Input.GetKeyDown(KeyCode.Alpha2))
1403 if (Input.GetKeyDown(KeyCode.Alpha1))
1405 QualitySettings.vSyncCount = 0;
1406 Application.targetFrameRate = 60;
1408 if (Input.GetKeyDown(KeyCode.Alpha2))
1410 QualitySettings.vSyncCount = 0;
1411 Application.targetFrameRate = 20;
1413 if (Input.GetKeyDown(KeyCode.Alpha3))
1415 QualitySettings.vSyncCount = 0;
1416 Application.targetFrameRate = 30;
1418 if (Input.GetKeyDown(KeyCode.Alpha4))
1420 QualitySettings.vSyncCount = 0;
1421 Application.targetFrameRate = 40;
1431 if ((
bool)charaActorPCC)
1433 if (Input.GetKeyDown(KeyCode.Keypad0))
1438 if (Input.GetKeyDown(KeyCode.Keypad1))
1441 card.angle = charaActorPCC.
provider.angle;
1444 if (Input.GetKeyDown(KeyCode.Keypad2))
1446 charaActorPCC.
pcc.data.Randomize();
1450 if (Input.GetKeyDown(KeyCode.Keypad4))
1456 if (Input.GetKeyDown(KeyCode.Keypad5))
1461 if (Input.GetKeyDown(KeyCode.Keypad7))
1466 if (Input.GetKeyDown(KeyCode.Keypad8))
1471 if (Input.GetKeyDown(KeyCode.Keypad9))
1481 Add(cat,
"Save Widgets", delegate
1485 Add(cat,
"Save Widgets(Dialog)", delegate
1489 Add(cat,
"Export Zone", delegate
1493 Add(cat,
"Export Zone(Dialog)", delegate
1497 Add(0,
"Import Zone(Dialog)", delegate
1501 Add(cat,
"Validate Backer Contents", delegate
1510 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1512 Debug.Log(row2.id +
"/remain/" + row2.Name +
"/" + row2.loot);
1516 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1518 Debug.Log(row2.id +
"/pet/" + row2.Name +
"/" + row2.chara);
1522 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLowerInvariant()))
1524 Debug.Log(row2.id +
"/" + row2.Name +
"/follower/" + row2.deity);
1531 Add(cat,
"Edit PCC", delegate
1538 Add(cat,
"Fix Floating Items", delegate
1542 if (thing.Pref.Float)
1544 thing.isFloating = true;
1549 Add(cat,
"Add Conditions", delegate
1553 EClass.pc.AddCondition<ConWet>();
1557 EClass.pc.AddCondition<ConSuffocation>();
1561 EClass.pc.AddCondition<ConPoison>();
1565 EClass.pc.AddCondition<ConDisease>();
1569 Add(cat,
"Max Construction", COM_MaxConstruction);
1570 Add(cat,
"Add Reserves", delegate
1580 Add(cat,
"Add Recruits", delegate
1584 EClass.Branch.AddRecruit(CharaGen.Create(
"merc_archer"));
1585 EClass.Branch.AddRecruit(CharaGen.Create(
"healer"));
1586 EClass.Branch.AddRecruit(CharaGen.Create(
"bartender"));
1587 EClass.Branch.AddRecruit(CharaGen.Create(
"merchant"));
1588 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1589 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1590 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1593 Add(cat,
"Add Resources", delegate
1597 EClass.Branch.resources.food.Mod(100);
1598 EClass.Branch.resources.knowledge.Mod(100);
1601 Add(cat,
"Remove Influence", delegate
1603 EClass._zone.influence = 0;
1605 Add(cat,
"Reroll Hobbies", delegate
1609 chara.RerollHobby();
1612 Add(cat,
"Test_Siege", Test_Siege);
1613 Add(cat,
"Test_SiegeGuard", Test_SiegeGuard);
1614 Add(cat,
"Log_BranchMembers", delegate
1618 Debug.Log(EClass.Branch.members.Count);
1619 foreach (Chara member in EClass.Branch.members)
1621 EClass.debug.Log(member);
1626 Add(cat,
"Weather.Fine", delegate
1630 Add(cat,
"Weather.Blossom", delegate
1634 Add(cat,
"Weather.Random", delegate
1638 Add(cat,
"Weather.Ether+50", delegate
1643 Add(cat,
"Season.Next", delegate
1647 Add(cat,
"Unreveal Map", delegate
1655 Add(cat,
"Test_GodTalk", Test_GodTalk);
1656 Add(cat,
"Test_Filter", Test_Filter);
1657 Add(cat,
"Test_Grow", Test_Grow);
1658 Add(cat,
"Turn On All Lights", delegate
1662 if (thing2.trait.IsLighting)
1664 thing2.trait.Toggle(on: true);
1668 Add(cat,
"Reset All Custom Lights", delegate
1672 thing3.c_lightColor = 0;
1673 thing3.RecalculateFOV();
1676 Add(cat,
"Reset All obj materials", delegate
1682 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1686 Add(cat,
"Reset Certain obj materials", delegate
1692 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1696 Add(cat,
"Fix Floors under Blocks", delegate
1702 SourceBlock.Row sourceBlock = c.sourceBlock;
1703 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1704 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1708 Add(cat,
"Bless Inventory", delegate
1715 Add(cat,
"Curse Inventory", delegate
1722 Add(cat,
"List Global Charas", delegate
1726 Debug.Log(globalChara.Key +
"/" + globalChara.Value.Name +
"/" + ((globalChara.Value.currentZone == null) ?
"NULL" : globalChara.Value.currentZone.Name) +
"/" + globalChara.Value.faction?.ToString() +
"/" + globalChara.Value.homeBranch);
1729 Add(cat,
"List Global Charas In Zone", delegate
1733 if (globalChara2.Value.currentZone == EClass._zone)
1735 Debug.Log(globalChara2.Key +
"/" + globalChara2.Value);
1739 Add(cat,
"List Citizen", delegate
1744 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1745 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1748 void Add(
int cat2,
string id, Action action)
1750 DebugCommand
item =
new DebugCommand
1773 traitSeed.TrySprout(force:
true);
1788 for (
int i = 0; i < 10000; i++)
1804 EClass.game.world.date.hour = 2;
1811 bilinear = !bilinear;
1813 for (
int i = 0; i < passes.Length; i++)
1815 passes[i].
mat.GetTexture(
"_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1868 [ConsoleCommand(
"")]
1871 EClass.game.config.cheat =
true;
1872 return "Cheat Enabled";
1875 [ConsoleCommand(
"")]
1879 if (questDebt ==
null)
1881 return "Quest Status Not Valid.";
1883 questDebt.stage = 0;
1884 questDebt.paid =
false;
1885 questDebt.gaveBill =
false;
1886 EClass.player.debt = 20000000;
1890 return "Quest Reset!";
1893 [ConsoleCommand(
"")]
1898 if (thing.
id ==
"ash3")
1900 thing.id =
"awning ";
1908 [ConsoleCommand(
"")]
1919 EClass.Branch.RemoveMemeber(c);
1926 [ConsoleCommand(
"")]
1936 if (!(value.
source.category !=
"attribute"))
1941 text = text +
"Fixing Base Value:" + orCreateElement.Name +
" Before:" + orCreateElement.vBase +
" Now:" + (value.vBase + 1) + Environment.NewLine;
1946 return text +
"Fixed!";
1949 [ConsoleCommand(
"")]
1954 return "Not in base.";
1960 return "Base already has core.";
1965 return "Player has core.";
1971 [ConsoleCommand(
"")]
1974 List<Chara> list =
new List<Chara>();
1984 Chara chara = list[1];
1988 return "Demitas Removed!";
1990 return "Not enough Demitas!";
1993 [ConsoleCommand(
"")]
1996 List<Chara> list =
new List<Chara>();
1999 if (value.
id ==
"ashland")
2006 Chara chara = list[1];
2010 return "Ashland Removed!";
2012 return "Not enough Ashland!";
2015 [ConsoleCommand(
"")]
2022 c.detail.designation.taskList.Remove(c.detail.designation);
2028 [ConsoleCommand(
"")]
2034 text = text + row.id +
"\n";
2039 [ConsoleCommand(
"")]
2045 text = text + row.id +
"\n";
2050 [ConsoleCommand(
"")]
2051 public static string SetElement(
string alias,
int value,
int potential = 100)
2053 if (!CheatEnabled())
2060 return "Element not found.";
2062 if (row.
type ==
"Feat")
2073 [ConsoleCommand(
"")]
2076 if (!CheatEnabled())
2083 return "Spawned " + chara.
Name;
2085 return "'" +
id +
"' does not exist in the database.";
2088 [ConsoleCommand(
"")]
2089 public static string Spawn(
string id,
int num = 1,
string aliasMat =
"",
int objLv = -1)
2091 if (!CheatEnabled())
2098 if (!aliasMat.IsEmpty())
2103 return "Spawned " + thing.
Name;
2114 return "Spawned " + chara.
Name;
2116 return "'" +
id +
"' does not exist in the database.";
2119 [ConsoleCommand(
"")]
2122 if (!CheatEnabled())
2128 return "'" +
id +
"' does not exist in the database.";
2132 string c_idRefCard = (thing2.c_idRefCard = id);
2133 thing.c_idRefCard = c_idRefCard;
2136 return "Spawned figures for '" +
id +
"'";
2139 [ConsoleCommand(
"")]
2140 public static string TestSpawn(
int lv,
int num,
int lvRange = -1)
2142 if (!CheatEnabled())
2148 EClass._zone._dangerLv = lv;
2154 for (
int num2 = 0; num2 < num; num2++)
2159 levelRange = lvRange
2165 [ConsoleCommand(
"")]
2175 return "Not Implemented.";
2178 [ConsoleCommand(
"")]
2181 if (!CheatEnabled())
2189 [ConsoleCommand(
"")]
2192 if (!CheatEnabled())
2201 [ConsoleCommand(
"")]
2204 if (!CheatEnabled())
2212 [ConsoleCommand(
"")]
2215 if (!CheatEnabled())
2227 [ConsoleCommand(
"")]
2230 if (!CheatEnabled())
2238 [ConsoleCommand(
"")]
2241 if (!CheatEnabled())
2249 [ConsoleCommand(
"")]
2252 if (!CheatEnabled())
2263 [ConsoleCommand(
"")]
2266 if (!CheatEnabled())
2271 return "I can fly!";
2274 [ConsoleCommand(
"")]
2277 if (!CheatEnabled())
2281 _AddBodyPart(bodyCode);
2285 [ConsoleCommand(
"")]
2288 if (!CheatEnabled())
2292 _RemoveBodyPart(bodyCode);
2310 [ConsoleCommand(
"")]
2313 if (!CheatEnabled())
2322 if (slot.
thing !=
null)
2352 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2357 [ConsoleCommand(
"")]
2364 [ConsoleCommand(
"")]
2371 [ConsoleCommand(
"")]
2374 if (!CheatEnabled())
2387 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2392 [ConsoleCommand(
"")]
2395 string text =
"Steam is not running.";
2396 DateTime dateTime =
new DateTime(2024, 11, 3, 6, 0, 0);
2397 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))));
2398 dateTimeOffset = dateTimeOffset.ToOffset(
new TimeSpan(9, 0, 0));
2399 text = ((dateTimeOffset < dateTime) ?
"Valid: " :
"Invalid: ");
2400 text = text +
"Arrived North Tyris on " + dateTimeOffset.Year +
" " + dateTimeOffset.Month +
"/" + dateTimeOffset.Day +
" " + dateTimeOffset.Hour +
":" + dateTimeOffset.Minute;
2401 return text +
" Eligible by " + dateTime.Year +
" " + dateTime.Month +
"/" + dateTime.Day +
" " + dateTime.Hour +
":" + dateTime.Minute;
2404 [ConsoleCommand(
"")]
2408 NameGen.list =
null;
2409 AliasGen.list =
null;
2410 AliasGen.listMix.Clear();
2411 AliasGen.listBuiltin.Clear();
2412 WordGen.listMix.Clear();
2413 WordGen.listBuiltin.Clear();
2420 if (chara.
source.name ==
"*r")
2422 chara.c_altName = NameGen.getRandomName();
2424 if (!chara.
_alias.IsEmpty())
2426 chara._alias = AliasGen.GetRandomAlias();
2433 [ConsoleCommand(
"")]
2436 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);
2439 [ConsoleCommand(
"")]
2442 if (!CheatEnabled())
2457 [ConsoleCommand(
"")]
2463 if (row.name.Contains(name) || row.id.ToString() == name)
2465 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;
2472 return text + Resources.Load<TextAsset>(
"logo2").text;
2475 [ConsoleCommand(
"")]
2478 if (!CheatEnabled())
2483 return Resources.Load<TextAsset>(
"logo2").text + Environment.NewLine +
"Done!";
2486 [ConsoleCommand(
"")]
2489 if (!CheatEnabled())
2494 return "Resources spawned.";
2504 if ((
bool)SoundManager.current)
2506 SoundManager.current.NextBGM();
2512 revealMap = !revealMap;
2522 TextAsset textAsset = Resources.Load<TextAsset>(
"Data/Text/broadcast");
2523 blines = textAsset.text.Split(
'-');
2529 if (Input.GetKey(KeyCode.LeftControl))
2533 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2534 string text = blines[bidx];
2535 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")
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)
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 void _AddBodyPart(BodyCode bodyCode)
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 void _RemoveBodyPart(BodyCode bodyCode)
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)
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)