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;
353 EClass.game.idPrologue = 3;
356 EClass.game.idPrologue = 2;
361 EClass.player.pref.lastIdTabAbility = 3;
378 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])))
388 if (row2.isSkill && !row2.tag.Contains(
"unused"))
397 EClass.player.totalFeat = lv;
399 EClass.player.fame = EClass.pc.LV * 100;
414 AddHotbar(
"pickaxe");
415 AddHotbar(
"wateringCan");
418 AddAbility(
"SpellTeleport");
419 AddAbility(
"SpellCatsEye");
420 AddHotbar(
"map_big");
426 AddHotbar(
"pickaxe").ChangeMaterial(0);
432 for (
int i = 0; i < 30; i++)
438 for (
int j = 0; j < 30; j++)
453 for (
int k = 0; k < 30; k++)
466 for (
int l = 0; l < 30; l++)
472 for (
int m = 0; m < 20; m++)
480 for (
int n = 0; n < 20; n++)
482 string id2 = list.RandomItem().id;
490 for (
int num = 0; num < 20; num++)
492 string id3 = list.RandomItem().id;
501 for (
int num2 = 0; num2 < 20; num2++)
503 string id4 = list.RandomItem().id;
528 thing.
Dye(
"saphire");
539 thing.
Dye(
"rubinus");
547 for (
int num3 = 0; num3 < 10; num3++)
554 thing.
Dye(
"rubinus");
558 if (row3.tag.Contains(
"seed"))
567 for (
int num4 = 0; num4 < 30; num4++)
574 for (
int num5 = 0; num5 < 30; num5++)
581 for (
int num6 = 0; num6 < 30; num6++)
588 for (
int num7 = 0; num7 < 40; num7++)
610 thing8.refVal = 8220;
616 AddHotbar(
"pickaxe");
617 AddHotbar(
"wateringCan");
618 AddHotbar(
"gun_assault");
632 SoundManager.ignoreSounds =
true;
634 SoundManager.ignoreSounds =
true;
636 SoundManager.ignoreSounds =
false;
644 thing11.isNew =
false;
675 static Thing AddAbility(
string id)
678 thing9.c_idAbility = id;
681 Thing AddHotbar(
string id)
689 void AddParty(
string id)
723 LittlePopper.skipPop =
true;
728 row.CreateByProduct(container, num);
733 if ((row2.factory.IsEmpty() || !(row2.factory[0] ==
"x")) && !row2.isOrigin && row2.Category.tag.Contains(
"debug"))
743 for (
int i = 0; i < 10; i++)
747 LittlePopper.skipPop =
false;
754 if (thing2.
c_altName ==
"DebugContainer")
761 thing.c_altName =
"DebugContainer";
762 thing.isNPCProperty =
false;
803 if (Input.GetKeyDown(KeyCode.B))
807 if (Input.GetKeyDown(KeyCode.O))
811 if (Input.GetKeyDown(KeyCode.P))
815 if (Input.GetKeyDown(KeyCode.F11))
817 if (Application.isEditor)
825 NewsList.dict =
null;
826 BookList.dict =
null;
831 if (Input.GetKeyDown(KeyCode.U))
835 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
837 if (Input.GetKeyDown(KeyCode.I))
841 EClass.screen.tileMap.rendererInnerBlock.offset =
new Vector3(0f, 0.54f, -0.5f);
862 bool key = Input.GetKey(KeyCode.LeftShift);
863 bool key2 = Input.GetKey(KeyCode.LeftAlt);
864 bool key3 = Input.GetKey(KeyCode.LeftControl);
866 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (
EInput.
isShiftDown && Input.GetKeyDown(KeyCode.Period)))
870 if (Input.GetKeyDown(KeyCode.KeypadMinus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Comma)))
877 EClass.
ui.Find(
"_Guide").ToggleActive();
879 if (Input.GetKey(KeyCode.N))
883 SoundManager.current.sourceBGM.pitch = 10f;
887 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
890 else if (Input.GetKeyUp(KeyCode.N))
892 SoundManager.current.sourceBGM.pitch = 1f;
896 string text =
"festival";
897 if (Input.GetKeyDown(KeyCode.F1))
901 if (Input.GetKeyDown(KeyCode.F2))
903 Zone.forceRegenerate =
true;
909 if (Input.GetKeyDown(KeyCode.F4))
916 Zone.forceRegenerate =
true;
917 Zone.forceSubset = text;
924 if (Input.GetKeyDown(KeyCode.F5))
932 if (Input.GetKeyDown(KeyCode.F1))
939 if (Input.GetKeyDown(KeyCode.F2))
941 EClass.game.world.date.year = 3000;
942 EClass._zone.development += 10;
945 if (targetChara !=
null)
965 chara.hostility = hostility2;
969 if (Input.GetKeyDown(KeyCode.F3))
971 for (
int i = 0; i < 10; i++)
980 Debug.Log(deadChara);
985 Guild.Fighter.relation.rank = 20;
986 Guild.Mage.relation.rank = 20;
987 Guild.Thief.relation.rank = 20;
988 Guild.Merchant.relation.rank = 20;
1002 EClass.pc.feat += 10;
1003 EClass.player.totalFeat += 10;
1006 if (Input.GetKeyDown(KeyCode.F4))
1011 if (Input.GetKeyDown(KeyCode.F5))
1013 string text2 = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1020 EClass.game.isCloud =
false;
1023 if (Input.GetKeyDown(KeyCode.F6))
1027 string id = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1032 if (Input.GetKeyDown(KeyCode.F7))
1037 if (Input.GetKeyDown(KeyCode.F8))
1047 if (Input.GetKeyDown(KeyCode.F9))
1055 int width = array[0];
1056 int height = array[1];
1057 Screen.SetResolution(width, height, key);
1060 if (Input.GetKeyDown(KeyCode.F10))
1062 int width2 = Screen.width;
1063 int height2 = width2 / 16 * 9;
1064 Screen.SetResolution(width2, height2, key);
1070 Input.GetKeyDown(KeyCode.F9);
1071 if (Input.GetKey(KeyCode.F9))
1073 EClass.scene.paused =
false;
1080 if (Input.GetKeyDown(KeyCode.F10))
1103 if (Input.GetKeyDown(KeyCode.Tab))
1119 if (hitPoint.
detail !=
null)
1132 if (Input.GetMouseButtonDown(2))
1153 if (Input.GetMouseButtonDown(0))
1155 foreach (
Card item2
in list)
1160 if (Input.GetMouseButtonDown(1))
1168 c.DamageHP(9999999, AttackSource.Finish, EClass.pc);
1172 else if (hitPoint.
detail !=
null)
1174 for (
int num = hitPoint.
detail.
charas.Count - 1; num >= 0; num--)
1182 if (Input.GetKeyDown(KeyCode.Delete))
1184 if (Input.GetKey(KeyCode.RightControl))
1195 else if (hitPoint.
detail !=
null)
1197 for (
int num2 = hitPoint.
detail.
things.Count - 1; num2 >= 0; num2--)
1201 if (hitPoint.
detail !=
null)
1203 for (
int num3 = hitPoint.
detail.
charas.Count - 1; num3 >= 0; num3--)
1210 if (Input.GetKeyDown(KeyCode.End) && hitPoint.
detail !=
null)
1212 for (
int num4 = hitPoint.
detail.
things.Count - 1; num4 >= 0; num4--)
1218 if (!Application.isEditor)
1227 if (Input.GetKeyDown(KeyCode.Alpha0))
1231 if (Input.GetKeyDown(KeyCode.Alpha1))
1235 if (Input.GetKeyDown(KeyCode.Alpha2))
1239 if (Input.GetKeyDown(KeyCode.Alpha3))
1243 if (Input.GetKeyDown(KeyCode.Alpha4))
1247 if (Input.GetKeyDown(KeyCode.Alpha5))
1251 if (Input.GetKeyDown(KeyCode.Alpha6))
1255 if (Input.GetKeyDown(KeyCode.Alpha7))
1259 if (Input.GetKeyDown(KeyCode.Alpha8))
1263 if (Input.GetKeyDown(KeyCode.Alpha9))
1279 if (Input.GetKeyDown(KeyCode.Alpha1))
1283 if (Input.GetKeyDown(KeyCode.Alpha2))
1289 if (Input.GetKeyDown(KeyCode.Alpha1))
1295 if (Input.GetKeyDown(KeyCode.Alpha2))
1301 if (Input.GetKeyDown(KeyCode.Alpha3))
1307 if (Input.GetKeyDown(KeyCode.Alpha4))
1313 if (Input.GetKeyDown(KeyCode.Alpha5))
1319 if (Input.GetKeyDown(KeyCode.Alpha6))
1325 if (Input.GetKeyDown(KeyCode.Alpha7))
1330 if (Input.GetKeyDown(KeyCode.Alpha8))
1335 if (Input.GetKeyDown(KeyCode.Alpha9))
1340 if (Input.GetKeyDown(KeyCode.Alpha0))
1345 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1352 if (Input.GetKeyDown(KeyCode.Alpha1))
1356 if (!Input.GetKeyDown(KeyCode.Alpha2))
1361 if (Input.GetKeyDown(KeyCode.Alpha1))
1363 QualitySettings.vSyncCount = 0;
1364 Application.targetFrameRate = 60;
1366 if (Input.GetKeyDown(KeyCode.Alpha2))
1368 QualitySettings.vSyncCount = 0;
1369 Application.targetFrameRate = 20;
1371 if (Input.GetKeyDown(KeyCode.Alpha3))
1373 QualitySettings.vSyncCount = 0;
1374 Application.targetFrameRate = 30;
1376 if (Input.GetKeyDown(KeyCode.Alpha4))
1378 QualitySettings.vSyncCount = 0;
1379 Application.targetFrameRate = 40;
1389 if ((
bool)charaActorPCC)
1391 if (Input.GetKeyDown(KeyCode.Keypad0))
1396 if (Input.GetKeyDown(KeyCode.Keypad1))
1399 card.angle = charaActorPCC.
provider.angle;
1402 if (Input.GetKeyDown(KeyCode.Keypad2))
1404 charaActorPCC.
pcc.data.Randomize();
1408 if (Input.GetKeyDown(KeyCode.Keypad4))
1414 if (Input.GetKeyDown(KeyCode.Keypad5))
1419 if (Input.GetKeyDown(KeyCode.Keypad7))
1424 if (Input.GetKeyDown(KeyCode.Keypad8))
1429 if (Input.GetKeyDown(KeyCode.Keypad9))
1439 Add(cat2,
"Save Widgets", delegate
1443 Add(cat2,
"Save Widgets(Dialog)", delegate
1447 Add(cat2,
"Export Zone", delegate
1451 Add(cat2,
"Export Zone(Dialog)", delegate
1455 Add(0,
"Import Zone(Dialog)", delegate
1459 Add(cat2,
"Validate Backer Contents", delegate
1468 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1470 Debug.Log(row2.id +
"/remain/" + row2.Name +
"/" + row2.loot);
1474 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1476 Debug.Log(row2.id +
"/pet/" + row2.Name +
"/" + row2.chara);
1480 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLowerInvariant()))
1482 Debug.Log(row2.id +
"/" + row2.Name +
"/follower/" + row2.deity);
1489 Add(cat2,
"Edit PCC", delegate
1496 Add(cat2,
"Fix Floating Items", delegate
1500 if (thing.Pref.Float)
1502 thing.isFloating = true;
1507 Add(cat2,
"Add Conditions", delegate
1511 EClass.pc.AddCondition<ConWet>();
1515 EClass.pc.AddCondition<ConSuffocation>();
1519 EClass.pc.AddCondition<ConPoison>();
1523 EClass.pc.AddCondition<ConDisease>();
1527 Add(cat2,
"Max Construction", COM_MaxConstruction);
1528 Add(cat2,
"Add Reserves", delegate
1538 Add(cat2,
"Add Recruits", delegate
1542 EClass.Branch.AddRecruit(CharaGen.Create(
"merc_archer"));
1543 EClass.Branch.AddRecruit(CharaGen.Create(
"healer"));
1544 EClass.Branch.AddRecruit(CharaGen.Create(
"bartender"));
1545 EClass.Branch.AddRecruit(CharaGen.Create(
"merchant"));
1546 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1547 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1548 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1551 Add(cat2,
"Add Resources", delegate
1555 EClass.Branch.resources.food.Mod(100);
1556 EClass.Branch.resources.knowledge.Mod(100);
1559 Add(cat2,
"Add Influence", delegate
1561 EClass._zone.influence += 100;
1563 Add(cat2,
"Reroll Hobbies", delegate
1567 chara.RerollHobby();
1570 Add(cat2,
"Test_Siege", Test_Siege);
1571 Add(cat2,
"Test_SiegeGuard", Test_SiegeGuard);
1572 Add(cat2,
"Log_BranchMembers", delegate
1576 Debug.Log(EClass.Branch.members.Count);
1577 foreach (Chara member in EClass.Branch.members)
1579 EClass.debug.Log(member);
1584 Add(cat2,
"Weather.Fine", delegate
1588 Add(cat2,
"Weather.Blossom", delegate
1592 Add(cat2,
"Weather.Random", delegate
1596 Add(cat2,
"Weather.Ether+50", delegate
1601 Add(cat2,
"Season.Next", delegate
1605 Add(cat2,
"Unreveal Map", delegate
1613 Add(cat2,
"Test_GodTalk", Test_GodTalk);
1614 Add(cat2,
"Test_Filter", Test_Filter);
1615 Add(cat2,
"Test_Grow", Test_Grow);
1616 Add(cat2,
"Turn On All Lights", delegate
1620 if (thing2.trait.IsLighting)
1622 thing2.trait.Toggle(on: true);
1626 Add(cat2,
"Reset All Custom Lights", delegate
1630 thing3.c_lightColor = 0;
1631 thing3.RecalculateFOV();
1634 Add(cat2,
"Reset All obj materials", delegate
1640 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1644 Add(cat2,
"Reset Certain obj materials", delegate
1650 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1654 Add(cat2,
"Fix Floors under Blocks", delegate
1660 SourceBlock.Row sourceBlock = c.sourceBlock;
1661 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1662 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1666 Add(cat2,
"Bless Inventory", delegate
1673 Add(cat2,
"Curse Inventory", delegate
1680 Add(cat2,
"List Global Charas", delegate
1684 Debug.Log(globalChara.Key +
"/" + globalChara.Value.Name +
"/" + ((globalChara.Value.currentZone == null) ?
"NULL" : globalChara.Value.currentZone.Name) +
"/" + globalChara.Value.faction?.ToString() +
"/" + globalChara.Value.homeBranch);
1687 Add(cat2,
"List Global Charas In Zone", delegate
1691 if (globalChara2.Value.currentZone == EClass._zone)
1693 Debug.Log(globalChara2.Key +
"/" + globalChara2.Value);
1697 Add(cat2,
"List Citizen", delegate
1702 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1703 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1706 void Add(
int cat,
string id, Action action)
1708 DebugCommand
item =
new DebugCommand
1731 traitSeed.TrySprout(force:
true);
1746 for (
int i = 0; i < 10000; i++)
1762 EClass.game.world.date.hour = 2;
1769 bilinear = !bilinear;
1771 for (
int i = 0; i < passes.Length; i++)
1773 passes[i].
mat.GetTexture(
"_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1826 [ConsoleCommand(
"")]
1829 EClass.game.config.cheat =
true;
1830 return "Cheat Enabled";
1833 [ConsoleCommand(
"")]
1837 if (questDebt ==
null)
1839 return "Quest Status Not Valid.";
1841 questDebt.stage = 0;
1842 questDebt.paid =
false;
1843 questDebt.gaveBill =
false;
1844 EClass.player.debt = 20000000;
1848 return "Quest Reset!";
1851 [ConsoleCommand(
"")]
1862 EClass.Branch.RemoveMemeber(c);
1869 [ConsoleCommand(
"")]
1879 if (!(value.
source.category !=
"attribute"))
1884 text = text +
"Fixing Base Value:" + orCreateElement.Name +
" Before:" + orCreateElement.vBase +
" Now:" + (value.vBase + 1) + Environment.NewLine;
1889 return text +
"Fixed!";
1892 [ConsoleCommand(
"")]
1897 return "Not in base.";
1903 return "Base already has core.";
1908 return "Player has core.";
1914 [ConsoleCommand(
"")]
1917 List<Chara> list =
new List<Chara>();
1927 Chara chara = list[1];
1930 return "Demitas Removed!";
1932 return "Not enough Demitas!";
1935 [ConsoleCommand(
"")]
1942 c.detail.designation.taskList.Remove(c.detail.designation);
1948 [ConsoleCommand(
"")]
1954 text = text + row.id +
"\n";
1959 [ConsoleCommand(
"")]
1965 text = text + row.id +
"\n";
1970 [ConsoleCommand(
"")]
1971 public static string SetElement(
string alias,
int value,
int potential = 100)
1973 if (!CheatEnabled())
1980 return "Element not found.";
1982 if (row.
type ==
"Feat")
1993 [ConsoleCommand(
"")]
1996 if (!CheatEnabled())
2003 return "Spawned " + chara.
Name;
2005 return "'" +
id +
"' does not exist in the database.";
2008 [ConsoleCommand(
"")]
2009 public static string Spawn(
string id,
int num = 1,
string aliasMat =
"",
int objLv = -1)
2011 if (!CheatEnabled())
2018 if (!aliasMat.IsEmpty())
2023 return "Spawned " + thing.
Name;
2033 return "Spawned " + chara.
Name;
2035 return "'" +
id +
"' does not exist in the database.";
2038 [ConsoleCommand(
"")]
2039 public static string TestSpawn(
int lv,
int num,
int lvRange = -1)
2041 if (!CheatEnabled())
2047 EClass._zone._dangerLv = lv;
2053 for (
int i = 0; i < num; i++)
2058 levelRange = lvRange
2064 [ConsoleCommand(
"")]
2074 return "Not Implemented.";
2077 [ConsoleCommand(
"")]
2080 if (!CheatEnabled())
2088 [ConsoleCommand(
"")]
2091 if (!CheatEnabled())
2100 [ConsoleCommand(
"")]
2103 if (!CheatEnabled())
2111 [ConsoleCommand(
"")]
2114 if (!CheatEnabled())
2122 [ConsoleCommand(
"")]
2125 if (!CheatEnabled())
2133 [ConsoleCommand(
"")]
2137 return "I can fly!";
2140 [ConsoleCommand(
"")]
2148 if (slot.
thing !=
null)
2176 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2181 [ConsoleCommand(
"")]
2193 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2198 [ConsoleCommand(
"")]
2201 string text =
"Steam is not running.";
2202 DateTime dateTime =
new DateTime(2024, 11, 3, 6, 0, 0);
2203 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))));
2204 dateTimeOffset = dateTimeOffset.ToOffset(
new TimeSpan(9, 0, 0));
2205 text = ((dateTimeOffset < dateTime) ?
"Valid: " :
"Invalid: ");
2206 text = text +
"Arrived North Tyris on " + dateTimeOffset.Year +
" " + dateTimeOffset.Month +
"/" + dateTimeOffset.Day +
" " + dateTimeOffset.Hour +
":" + dateTimeOffset.Minute;
2207 return text +
" Eligible by " + dateTime.Year +
" " + dateTime.Month +
"/" + dateTime.Day +
" " + dateTime.Hour +
":" + dateTime.Minute;
2210 [ConsoleCommand(
"")]
2214 NameGen.list =
null;
2215 AliasGen.list =
null;
2222 if (chara.
source.name ==
"*r")
2224 chara.c_altName = NameGen.getRandomName();
2226 if (!chara.
_alias.IsEmpty())
2228 chara._alias = AliasGen.GetRandomAlias();
2235 [ConsoleCommand(
"")]
2238 if (!CheatEnabled())
2253 [ConsoleCommand(
"")]
2259 if (row.name.Contains(name) || row.id.ToString() == name)
2261 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;
2268 return text + Resources.Load<TextAsset>(
"logo2").text;
2271 [ConsoleCommand(
"")]
2274 if (!CheatEnabled())
2279 return Resources.Load<TextAsset>(
"logo2").text + Environment.NewLine +
"Done!";
2282 [ConsoleCommand(
"")]
2285 if (!CheatEnabled())
2290 return "Resources spawned.";
2300 if ((
bool)SoundManager.current)
2302 SoundManager.current.NextBGM();
2308 revealMap = !revealMap;
2318 TextAsset textAsset = Resources.Load<TextAsset>(
"Data/Text/broadcast");
2319 blines = textAsset.text.Split(
'-');
2325 if (Input.GetKey(KeyCode.LeftControl))
2329 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2330 string text = blines[bidx];
2331 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)
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
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 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 MakeSeed(SourceObj.Row obj, PlantData plant=null)
static Thing MakeRandomSeed(bool enc=false)
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)
void Export(string path, PartialMap partial=null, bool usermap=false)
Card AddCard(Card t, Point point)