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))
397 if (!row.aliasRef.IsEmpty() && row.id > 10000)
409 if (row2.isSkill && !row2.tag.Contains(
"unused"))
418 EClass.player.totalFeat = lv;
421 EClass.player.fame = EClass.pc.LV * 100;
436 AddHotbar(
"pickaxe");
437 AddHotbar(
"wateringCan");
440 AddAbility(
"SpellTeleport");
441 AddAbility(
"SpellCatsEye");
442 AddHotbar(
"map_big");
448 AddHotbar(
"pickaxe").ChangeMaterial(0);
458 for (
int i = 0; i < 30; i++)
464 for (
int j = 0; j < 30; j++)
480 for (
int k = 0; k < 5; k++)
486 for (
int l = 0; l < 30; l++)
499 for (
int m = 0; m < 30; m++)
505 for (
int n = 0; n < 20; n++)
513 for (
int num = 0; num < 20; num++)
515 string id = list.RandomItem().id;
523 for (
int num2 = 0; num2 < 20; num2++)
525 string id2 = list.RandomItem().id;
534 for (
int num3 = 0; num3 < 20; num3++)
536 string id3 = list.RandomItem().id;
561 thing.
Dye(
"saphire");
572 thing.
Dye(
"rubinus");
580 for (
int num4 = 0; num4 < 10; num4++)
589 thing.
Dye(
"rubinus");
593 if (row3.tag.Contains(
"seed"))
602 for (
int num5 = 0; num5 < 30; num5++)
609 for (
int num6 = 0; num6 < 30; num6++)
616 for (
int num7 = 0; num7 < 30; num7++)
623 for (
int num8 = 0; num8 < 40; num8++)
649 thing9.refVal = 8220;
655 AddHotbar(
"pickaxe");
656 AddHotbar(
"wateringCan");
657 AddHotbar(
"gun_assault");
671 SoundManager.ignoreSounds =
true;
673 SoundManager.ignoreSounds =
true;
675 SoundManager.ignoreSounds =
false;
683 thing11.isNew =
false;
718 static Thing AddAbility(
string c_idAbility)
721 thing10.c_idAbility = c_idAbility;
724 Thing AddHotbar(
string id4)
732 void AddParty(
string id4)
766 LittlePopper.skipPop =
true;
771 row.CreateByProduct(container, num);
776 if ((row2.factory.IsEmpty() || !(row2.factory[0] ==
"x")) && !row2.isOrigin && row2.Category.tag.Contains(
"debug"))
786 for (
int i = 0; i < 10; i++)
790 LittlePopper.skipPop =
false;
797 if (thing2.
c_altName ==
"DebugContainer")
804 thing.c_altName =
"DebugContainer";
805 thing.isNPCProperty =
false;
846 if (Input.GetKeyDown(KeyCode.B))
850 if (Input.GetKeyDown(KeyCode.P))
854 if (Input.GetKeyDown(KeyCode.F11))
856 if (Application.isEditor)
864 NewsList.dict =
null;
865 BookList.dict =
null;
866 BottleMessageList.list =
null;
870 if (Input.GetKeyDown(KeyCode.U))
874 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
876 if (Input.GetKeyDown(KeyCode.I))
880 EClass.screen.tileMap.rendererInnerBlock.offset =
new Vector3(0f, 0.54f, -0.5f);
901 bool key = Input.GetKey(KeyCode.LeftShift);
902 bool key2 = Input.GetKey(KeyCode.LeftAlt);
903 bool key3 = Input.GetKey(KeyCode.LeftControl);
905 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (
EInput.
isShiftDown && Input.GetKeyDown(KeyCode.Period)))
913 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Period)))
917 if (Input.GetKeyDown(KeyCode.KeypadMinus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Comma)))
924 EClass.
ui.Find(
"_Guide").ToggleActive();
926 if (Input.GetKey(KeyCode.N))
930 SoundManager.current.sourceBGM.pitch = 10f;
934 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
937 else if (Input.GetKeyUp(KeyCode.N))
939 SoundManager.current.sourceBGM.pitch = 1f;
943 string text =
"festival";
944 if (Input.GetKeyDown(KeyCode.F1))
948 if (Input.GetKeyDown(KeyCode.F2))
950 Zone.forceRegenerate =
true;
956 if (Input.GetKeyDown(KeyCode.F4))
963 Zone.forceRegenerate =
true;
964 Zone.forceSubset = text;
971 if (Input.GetKeyDown(KeyCode.F5))
979 if (Input.GetKeyDown(KeyCode.F1))
986 if (Input.GetKeyDown(KeyCode.F2))
988 EClass._zone.development += 10;
991 if (targetChara !=
null)
1004 chara.hostility = hostility;
1008 if (Input.GetKeyDown(KeyCode.F3))
1010 for (
int i = 0; i < 10; i++)
1019 Debug.Log(deadChara);
1024 Guild.Fighter.relation.rank = 20;
1025 Guild.Mage.relation.rank = 20;
1026 Guild.Thief.relation.rank = 20;
1027 Guild.Merchant.relation.rank = 20;
1041 EClass.pc.feat += 10;
1042 EClass.player.totalFeat += 10;
1045 if (Input.GetKeyDown(KeyCode.F4))
1047 string text2 =
new string[4] {
"エターナルフォースブリザード",
"Eternal Force Blizzard",
"ぬるぽ",
"Null Pointer" }.RandomItem();
1051 if (Input.GetKeyDown(KeyCode.F5))
1053 string text3 = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1060 EClass.game.isCloud =
false;
1063 if (Input.GetKeyDown(KeyCode.F6))
1067 string id = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1072 if (Input.GetKeyDown(KeyCode.F7))
1077 if (Input.GetKeyDown(KeyCode.F8))
1087 if (Input.GetKeyDown(KeyCode.F9))
1095 int width = array[0];
1096 int height = array[1];
1097 Screen.SetResolution(width, height, key);
1100 if (Input.GetKeyDown(KeyCode.F10))
1102 int width2 = Screen.width;
1103 int height2 = width2 / 16 * 9;
1104 Screen.SetResolution(width2, height2, key);
1110 if (Input.GetKeyDown(KeyCode.F9))
1112 for (
int num = 0; num < 8; num++)
1117 if (Input.GetKey(KeyCode.F9))
1119 EClass.scene.paused =
false;
1120 for (
int num2 = 0; num2 <
advanceMin; num2++)
1126 if (Input.GetKeyDown(KeyCode.F10))
1149 if (Input.GetKeyDown(KeyCode.Tab))
1165 if (hitPoint.
detail !=
null)
1178 if (Input.GetMouseButtonDown(2))
1199 if (Input.GetMouseButtonDown(0))
1201 foreach (
Card item2
in list)
1206 if (Input.GetMouseButtonDown(1))
1214 c.DamageHP(999999999L, AttackSource.Finish, EClass.pc);
1218 else if (hitPoint.
detail !=
null)
1220 for (
int num3 = hitPoint.
detail.
charas.Count - 1; num3 >= 0; num3--)
1228 if (Input.GetKeyDown(KeyCode.Delete))
1230 if (Input.GetKey(KeyCode.RightControl))
1241 else if (hitPoint.
detail !=
null)
1243 for (
int num4 = hitPoint.
detail.
things.Count - 1; num4 >= 0; num4--)
1247 if (hitPoint.
detail !=
null)
1249 for (
int num5 = hitPoint.
detail.
charas.Count - 1; num5 >= 0; num5--)
1256 if (Input.GetKeyDown(KeyCode.End) && hitPoint.
detail !=
null)
1258 for (
int num6 = hitPoint.
detail.
things.Count - 1; num6 >= 0; num6--)
1264 if (!Application.isEditor)
1273 if (Input.GetKeyDown(KeyCode.Alpha0))
1277 if (Input.GetKeyDown(KeyCode.Alpha1))
1281 if (Input.GetKeyDown(KeyCode.Alpha2))
1285 if (Input.GetKeyDown(KeyCode.Alpha3))
1289 if (Input.GetKeyDown(KeyCode.Alpha4))
1293 if (Input.GetKeyDown(KeyCode.Alpha5))
1297 if (Input.GetKeyDown(KeyCode.Alpha6))
1301 if (Input.GetKeyDown(KeyCode.Alpha7))
1305 if (Input.GetKeyDown(KeyCode.Alpha8))
1309 if (Input.GetKeyDown(KeyCode.Alpha9))
1325 if (Input.GetKeyDown(KeyCode.Alpha1))
1329 if (Input.GetKeyDown(KeyCode.Alpha2))
1335 if (Input.GetKeyDown(KeyCode.Alpha1))
1341 if (Input.GetKeyDown(KeyCode.Alpha2))
1347 if (Input.GetKeyDown(KeyCode.Alpha3))
1353 if (Input.GetKeyDown(KeyCode.Alpha4))
1359 if (Input.GetKeyDown(KeyCode.Alpha5))
1365 if (Input.GetKeyDown(KeyCode.Alpha6))
1371 if (Input.GetKeyDown(KeyCode.Alpha7))
1376 if (Input.GetKeyDown(KeyCode.Alpha8))
1381 if (Input.GetKeyDown(KeyCode.Alpha9))
1386 if (Input.GetKeyDown(KeyCode.Alpha0))
1391 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1398 if (Input.GetKeyDown(KeyCode.Alpha1))
1402 if (!Input.GetKeyDown(KeyCode.Alpha2))
1407 if (Input.GetKeyDown(KeyCode.Alpha1))
1409 QualitySettings.vSyncCount = 0;
1410 Application.targetFrameRate = 60;
1412 if (Input.GetKeyDown(KeyCode.Alpha2))
1414 QualitySettings.vSyncCount = 0;
1415 Application.targetFrameRate = 20;
1417 if (Input.GetKeyDown(KeyCode.Alpha3))
1419 QualitySettings.vSyncCount = 0;
1420 Application.targetFrameRate = 30;
1422 if (Input.GetKeyDown(KeyCode.Alpha4))
1424 QualitySettings.vSyncCount = 0;
1425 Application.targetFrameRate = 40;
1435 if ((
bool)charaActorPCC)
1437 if (Input.GetKeyDown(KeyCode.Keypad0))
1442 if (Input.GetKeyDown(KeyCode.Keypad1))
1445 card.angle = charaActorPCC.
provider.angle;
1448 if (Input.GetKeyDown(KeyCode.Keypad2))
1450 charaActorPCC.
pcc.data.Randomize();
1454 if (Input.GetKeyDown(KeyCode.Keypad4))
1460 if (Input.GetKeyDown(KeyCode.Keypad5))
1465 if (Input.GetKeyDown(KeyCode.Keypad7))
1470 if (Input.GetKeyDown(KeyCode.Keypad8))
1475 if (Input.GetKeyDown(KeyCode.Keypad9))
1485 Add(cat,
"Save Widgets", delegate
1489 Add(cat,
"Save Widgets(Dialog)", delegate
1493 Add(cat,
"Export Zone", delegate
1497 Add(cat,
"Export Zone(Dialog)", delegate
1501 Add(0,
"Import Zone(Dialog)", delegate
1505 Add(cat,
"Validate Backer Contents", delegate
1514 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1516 Debug.Log(row2.id +
"/remain/" + row2.Name +
"/" + row2.loot);
1520 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1522 Debug.Log(row2.id +
"/pet/" + row2.Name +
"/" + row2.chara);
1526 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLowerInvariant()))
1528 Debug.Log(row2.id +
"/" + row2.Name +
"/follower/" + row2.deity);
1535 Add(cat,
"Edit PCC", delegate
1542 Add(cat,
"Fix Floating Items", delegate
1546 if (thing.Pref.Float)
1548 thing.isFloating = true;
1553 Add(cat,
"Add Conditions", delegate
1557 EClass.pc.AddCondition<ConWet>();
1561 EClass.pc.AddCondition<ConSuffocation>();
1565 EClass.pc.AddCondition<ConPoison>();
1569 EClass.pc.AddCondition<ConDisease>();
1573 Add(cat,
"Max Construction", COM_MaxConstruction);
1574 Add(cat,
"Add Reserves", delegate
1584 Add(cat,
"Add Recruits", delegate
1588 EClass.Branch.AddRecruit(CharaGen.Create(
"merc_archer"));
1589 EClass.Branch.AddRecruit(CharaGen.Create(
"healer"));
1590 EClass.Branch.AddRecruit(CharaGen.Create(
"bartender"));
1591 EClass.Branch.AddRecruit(CharaGen.Create(
"merchant"));
1592 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1593 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1594 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1597 Add(cat,
"Add Resources", delegate
1601 EClass.Branch.resources.food.Mod(100);
1602 EClass.Branch.resources.knowledge.Mod(100);
1605 Add(cat,
"Remove Influence", delegate
1607 EClass._zone.influence = 0;
1609 Add(cat,
"Reroll Hobbies", delegate
1613 chara.RerollHobby();
1616 Add(cat,
"Test_Siege", Test_Siege);
1617 Add(cat,
"Test_SiegeGuard", Test_SiegeGuard);
1618 Add(cat,
"Log_BranchMembers", delegate
1622 Debug.Log(EClass.Branch.members.Count);
1623 foreach (Chara member in EClass.Branch.members)
1625 EClass.debug.Log(member);
1630 Add(cat,
"Weather.Fine", delegate
1634 Add(cat,
"Weather.Blossom", delegate
1638 Add(cat,
"Weather.Random", delegate
1642 Add(cat,
"Weather.Ether+50", delegate
1647 Add(cat,
"Season.Next", delegate
1651 Add(cat,
"Unreveal Map", delegate
1659 Add(cat,
"Test_GodTalk", Test_GodTalk);
1660 Add(cat,
"Test_Filter", Test_Filter);
1661 Add(cat,
"Test_Grow", Test_Grow);
1662 Add(cat,
"Turn On All Lights", delegate
1666 if (thing2.trait.IsLighting)
1668 thing2.trait.Toggle(on: true);
1672 Add(cat,
"Reset All Custom Lights", delegate
1676 thing3.c_lightColor = 0;
1677 thing3.RecalculateFOV();
1680 Add(cat,
"Reset All obj materials", delegate
1686 c.objMat = c.sourceObj.DefaultMaterial.id;
1690 Add(cat,
"Reset Certain obj materials", delegate
1696 c.objMat = c.sourceObj.DefaultMaterial.id;
1700 Add(cat,
"Fix Floors under Blocks", delegate
1706 SourceBlock.Row sourceBlock = c.sourceBlock;
1707 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1708 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1712 Add(cat,
"Bless Inventory", delegate
1719 Add(cat,
"Curse Inventory", delegate
1726 Add(cat,
"List Global Charas", delegate
1730 Debug.Log(globalChara.Key +
"/" + globalChara.Value.Name +
"/" + ((globalChara.Value.currentZone == null) ?
"NULL" : globalChara.Value.currentZone.Name) +
"/" + globalChara.Value.faction?.ToString() +
"/" + globalChara.Value.homeBranch);
1733 Add(cat,
"List Global Charas In Zone", delegate
1737 if (globalChara2.Value.currentZone == EClass._zone)
1739 Debug.Log(globalChara2.Key +
"/" + globalChara2.Value);
1743 Add(cat,
"List Citizen", delegate
1748 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1749 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1752 void Add(
int cat2,
string id, Action action)
1754 DebugCommand
item =
new DebugCommand
1777 traitSeed.TrySprout(force:
true);
1792 for (
int i = 0; i < 10000; i++)
1808 EClass.game.world.date.hour = 2;
1815 bilinear = !bilinear;
1817 for (
int i = 0; i < passes.Length; i++)
1819 passes[i].
mat.GetTexture(
"_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1872 [ConsoleCommand(
"")]
1875 EClass.game.config.cheat =
true;
1876 return "Cheat Enabled";
1879 [ConsoleCommand(
"")]
1883 if (questDebt ==
null)
1885 return "Quest Status Not Valid.";
1887 questDebt.stage = 0;
1888 questDebt.paid =
false;
1889 questDebt.gaveBill =
false;
1890 EClass.player.debt = 20000000;
1894 return "Quest Reset!";
1897 [ConsoleCommand(
"")]
1902 if (thing.
id ==
"ash3")
1904 thing.id =
"awning ";
1912 [ConsoleCommand(
"")]
1923 EClass.Branch.RemoveMemeber(c);
1930 [ConsoleCommand(
"")]
1940 if (!(value.
source.category !=
"attribute"))
1945 text = text +
"Fixing Base Value:" + orCreateElement.Name +
" Before:" + orCreateElement.vBase +
" Now:" + (value.vBase + 1) + Environment.NewLine;
1950 return text +
"Fixed!";
1953 [ConsoleCommand(
"")]
1958 return "Not in base.";
1964 return "Base already has core.";
1969 return "Player has core.";
1975 [ConsoleCommand(
"")]
1978 List<Chara> list =
new List<Chara>();
1988 Chara chara = list[1];
1992 return "Demitas Removed!";
1994 return "Not enough Demitas!";
1997 [ConsoleCommand(
"")]
2000 List<Chara> list =
new List<Chara>();
2003 if (value.
id ==
"ashland")
2010 Chara chara = list[1];
2014 return "Ashland Removed!";
2016 return "Not enough Ashland!";
2019 [ConsoleCommand(
"")]
2026 c.detail.designation.taskList.Remove(c.detail.designation);
2032 [ConsoleCommand(
"")]
2038 text = text + row.id +
"\n";
2043 [ConsoleCommand(
"")]
2049 text = text + row.id +
"\n";
2054 [ConsoleCommand(
"")]
2055 public static string SetElement(
string alias,
int value,
int potential = 100)
2057 if (!CheatEnabled())
2064 return "Element not found.";
2066 if (row.
type ==
"Feat")
2077 [ConsoleCommand(
"")]
2080 if (!CheatEnabled())
2087 return "Spawned " + chara.
Name;
2089 return "'" +
id +
"' does not exist in the database.";
2092 [ConsoleCommand(
"")]
2093 public static string Spawn(
string id,
int num = 1,
string aliasMat =
"",
int objLv = -1)
2095 if (!CheatEnabled())
2102 if (!aliasMat.IsEmpty())
2107 return "Spawned " + thing.
Name;
2118 return "Spawned " + chara.
Name;
2120 return "'" +
id +
"' does not exist in the database.";
2123 [ConsoleCommand(
"")]
2126 if (!CheatEnabled())
2132 return "'" +
id +
"' does not exist in the database.";
2136 string c_idRefCard = (thing2.c_idRefCard = id);
2137 thing.c_idRefCard = c_idRefCard;
2140 return "Spawned figures for '" +
id +
"'";
2143 [ConsoleCommand(
"")]
2144 public static string TestSpawn(
int lv,
int num,
int lvRange = -1)
2146 if (!CheatEnabled())
2152 EClass._zone._dangerLv = lv;
2158 for (
int num2 = 0; num2 < num; num2++)
2163 levelRange = lvRange
2169 [ConsoleCommand(
"")]
2179 return "Not Implemented.";
2182 [ConsoleCommand(
"")]
2185 if (!CheatEnabled())
2193 [ConsoleCommand(
"")]
2196 if (!CheatEnabled())
2205 [ConsoleCommand(
"")]
2208 if (!CheatEnabled())
2216 [ConsoleCommand(
"")]
2219 if (!CheatEnabled())
2231 [ConsoleCommand(
"")]
2234 if (!CheatEnabled())
2242 [ConsoleCommand(
"")]
2245 if (!CheatEnabled())
2253 [ConsoleCommand(
"")]
2256 if (!CheatEnabled())
2267 [ConsoleCommand(
"")]
2270 if (!CheatEnabled())
2275 return "I can fly!";
2278 [ConsoleCommand(
"")]
2281 if (!CheatEnabled())
2285 _AddBodyPart(bodyCode);
2289 [ConsoleCommand(
"")]
2292 if (!CheatEnabled())
2296 _RemoveBodyPart(bodyCode);
2314 [ConsoleCommand(
"")]
2317 if (!CheatEnabled())
2326 if (slot.
thing !=
null)
2356 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2361 [ConsoleCommand(
"")]
2368 [ConsoleCommand(
"")]
2375 [ConsoleCommand(
"")]
2378 if (!CheatEnabled())
2391 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2396 [ConsoleCommand(
"")]
2399 string text =
"Steam is not running.";
2400 DateTime dateTime =
new DateTime(2024, 11, 3, 6, 0, 0);
2401 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))));
2402 dateTimeOffset = dateTimeOffset.ToOffset(
new TimeSpan(9, 0, 0));
2403 text = ((dateTimeOffset < dateTime) ?
"Valid: " :
"Invalid: ");
2404 text = text +
"Arrived North Tyris on " + dateTimeOffset.Year +
" " + dateTimeOffset.Month +
"/" + dateTimeOffset.Day +
" " + dateTimeOffset.Hour +
":" + dateTimeOffset.Minute;
2405 return text +
" Eligible by " + dateTime.Year +
" " + dateTime.Month +
"/" + dateTime.Day +
" " + dateTime.Hour +
":" + dateTime.Minute;
2408 [ConsoleCommand(
"")]
2412 NameGen.list =
null;
2413 AliasGen.list =
null;
2414 AliasGen.listMix.Clear();
2415 AliasGen.listBuiltin.Clear();
2416 WordGen.listMix.Clear();
2417 WordGen.listBuiltin.Clear();
2424 if (chara.
source.name ==
"*r")
2426 chara.c_altName = NameGen.getRandomName();
2428 if (!chara.
_alias.IsEmpty())
2430 chara._alias = AliasGen.GetRandomAlias();
2437 [ConsoleCommand(
"")]
2440 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);
2443 [ConsoleCommand(
"")]
2446 if (!CheatEnabled())
2461 [ConsoleCommand(
"")]
2467 if (row.name.Contains(name) || row.id.ToString() == name)
2469 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;
2476 return text + Resources.Load<TextAsset>(
"logo2").text;
2479 [ConsoleCommand(
"")]
2482 if (!CheatEnabled())
2487 return Resources.Load<TextAsset>(
"logo2").text + Environment.NewLine +
"Done!";
2490 [ConsoleCommand(
"")]
2493 if (!CheatEnabled())
2498 return "Resources spawned.";
2508 if ((
bool)SoundManager.current)
2510 SoundManager.current.NextBGM();
2516 revealMap = !revealMap;
2526 TextAsset textAsset = Resources.Load<TextAsset>(
"Data/Text/broadcast");
2527 blines = textAsset.text.Split(
'-');
2533 if (Input.GetKey(KeyCode.LeftControl))
2537 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2538 string text = blines[bidx];
2539 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)