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;
400 EClass.player.fame = EClass.pc.LV * 100;
415 AddHotbar(
"pickaxe");
416 AddHotbar(
"wateringCan");
419 AddAbility(
"SpellTeleport");
420 AddAbility(
"SpellCatsEye");
421 AddHotbar(
"map_big");
427 AddHotbar(
"pickaxe").ChangeMaterial(0);
433 for (
int i = 0; i < 30; i++)
439 for (
int j = 0; j < 30; j++)
455 for (
int k = 0; k < 30; k++)
468 for (
int l = 0; l < 30; l++)
474 for (
int m = 0; m < 20; m++)
482 for (
int n = 0; n < 20; n++)
484 string id2 = list.RandomItem().id;
492 for (
int num = 0; num < 20; num++)
494 string id3 = list.RandomItem().id;
503 for (
int num2 = 0; num2 < 20; num2++)
505 string id4 = list.RandomItem().id;
530 thing.
Dye(
"saphire");
541 thing.
Dye(
"rubinus");
549 for (
int num3 = 0; num3 < 10; num3++)
558 thing.
Dye(
"rubinus");
562 if (row3.tag.Contains(
"seed"))
571 for (
int num4 = 0; num4 < 30; num4++)
578 for (
int num5 = 0; num5 < 30; num5++)
585 for (
int num6 = 0; num6 < 30; num6++)
592 for (
int num7 = 0; num7 < 40; num7++)
614 thing8.refVal = 8220;
620 AddHotbar(
"pickaxe");
621 AddHotbar(
"wateringCan");
622 AddHotbar(
"gun_assault");
636 SoundManager.ignoreSounds =
true;
638 SoundManager.ignoreSounds =
true;
640 SoundManager.ignoreSounds =
false;
648 thing11.isNew =
false;
679 static Thing AddAbility(
string id)
682 thing9.c_idAbility = id;
685 Thing AddHotbar(
string id)
693 void AddParty(
string id)
727 LittlePopper.skipPop =
true;
732 row.CreateByProduct(container, num);
737 if ((row2.factory.IsEmpty() || !(row2.factory[0] ==
"x")) && !row2.isOrigin && row2.Category.tag.Contains(
"debug"))
747 for (
int i = 0; i < 10; i++)
751 LittlePopper.skipPop =
false;
758 if (thing2.
c_altName ==
"DebugContainer")
765 thing.c_altName =
"DebugContainer";
766 thing.isNPCProperty =
false;
807 if (Input.GetKeyDown(KeyCode.B))
811 if (Input.GetKeyDown(KeyCode.O))
815 if (Input.GetKeyDown(KeyCode.P))
819 if (Input.GetKeyDown(KeyCode.F11))
821 if (Application.isEditor)
829 NewsList.dict =
null;
830 BookList.dict =
null;
835 if (Input.GetKeyDown(KeyCode.U))
839 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
841 if (Input.GetKeyDown(KeyCode.I))
845 EClass.screen.tileMap.rendererInnerBlock.offset =
new Vector3(0f, 0.54f, -0.5f);
866 bool key = Input.GetKey(KeyCode.LeftShift);
867 bool key2 = Input.GetKey(KeyCode.LeftAlt);
868 bool key3 = Input.GetKey(KeyCode.LeftControl);
870 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (
EInput.
isShiftDown && Input.GetKeyDown(KeyCode.Period)))
878 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Period)))
882 if (Input.GetKeyDown(KeyCode.KeypadMinus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Comma)))
889 EClass.
ui.Find(
"_Guide").ToggleActive();
891 if (Input.GetKey(KeyCode.N))
895 SoundManager.current.sourceBGM.pitch = 10f;
899 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
902 else if (Input.GetKeyUp(KeyCode.N))
904 SoundManager.current.sourceBGM.pitch = 1f;
908 string text =
"festival";
909 if (Input.GetKeyDown(KeyCode.F1))
913 if (Input.GetKeyDown(KeyCode.F2))
915 Zone.forceRegenerate =
true;
921 if (Input.GetKeyDown(KeyCode.F4))
928 Zone.forceRegenerate =
true;
929 Zone.forceSubset = text;
936 if (Input.GetKeyDown(KeyCode.F5))
944 if (Input.GetKeyDown(KeyCode.F1))
951 if (Input.GetKeyDown(KeyCode.F2))
953 EClass._zone.development += 10;
956 if (targetChara !=
null)
976 chara.hostility = hostility2;
980 if (Input.GetKeyDown(KeyCode.F3))
982 for (
int i = 0; i < 10; i++)
991 Debug.Log(deadChara);
996 Guild.Fighter.relation.rank = 20;
997 Guild.Mage.relation.rank = 20;
998 Guild.Thief.relation.rank = 20;
999 Guild.Merchant.relation.rank = 20;
1013 EClass.pc.feat += 10;
1014 EClass.player.totalFeat += 10;
1017 if (Input.GetKeyDown(KeyCode.F4))
1019 for (
int j = 0; j < 10; j++)
1025 fixedLv = EClass._zone.DangerLv
1030 if (Input.GetKeyDown(KeyCode.F5))
1032 string text2 = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1039 EClass.game.isCloud =
false;
1042 if (Input.GetKeyDown(KeyCode.F6))
1046 string id = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1051 if (Input.GetKeyDown(KeyCode.F7))
1056 if (Input.GetKeyDown(KeyCode.F8))
1066 if (Input.GetKeyDown(KeyCode.F9))
1074 int width = array[0];
1075 int height = array[1];
1076 Screen.SetResolution(width, height, key);
1079 if (Input.GetKeyDown(KeyCode.F10))
1081 int width2 = Screen.width;
1082 int height2 = width2 / 16 * 9;
1083 Screen.SetResolution(width2, height2, key);
1089 Input.GetKeyDown(KeyCode.F9);
1090 if (Input.GetKey(KeyCode.F9))
1092 EClass.scene.paused =
false;
1099 if (Input.GetKeyDown(KeyCode.F10))
1122 if (Input.GetKeyDown(KeyCode.Tab))
1138 if (hitPoint.
detail !=
null)
1151 if (Input.GetMouseButtonDown(2))
1172 if (Input.GetMouseButtonDown(0))
1174 foreach (
Card item2
in list)
1179 if (Input.GetMouseButtonDown(1))
1187 c.DamageHP(999999999L, AttackSource.Finish, EClass.pc);
1191 else if (hitPoint.
detail !=
null)
1193 for (
int num = hitPoint.
detail.
charas.Count - 1; num >= 0; num--)
1201 if (Input.GetKeyDown(KeyCode.Delete))
1203 if (Input.GetKey(KeyCode.RightControl))
1214 else if (hitPoint.
detail !=
null)
1216 for (
int num2 = hitPoint.
detail.
things.Count - 1; num2 >= 0; num2--)
1220 if (hitPoint.
detail !=
null)
1222 for (
int num3 = hitPoint.
detail.
charas.Count - 1; num3 >= 0; num3--)
1229 if (Input.GetKeyDown(KeyCode.End) && hitPoint.
detail !=
null)
1231 for (
int num4 = hitPoint.
detail.
things.Count - 1; num4 >= 0; num4--)
1237 if (!Application.isEditor)
1246 if (Input.GetKeyDown(KeyCode.Alpha0))
1250 if (Input.GetKeyDown(KeyCode.Alpha1))
1254 if (Input.GetKeyDown(KeyCode.Alpha2))
1258 if (Input.GetKeyDown(KeyCode.Alpha3))
1262 if (Input.GetKeyDown(KeyCode.Alpha4))
1266 if (Input.GetKeyDown(KeyCode.Alpha5))
1270 if (Input.GetKeyDown(KeyCode.Alpha6))
1274 if (Input.GetKeyDown(KeyCode.Alpha7))
1278 if (Input.GetKeyDown(KeyCode.Alpha8))
1282 if (Input.GetKeyDown(KeyCode.Alpha9))
1298 if (Input.GetKeyDown(KeyCode.Alpha1))
1302 if (Input.GetKeyDown(KeyCode.Alpha2))
1308 if (Input.GetKeyDown(KeyCode.Alpha1))
1314 if (Input.GetKeyDown(KeyCode.Alpha2))
1320 if (Input.GetKeyDown(KeyCode.Alpha3))
1326 if (Input.GetKeyDown(KeyCode.Alpha4))
1332 if (Input.GetKeyDown(KeyCode.Alpha5))
1338 if (Input.GetKeyDown(KeyCode.Alpha6))
1344 if (Input.GetKeyDown(KeyCode.Alpha7))
1349 if (Input.GetKeyDown(KeyCode.Alpha8))
1354 if (Input.GetKeyDown(KeyCode.Alpha9))
1359 if (Input.GetKeyDown(KeyCode.Alpha0))
1364 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1371 if (Input.GetKeyDown(KeyCode.Alpha1))
1375 if (!Input.GetKeyDown(KeyCode.Alpha2))
1380 if (Input.GetKeyDown(KeyCode.Alpha1))
1382 QualitySettings.vSyncCount = 0;
1383 Application.targetFrameRate = 60;
1385 if (Input.GetKeyDown(KeyCode.Alpha2))
1387 QualitySettings.vSyncCount = 0;
1388 Application.targetFrameRate = 20;
1390 if (Input.GetKeyDown(KeyCode.Alpha3))
1392 QualitySettings.vSyncCount = 0;
1393 Application.targetFrameRate = 30;
1395 if (Input.GetKeyDown(KeyCode.Alpha4))
1397 QualitySettings.vSyncCount = 0;
1398 Application.targetFrameRate = 40;
1408 if ((
bool)charaActorPCC)
1410 if (Input.GetKeyDown(KeyCode.Keypad0))
1415 if (Input.GetKeyDown(KeyCode.Keypad1))
1418 card.angle = charaActorPCC.
provider.angle;
1421 if (Input.GetKeyDown(KeyCode.Keypad2))
1423 charaActorPCC.
pcc.data.Randomize();
1427 if (Input.GetKeyDown(KeyCode.Keypad4))
1433 if (Input.GetKeyDown(KeyCode.Keypad5))
1438 if (Input.GetKeyDown(KeyCode.Keypad7))
1443 if (Input.GetKeyDown(KeyCode.Keypad8))
1448 if (Input.GetKeyDown(KeyCode.Keypad9))
1458 Add(cat2,
"Save Widgets", delegate
1462 Add(cat2,
"Save Widgets(Dialog)", delegate
1466 Add(cat2,
"Export Zone", delegate
1470 Add(cat2,
"Export Zone(Dialog)", delegate
1474 Add(0,
"Import Zone(Dialog)", delegate
1478 Add(cat2,
"Validate Backer Contents", delegate
1487 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1489 Debug.Log(row2.id +
"/remain/" + row2.Name +
"/" + row2.loot);
1493 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1495 Debug.Log(row2.id +
"/pet/" + row2.Name +
"/" + row2.chara);
1499 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLowerInvariant()))
1501 Debug.Log(row2.id +
"/" + row2.Name +
"/follower/" + row2.deity);
1508 Add(cat2,
"Edit PCC", delegate
1515 Add(cat2,
"Fix Floating Items", delegate
1519 if (thing.Pref.Float)
1521 thing.isFloating = true;
1526 Add(cat2,
"Add Conditions", delegate
1530 EClass.pc.AddCondition<ConWet>();
1534 EClass.pc.AddCondition<ConSuffocation>();
1538 EClass.pc.AddCondition<ConPoison>();
1542 EClass.pc.AddCondition<ConDisease>();
1546 Add(cat2,
"Max Construction", COM_MaxConstruction);
1547 Add(cat2,
"Add Reserves", delegate
1557 Add(cat2,
"Add Recruits", delegate
1561 EClass.Branch.AddRecruit(CharaGen.Create(
"merc_archer"));
1562 EClass.Branch.AddRecruit(CharaGen.Create(
"healer"));
1563 EClass.Branch.AddRecruit(CharaGen.Create(
"bartender"));
1564 EClass.Branch.AddRecruit(CharaGen.Create(
"merchant"));
1565 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1566 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1567 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1570 Add(cat2,
"Add Resources", delegate
1574 EClass.Branch.resources.food.Mod(100);
1575 EClass.Branch.resources.knowledge.Mod(100);
1578 Add(cat2,
"Add Influence", delegate
1580 EClass._zone.influence += 100;
1582 Add(cat2,
"Reroll Hobbies", delegate
1586 chara.RerollHobby();
1589 Add(cat2,
"Test_Siege", Test_Siege);
1590 Add(cat2,
"Test_SiegeGuard", Test_SiegeGuard);
1591 Add(cat2,
"Log_BranchMembers", delegate
1595 Debug.Log(EClass.Branch.members.Count);
1596 foreach (Chara member in EClass.Branch.members)
1598 EClass.debug.Log(member);
1603 Add(cat2,
"Weather.Fine", delegate
1607 Add(cat2,
"Weather.Blossom", delegate
1611 Add(cat2,
"Weather.Random", delegate
1615 Add(cat2,
"Weather.Ether+50", delegate
1620 Add(cat2,
"Season.Next", delegate
1624 Add(cat2,
"Unreveal Map", delegate
1632 Add(cat2,
"Test_GodTalk", Test_GodTalk);
1633 Add(cat2,
"Test_Filter", Test_Filter);
1634 Add(cat2,
"Test_Grow", Test_Grow);
1635 Add(cat2,
"Turn On All Lights", delegate
1639 if (thing2.trait.IsLighting)
1641 thing2.trait.Toggle(on: true);
1645 Add(cat2,
"Reset All Custom Lights", delegate
1649 thing3.c_lightColor = 0;
1650 thing3.RecalculateFOV();
1653 Add(cat2,
"Reset All obj materials", delegate
1659 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1663 Add(cat2,
"Reset Certain obj materials", delegate
1669 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1673 Add(cat2,
"Fix Floors under Blocks", delegate
1679 SourceBlock.Row sourceBlock = c.sourceBlock;
1680 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1681 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1685 Add(cat2,
"Bless Inventory", delegate
1692 Add(cat2,
"Curse Inventory", delegate
1699 Add(cat2,
"List Global Charas", delegate
1703 Debug.Log(globalChara.Key +
"/" + globalChara.Value.Name +
"/" + ((globalChara.Value.currentZone == null) ?
"NULL" : globalChara.Value.currentZone.Name) +
"/" + globalChara.Value.faction?.ToString() +
"/" + globalChara.Value.homeBranch);
1706 Add(cat2,
"List Global Charas In Zone", delegate
1710 if (globalChara2.Value.currentZone == EClass._zone)
1712 Debug.Log(globalChara2.Key +
"/" + globalChara2.Value);
1716 Add(cat2,
"List Citizen", delegate
1721 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1722 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1725 void Add(
int cat,
string id, Action action)
1727 DebugCommand
item =
new DebugCommand
1750 traitSeed.TrySprout(force:
true);
1765 for (
int i = 0; i < 10000; i++)
1781 EClass.game.world.date.hour = 2;
1788 bilinear = !bilinear;
1790 for (
int i = 0; i < passes.Length; i++)
1792 passes[i].
mat.GetTexture(
"_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1845 [ConsoleCommand(
"")]
1848 EClass.game.config.cheat =
true;
1849 return "Cheat Enabled";
1852 [ConsoleCommand(
"")]
1856 if (questDebt ==
null)
1858 return "Quest Status Not Valid.";
1860 questDebt.stage = 0;
1861 questDebt.paid =
false;
1862 questDebt.gaveBill =
false;
1863 EClass.player.debt = 20000000;
1867 return "Quest Reset!";
1870 [ConsoleCommand(
"")]
1881 EClass.Branch.RemoveMemeber(c);
1888 [ConsoleCommand(
"")]
1898 if (!(value.
source.category !=
"attribute"))
1903 text = text +
"Fixing Base Value:" + orCreateElement.Name +
" Before:" + orCreateElement.vBase +
" Now:" + (value.vBase + 1) + Environment.NewLine;
1908 return text +
"Fixed!";
1911 [ConsoleCommand(
"")]
1916 return "Not in base.";
1922 return "Base already has core.";
1927 return "Player has core.";
1933 [ConsoleCommand(
"")]
1936 List<Chara> list =
new List<Chara>();
1946 Chara chara = list[1];
1949 return "Demitas Removed!";
1951 return "Not enough Demitas!";
1954 [ConsoleCommand(
"")]
1961 c.detail.designation.taskList.Remove(c.detail.designation);
1967 [ConsoleCommand(
"")]
1973 text = text + row.id +
"\n";
1978 [ConsoleCommand(
"")]
1984 text = text + row.id +
"\n";
1989 [ConsoleCommand(
"")]
1990 public static string SetElement(
string alias,
int value,
int potential = 100)
1992 if (!CheatEnabled())
1999 return "Element not found.";
2001 if (row.
type ==
"Feat")
2012 [ConsoleCommand(
"")]
2015 if (!CheatEnabled())
2022 return "Spawned " + chara.
Name;
2024 return "'" +
id +
"' does not exist in the database.";
2027 [ConsoleCommand(
"")]
2028 public static string Spawn(
string id,
int num = 1,
string aliasMat =
"",
int objLv = -1)
2030 if (!CheatEnabled())
2037 if (!aliasMat.IsEmpty())
2042 return "Spawned " + thing.
Name;
2052 return "Spawned " + chara.
Name;
2054 return "'" +
id +
"' does not exist in the database.";
2057 [ConsoleCommand(
"")]
2058 public static string TestSpawn(
int lv,
int num,
int lvRange = -1)
2060 if (!CheatEnabled())
2066 EClass._zone._dangerLv = lv;
2072 for (
int i = 0; i < num; i++)
2077 levelRange = lvRange
2083 [ConsoleCommand(
"")]
2093 return "Not Implemented.";
2096 [ConsoleCommand(
"")]
2099 if (!CheatEnabled())
2107 [ConsoleCommand(
"")]
2110 if (!CheatEnabled())
2119 [ConsoleCommand(
"")]
2122 if (!CheatEnabled())
2130 [ConsoleCommand(
"")]
2133 if (!CheatEnabled())
2145 [ConsoleCommand(
"")]
2148 if (!CheatEnabled())
2156 [ConsoleCommand(
"")]
2159 if (!CheatEnabled())
2167 [ConsoleCommand(
"")]
2170 if (!CheatEnabled())
2181 [ConsoleCommand(
"")]
2185 return "I can fly!";
2188 [ConsoleCommand(
"")]
2196 if (slot.
thing !=
null)
2224 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2229 [ConsoleCommand(
"")]
2241 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2246 [ConsoleCommand(
"")]
2249 string text =
"Steam is not running.";
2250 DateTime dateTime =
new DateTime(2024, 11, 3, 6, 0, 0);
2251 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))));
2252 dateTimeOffset = dateTimeOffset.ToOffset(
new TimeSpan(9, 0, 0));
2253 text = ((dateTimeOffset < dateTime) ?
"Valid: " :
"Invalid: ");
2254 text = text +
"Arrived North Tyris on " + dateTimeOffset.Year +
" " + dateTimeOffset.Month +
"/" + dateTimeOffset.Day +
" " + dateTimeOffset.Hour +
":" + dateTimeOffset.Minute;
2255 return text +
" Eligible by " + dateTime.Year +
" " + dateTime.Month +
"/" + dateTime.Day +
" " + dateTime.Hour +
":" + dateTime.Minute;
2258 [ConsoleCommand(
"")]
2262 NameGen.list =
null;
2263 AliasGen.list =
null;
2270 if (chara.
source.name ==
"*r")
2272 chara.c_altName = NameGen.getRandomName();
2274 if (!chara.
_alias.IsEmpty())
2276 chara._alias = AliasGen.GetRandomAlias();
2283 [ConsoleCommand(
"")]
2286 if (!CheatEnabled())
2301 [ConsoleCommand(
"")]
2307 if (row.name.Contains(name) || row.id.ToString() == name)
2309 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;
2316 return text + Resources.Load<TextAsset>(
"logo2").text;
2319 [ConsoleCommand(
"")]
2322 if (!CheatEnabled())
2327 return Resources.Load<TextAsset>(
"logo2").text + Environment.NewLine +
"Done!";
2330 [ConsoleCommand(
"")]
2333 if (!CheatEnabled())
2338 return "Resources spawned.";
2348 if ((
bool)SoundManager.current)
2350 SoundManager.current.NextBGM();
2356 revealMap = !revealMap;
2366 TextAsset textAsset = Resources.Load<TextAsset>(
"Data/Text/broadcast");
2367 blines = textAsset.text.Split(
'-');
2373 if (Input.GetKey(KeyCode.LeftControl))
2377 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2378 string text = blines[bidx];
2379 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)
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
bool HasElement(int ele, int req=1)
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")
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)
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 ModAffinity(Chara c, int a, bool show=true, bool showOnlyEmo=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 ModKarma(int amount)
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 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 Thing MakeLoveLunch(Chara c)
static Thing MakeDarkSoup()
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)
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)
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)
Chara SpawnMob(Point pos=null, SpawnSetting setting=null)
virtual bool CanUnlockExit
void Export(string path, PartialMap partial=null, bool usermap=false)
Card AddCard(Card t, Point point)