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)
972 chara.hostility = hostility2;
976 if (Input.GetKeyDown(KeyCode.F3))
978 for (
int i = 0; i < 10; i++)
987 Debug.Log(deadChara);
992 Guild.Fighter.relation.rank = 20;
993 Guild.Mage.relation.rank = 20;
994 Guild.Thief.relation.rank = 20;
995 Guild.Merchant.relation.rank = 20;
1009 EClass.pc.feat += 10;
1010 EClass.player.totalFeat += 10;
1013 if (Input.GetKeyDown(KeyCode.F4))
1015 for (
int j = 0; j < 10; j++)
1021 fixedLv = EClass._zone.DangerLv
1026 if (Input.GetKeyDown(KeyCode.F5))
1028 string text2 = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1035 EClass.game.isCloud =
false;
1038 if (Input.GetKeyDown(KeyCode.F6))
1042 string id = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1047 if (Input.GetKeyDown(KeyCode.F7))
1052 if (Input.GetKeyDown(KeyCode.F8))
1062 if (Input.GetKeyDown(KeyCode.F9))
1070 int width = array[0];
1071 int height = array[1];
1072 Screen.SetResolution(width, height, key);
1075 if (Input.GetKeyDown(KeyCode.F10))
1077 int width2 = Screen.width;
1078 int height2 = width2 / 16 * 9;
1079 Screen.SetResolution(width2, height2, key);
1085 Input.GetKeyDown(KeyCode.F9);
1086 if (Input.GetKey(KeyCode.F9))
1088 EClass.scene.paused =
false;
1095 if (Input.GetKeyDown(KeyCode.F10))
1118 if (Input.GetKeyDown(KeyCode.Tab))
1134 if (hitPoint.
detail !=
null)
1147 if (Input.GetMouseButtonDown(2))
1168 if (Input.GetMouseButtonDown(0))
1170 foreach (
Card item2
in list)
1175 if (Input.GetMouseButtonDown(1))
1183 c.DamageHP(999999999L, AttackSource.Finish, EClass.pc);
1187 else if (hitPoint.
detail !=
null)
1189 for (
int num = hitPoint.
detail.
charas.Count - 1; num >= 0; num--)
1197 if (Input.GetKeyDown(KeyCode.Delete))
1199 if (Input.GetKey(KeyCode.RightControl))
1210 else if (hitPoint.
detail !=
null)
1212 for (
int num2 = hitPoint.
detail.
things.Count - 1; num2 >= 0; num2--)
1216 if (hitPoint.
detail !=
null)
1218 for (
int num3 = hitPoint.
detail.
charas.Count - 1; num3 >= 0; num3--)
1225 if (Input.GetKeyDown(KeyCode.End) && hitPoint.
detail !=
null)
1227 for (
int num4 = hitPoint.
detail.
things.Count - 1; num4 >= 0; num4--)
1233 if (!Application.isEditor)
1242 if (Input.GetKeyDown(KeyCode.Alpha0))
1246 if (Input.GetKeyDown(KeyCode.Alpha1))
1250 if (Input.GetKeyDown(KeyCode.Alpha2))
1254 if (Input.GetKeyDown(KeyCode.Alpha3))
1258 if (Input.GetKeyDown(KeyCode.Alpha4))
1262 if (Input.GetKeyDown(KeyCode.Alpha5))
1266 if (Input.GetKeyDown(KeyCode.Alpha6))
1270 if (Input.GetKeyDown(KeyCode.Alpha7))
1274 if (Input.GetKeyDown(KeyCode.Alpha8))
1278 if (Input.GetKeyDown(KeyCode.Alpha9))
1294 if (Input.GetKeyDown(KeyCode.Alpha1))
1298 if (Input.GetKeyDown(KeyCode.Alpha2))
1304 if (Input.GetKeyDown(KeyCode.Alpha1))
1310 if (Input.GetKeyDown(KeyCode.Alpha2))
1316 if (Input.GetKeyDown(KeyCode.Alpha3))
1322 if (Input.GetKeyDown(KeyCode.Alpha4))
1328 if (Input.GetKeyDown(KeyCode.Alpha5))
1334 if (Input.GetKeyDown(KeyCode.Alpha6))
1340 if (Input.GetKeyDown(KeyCode.Alpha7))
1345 if (Input.GetKeyDown(KeyCode.Alpha8))
1350 if (Input.GetKeyDown(KeyCode.Alpha9))
1355 if (Input.GetKeyDown(KeyCode.Alpha0))
1360 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1367 if (Input.GetKeyDown(KeyCode.Alpha1))
1371 if (!Input.GetKeyDown(KeyCode.Alpha2))
1376 if (Input.GetKeyDown(KeyCode.Alpha1))
1378 QualitySettings.vSyncCount = 0;
1379 Application.targetFrameRate = 60;
1381 if (Input.GetKeyDown(KeyCode.Alpha2))
1383 QualitySettings.vSyncCount = 0;
1384 Application.targetFrameRate = 20;
1386 if (Input.GetKeyDown(KeyCode.Alpha3))
1388 QualitySettings.vSyncCount = 0;
1389 Application.targetFrameRate = 30;
1391 if (Input.GetKeyDown(KeyCode.Alpha4))
1393 QualitySettings.vSyncCount = 0;
1394 Application.targetFrameRate = 40;
1404 if ((
bool)charaActorPCC)
1406 if (Input.GetKeyDown(KeyCode.Keypad0))
1411 if (Input.GetKeyDown(KeyCode.Keypad1))
1414 card.angle = charaActorPCC.
provider.angle;
1417 if (Input.GetKeyDown(KeyCode.Keypad2))
1419 charaActorPCC.
pcc.data.Randomize();
1423 if (Input.GetKeyDown(KeyCode.Keypad4))
1429 if (Input.GetKeyDown(KeyCode.Keypad5))
1434 if (Input.GetKeyDown(KeyCode.Keypad7))
1439 if (Input.GetKeyDown(KeyCode.Keypad8))
1444 if (Input.GetKeyDown(KeyCode.Keypad9))
1454 Add(cat2,
"Save Widgets", delegate
1458 Add(cat2,
"Save Widgets(Dialog)", delegate
1462 Add(cat2,
"Export Zone", delegate
1466 Add(cat2,
"Export Zone(Dialog)", delegate
1470 Add(0,
"Import Zone(Dialog)", delegate
1474 Add(cat2,
"Validate Backer Contents", delegate
1483 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1485 Debug.Log(row2.id +
"/remain/" + row2.Name +
"/" + row2.loot);
1489 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1491 Debug.Log(row2.id +
"/pet/" + row2.Name +
"/" + row2.chara);
1495 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLowerInvariant()))
1497 Debug.Log(row2.id +
"/" + row2.Name +
"/follower/" + row2.deity);
1504 Add(cat2,
"Edit PCC", delegate
1511 Add(cat2,
"Fix Floating Items", delegate
1515 if (thing.Pref.Float)
1517 thing.isFloating = true;
1522 Add(cat2,
"Add Conditions", delegate
1526 EClass.pc.AddCondition<ConWet>();
1530 EClass.pc.AddCondition<ConSuffocation>();
1534 EClass.pc.AddCondition<ConPoison>();
1538 EClass.pc.AddCondition<ConDisease>();
1542 Add(cat2,
"Max Construction", COM_MaxConstruction);
1543 Add(cat2,
"Add Reserves", delegate
1553 Add(cat2,
"Add Recruits", delegate
1557 EClass.Branch.AddRecruit(CharaGen.Create(
"merc_archer"));
1558 EClass.Branch.AddRecruit(CharaGen.Create(
"healer"));
1559 EClass.Branch.AddRecruit(CharaGen.Create(
"bartender"));
1560 EClass.Branch.AddRecruit(CharaGen.Create(
"merchant"));
1561 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1562 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1563 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1566 Add(cat2,
"Add Resources", delegate
1570 EClass.Branch.resources.food.Mod(100);
1571 EClass.Branch.resources.knowledge.Mod(100);
1574 Add(cat2,
"Remove Influence", delegate
1576 EClass._zone.influence = 0;
1578 Add(cat2,
"Reroll Hobbies", delegate
1582 chara.RerollHobby();
1585 Add(cat2,
"Test_Siege", Test_Siege);
1586 Add(cat2,
"Test_SiegeGuard", Test_SiegeGuard);
1587 Add(cat2,
"Log_BranchMembers", delegate
1591 Debug.Log(EClass.Branch.members.Count);
1592 foreach (Chara member in EClass.Branch.members)
1594 EClass.debug.Log(member);
1599 Add(cat2,
"Weather.Fine", delegate
1603 Add(cat2,
"Weather.Blossom", delegate
1607 Add(cat2,
"Weather.Random", delegate
1611 Add(cat2,
"Weather.Ether+50", delegate
1616 Add(cat2,
"Season.Next", delegate
1620 Add(cat2,
"Unreveal Map", delegate
1628 Add(cat2,
"Test_GodTalk", Test_GodTalk);
1629 Add(cat2,
"Test_Filter", Test_Filter);
1630 Add(cat2,
"Test_Grow", Test_Grow);
1631 Add(cat2,
"Turn On All Lights", delegate
1635 if (thing2.trait.IsLighting)
1637 thing2.trait.Toggle(on: true);
1641 Add(cat2,
"Reset All Custom Lights", delegate
1645 thing3.c_lightColor = 0;
1646 thing3.RecalculateFOV();
1649 Add(cat2,
"Reset All obj materials", delegate
1655 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1659 Add(cat2,
"Reset Certain obj materials", delegate
1665 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1669 Add(cat2,
"Fix Floors under Blocks", delegate
1675 SourceBlock.Row sourceBlock = c.sourceBlock;
1676 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1677 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1681 Add(cat2,
"Bless Inventory", delegate
1688 Add(cat2,
"Curse Inventory", delegate
1695 Add(cat2,
"List Global Charas", delegate
1699 Debug.Log(globalChara.Key +
"/" + globalChara.Value.Name +
"/" + ((globalChara.Value.currentZone == null) ?
"NULL" : globalChara.Value.currentZone.Name) +
"/" + globalChara.Value.faction?.ToString() +
"/" + globalChara.Value.homeBranch);
1702 Add(cat2,
"List Global Charas In Zone", delegate
1706 if (globalChara2.Value.currentZone == EClass._zone)
1708 Debug.Log(globalChara2.Key +
"/" + globalChara2.Value);
1712 Add(cat2,
"List Citizen", delegate
1717 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1718 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1721 void Add(
int cat,
string id, Action action)
1723 DebugCommand
item =
new DebugCommand
1746 traitSeed.TrySprout(force:
true);
1761 for (
int i = 0; i < 10000; i++)
1777 EClass.game.world.date.hour = 2;
1784 bilinear = !bilinear;
1786 for (
int i = 0; i < passes.Length; i++)
1788 passes[i].
mat.GetTexture(
"_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1841 [ConsoleCommand(
"")]
1844 EClass.game.config.cheat =
true;
1845 return "Cheat Enabled";
1848 [ConsoleCommand(
"")]
1852 if (questDebt ==
null)
1854 return "Quest Status Not Valid.";
1856 questDebt.stage = 0;
1857 questDebt.paid =
false;
1858 questDebt.gaveBill =
false;
1859 EClass.player.debt = 20000000;
1863 return "Quest Reset!";
1866 [ConsoleCommand(
"")]
1877 EClass.Branch.RemoveMemeber(c);
1884 [ConsoleCommand(
"")]
1894 if (!(value.
source.category !=
"attribute"))
1899 text = text +
"Fixing Base Value:" + orCreateElement.Name +
" Before:" + orCreateElement.vBase +
" Now:" + (value.vBase + 1) + Environment.NewLine;
1904 return text +
"Fixed!";
1907 [ConsoleCommand(
"")]
1912 return "Not in base.";
1918 return "Base already has core.";
1923 return "Player has core.";
1929 [ConsoleCommand(
"")]
1932 List<Chara> list =
new List<Chara>();
1942 Chara chara = list[1];
1945 return "Demitas Removed!";
1947 return "Not enough Demitas!";
1950 [ConsoleCommand(
"")]
1957 c.detail.designation.taskList.Remove(c.detail.designation);
1963 [ConsoleCommand(
"")]
1969 text = text + row.id +
"\n";
1974 [ConsoleCommand(
"")]
1980 text = text + row.id +
"\n";
1985 [ConsoleCommand(
"")]
1986 public static string SetElement(
string alias,
int value,
int potential = 100)
1988 if (!CheatEnabled())
1995 return "Element not found.";
1997 if (row.
type ==
"Feat")
2008 [ConsoleCommand(
"")]
2011 if (!CheatEnabled())
2018 return "Spawned " + chara.
Name;
2020 return "'" +
id +
"' does not exist in the database.";
2023 [ConsoleCommand(
"")]
2024 public static string Spawn(
string id,
int num = 1,
string aliasMat =
"",
int objLv = -1)
2026 if (!CheatEnabled())
2033 if (!aliasMat.IsEmpty())
2038 return "Spawned " + thing.
Name;
2048 return "Spawned " + chara.
Name;
2050 return "'" +
id +
"' does not exist in the database.";
2053 [ConsoleCommand(
"")]
2054 public static string TestSpawn(
int lv,
int num,
int lvRange = -1)
2056 if (!CheatEnabled())
2062 EClass._zone._dangerLv = lv;
2068 for (
int i = 0; i < num; i++)
2073 levelRange = lvRange
2079 [ConsoleCommand(
"")]
2089 return "Not Implemented.";
2092 [ConsoleCommand(
"")]
2095 if (!CheatEnabled())
2103 [ConsoleCommand(
"")]
2106 if (!CheatEnabled())
2115 [ConsoleCommand(
"")]
2118 if (!CheatEnabled())
2126 [ConsoleCommand(
"")]
2129 if (!CheatEnabled())
2141 [ConsoleCommand(
"")]
2144 if (!CheatEnabled())
2152 [ConsoleCommand(
"")]
2155 if (!CheatEnabled())
2163 [ConsoleCommand(
"")]
2166 if (!CheatEnabled())
2177 [ConsoleCommand(
"")]
2181 return "I can fly!";
2184 [ConsoleCommand(
"")]
2192 if (slot.
thing !=
null)
2220 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2225 [ConsoleCommand(
"")]
2237 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2242 [ConsoleCommand(
"")]
2245 string text =
"Steam is not running.";
2246 DateTime dateTime =
new DateTime(2024, 11, 3, 6, 0, 0);
2247 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))));
2248 dateTimeOffset = dateTimeOffset.ToOffset(
new TimeSpan(9, 0, 0));
2249 text = ((dateTimeOffset < dateTime) ?
"Valid: " :
"Invalid: ");
2250 text = text +
"Arrived North Tyris on " + dateTimeOffset.Year +
" " + dateTimeOffset.Month +
"/" + dateTimeOffset.Day +
" " + dateTimeOffset.Hour +
":" + dateTimeOffset.Minute;
2251 return text +
" Eligible by " + dateTime.Year +
" " + dateTime.Month +
"/" + dateTime.Day +
" " + dateTime.Hour +
":" + dateTime.Minute;
2254 [ConsoleCommand(
"")]
2258 NameGen.list =
null;
2259 AliasGen.list =
null;
2266 if (chara.
source.name ==
"*r")
2268 chara.c_altName = NameGen.getRandomName();
2270 if (!chara.
_alias.IsEmpty())
2272 chara._alias = AliasGen.GetRandomAlias();
2279 [ConsoleCommand(
"")]
2282 if (!CheatEnabled())
2297 [ConsoleCommand(
"")]
2303 if (row.name.Contains(name) || row.id.ToString() == name)
2305 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;
2312 return text + Resources.Load<TextAsset>(
"logo2").text;
2315 [ConsoleCommand(
"")]
2318 if (!CheatEnabled())
2323 return Resources.Load<TextAsset>(
"logo2").text + Environment.NewLine +
"Done!";
2326 [ConsoleCommand(
"")]
2329 if (!CheatEnabled())
2334 return "Resources spawned.";
2344 if ((
bool)SoundManager.current)
2346 SoundManager.current.NextBGM();
2352 revealMap = !revealMap;
2362 TextAsset textAsset = Resources.Load<TextAsset>(
"Data/Text/broadcast");
2363 blines = textAsset.text.Split(
'-');
2369 if (Input.GetKey(KeyCode.LeftControl))
2373 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2374 string text = blines[bidx];
2375 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
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)
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 MakeBloodMeal(Chara sucker, Chara feeder, bool msg=true)
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)
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)
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)