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++)
454 for (
int l = 0; l < 30; l++)
460 for (
int m = 0; m < 20; m++)
468 for (
int n = 0; n < 20; n++)
470 string id2 = list.RandomItem().id;
478 for (
int num = 0; num < 20; num++)
480 string id3 = list.RandomItem().id;
489 for (
int num2 = 0; num2 < 20; num2++)
491 string id4 = list.RandomItem().id;
516 thing.
Dye(
"saphire");
527 thing.
Dye(
"rubinus");
535 for (
int num3 = 0; num3 < 10; num3++)
542 thing.
Dye(
"rubinus");
546 if (row3.tag.Contains(
"seed"))
555 for (
int num4 = 0; num4 < 30; num4++)
562 for (
int num5 = 0; num5 < 30; num5++)
569 for (
int num6 = 0; num6 < 30; num6++)
576 for (
int num7 = 0; num7 < 40; num7++)
598 thing8.refVal = 8220;
604 AddHotbar(
"pickaxe");
605 AddHotbar(
"wateringCan");
606 AddHotbar(
"gun_assault");
620 SoundManager.ignoreSounds =
true;
622 SoundManager.ignoreSounds =
true;
624 SoundManager.ignoreSounds =
false;
632 thing11.isNew =
false;
662 static Thing AddAbility(
string id)
665 thing9.c_idAbility = id;
668 Thing AddHotbar(
string id)
676 void AddParty(
string id)
710 LittlePopper.skipPop =
true;
715 row.CreateByProduct(container, num);
720 if ((row2.factory.IsEmpty() || !(row2.factory[0] ==
"x")) && !row2.isOrigin && row2.Category.tag.Contains(
"debug"))
730 for (
int i = 0; i < 10; i++)
734 LittlePopper.skipPop =
false;
741 if (thing2.
c_altName ==
"DebugContainer")
748 thing.c_altName =
"DebugContainer";
749 thing.isNPCProperty =
false;
790 if (Input.GetKeyDown(KeyCode.B))
794 if (Input.GetKeyDown(KeyCode.O))
798 if (Input.GetKeyDown(KeyCode.P))
802 if (Input.GetKeyDown(KeyCode.F11))
804 if (Application.isEditor)
812 NewsList.dict =
null;
813 BookList.dict =
null;
818 if (Input.GetKeyDown(KeyCode.U))
822 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
824 if (Input.GetKeyDown(KeyCode.I))
828 EClass.screen.tileMap.rendererInnerBlock.offset =
new Vector3(0f, 0.54f, -0.5f);
849 bool key = Input.GetKey(KeyCode.LeftShift);
850 bool key2 = Input.GetKey(KeyCode.LeftAlt);
851 bool key3 = Input.GetKey(KeyCode.LeftControl);
853 if (Input.GetKeyDown(KeyCode.KeypadPlus))
857 if (Input.GetKeyDown(KeyCode.KeypadMinus))
864 EClass.
ui.Find(
"_Guide").ToggleActive();
866 if (Input.GetKey(KeyCode.N))
870 SoundManager.current.sourceBGM.pitch = 10f;
874 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
877 else if (Input.GetKeyUp(KeyCode.N))
879 SoundManager.current.sourceBGM.pitch = 1f;
883 string text =
"festival";
884 if (Input.GetKeyDown(KeyCode.F1))
888 if (Input.GetKeyDown(KeyCode.F2))
890 Zone.forceRegenerate =
true;
896 if (Input.GetKeyDown(KeyCode.F4))
903 Zone.forceRegenerate =
true;
904 Zone.forceSubset = text;
911 if (Input.GetKeyDown(KeyCode.F5))
919 if (Input.GetKeyDown(KeyCode.F1))
926 if (Input.GetKeyDown(KeyCode.F2))
928 EClass.game.world.date.year = 3000;
929 EClass._zone.development += 10;
935 if (targetChara !=
null)
951 chara.hostility = hostility2;
955 if (Input.GetKeyDown(KeyCode.F3))
957 for (
int i = 0; i < 10; i++)
966 Debug.Log(deadChara);
971 Guild.Fighter.relation.rank = 20;
972 Guild.Mage.relation.rank = 20;
973 Guild.Thief.relation.rank = 20;
974 Guild.Merchant.relation.rank = 20;
987 EClass.pc.feat += 10;
988 EClass.player.totalFeat += 10;
991 if (Input.GetKeyDown(KeyCode.F4))
997 for (
int j = 0; j < 10; j++)
1009 if (Input.GetKeyDown(KeyCode.F5))
1011 string text2 = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1018 EClass.game.isCloud =
false;
1021 if (Input.GetKeyDown(KeyCode.F6))
1025 string id = (Input.GetKey(KeyCode.LeftControl) ?
"quick3" : (Input.GetKey(KeyCode.LeftShift) ?
"quick2" :
"quick"));
1030 if (Input.GetKeyDown(KeyCode.F7))
1035 if (Input.GetKeyDown(KeyCode.F8))
1045 if (Input.GetKeyDown(KeyCode.F9))
1053 int width = array[0];
1054 int height = array[1];
1055 Screen.SetResolution(width, height, key);
1058 if (Input.GetKeyDown(KeyCode.F10))
1060 int width2 = Screen.width;
1061 int height2 = width2 / 16 * 9;
1062 Screen.SetResolution(width2, height2, key);
1068 Input.GetKeyDown(KeyCode.F9);
1069 if (Input.GetKey(KeyCode.F9))
1071 EClass.scene.paused =
false;
1078 if (Input.GetKeyDown(KeyCode.F10))
1101 if (Input.GetKeyDown(KeyCode.Tab))
1117 if (hitPoint.
detail !=
null)
1130 if (Input.GetMouseButtonDown(2))
1151 if (Input.GetMouseButtonDown(0))
1158 if (Input.GetMouseButtonDown(1))
1166 c.DamageHP(9999999, AttackSource.Finish, EClass.pc);
1170 else if (hitPoint.
detail !=
null)
1172 for (
int num = hitPoint.
detail.
charas.Count - 1; num >= 0; num--)
1180 if (Input.GetKeyDown(KeyCode.Delete))
1182 if (Input.GetKey(KeyCode.RightControl))
1193 else if (hitPoint.
detail !=
null)
1195 for (
int num2 = hitPoint.
detail.
things.Count - 1; num2 >= 0; num2--)
1199 if (hitPoint.
detail !=
null)
1201 for (
int num3 = hitPoint.
detail.
charas.Count - 1; num3 >= 0; num3--)
1208 if (Input.GetKeyDown(KeyCode.End) && hitPoint.
detail !=
null)
1210 for (
int num4 = hitPoint.
detail.
things.Count - 1; num4 >= 0; num4--)
1216 if (!Application.isEditor)
1225 if (Input.GetKeyDown(KeyCode.Alpha0))
1229 if (Input.GetKeyDown(KeyCode.Alpha1))
1233 if (Input.GetKeyDown(KeyCode.Alpha2))
1237 if (Input.GetKeyDown(KeyCode.Alpha3))
1241 if (Input.GetKeyDown(KeyCode.Alpha4))
1245 if (Input.GetKeyDown(KeyCode.Alpha5))
1249 if (Input.GetKeyDown(KeyCode.Alpha6))
1253 if (Input.GetKeyDown(KeyCode.Alpha7))
1257 if (Input.GetKeyDown(KeyCode.Alpha8))
1261 if (Input.GetKeyDown(KeyCode.Alpha9))
1277 if (Input.GetKeyDown(KeyCode.Alpha1))
1281 if (Input.GetKeyDown(KeyCode.Alpha2))
1287 if (Input.GetKeyDown(KeyCode.Alpha1))
1293 if (Input.GetKeyDown(KeyCode.Alpha2))
1299 if (Input.GetKeyDown(KeyCode.Alpha3))
1305 if (Input.GetKeyDown(KeyCode.Alpha4))
1311 if (Input.GetKeyDown(KeyCode.Alpha5))
1317 if (Input.GetKeyDown(KeyCode.Alpha6))
1323 if (Input.GetKeyDown(KeyCode.Alpha7))
1328 if (Input.GetKeyDown(KeyCode.Alpha8))
1333 if (Input.GetKeyDown(KeyCode.Alpha9))
1338 if (Input.GetKeyDown(KeyCode.Alpha0))
1343 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1350 if (Input.GetKeyDown(KeyCode.Alpha1))
1354 if (!Input.GetKeyDown(KeyCode.Alpha2))
1359 if (Input.GetKeyDown(KeyCode.Alpha1))
1361 QualitySettings.vSyncCount = 0;
1362 Application.targetFrameRate = 60;
1364 if (Input.GetKeyDown(KeyCode.Alpha2))
1366 QualitySettings.vSyncCount = 0;
1367 Application.targetFrameRate = 20;
1369 if (Input.GetKeyDown(KeyCode.Alpha3))
1371 QualitySettings.vSyncCount = 0;
1372 Application.targetFrameRate = 30;
1374 if (Input.GetKeyDown(KeyCode.Alpha4))
1376 QualitySettings.vSyncCount = 0;
1377 Application.targetFrameRate = 40;
1387 if ((
bool)charaActorPCC)
1389 if (Input.GetKeyDown(KeyCode.Keypad0))
1394 if (Input.GetKeyDown(KeyCode.Keypad1))
1397 card.angle = charaActorPCC.
provider.angle;
1400 if (Input.GetKeyDown(KeyCode.Keypad2))
1402 charaActorPCC.
pcc.data.Randomize();
1406 if (Input.GetKeyDown(KeyCode.Keypad4))
1412 if (Input.GetKeyDown(KeyCode.Keypad5))
1417 if (Input.GetKeyDown(KeyCode.Keypad7))
1422 if (Input.GetKeyDown(KeyCode.Keypad8))
1427 if (Input.GetKeyDown(KeyCode.Keypad9))
1437 Add(cat2,
"Save Widgets", delegate
1441 Add(cat2,
"Save Widgets(Dialog)", delegate
1445 Add(cat2,
"Export Zone", delegate
1449 Add(cat2,
"Export Zone(Dialog)", delegate
1453 Add(0,
"Import Zone(Dialog)", delegate
1457 Add(cat2,
"Validate Backer Contents", delegate
1466 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1468 Debug.Log(row2.id +
"/remain/" + row2.Name +
"/" + row2.loot);
1472 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1474 Debug.Log(row2.id +
"/pet/" + row2.Name +
"/" + row2.chara);
1478 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLower()))
1480 Debug.Log(row2.id +
"/" + row2.Name +
"/follower/" + row2.deity);
1487 Add(cat2,
"Edit PCC", delegate
1494 Add(cat2,
"Fix Floating Items", delegate
1498 if (thing.Pref.Float)
1500 thing.isFloating = true;
1505 Add(cat2,
"Add Conditions", delegate
1509 EClass.pc.AddCondition<ConWet>();
1513 EClass.pc.AddCondition<ConSuffocation>();
1517 EClass.pc.AddCondition<ConPoison>();
1521 EClass.pc.AddCondition<ConDisease>();
1525 Add(cat2,
"Max Construction", COM_MaxConstruction);
1526 Add(cat2,
"Add Reserves", delegate
1536 Add(cat2,
"Add Recruits", delegate
1540 EClass.Branch.AddRecruit(CharaGen.Create(
"merc_archer"));
1541 EClass.Branch.AddRecruit(CharaGen.Create(
"healer"));
1542 EClass.Branch.AddRecruit(CharaGen.Create(
"bartender"));
1543 EClass.Branch.AddRecruit(CharaGen.Create(
"merchant"));
1544 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1545 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1546 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter(
"c_wilds"));
1549 Add(cat2,
"Add Resources", delegate
1553 EClass.Branch.resources.food.Mod(100);
1554 EClass.Branch.resources.knowledge.Mod(100);
1557 Add(cat2,
"Add Influence", delegate
1559 EClass._zone.influence += 100;
1561 Add(cat2,
"Reroll Hobbies", delegate
1565 chara.RerollHobby();
1568 Add(cat2,
"Test_Siege", Test_Siege);
1569 Add(cat2,
"Test_SiegeGuard", Test_SiegeGuard);
1570 Add(cat2,
"Log_BranchMembers", delegate
1574 Debug.Log(EClass.Branch.members.Count);
1575 foreach (Chara member in EClass.Branch.members)
1577 EClass.debug.Log(member);
1582 Add(cat2,
"Weather.Fine", delegate
1586 Add(cat2,
"Weather.Blossom", delegate
1590 Add(cat2,
"Weather.Random", delegate
1594 Add(cat2,
"Weather.Ether+50", delegate
1599 Add(cat2,
"Season.Next", delegate
1603 Add(cat2,
"Unreveal Map", delegate
1611 Add(cat2,
"Test_GodTalk", Test_GodTalk);
1612 Add(cat2,
"Test_Filter", Test_Filter);
1613 Add(cat2,
"Test_Grow", Test_Grow);
1614 Add(cat2,
"Turn On All Lights", delegate
1618 if (thing2.trait.IsLighting)
1620 thing2.trait.Toggle(on: true);
1624 Add(cat2,
"Reset All Custom Lights", delegate
1628 thing3.c_lightColor = 0;
1629 thing3.RecalculateFOV();
1632 Add(cat2,
"Reset All obj materials", delegate
1638 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1642 Add(cat2,
"Fix Floors under Blocks", delegate
1648 SourceBlock.Row sourceBlock = c.sourceBlock;
1649 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1650 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1654 Add(cat2,
"Bless Inventory", delegate
1661 Add(cat2,
"Curse Inventory", delegate
1668 Add(cat2,
"List Global Charas", delegate
1672 Debug.Log(globalChara.Key +
"/" + globalChara.Value.Name +
"/" + ((globalChara.Value.currentZone == null) ?
"NULL" : globalChara.Value.currentZone.Name) +
"/" + globalChara.Value.faction?.ToString() +
"/" + globalChara.Value.homeBranch);
1675 Add(cat2,
"List Global Charas In Zone", delegate
1679 if (globalChara2.Value.currentZone == EClass._zone)
1681 Debug.Log(globalChara2.Key +
"/" + globalChara2.Value);
1685 Add(cat2,
"List Citizen", delegate
1690 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1691 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1694 void Add(
int cat,
string id, Action action)
1696 DebugCommand
item =
new DebugCommand
1719 traitSeed.TrySprout(force:
true);
1734 for (
int i = 0; i < 10000; i++)
1750 EClass.game.world.date.hour = 2;
1757 bilinear = !bilinear;
1759 for (
int i = 0; i < passes.Length; i++)
1761 passes[i].
mat.GetTexture(
"_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1814 [ConsoleCommand(
"")]
1817 EClass.game.config.cheat =
true;
1818 return "Cheat Enabled";
1821 [ConsoleCommand(
"")]
1825 if (questDebt ==
null)
1827 return "Quest Status Not Valid.";
1829 questDebt.stage = 0;
1830 questDebt.paid =
false;
1831 questDebt.gaveBill =
false;
1832 EClass.player.debt = 20000000;
1836 return "Quest Reset!";
1839 [ConsoleCommand(
"")]
1850 EClass.Branch.RemoveMemeber(c);
1857 [ConsoleCommand(
"")]
1867 if (!(value.
source.category !=
"attribute"))
1872 text = text +
"Fixing Base Value:" + orCreateElement.Name +
" Before:" + orCreateElement.vBase +
" Now:" + (value.vBase + 1) + Environment.NewLine;
1877 return text +
"Fixed!";
1880 [ConsoleCommand(
"")]
1885 return "Not in base.";
1891 return "Base already has core.";
1896 return "Player has core.";
1902 [ConsoleCommand(
"")]
1905 List<Chara> list =
new List<Chara>();
1915 Chara chara = list[1];
1918 return "Demitas Removed!";
1920 return "Not enough Demitas!";
1923 [ConsoleCommand(
"")]
1929 text = text + row.id +
"\n";
1934 [ConsoleCommand(
"")]
1940 text = text + row.id +
"\n";
1945 [ConsoleCommand(
"")]
1946 public static string SetElement(
string alias,
int value,
int potential = 100)
1948 if (!CheatEnabled())
1955 return "Element not found.";
1957 if (row.
type ==
"Feat")
1968 [ConsoleCommand(
"")]
1971 if (!CheatEnabled())
1978 return "Spawned " + chara.
Name;
1980 return "'" +
id +
"' does not exist in the database.";
1983 [ConsoleCommand(
"")]
1984 public static string Spawn(
string id,
int num = 1,
string aliasMat =
"",
int objLv = -1)
1986 if (!CheatEnabled())
1993 if (!aliasMat.IsEmpty())
1998 return "Spawned " + thing.
Name;
2008 return "Spawned " + chara.
Name;
2010 return "'" +
id +
"' does not exist in the database.";
2013 [ConsoleCommand(
"")]
2014 public static string TestSpawn(
int lv,
int num,
int lvRange = -1)
2016 if (!CheatEnabled())
2022 EClass._zone._dangerLv = lv;
2028 for (
int i = 0; i < num; i++)
2033 levelRange = lvRange
2039 [ConsoleCommand(
"")]
2049 return "Not Implemented.";
2052 [ConsoleCommand(
"")]
2055 if (!CheatEnabled())
2063 [ConsoleCommand(
"")]
2066 if (!CheatEnabled())
2075 [ConsoleCommand(
"")]
2078 if (!CheatEnabled())
2086 [ConsoleCommand(
"")]
2089 if (!CheatEnabled())
2097 [ConsoleCommand(
"")]
2100 if (!CheatEnabled())
2108 [ConsoleCommand(
"")]
2112 return "I can fly!";
2115 [ConsoleCommand(
"")]
2123 if (slot.
thing !=
null)
2151 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2156 [ConsoleCommand(
"")]
2168 text = text + row.id +
" " + row.GetName() + Environment.NewLine;
2173 [ConsoleCommand(
"")]
2176 string text =
"Steam is not running.";
2177 DateTime dateTime =
new DateTime(2024, 11, 3, 6, 0, 0);
2178 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))));
2179 dateTimeOffset = dateTimeOffset.ToOffset(
new TimeSpan(9, 0, 0));
2180 text = ((dateTimeOffset < dateTime) ?
"Valid: " :
"Invalid: ");
2181 text = text +
"Arrived North Tyris on " + dateTimeOffset.Year +
" " + dateTimeOffset.Month +
"/" + dateTimeOffset.Day +
" " + dateTimeOffset.Hour +
":" + dateTimeOffset.Minute;
2182 return text +
" Eligible by " + dateTime.Year +
" " + dateTime.Month +
"/" + dateTime.Day +
" " + dateTime.Hour +
":" + dateTime.Minute;
2185 [ConsoleCommand(
"")]
2189 NameGen.list =
null;
2190 AliasGen.list =
null;
2197 if (chara.
source.name ==
"*r")
2199 chara.c_altName = NameGen.getRandomName();
2201 if (!chara.
_alias.IsEmpty())
2203 chara._alias = AliasGen.GetRandomAlias();
2210 [ConsoleCommand(
"")]
2213 if (!CheatEnabled())
2228 [ConsoleCommand(
"")]
2234 if (row.name.Contains(name) || row.id.ToString() == name)
2236 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;
2243 return text + Resources.Load<TextAsset>(
"logo2").text;
2246 [ConsoleCommand(
"")]
2249 if (!CheatEnabled())
2254 return Resources.Load<TextAsset>(
"logo2").text + Environment.NewLine +
"Done!";
2257 [ConsoleCommand(
"")]
2260 if (!CheatEnabled())
2265 return "Resources spawned.";
2275 if ((
bool)SoundManager.current)
2277 SoundManager.current.NextBGM();
2283 revealMap = !revealMap;
2293 TextAsset textAsset = Resources.Load<TextAsset>(
"Data/Text/broadcast");
2294 blines = textAsset.text.Split(
'-');
2300 if (Input.GetKey(KeyCode.LeftControl))
2304 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2305 string text = blines[bidx];
2306 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)
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")
bool HasEditorTag(EditorTag tag)
Thing TryMakeRandomItem(int lv=-1)
BlessedState blessedState
void ModNum(int a, bool notify=true)
void SayRaw(string text, string ref1=null, string ref2=null)
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 SetFeat(int id, int value=1, bool msg=false)
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 MakeMilk(bool effect=true, int num=1, bool addToZone=true)
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Thing MakeEgg(bool effect=true, int num=1, bool addToZone=true)
UD_String_MatData matColors
static string ModKarma(int amount)
static bool CheatEnabled()
static string Fix_EtherDisease()
Thing GetDebugContainer()
IEnumerable< string > ZoneIDs()
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 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)
SteamworksBehaviour steamworks
static void GetAchievement(ID_Achievement id)
void Foreach(Action< Thing > action, bool onlyAccessible=true)
static Thing CreatePotion(int ele, int num=1)
static Thing CreateBlock(int id, int idMat)
static Thing TestCreate()
static Thing CreateSpellbook(string alias, int num=1)
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)