2using System.Collections.Generic;
4using ReflexCLI.Attributes;
8[ConsoleCommandClassCustomizer(
"")]
79 row.matColor = matColors.
main;
80 row.altColor = matColors.
alt;
95 [
Header(
"Quick Start Setup")]
108 [
Header(
"System(Release)")]
111 [
Header(
"System(Release)")]
219 [
Header(
"Game(Specific)")]
268 new int[2] { 1920, 1080 },
269 new int[2] { 1366, 768 },
270 new int[2] { 1280, 720 }
283 public List<DebugCommand>
commands =
new List<DebugCommand>();
315 public static string EnableCheat =>
"Enable cheat by typing 'Cheat'";
320 List<string> list =
new List<string>();
331 EInput.disableKeyAxis = Application.isEditor;
354 EClass.game.idPrologue = 3;
357 EClass.game.idPrologue = 2;
362 EClass.player.pref.lastIdTabAbility = 3;
379 if (row.category ==
"ability" && row.aliasRef !=
"mold" && !
EClass.
pc.
HasElement(row.id) && (row.aliasRef.IsEmpty() || row.id <= 10000 ||
EClass.
sources.
elements.alias[row.aliasRef].tag.Contains(row.alias.Split(
'_')[0])))
389 if (row2.isSkill && !row2.tag.Contains(
"unused"))
398 EClass.player.totalFeat = lv;
399 EClass.pc.feat = 1000;
401 EClass.player.fame = EClass.pc.LV * 100;
416 AddHotbar(
"pickaxe");
417 AddHotbar(
"wateringCan");
420 AddAbility(
"SpellTeleport");
421 AddAbility(
"SpellCatsEye");
422 AddHotbar(
"map_big");
428 AddHotbar(
"pickaxe").ChangeMaterial(0);
434 for (
int i = 0; i < 30; i++)
440 for (
int j = 0; j < 30; j++)
456 for (
int k = 0; k < 30; k++)
469 for (
int l = 0; l < 30; l++)
475 for (
int m = 0; m < 20; m++)
483 for (
int n = 0; n < 20; n++)
485 string id2 = list.RandomItem().id;
493 for (
int num = 0; num < 20; num++)
495 string id3 = list.RandomItem().id;
504 for (
int num2 = 0; num2 < 20; num2++)
506 string id4 = list.RandomItem().id;
531 thing.
Dye(
"saphire");
542 thing.
Dye(
"rubinus");
550 for (
int num3 = 0; num3 < 10; num3++)
559 thing.
Dye(
"rubinus");
563 if (row3.tag.Contains(
"seed"))
572 for (
int num4 = 0; num4 < 30; num4++)
579 for (
int num5 = 0; num5 < 30; num5++)
586 for (
int num6 = 0; num6 < 30; num6++)
593 for (
int num7 = 0; num7 < 40; num7++)
615 thing8.refVal = 8220;
621 AddHotbar(
"pickaxe");
622 AddHotbar(
"wateringCan");
623 AddHotbar(
"gun_assault");
637 SoundManager.ignoreSounds =
true;
639 SoundManager.ignoreSounds =
true;
641 SoundManager.ignoreSounds =
false;
649 thing11.isNew =
false;
684 static Thing AddAbility(
string id)
687 thing9.c_idAbility = id;
690 Thing AddHotbar(
string id)
698 void AddParty(
string id)
732 LittlePopper.skipPop =
true;
737 row.CreateByProduct(container, num);
742 if ((row2.factory.IsEmpty() || !(row2.factory[0] ==
"x")) && !row2.isOrigin && row2.Category.tag.Contains(
"debug"))
752 for (
int i = 0; i < 10; i++)
756 LittlePopper.skipPop =
false;
763 if (thing2.
c_altName ==
"DebugContainer")
770 thing.c_altName =
"DebugContainer";
771 thing.isNPCProperty =
false;
812 if (Input.GetKeyDown(KeyCode.B))
816 if (Input.GetKeyDown(KeyCode.P))
820 if (Input.GetKeyDown(KeyCode.F11))
822 if (Application.isEditor)
830 NewsList.dict =
null;
831 BookList.dict =
null;
832 BottleMessageList.list =
null;
836 if (Input.GetKeyDown(KeyCode.U))
840 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
842 if (Input.GetKeyDown(KeyCode.I))
846 EClass.screen.tileMap.rendererInnerBlock.offset =
new Vector3(0f, 0.54f, -0.5f);
867 bool key = Input.GetKey(KeyCode.LeftShift);
868 bool key2 = Input.GetKey(KeyCode.LeftAlt);
869 bool key3 = Input.GetKey(KeyCode.LeftControl);
871 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (
EInput.
isShiftDown && Input.GetKeyDown(KeyCode.Period)))
879 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Period)))
883 if (Input.GetKeyDown(KeyCode.KeypadMinus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Comma)))
890 EClass.
ui.Find(
"_Guide").ToggleActive();
892 if (Input.GetKey(KeyCode.N))
896 SoundManager.current.sourceBGM.pitch = 10f;
900 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
903 else if (Input.GetKeyUp(KeyCode.N))
905 SoundManager.current.sourceBGM.pitch = 1f;
909 string text =
"festival";
910 if (Input.GetKeyDown(KeyCode.F1))
914 if (Input.GetKeyDown(KeyCode.F2))
916 Zone.forceRegenerate =
true;
922 if (Input.GetKeyDown(KeyCode.F4))
929 Zone.forceRegenerate =
true;
930 Zone.forceSubset = text;
937 if (Input.GetKeyDown(KeyCode.F5))
945 if (Input.GetKeyDown(KeyCode.F1))
952 if (Input.GetKeyDown(KeyCode.F2))
954 EClass._zone.development += 10;
957 if (targetChara !=
null)
973 chara.hostility = hostility2;
977 if (Input.GetKeyDown(KeyCode.F3))
979 for (
int i = 0; i < 10; i++)
988 Debug.Log(deadChara);
993 Guild.Fighter.relation.rank = 20;
994 Guild.Mage.relation.rank = 20;
995 Guild.Thief.relation.rank = 20;
996 Guild.Merchant.relation.rank = 20;
1010 EClass.pc.feat += 10;
1011 EClass.player.totalFeat += 10;
1014 if (Input.GetKeyDown(KeyCode.F4))
1016 string text2 =
new string[4] {
"エターナルフォースブリザード",
"Eternal Force Blizzard",
"ぬるぽ",
"Null Pointer" }.RandomItem();
1020 if (Input.GetKeyDown(KeyCode.F5))
1022 string text3 = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1029 EClass.game.isCloud =
false;
1032 if (Input.GetKeyDown(KeyCode.F6))
1036 string id = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1041 if (Input.GetKeyDown(KeyCode.F7))
1046 if (Input.GetKeyDown(KeyCode.F8))
1056 if (Input.GetKeyDown(KeyCode.F9))
1064 int width = array[0];
1065 int height = array[1];
1066 Screen.SetResolution(width, height, key);
1069 if (Input.GetKeyDown(KeyCode.F10))
1071 int width2 = Screen.width;
1072 int height2 = width2 / 16 * 9;
1073 Screen.SetResolution(width2, height2, key);
1079 Input.GetKeyDown(KeyCode.F9);
1080 if (Input.GetKey(KeyCode.F9))
1082 EClass.scene.paused =
false;
1089 if (Input.GetKeyDown(KeyCode.F10))
1112 if (Input.GetKeyDown(KeyCode.Tab))
1128 if (hitPoint.
detail !=
null)
1141 if (Input.GetMouseButtonDown(2))
1162 if (Input.GetMouseButtonDown(0))
1164 foreach (
Card item2
in list)
1169 if (Input.GetMouseButtonDown(1))
1177 c.DamageHP(999999999L, AttackSource.Finish, EClass.pc);
1181 else if (hitPoint.
detail !=
null)
1183 for (
int num = hitPoint.
detail.
charas.Count - 1; num >= 0; num--)
1191 if (Input.GetKeyDown(KeyCode.Delete))
1193 if (Input.GetKey(KeyCode.RightControl))
1204 else if (hitPoint.
detail !=
null)
1206 for (
int num2 = hitPoint.
detail.
things.Count - 1; num2 >= 0; num2--)
1210 if (hitPoint.
detail !=
null)
1212 for (
int num3 = hitPoint.
detail.
charas.Count - 1; num3 >= 0; num3--)
1219 if (Input.GetKeyDown(KeyCode.End) && hitPoint.
detail !=
null)
1221 for (
int num4 = hitPoint.
detail.
things.Count - 1; num4 >= 0; num4--)
1227 if (!Application.isEditor)
1236 if (Input.GetKeyDown(KeyCode.Alpha0))
1240 if (Input.GetKeyDown(KeyCode.Alpha1))
1244 if (Input.GetKeyDown(KeyCode.Alpha2))
1248 if (Input.GetKeyDown(KeyCode.Alpha3))
1252 if (Input.GetKeyDown(KeyCode.Alpha4))
1256 if (Input.GetKeyDown(KeyCode.Alpha5))
1260 if (Input.GetKeyDown(KeyCode.Alpha6))
1264 if (Input.GetKeyDown(KeyCode.Alpha7))
1268 if (Input.GetKeyDown(KeyCode.Alpha8))
1272 if (Input.GetKeyDown(KeyCode.Alpha9))
1288 if (Input.GetKeyDown(KeyCode.Alpha1))
1292 if (Input.GetKeyDown(KeyCode.Alpha2))
1298 if (Input.GetKeyDown(KeyCode.Alpha1))
1304 if (Input.GetKeyDown(KeyCode.Alpha2))
1310 if (Input.GetKeyDown(KeyCode.Alpha3))
1316 if (Input.GetKeyDown(KeyCode.Alpha4))
1322 if (Input.GetKeyDown(KeyCode.Alpha5))
1328 if (Input.GetKeyDown(KeyCode.Alpha6))
1334 if (Input.GetKeyDown(KeyCode.Alpha7))
1339 if (Input.GetKeyDown(KeyCode.Alpha8))
1344 if (Input.GetKeyDown(KeyCode.Alpha9))
1349 if (Input.GetKeyDown(KeyCode.Alpha0))
1354 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1361 if (Input.GetKeyDown(KeyCode.Alpha1))
1365 if (!Input.GetKeyDown(KeyCode.Alpha2))
1370 if (Input.GetKeyDown(KeyCode.Alpha1))
1372 QualitySettings.vSyncCount = 0;
1373 Application.targetFrameRate = 60;
1375 if (Input.GetKeyDown(KeyCode.Alpha2))
1377 QualitySettings.vSyncCount = 0;
1378 Application.targetFrameRate = 20;
1380 if (Input.GetKeyDown(KeyCode.Alpha3))
1382 QualitySettings.vSyncCount = 0;
1383 Application.targetFrameRate = 30;
1385 if (Input.GetKeyDown(KeyCode.Alpha4))
1387 QualitySettings.vSyncCount = 0;
1388 Application.targetFrameRate = 40;
1398 if ((
bool)charaActorPCC)
1400 if (Input.GetKeyDown(KeyCode.Keypad0))
1405 if (Input.GetKeyDown(KeyCode.Keypad1))
1408 card.angle = charaActorPCC.
provider.angle;
1411 if (Input.GetKeyDown(KeyCode.Keypad2))
1413 charaActorPCC.
pcc.data.Randomize();
1417 if (Input.GetKeyDown(KeyCode.Keypad4))
1423 if (Input.GetKeyDown(KeyCode.Keypad5))
1428 if (Input.GetKeyDown(KeyCode.Keypad7))
1433 if (Input.GetKeyDown(KeyCode.Keypad8))
1438 if (Input.GetKeyDown(KeyCode.Keypad9))
1448 Add(cat2,
"Save Widgets", delegate
1452 Add(cat2,
"Save Widgets(Dialog)", delegate
1456 Add(cat2,
"Export Zone", delegate
1460 Add(cat2,
"Export Zone(Dialog)", delegate
1464 Add(0,
"Import Zone(Dialog)", delegate
1468 Add(cat2,
"Validate Backer Contents", delegate
1477 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1479 Debug.Log(row2.id +
"/remain/" + row2.Name +
"/" + row2.loot);
1483 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1485 Debug.Log(row2.id +
"/pet/" + row2.Name +
"/" + row2.chara);
1489 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLowerInvariant()))
1491 Debug.Log(row2.id +
"/" + row2.Name +
"/follower/" + row2.deity);
1498 Add(cat2,
"Edit PCC", delegate
1505 Add(cat2,
"Fix Floating Items", delegate
1509 if (thing.Pref.Float)
1511 thing.isFloating = true;
1516 Add(cat2,
"Add Conditions", delegate
1520 EClass.pc.AddCondition<ConWet>();
1524 EClass.pc.AddCondition<ConSuffocation>();
1528 EClass.pc.AddCondition<ConPoison>();
1532 EClass.pc.AddCondition<ConDisease>();
1536 Add(cat2,
"Max Construction", COM_MaxConstruction);
1537 Add(cat2,
"Add Reserves", delegate
1547 Add(cat2,
"Add Recruits", delegate
1551 EClass.Branch.AddRecruit(CharaGen.Create(
"merc_archer"));
1552 EClass.Branch.AddRecruit(CharaGen.Create(
"healer"));
1553 EClass.Branch.AddRecruit(CharaGen.Create(
"bartender"));
1554 EClass.Branch.AddRecruit(CharaGen.Create(
"merchant"));
1555 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1556 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1557 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1560 Add(cat2,
"Add Resources", delegate
1564 EClass.Branch.resources.food.Mod(100);
1565 EClass.Branch.resources.knowledge.Mod(100);
1568 Add(cat2,
"Remove Influence", delegate
1570 EClass._zone.influence = 0;
1572 Add(cat2,
"Reroll Hobbies", delegate
1576 chara.RerollHobby();
1579 Add(cat2,
"Test_Siege", Test_Siege);
1580 Add(cat2,
"Test_SiegeGuard", Test_SiegeGuard);
1581 Add(cat2,
"Log_BranchMembers", delegate
1585 Debug.Log(EClass.Branch.members.Count);
1586 foreach (Chara member in EClass.Branch.members)
1588 EClass.debug.Log(member);
1593 Add(cat2,
"Weather.Fine", delegate
1597 Add(cat2,
"Weather.Blossom", delegate
1601 Add(cat2,
"Weather.Random", delegate
1605 Add(cat2,
"Weather.Ether+50", delegate
1610 Add(cat2,
"Season.Next", delegate
1614 Add(cat2,
"Unreveal Map", delegate
1622 Add(cat2,
"Test_GodTalk", Test_GodTalk);
1623 Add(cat2,
"Test_Filter", Test_Filter);
1624 Add(cat2,
"Test_Grow", Test_Grow);
1625 Add(cat2,
"Turn On All Lights", delegate
1629 if (thing2.trait.IsLighting)
1631 thing2.trait.Toggle(on: true);
1635 Add(cat2,
"Reset All Custom Lights", delegate
1639 thing3.c_lightColor = 0;
1640 thing3.RecalculateFOV();
1643 Add(cat2,
"Reset All obj materials", delegate
1649 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1653 Add(cat2,
"Reset Certain obj materials", delegate
1659 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1663 Add(cat2,
"Fix Floors under Blocks", delegate
1669 SourceBlock.Row sourceBlock = c.sourceBlock;
1670 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1671 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1675 Add(cat2,
"Bless Inventory", delegate
1682 Add(cat2,
"Curse Inventory", delegate
1689 Add(cat2,
"List Global Charas", delegate
1693 Debug.Log(globalChara.Key +
"/" + globalChara.Value.Name +
"/" + ((globalChara.Value.currentZone == null) ?
"NULL" : globalChara.Value.currentZone.Name) +
"/" + globalChara.Value.faction?.ToString() +
"/" + globalChara.Value.homeBranch);
1696 Add(cat2,
"List Global Charas In Zone", delegate
1700 if (globalChara2.Value.currentZone == EClass._zone)
1702 Debug.Log(globalChara2.Key +
"/" + globalChara2.Value);
1706 Add(cat2,
"List Citizen", delegate
1711 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1712 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1715 void Add(
int cat,
string id, Action action)
1717 DebugCommand
item =
new DebugCommand
1740 traitSeed.TrySprout(force:
true);
1755 for (
int i = 0; i < 10000; i++)
1771 EClass.game.world.date.hour = 2;
1778 bilinear = !bilinear;
1780 for (
int i = 0; i < passes.Length; i++)
1782 passes[i].
mat.GetTexture(
"_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1835 [ConsoleCommand(
"")]
1838 EClass.game.config.cheat =
true;
1839 return "Cheat Enabled";
1842 [ConsoleCommand(
"")]
1846 if (questDebt ==
null)
1848 return "Quest Status Not Valid.";
1850 questDebt.stage = 0;
1851 questDebt.paid =
false;
1852 questDebt.gaveBill =
false;
1853 EClass.player.debt = 20000000;
1857 return "Quest Reset!";
1860 [ConsoleCommand(
"")]
1871 EClass.Branch.RemoveMemeber(c);
1878 [ConsoleCommand(
"")]
1888 if (!(value.
source.category !=
"attribute"))
1893 text = text +
"Fixing Base Value:" + orCreateElement.Name +
" Before:" + orCreateElement.vBase +
" Now:" + (value.vBase + 1) + Environment.NewLine;
1898 return text +
"Fixed!";
1901 [ConsoleCommand(
"")]
1906 return "Not in base.";
1912 return "Base already has core.";
1917 return "Player has core.";
1923 [ConsoleCommand(
"")]
1926 List<Chara> list =
new List<Chara>();
1936 Chara chara = list[1];
1940 return "Demitas Removed!";
1942 return "Not enough Demitas!";
1945 [ConsoleCommand(
"")]
1948 List<Chara> list =
new List<Chara>();
1951 if (value.
id ==
"ashland")
1958 Chara chara = list[1];
1962 return "Ashland Removed!";
1964 return "Not enough Ashland!";
1967 [ConsoleCommand(
"")]
1974 c.detail.designation.taskList.Remove(c.detail.designation);
1980 [ConsoleCommand(
"")]
1986 text = text + row.id +
"\n";
1991 [ConsoleCommand(
"")]
1997 text = text + row.id +
"\n";
2002 [ConsoleCommand(
"")]
2003 public static string SetElement(
string alias,
int value,
int potential = 100)
2005 if (!CheatEnabled())
2012 return "Element not found.";
2014 if (row.
type ==
"Feat")
2025 [ConsoleCommand(
"")]
2028 if (!CheatEnabled())
2035 return "Spawned " + chara.
Name;
2037 return "'" +
id +
"' does not exist in the database.";
2040 [ConsoleCommand(
"")]
2041 public static string Spawn(
string id,
int num = 1,
string aliasMat =
"",
int objLv = -1)
2043 if (!CheatEnabled())
2050 if (!aliasMat.IsEmpty())
2055 return "Spawned " + thing.
Name;
2065 return "Spawned " + chara.
Name;
2067 return "'" +
id +
"' does not exist in the database.";
2070 [ConsoleCommand(
"")]
2071 public static string TestSpawn(
int lv,
int num,
int lvRange = -1)
2073 if (!CheatEnabled())
2079 EClass._zone._dangerLv = lv;
2085 for (
int i = 0; i < num; i++)
2090 levelRange = lvRange
2096 [ConsoleCommand(
"")]
2106 return "Not Implemented.";
2109 [ConsoleCommand(
"")]
2112 if (!CheatEnabled())
2120 [ConsoleCommand(
"")]
2123 if (!CheatEnabled())
2132 [ConsoleCommand(
"")]
2135 if (!CheatEnabled())
2143 [ConsoleCommand(
"")]
2146 if (!CheatEnabled())
2158 [ConsoleCommand(
"")]
2161 if (!CheatEnabled())
2169 [ConsoleCommand(
"")]
2172 if (!CheatEnabled())
2180 [ConsoleCommand(
"")]
2183 if (!CheatEnabled())
2194 [ConsoleCommand(
"")]
2198 return "I can fly!";
2201 [ConsoleCommand(
"")]
2209 if (slot.
thing !=
null)
2237 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2242 [ConsoleCommand(
"")]
2249 [ConsoleCommand(
"")]
2256 [ConsoleCommand(
"")]
2268 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2273 [ConsoleCommand(
"")]
2276 string text =
"Steam is not running.";
2277 DateTime dateTime =
new DateTime(2024, 11, 3, 6, 0, 0);
2278 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))));
2279 dateTimeOffset = dateTimeOffset.ToOffset(
new TimeSpan(9, 0, 0));
2280 text = ((dateTimeOffset < dateTime) ?
"Valid: " :
"Invalid: ");
2281 text = text +
"Arrived North Tyris on " + dateTimeOffset.Year +
" " + dateTimeOffset.Month +
"/" + dateTimeOffset.Day +
" " + dateTimeOffset.Hour +
":" + dateTimeOffset.Minute;
2282 return text +
" Eligible by " + dateTime.Year +
" " + dateTime.Month +
"/" + dateTime.Day +
" " + dateTime.Hour +
":" + dateTime.Minute;
2285 [ConsoleCommand(
"")]
2289 NameGen.list =
null;
2290 AliasGen.list =
null;
2297 if (chara.
source.name ==
"*r")
2299 chara.c_altName = NameGen.getRandomName();
2301 if (!chara.
_alias.IsEmpty())
2303 chara._alias = AliasGen.GetRandomAlias();
2310 [ConsoleCommand(
"")]
2313 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(
"" +
"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),
"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);
2316 [ConsoleCommand(
"")]
2319 if (!CheatEnabled())
2334 [ConsoleCommand(
"")]
2340 if (row.name.Contains(name) || row.id.ToString() == name)
2342 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;
2349 return text + Resources.Load<TextAsset>(
"logo2").text;
2352 [ConsoleCommand(
"")]
2355 if (!CheatEnabled())
2360 return Resources.Load<TextAsset>(
"logo2").text + Environment.NewLine +
"Done!";
2363 [ConsoleCommand(
"")]
2366 if (!CheatEnabled())
2371 return "Resources spawned.";
2381 if ((
bool)SoundManager.current)
2383 SoundManager.current.NextBGM();
2389 revealMap = !revealMap;
2399 TextAsset textAsset = Resources.Load<TextAsset>(
"Data/Text/broadcast");
2400 blines = textAsset.text.Split(
'-');
2406 if (Input.GetKey(KeyCode.LeftControl))
2410 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2411 string text = blines[bidx];
2412 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
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)
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)
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)
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()
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 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 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)
static void Activate(Type type)
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
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 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 MakeRandomSeed(bool enc=false)
static Thing MakeSeed(string id, PlantData plant=null)
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)