2using System.Collections.Generic;
4using ReflexCLI.Attributes;
8[ConsoleCommandClassCustomizer(
"")]
78 row.matColor = matColors.
main;
79 row.altColor = matColors.
alt;
94 [
Header(
"Quick Start Setup")]
107 [
Header(
"System(Release)")]
110 [
Header(
"System(Release)")]
218 [
Header(
"Game(Specific)")]
267 new int[2] { 1920, 1080 },
268 new int[2] { 1366, 768 },
269 new int[2] { 1280, 720 }
282 public List<DebugCommand>
commands =
new List<DebugCommand>();
314 public static string EnableCheat =>
"Enable cheat by typing 'Cheat'";
319 List<string> list =
new List<string>();
330 EInput.disableKeyAxis = Application.isEditor;
352 EClass.game.idPrologue = 2;
357 EClass.player.pref.lastIdTabAbility = 3;
374 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])))
384 if (row2.isSkill && !row2.tag.Contains(
"unused"))
393 EClass.player.totalFeat = lv;
395 EClass.player.fame = EClass.pc.LV * 100;
410 AddHotbar(
"pickaxe");
411 AddHotbar(
"wateringCan");
414 AddAbility(
"SpellTeleport");
415 AddAbility(
"SpellCatsEye");
416 AddHotbar(
"map_big");
423 for (
int i = 0; i < 30; i++)
429 for (
int j = 0; j < 30; j++)
444 for (
int k = 0; k < 30; k++)
455 for (
int l = 0; l < 30; l++)
461 for (
int m = 0; m < 20; m++)
469 for (
int n = 0; n < 20; n++)
471 string id2 = list.RandomItem().id;
479 for (
int num = 0; num < 20; num++)
481 string id3 = list.RandomItem().id;
490 for (
int num2 = 0; num2 < 20; num2++)
492 string id4 = list.RandomItem().id;
517 thing.
Dye(
"saphire");
528 thing.
Dye(
"rubinus");
536 for (
int num3 = 0; num3 < 10; num3++)
543 thing.
Dye(
"rubinus");
547 if (row3.tag.Contains(
"seed"))
556 for (
int num4 = 0; num4 < 30; num4++)
563 for (
int num5 = 0; num5 < 30; num5++)
570 for (
int num6 = 0; num6 < 30; num6++)
577 for (
int num7 = 0; num7 < 40; num7++)
599 thing8.refVal = 8220;
605 AddHotbar(
"pickaxe");
606 AddHotbar(
"wateringCan");
607 AddHotbar(
"gun_assault");
621 SoundManager.ignoreSounds =
true;
623 SoundManager.ignoreSounds =
true;
625 SoundManager.ignoreSounds =
false;
633 thing11.isNew =
false;
663 static Thing AddAbility(
string id)
666 thing9.c_idAbility = id;
669 Thing AddHotbar(
string id)
677 void AddParty(
string id)
711 LittlePopper.skipPop =
true;
716 row.CreateByProduct(container, num);
721 if ((row2.factory.IsEmpty() || !(row2.factory[0] ==
"x")) && !row2.isOrigin && row2.Category.tag.Contains(
"debug"))
731 for (
int i = 0; i < 10; i++)
735 LittlePopper.skipPop =
false;
742 if (thing2.
c_altName ==
"DebugContainer")
749 thing.c_altName =
"DebugContainer";
750 thing.isNPCProperty =
false;
791 if (Input.GetKeyDown(KeyCode.B))
795 if (Input.GetKeyDown(KeyCode.O))
799 if (Input.GetKeyDown(KeyCode.P))
803 if (Input.GetKeyDown(KeyCode.F11))
805 if (Application.isEditor)
813 NewsList.dict =
null;
814 BookList.dict =
null;
819 if (Input.GetKeyDown(KeyCode.U))
823 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
825 if (Input.GetKeyDown(KeyCode.I))
829 EClass.screen.tileMap.rendererInnerBlock.offset =
new Vector3(0f, 0.54f, -0.5f);
850 bool key = Input.GetKey(KeyCode.LeftShift);
851 bool key2 = Input.GetKey(KeyCode.LeftAlt);
852 bool key3 = Input.GetKey(KeyCode.LeftControl);
854 if (Input.GetKeyDown(KeyCode.KeypadPlus))
858 if (Input.GetKeyDown(KeyCode.KeypadMinus))
865 EClass.
ui.Find(
"_Guide").ToggleActive();
867 if (Input.GetKey(KeyCode.N))
871 SoundManager.current.sourceBGM.pitch = 10f;
875 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
878 else if (Input.GetKeyUp(KeyCode.N))
880 SoundManager.current.sourceBGM.pitch = 1f;
884 string text =
"festival";
885 if (Input.GetKeyDown(KeyCode.F1))
889 if (Input.GetKeyDown(KeyCode.F2))
891 Zone.forceRegenerate =
true;
897 if (Input.GetKeyDown(KeyCode.F4))
904 Zone.forceRegenerate =
true;
905 Zone.forceSubset = text;
912 if (Input.GetKeyDown(KeyCode.F5))
920 if (Input.GetKeyDown(KeyCode.F1))
927 if (Input.GetKeyDown(KeyCode.F2))
929 EClass.game.world.date.year = 3000;
930 EClass._zone.development += 10;
933 if (targetChara !=
null)
952 chara.hostility = hostility2;
956 if (Input.GetKeyDown(KeyCode.F3))
958 for (
int i = 0; i < 10; i++)
967 Debug.Log(deadChara);
972 Guild.Fighter.relation.rank = 20;
973 Guild.Mage.relation.rank = 20;
974 Guild.Thief.relation.rank = 20;
975 Guild.Merchant.relation.rank = 20;
989 EClass.pc.feat += 10;
990 EClass.player.totalFeat += 10;
993 if (Input.GetKeyDown(KeyCode.F4))
1006 for (
int j = 0; j < 10; j++)
1018 if (Input.GetKeyDown(KeyCode.F5))
1020 string text2 = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1027 EClass.game.isCloud =
false;
1030 if (Input.GetKeyDown(KeyCode.F6))
1034 string id2 = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1039 if (Input.GetKeyDown(KeyCode.F7))
1044 if (Input.GetKeyDown(KeyCode.F8))
1054 if (Input.GetKeyDown(KeyCode.F9))
1062 int width = array[0];
1063 int height = array[1];
1064 Screen.SetResolution(width, height, key);
1067 if (Input.GetKeyDown(KeyCode.F10))
1069 int width2 = Screen.width;
1070 int height2 = width2 / 16 * 9;
1071 Screen.SetResolution(width2, height2, key);
1077 Input.GetKeyDown(KeyCode.F9);
1078 if (Input.GetKey(KeyCode.F9))
1080 EClass.scene.paused =
false;
1087 if (Input.GetKeyDown(KeyCode.F10))
1110 if (Input.GetKeyDown(KeyCode.Tab))
1126 if (hitPoint.
detail !=
null)
1139 if (Input.GetMouseButtonDown(2))
1160 if (Input.GetMouseButtonDown(0))
1162 foreach (
Card item2
in list)
1167 if (Input.GetMouseButtonDown(1))
1175 c.DamageHP(9999999, AttackSource.Finish, EClass.pc);
1179 else if (hitPoint.
detail !=
null)
1181 for (
int num = hitPoint.
detail.
charas.Count - 1; num >= 0; num--)
1189 if (Input.GetKeyDown(KeyCode.Delete))
1191 if (Input.GetKey(KeyCode.RightControl))
1202 else if (hitPoint.
detail !=
null)
1204 for (
int num2 = hitPoint.
detail.
things.Count - 1; num2 >= 0; num2--)
1208 if (hitPoint.
detail !=
null)
1210 for (
int num3 = hitPoint.
detail.
charas.Count - 1; num3 >= 0; num3--)
1217 if (Input.GetKeyDown(KeyCode.End) && hitPoint.
detail !=
null)
1219 for (
int num4 = hitPoint.
detail.
things.Count - 1; num4 >= 0; num4--)
1225 if (!Application.isEditor)
1234 if (Input.GetKeyDown(KeyCode.Alpha0))
1238 if (Input.GetKeyDown(KeyCode.Alpha1))
1242 if (Input.GetKeyDown(KeyCode.Alpha2))
1246 if (Input.GetKeyDown(KeyCode.Alpha3))
1250 if (Input.GetKeyDown(KeyCode.Alpha4))
1254 if (Input.GetKeyDown(KeyCode.Alpha5))
1258 if (Input.GetKeyDown(KeyCode.Alpha6))
1262 if (Input.GetKeyDown(KeyCode.Alpha7))
1266 if (Input.GetKeyDown(KeyCode.Alpha8))
1270 if (Input.GetKeyDown(KeyCode.Alpha9))
1286 if (Input.GetKeyDown(KeyCode.Alpha1))
1290 if (Input.GetKeyDown(KeyCode.Alpha2))
1296 if (Input.GetKeyDown(KeyCode.Alpha1))
1302 if (Input.GetKeyDown(KeyCode.Alpha2))
1308 if (Input.GetKeyDown(KeyCode.Alpha3))
1314 if (Input.GetKeyDown(KeyCode.Alpha4))
1320 if (Input.GetKeyDown(KeyCode.Alpha5))
1326 if (Input.GetKeyDown(KeyCode.Alpha6))
1332 if (Input.GetKeyDown(KeyCode.Alpha7))
1337 if (Input.GetKeyDown(KeyCode.Alpha8))
1342 if (Input.GetKeyDown(KeyCode.Alpha9))
1347 if (Input.GetKeyDown(KeyCode.Alpha0))
1352 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1359 if (Input.GetKeyDown(KeyCode.Alpha1))
1363 if (!Input.GetKeyDown(KeyCode.Alpha2))
1368 if (Input.GetKeyDown(KeyCode.Alpha1))
1370 QualitySettings.vSyncCount = 0;
1371 Application.targetFrameRate = 60;
1373 if (Input.GetKeyDown(KeyCode.Alpha2))
1375 QualitySettings.vSyncCount = 0;
1376 Application.targetFrameRate = 20;
1378 if (Input.GetKeyDown(KeyCode.Alpha3))
1380 QualitySettings.vSyncCount = 0;
1381 Application.targetFrameRate = 30;
1383 if (Input.GetKeyDown(KeyCode.Alpha4))
1385 QualitySettings.vSyncCount = 0;
1386 Application.targetFrameRate = 40;
1396 if ((
bool)charaActorPCC)
1398 if (Input.GetKeyDown(KeyCode.Keypad0))
1403 if (Input.GetKeyDown(KeyCode.Keypad1))
1406 card.angle = charaActorPCC.
provider.angle;
1409 if (Input.GetKeyDown(KeyCode.Keypad2))
1411 charaActorPCC.
pcc.data.Randomize();
1415 if (Input.GetKeyDown(KeyCode.Keypad4))
1421 if (Input.GetKeyDown(KeyCode.Keypad5))
1426 if (Input.GetKeyDown(KeyCode.Keypad7))
1431 if (Input.GetKeyDown(KeyCode.Keypad8))
1436 if (Input.GetKeyDown(KeyCode.Keypad9))
1446 Add(cat2,
"Save Widgets", delegate
1450 Add(cat2,
"Save Widgets(Dialog)", delegate
1454 Add(cat2,
"Export Zone", delegate
1458 Add(cat2,
"Export Zone(Dialog)", delegate
1462 Add(0,
"Import Zone(Dialog)", delegate
1466 Add(cat2,
"Validate Backer Contents", delegate
1475 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1477 Debug.Log(row2.id +
"/remain/" + row2.Name +
"/" + row2.loot);
1481 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1483 Debug.Log(row2.id +
"/pet/" + row2.Name +
"/" + row2.chara);
1487 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLower()))
1489 Debug.Log(row2.id +
"/" + row2.Name +
"/follower/" + row2.deity);
1496 Add(cat2,
"Edit PCC", delegate
1503 Add(cat2,
"Fix Floating Items", delegate
1507 if (thing.Pref.Float)
1509 thing.isFloating = true;
1514 Add(cat2,
"Add Conditions", delegate
1518 EClass.pc.AddCondition<ConWet>();
1522 EClass.pc.AddCondition<ConSuffocation>();
1526 EClass.pc.AddCondition<ConPoison>();
1530 EClass.pc.AddCondition<ConDisease>();
1534 Add(cat2,
"Max Construction", COM_MaxConstruction);
1535 Add(cat2,
"Add Reserves", delegate
1545 Add(cat2,
"Add Recruits", delegate
1549 EClass.Branch.AddRecruit(CharaGen.Create(
"merc_archer"));
1550 EClass.Branch.AddRecruit(CharaGen.Create(
"healer"));
1551 EClass.Branch.AddRecruit(CharaGen.Create(
"bartender"));
1552 EClass.Branch.AddRecruit(CharaGen.Create(
"merchant"));
1553 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1554 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1555 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1558 Add(cat2,
"Add Resources", delegate
1562 EClass.Branch.resources.food.Mod(100);
1563 EClass.Branch.resources.knowledge.Mod(100);
1566 Add(cat2,
"Add Influence", delegate
1568 EClass._zone.influence += 100;
1570 Add(cat2,
"Reroll Hobbies", delegate
1574 chara.RerollHobby();
1577 Add(cat2,
"Test_Siege", Test_Siege);
1578 Add(cat2,
"Test_SiegeGuard", Test_SiegeGuard);
1579 Add(cat2,
"Log_BranchMembers", delegate
1583 Debug.Log(EClass.Branch.members.Count);
1584 foreach (Chara member in EClass.Branch.members)
1586 EClass.debug.Log(member);
1591 Add(cat2,
"Weather.Fine", delegate
1595 Add(cat2,
"Weather.Blossom", delegate
1599 Add(cat2,
"Weather.Random", delegate
1603 Add(cat2,
"Weather.Ether+50", delegate
1608 Add(cat2,
"Season.Next", delegate
1612 Add(cat2,
"Unreveal Map", delegate
1620 Add(cat2,
"Test_GodTalk", Test_GodTalk);
1621 Add(cat2,
"Test_Filter", Test_Filter);
1622 Add(cat2,
"Test_Grow", Test_Grow);
1623 Add(cat2,
"Turn On All Lights", delegate
1627 if (thing2.trait.IsLighting)
1629 thing2.trait.Toggle(on: true);
1633 Add(cat2,
"Reset All Custom Lights", delegate
1637 thing3.c_lightColor = 0;
1638 thing3.RecalculateFOV();
1641 Add(cat2,
"Reset All obj materials", delegate
1647 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1651 Add(cat2,
"Reset Certain obj materials", delegate
1657 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1661 Add(cat2,
"Fix Floors under Blocks", delegate
1667 SourceBlock.Row sourceBlock = c.sourceBlock;
1668 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1669 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1673 Add(cat2,
"Bless Inventory", delegate
1680 Add(cat2,
"Curse Inventory", delegate
1687 Add(cat2,
"List Global Charas", delegate
1691 Debug.Log(globalChara.Key +
"/" + globalChara.Value.Name +
"/" + ((globalChara.Value.currentZone == null) ?
"NULL" : globalChara.Value.currentZone.Name) +
"/" + globalChara.Value.faction?.ToString() +
"/" + globalChara.Value.homeBranch);
1694 Add(cat2,
"List Global Charas In Zone", delegate
1698 if (globalChara2.Value.currentZone == EClass._zone)
1700 Debug.Log(globalChara2.Key +
"/" + globalChara2.Value);
1704 Add(cat2,
"List Citizen", delegate
1709 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1710 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1713 void Add(
int cat,
string id, Action action)
1715 DebugCommand
item =
new DebugCommand
1738 traitSeed.TrySprout(force:
true);
1753 for (
int i = 0; i < 10000; i++)
1769 EClass.game.world.date.hour = 2;
1776 bilinear = !bilinear;
1778 for (
int i = 0; i < passes.Length; i++)
1780 passes[i].
mat.GetTexture(
"_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1833 [ConsoleCommand(
"")]
1836 EClass.game.config.cheat =
true;
1837 return "Cheat Enabled";
1840 [ConsoleCommand(
"")]
1844 if (questDebt ==
null)
1846 return "Quest Status Not Valid.";
1848 questDebt.stage = 0;
1849 questDebt.paid =
false;
1850 questDebt.gaveBill =
false;
1851 EClass.player.debt = 20000000;
1855 return "Quest Reset!";
1858 [ConsoleCommand(
"")]
1869 EClass.Branch.RemoveMemeber(c);
1876 [ConsoleCommand(
"")]
1886 if (!(value.
source.category !=
"attribute"))
1891 text = text +
"Fixing Base Value:" + orCreateElement.Name +
" Before:" + orCreateElement.vBase +
" Now:" + (value.vBase + 1) + Environment.NewLine;
1896 return text +
"Fixed!";
1899 [ConsoleCommand(
"")]
1904 return "Not in base.";
1910 return "Base already has core.";
1915 return "Player has core.";
1921 [ConsoleCommand(
"")]
1924 List<Chara> list =
new List<Chara>();
1934 Chara chara = list[1];
1937 return "Demitas Removed!";
1939 return "Not enough Demitas!";
1942 [ConsoleCommand(
"")]
1949 c.detail.designation.taskList.Remove(c.detail.designation);
1955 [ConsoleCommand(
"")]
1961 text = text + row.id +
"\n";
1966 [ConsoleCommand(
"")]
1972 text = text + row.id +
"\n";
1977 [ConsoleCommand(
"")]
1978 public static string SetElement(
string alias,
int value,
int potential = 100)
1980 if (!CheatEnabled())
1987 return "Element not found.";
1989 if (row.
type ==
"Feat")
2000 [ConsoleCommand(
"")]
2003 if (!CheatEnabled())
2010 return "Spawned " + chara.
Name;
2012 return "'" +
id +
"' does not exist in the database.";
2015 [ConsoleCommand(
"")]
2016 public static string Spawn(
string id,
int num = 1,
string aliasMat =
"",
int objLv = -1)
2018 if (!CheatEnabled())
2025 if (!aliasMat.IsEmpty())
2030 return "Spawned " + thing.
Name;
2040 return "Spawned " + chara.
Name;
2042 return "'" +
id +
"' does not exist in the database.";
2045 [ConsoleCommand(
"")]
2046 public static string TestSpawn(
int lv,
int num,
int lvRange = -1)
2048 if (!CheatEnabled())
2054 EClass._zone._dangerLv = lv;
2060 for (
int i = 0; i < num; i++)
2065 levelRange = lvRange
2071 [ConsoleCommand(
"")]
2081 return "Not Implemented.";
2084 [ConsoleCommand(
"")]
2087 if (!CheatEnabled())
2095 [ConsoleCommand(
"")]
2098 if (!CheatEnabled())
2107 [ConsoleCommand(
"")]
2110 if (!CheatEnabled())
2118 [ConsoleCommand(
"")]
2121 if (!CheatEnabled())
2129 [ConsoleCommand(
"")]
2132 if (!CheatEnabled())
2140 [ConsoleCommand(
"")]
2144 return "I can fly!";
2147 [ConsoleCommand(
"")]
2155 if (slot.
thing !=
null)
2183 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2188 [ConsoleCommand(
"")]
2200 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2205 [ConsoleCommand(
"")]
2208 string text =
"Steam is not running.";
2209 DateTime dateTime =
new DateTime(2024, 11, 3, 6, 0, 0);
2210 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))));
2211 dateTimeOffset = dateTimeOffset.ToOffset(
new TimeSpan(9, 0, 0));
2212 text = ((dateTimeOffset < dateTime) ?
"Valid: " :
"Invalid: ");
2213 text = text +
"Arrived North Tyris on " + dateTimeOffset.Year +
" " + dateTimeOffset.Month +
"/" + dateTimeOffset.Day +
" " + dateTimeOffset.Hour +
":" + dateTimeOffset.Minute;
2214 return text +
" Eligible by " + dateTime.Year +
" " + dateTime.Month +
"/" + dateTime.Day +
" " + dateTime.Hour +
":" + dateTime.Minute;
2217 [ConsoleCommand(
"")]
2221 NameGen.list =
null;
2222 AliasGen.list =
null;
2229 if (chara.
source.name ==
"*r")
2231 chara.c_altName = NameGen.getRandomName();
2233 if (!chara.
_alias.IsEmpty())
2235 chara._alias = AliasGen.GetRandomAlias();
2242 [ConsoleCommand(
"")]
2245 if (!CheatEnabled())
2260 [ConsoleCommand(
"")]
2266 if (row.name.Contains(name) || row.id.ToString() == name)
2268 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;
2275 return text + Resources.Load<TextAsset>(
"logo2").text;
2278 [ConsoleCommand(
"")]
2281 if (!CheatEnabled())
2286 return Resources.Load<TextAsset>(
"logo2").text + Environment.NewLine +
"Done!";
2289 [ConsoleCommand(
"")]
2292 if (!CheatEnabled())
2297 return "Resources spawned.";
2307 if ((
bool)SoundManager.current)
2309 SoundManager.current.NextBGM();
2315 revealMap = !revealMap;
2325 TextAsset textAsset = Resources.Load<TextAsset>(
"Data/Text/broadcast");
2326 blines = textAsset.text.Split(
'-');
2332 if (Input.GetKey(KeyCode.LeftControl))
2336 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2337 string text = blines[bidx];
2338 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)
void SetTier(int a, bool setTraits=true)
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)
void SetHomeZone(Zone zone)
void SetFaction(Faction f)
void InstantEat(Thing t=null, bool sound=true)
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)
SpriteReplacer spriteReplacer
Chara SetGlobal(Zone _home, int x, int z)
override CardRenderer _CreateRenderer()
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)
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)
bool HasSprite(string id)
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)
Card AddThing(string id, int x, int z)
void ClaimZone(bool debug=false)
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)