Elin Decompiled Documentation EA 23.282 Stable Patch 3
Loading...
Searching...
No Matches
CoreDebug Class Reference
Inheritance diagram for CoreDebug:
EScriptable

Classes

class  DebugCommand
 
class  MatColorTest
 
class  StartSetting
 

Public Types

enum  DebugHotkey {
  None , Block , Item , Decal ,
  Act , Test , Anime
}
 
enum  StartLoadout { New , AllItem , FewItem }
 
enum  StartParty { None , Farris , Full }
 
enum  StartScene {
  Title , Survival , Zone , Home ,
  Home_Cave , Story_Test , MeetFarris , NymelleBoss ,
  AfterNymelle , Melilith , Tefra
}
 

Public Member Functions

void Init ()
 
void QuickStart ()
 
void OnLoad ()
 
void AddAllRecipes ()
 
void SetStartStockpile (Thing container, int num=100)
 
Thing GetOrCreateDebugContainer ()
 
Thing GetDebugContainer ()
 
void EnableDebugResource ()
 
void SpawnCheatContainer ()
 
void UpdateAlways ()
 
void ValidateData ()
 
void UpdateInput ()
 
void InitDebugCommands ()
 
void Test_Grow ()
 
void Test_GodTalk ()
 
void COM_Teleport ()
 
void COM_PlayStartDrama ()
 
void Test_Filter ()
 
void LOG_Spatials ()
 
void Test_SiegeGuard ()
 
void Test_Siege ()
 
void COM_MaxConstruction ()
 
void Log (object o)
 
void NextBGM ()
 
void ToggleRevealMap ()
 
void LoadBroadcast ()
 
void BroadcastNext ()
 

Static Public Member Functions

static bool CheatEnabled ()
 
static string Cheat ()
 
static string Reset_LoytelDebt ()
 
static string Fix_RemoveDuplicateUnique ()
 
static string Fix_EtherDisease ()
 
static string Fix_LostCore ()
 
static string Fix_RemoveDemitas ()
 
static string Fix_RemoveAshland ()
 
static string Fix_RemoveDesignations ()
 
static string ListChara ()
 
static string ListThing ()
 
static string SetElement (string alias, int value, int potential=100)
 
static string SpawnBoss (string id)
 
static string Spawn (string id, int num=1, string aliasMat="", int objLv=-1)
 
static string TestSpawn (int lv, int num, int lvRange=-1)
 
static string ResetPetUpgrades ()
 
static string ResetPrincipalSeals ()
 
static string GodMode ()
 
static string ModFame (int amount)
 
static string MaxFame ()
 
static string ModKarma (int amount)
 
static string ModContribution (int amount)
 
static string Rust ()
 
static string FlyMode ()
 
static string ChangeRace (string id="?")
 
static string ResetAllAchievement ()
 
static string ResetAchievement (ID_Achievement id)
 
static string ChangeJob (string id="?")
 
static string FirstAdventurer ()
 
static string RegenerateNames ()
 
static string Stats ()
 
static string AllRecipe (bool forget=false)
 
static string LastWish (string name)
 
static string ClearLastWishFlag ()
 
static string Resource ()
 
- Static Public Member Functions inherited from EScriptable
static int rnd (int a)
 

Public Attributes

StartScene startScene
 
StartLoadout startLoadout
 
StartParty startParty
 
int startHour
 
StartSetting startSetting
 
string startZone
 
bool showSceneSelector
 
bool skipModSync
 
Lang.LangCode langCode
 
bool ignorePool
 
bool resetPlayerConfig
 
bool dontUseThread
 
bool useNewConfig
 
bool ignoreAutoSave
 
bool alwaysResetWindow
 
bool validateData
 
bool dontCompressSave
 
bool skipMod
 
string command
 
bool debugInput
 
bool keypadDebug
 
DebugHotkey debugHotkeys
 
int advanceMin
 
bool testLOS
 
bool testLOS2
 
bool debugProps
 
bool revealMap
 
bool debugHoard
 
bool revealInner
 
bool ignorePopup
 
bool skipEvent
 
bool skipNerun
 
bool showTone
 
bool showExtra
 
bool test
 
bool godMode
 
bool randomResource
 
bool debugScatter
 
bool _godBuild
 
bool godCraft
 
bool godFood
 
bool ignoreBuildRule
 
bool ignoreWeight
 
bool autoIdentify
 
bool allAbility
 
bool allSkill
 
bool allHomeSkill
 
bool allArt
 
bool allBGM
 
bool ignoreEncounter
 
bool returnAnywhere
 
bool instaReturn
 
bool travelAnywhere
 
bool hidePCItemsInBuild
 
bool autoAdvanceQuest
 
bool enableMapPieceEditor
 
bool testThingQuality
 
int numResource
 
bool unlimitedInterest
 
bool inviteAnytime
 
bool marryAnytime
 
bool showFav
 
bool alwaysFavFood
 
bool maxQuests
 
bool allRecipe
 
bool allMenu
 
bool allPolicy
 
bool allStory
 
bool logAdv
 
bool logCombat
 
bool logDice
 
bool validatePref
 
int param1
 
int param2
 
MatColorTest matColorTest
 
bool boradcast
 
bool testFixedColor
 
Color32 fixedColor
 
List< DebugCommandcommands = new List<DebugCommand>()
 
bool enable
 
Fov fov = new Fov()
 

Properties

bool godBuild [get]
 
static string EnableCheat [get]
 

Private Member Functions

IEnumerable< string > ZoneIDs ()
 

Private Attributes

readonly List< int[]> resolutions
 
Card animeDest
 
int bidx
 
bool bilinear
 
string[] blines
 
int indexResolution
 
AnimeID lastAnime
 
Emo lastEmo
 
bool naked
 
bool runtimeGodBuild
 
int ttt
 

Detailed Description

Definition at line 9 of file CoreDebug.cs.

Member Enumeration Documentation

◆ DebugHotkey

Enumerator
None 
Block 
Item 
Decal 
Act 
Test 
Anime 

Definition at line 21 of file CoreDebug.cs.

◆ StartLoadout

Enumerator
New 
AllItem 
FewItem 

Definition at line 32 of file CoreDebug.cs.

◆ StartParty

Enumerator
None 
Farris 
Full 

Definition at line 39 of file CoreDebug.cs.

◆ StartScene

Enumerator
Title 
Survival 
Zone 
Home 
Home_Cave 
Story_Test 
MeetFarris 
NymelleBoss 
AfterNymelle 
Melilith 
Tefra 

Definition at line 46 of file CoreDebug.cs.

Member Function Documentation

◆ AddAllRecipes()

void CoreDebug.AddAllRecipes ( )
inline

Definition at line 719 of file CoreDebug.cs.

720 {
722 {
723 if (!EClass.player.recipes.knownRecipes.ContainsKey(item.id))
724 {
726 }
727 }
728 }
Definition: EClass.cs:6
static Player player
Definition: EClass.cs:13
RecipeManager recipes
Definition: Player.cs:1120
static List< RecipeSource > list
Dictionary< string, int > knownRecipes

References item, RecipeManager.knownRecipes, RecipeManager.list, EClass.player, and Player.recipes.

Referenced by AllRecipe(), EnableDebugResource(), OnLoad(), and QuickStart().

◆ AllRecipe()

static string CoreDebug.AllRecipe ( bool  forget = false)
inlinestatic

Definition at line 2317 of file CoreDebug.cs.

2318 {
2319 if (!CheatEnabled())
2320 {
2321 return EnableCheat;
2322 }
2323 if (forget)
2324 {
2326 }
2327 else
2328 {
2330 }
2331 return "Done!";
2332 }
static bool CheatEnabled()
Definition: CoreDebug.cs:1826
static string EnableCheat
Definition: CoreDebug.cs:315
void AddAllRecipes()
Definition: CoreDebug.cs:719
static CoreDebug debug
Definition: EClass.cs:49

References AddAllRecipes(), EClass.debug, RecipeManager.knownRecipes, EClass.player, and Player.recipes.

◆ BroadcastNext()

void CoreDebug.BroadcastNext ( )
inline

Definition at line 2403 of file CoreDebug.cs.

2404 {
2405 LoadBroadcast();
2406 if (Input.GetKey(KeyCode.LeftControl))
2407 {
2408 bidx--;
2409 }
2410 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2411 string text = blines[bidx];
2412 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
2413 EClass.pc.SayRaw(text.TrimNewLines());
2414 }
void SayRaw(string text, string ref1=null, string ref2=null)
Definition: Card.cs:6999
string[] blines
Definition: CoreDebug.cs:281
int bidx
Definition: CoreDebug.cs:276
void LoadBroadcast()
Definition: CoreDebug.cs:2397
static Chara pc
Definition: EClass.cs:15

References EClass.pc, and Card.SayRaw().

Referenced by AM_Adv._OnUpdateInput().

◆ ChangeJob()

static string CoreDebug.ChangeJob ( string  id = "?")
inlinestatic

Definition at line 2257 of file CoreDebug.cs.

2258 {
2259 if (EClass.sources.jobs.map.ContainsKey(id))
2260 {
2261 EClass.pc.ChangeJob(id);
2263 return "Done.";
2264 }
2265 string text = "";
2266 foreach (SourceJob.Row row in EClass.sources.jobs.rows)
2267 {
2268 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2269 }
2270 return text;
2271 }
void ChangeJob(string idNew)
Definition: Chara.cs:2207
static SourceManager sources
Definition: EClass.cs:43
void RefreshDomain()
Definition: Player.cs:1547
SourceJob jobs

References Chara.ChangeJob(), SourceManager.jobs, EClass.pc, EClass.player, Player.RefreshDomain(), and EClass.sources.

◆ ChangeRace()

static string CoreDebug.ChangeRace ( string  id = "?")
inlinestatic

Definition at line 2202 of file CoreDebug.cs.

2203 {
2204 if (EClass.sources.races.map.ContainsKey(id))
2205 {
2206 Thing thing = null;
2207 foreach (BodySlot slot in EClass.pc.body.slots)
2208 {
2209 if (slot.thing != null)
2210 {
2211 if (slot.thing.blessedState <= BlessedState.Cursed)
2212 {
2213 slot.thing.blessedState = BlessedState.Normal;
2214 }
2215 if (slot.thing.trait is TraitToolBelt)
2216 {
2217 thing = slot.thing;
2218 }
2219 EClass.pc.body.Unequip(slot);
2220 }
2221 }
2224 EClass.pc.ChangeRace(id);
2225 if (EClass.ui.IsInventoryOpen)
2226 {
2227 EClass.ui.ToggleInventory();
2228 }
2231 EClass.pc.body.Equip(thing);
2232 return "Done.";
2233 }
2234 string text = "";
2235 foreach (SourceRace.Row row in EClass.sources.races.rows)
2236 {
2237 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2238 }
2239 return text;
2240 }
BlessedState
Definition: BlessedState.cs:2
Thing thing
Definition: BodySlot.cs:8
Trait trait
Definition: Card.cs:54
BlessedState blessedState
Definition: Card.cs:279
void AddBodyPart(int ele, Thing thing=null)
Definition: CharaBody.cs:283
void Unequip(Thing thing, bool refresh=true)
Definition: CharaBody.cs:49
List< BodySlot > slots
Definition: CharaBody.cs:8
bool Equip(Thing thing, BodySlot slot=null, bool msg=true)
Definition: CharaBody.cs:194
void RemoveBodyPart(int ele)
Definition: CharaBody.cs:338
void ChangeRace(string idNew)
Definition: Chara.cs:2310
CharaBody body
Definition: Chara.cs:94
static UI ui
Definition: EClass.cs:17
SourceRace races
Definition: Thing.cs:8

References CharaBody.AddBodyPart(), Card.blessedState, Chara.body, Chara.ChangeRace(), CharaBody.Equip(), EClass.pc, SourceManager.races, CharaBody.RemoveBodyPart(), CharaBody.slots, EClass.sources, BodySlot.thing, Card.trait, EClass.ui, and CharaBody.Unequip().

◆ Cheat()

static string CoreDebug.Cheat ( )
inlinestatic

Definition at line 1836 of file CoreDebug.cs.

1837 {
1838 EClass.game.config.cheat = true;
1839 return "Cheat Enabled";
1840 }

◆ CheatEnabled()

static bool CoreDebug.CheatEnabled ( )
inlinestatic

Definition at line 1826 of file CoreDebug.cs.

1827 {
1828 if (!EClass.debug.enable)
1829 {
1830 return EClass.game.config.cheat;
1831 }
1832 return true;
1833 }
bool enable
Definition: CoreDebug.cs:286
static Game game
Definition: EClass.cs:9
bool cheat
Definition: Game.cs:55
Config config
Definition: Game.cs:219

References Game.Config.cheat, Game.config, EClass.debug, enable, and EClass.game.

◆ ClearLastWishFlag()

static string CoreDebug.ClearLastWishFlag ( )
inlinestatic

Definition at line 2353 of file CoreDebug.cs.

2354 {
2355 if (!CheatEnabled())
2356 {
2357 return EnableCheat;
2358 }
2359 EClass.player.doneBackers.Clear();
2360 return Resources.Load<TextAsset>("logo2").text + Environment.NewLine + "Done!";
2361 }
HashSet< int > doneBackers
Definition: Player.cs:1096

References Player.doneBackers, and EClass.player.

◆ COM_MaxConstruction()

void CoreDebug.COM_MaxConstruction ( )
inline

Definition at line 1818 of file CoreDebug.cs.

1819 {
1820 if (EClass.pc.homeBranch != null)
1821 {
1823 }
1824 }
FactionBranch homeBranch
Definition: Chara.cs:1080
Element ModBase(int ele, int v)
ElementContainerZone elements
Definition: Zone.cs:43

References Zone.elements, Chara.homeBranch, ElementContainer.ModBase(), FactionBranch.owner, and EClass.pc.

◆ COM_PlayStartDrama()

void CoreDebug.COM_PlayStartDrama ( )
inline

Definition at line 1768 of file CoreDebug.cs.

1769 {
1770 EClass.ui.CloseLayers();
1771 EClass.game.world.date.hour = 2;
1773 LayerDrama.ActivateMain("mono", "1-2");
1774 }
static Scene scene
Definition: EClass.cs:31
static LayerDrama ActivateMain(string idSheet, string idStep=null, Chara target=null, Card ref1=null, string tag="")
Definition: LayerDrama.cs:61
GameScreen screenElin
Definition: Scene.cs:93

References LayerDrama.ActivateMain(), BaseGameScreen.RefreshAll(), EClass.scene, Scene.screenElin, and EClass.ui.

◆ COM_Teleport()

void CoreDebug.COM_Teleport ( )
inline

Definition at line 1753 of file CoreDebug.cs.

1754 {
1755 for (int i = 0; i < 10000; i++)
1756 {
1757 Point point = EClass.pc.pos.Copy();
1758 point.x += EScriptable.rnd(60) - EScriptable.rnd(60);
1759 point.z += EScriptable.rnd(60) - EScriptable.rnd(60);
1760 if (point.IsValid && !point.cell.blocked && point.HasFloor)
1761 {
1762 EClass.pc.Teleport(point);
1763 break;
1764 }
1765 }
1766 }
void Teleport(Point point, bool silent=false, bool force=false)
Definition: Card.cs:5929
Point pos
Definition: Card.cs:60
static int rnd(int a)
Definition: EScriptable.cs:5
Definition: Point.cs:9
Point Copy()
Definition: Point.cs:491
bool IsValid
Definition: Point.cs:88
bool HasFloor
Definition: Point.cs:219
Cell cell
Definition: Point.cs:51

References Algorithms.WeightCell.blocked, Point.cell, Point.Copy(), Point.HasFloor, Point.IsValid, EClass.pc, Card.pos, EScriptable.rnd(), and Card.Teleport().

◆ EnableDebugResource()

void CoreDebug.EnableDebugResource ( )
inline

Definition at line 788 of file CoreDebug.cs.

789 {
792 enable = true;
793 if ((bool)WidgetHotbar.HotbarBuild)
794 {
796 }
798 Thing orCreateDebugContainer = GetOrCreateDebugContainer();
799 SetStartStockpile(orCreateDebugContainer, numResource);
800 }
int numResource
Definition: CoreDebug.cs:217
void SetStartStockpile(Thing container, int num=100)
Definition: CoreDebug.cs:730
Thing GetOrCreateDebugContainer()
Definition: CoreDebug.cs:759
void OnEnableDebug()
Definition: Player.cs:745
Flags flags
Definition: Player.cs:1117
void RebuildPage(int page=-1)
static WidgetHotbar HotbarBuild
Definition: WidgetHotbar.cs:36

References AddAllRecipes(), enable, Player.flags, GetOrCreateDebugContainer(), WidgetHotbar.HotbarBuild, numResource, Player.Flags.OnEnableDebug(), EClass.player, WidgetHotbar.RebuildPage(), WidgetSystemIndicator.Refresh(), and SetStartStockpile().

Referenced by BuildMenu.OnActivate(), and UpdateInput().

◆ FirstAdventurer()

static string CoreDebug.FirstAdventurer ( )
inlinestatic

Definition at line 2274 of file CoreDebug.cs.

2275 {
2276 string text = "Steam is not running.";
2277 DateTime dateTime = new DateTime(2024, 11, 3, 6, 0, 0);
2278 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))));
2279 dateTimeOffset = dateTimeOffset.ToOffset(new TimeSpan(9, 0, 0));
2280 text = ((dateTimeOffset < dateTime) ? "Valid: " : "Invalid: ");
2281 text = text + "Arrived North Tyris on " + dateTimeOffset.Year + " " + dateTimeOffset.Month + "/" + dateTimeOffset.Day + " " + dateTimeOffset.Hour + ":" + dateTimeOffset.Minute;
2282 return text + " Eligible by " + dateTime.Year + " " + dateTime.Month + "/" + dateTime.Day + " " + dateTime.Hour + ":" + dateTime.Minute;
2283 }

References EClass.core, Core.steam, and Steam.steamworks.

◆ Fix_EtherDisease()

static string CoreDebug.Fix_EtherDisease ( )
inlinestatic

Definition at line 1879 of file CoreDebug.cs.

1880 {
1881 EClass.pc.ModCorruption(-100000);
1882 Chara chara = CharaGen.Create("chara");
1883 chara.ChangeRace(EClass.pc.race.id);
1884 chara.ChangeJob(EClass.pc.job.id);
1885 string text = "";
1886 foreach (Element value in chara.elements.dict.Values)
1887 {
1888 if (!(value.source.category != "attribute"))
1889 {
1890 Element orCreateElement = EClass.pc.elements.GetOrCreateElement(value.id);
1891 if (value.vBase > orCreateElement.vBase)
1892 {
1893 text = text + "Fixing Base Value:" + orCreateElement.Name + " Before:" + orCreateElement.vBase + " Now:" + (value.vBase + 1) + Environment.NewLine;
1894 EClass.pc.elements.ModBase(orCreateElement.id, value.vBase - orCreateElement.vBase + 1);
1895 }
1896 }
1897 }
1898 return text + "Fixed!";
1899 }
ElementContainerCard elements
Definition: Card.cs:42
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
SourceJob.Row job
Definition: Chara.cs:468
void ModCorruption(int a)
Definition: Chara.cs:10001
SourceRace.Row race
Definition: Chara.cs:466
Dictionary< int, Element > dict
Element GetOrCreateElement(Element ele)
int id
Definition: ELEMENT.cs:255
int vBase
Definition: ELEMENT.cs:257
SourceElement.Row source
Definition: ELEMENT.cs:278

References Chara.ChangeJob(), Chara.ChangeRace(), CharaGen.Create(), ElementContainer.dict, Card.elements, ElementContainer.GetOrCreateElement(), Element.id, Chara.job, ElementContainer.ModBase(), Chara.ModCorruption(), EClass.pc, Chara.race, Element.source, and Element.vBase.

◆ Fix_LostCore()

static string CoreDebug.Fix_LostCore ( )
inlinestatic

Definition at line 1902 of file CoreDebug.cs.

1903 {
1905 {
1906 return "Not in base.";
1907 }
1908 foreach (Thing thing in EClass._map.things)
1909 {
1910 if (thing.trait is TraitCoreZone)
1911 {
1912 return "Base already has core.";
1913 }
1914 }
1915 if (EClass.pc.things.Find((Thing t) => t.trait is TraitCoreZone) != null)
1916 {
1917 return "Player has core.";
1918 }
1920 return "Done.";
1921 }
ThingContainer things
Definition: Card.cs:39
static Zone _zone
Definition: EClass.cs:21
static Map _map
Definition: EClass.cs:19
Point GetCenterPos()
Definition: MapBounds.cs:52
List< Thing > things
Definition: Map.cs:49
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false, int minRadius=0)
Definition: Point.cs:619
Thing Find(int uid)
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
MapBounds bounds
Definition: Zone.cs:49
bool IsPCFaction
Definition: Zone.cs:475
Card AddCard(Card t, Point point)
Definition: Zone.cs:1994

References EClass._map, EClass._zone, Zone.AddCard(), Zone.bounds, ThingGen.Create(), ThingContainer.Find(), MapBounds.GetCenterPos(), Point.GetNearestPoint(), Zone.IsPCFaction, EClass.pc, Card.things, Map.things, and Card.trait.

◆ Fix_RemoveAshland()

static string CoreDebug.Fix_RemoveAshland ( )
inlinestatic

Definition at line 1946 of file CoreDebug.cs.

1947 {
1948 List<Chara> list = new List<Chara>();
1949 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1950 {
1951 if (value.id == "ashland")
1952 {
1953 list.Add(value);
1954 }
1955 }
1956 if (list.Count > 1)
1957 {
1958 Chara chara = list[1];
1959 chara.RemoveGlobal();
1960 chara.homeBranch.BanishMember(chara);
1961 chara.Destroy();
1962 return "Ashland Removed!";
1963 }
1964 return "Not enough Ashland!";
1965 }
GlobalCharaList globalCharas
Definition: CardManager.cs:46
string id
Definition: Card.cs:36
void Destroy()
Definition: Card.cs:5132
void RemoveGlobal()
Definition: Chara.cs:1533
void BanishMember(Chara c, bool skipMsg=false)
CardManager cards
Definition: Game.cs:156

References FactionBranch.BanishMember(), Game.cards, Card.Destroy(), EClass.game, CardManager.globalCharas, Chara.homeBranch, Card.id, and Chara.RemoveGlobal().

◆ Fix_RemoveDemitas()

static string CoreDebug.Fix_RemoveDemitas ( )
inlinestatic

Definition at line 1924 of file CoreDebug.cs.

1925 {
1926 List<Chara> list = new List<Chara>();
1927 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1928 {
1929 if (value.id == "demitas" && value.currentZone == EClass._zone)
1930 {
1931 list.Add(value);
1932 }
1933 }
1934 if (list.Count > 1)
1935 {
1936 Chara chara = list[1];
1937 chara.RemoveGlobal();
1938 chara.homeBranch.BanishMember(chara);
1939 chara.Destroy();
1940 return "Demitas Removed!";
1941 }
1942 return "Not enough Demitas!";
1943 }
Zone currentZone
Definition: Chara.cs:257

References EClass._zone, FactionBranch.BanishMember(), Game.cards, Chara.currentZone, Card.Destroy(), EClass.game, CardManager.globalCharas, Chara.homeBranch, Card.id, and Chara.RemoveGlobal().

◆ Fix_RemoveDesignations()

static string CoreDebug.Fix_RemoveDesignations ( )
inlinestatic

Definition at line 1968 of file CoreDebug.cs.

1969 {
1970 EClass._map.ForeachCell(delegate(Cell c)
1971 {
1972 if (c.detail != null && c.detail.designation != null)
1973 {
1974 c.detail.designation.taskList.Remove(c.detail.designation);
1975 }
1976 });
1977 return "Done.";
1978 }
TaskDesignation designation
Definition: CellDetail.cs:19
Definition: Cell.cs:7
CellDetail detail
Definition: Cell.cs:92
new void ForeachCell(Action< Cell > action)
Definition: Map.cs:2346

References EClass._map, CellDetail.designation, Cell.detail, and Map.ForeachCell().

◆ Fix_RemoveDuplicateUnique()

static string CoreDebug.Fix_RemoveDuplicateUnique ( )
inlinestatic

Definition at line 1861 of file CoreDebug.cs.

1862 {
1863 if (EClass.Branch == null)
1864 {
1865 return "No Branch";
1866 }
1867 EClass.Branch.members.ForeachReverse(delegate(Chara c)
1868 {
1869 if ((c.id == "kettle" || c.id == "quru") && EClass.Branch.members.Where((Chara c2) => c2.id == c.id).Count() >= 2)
1870 {
1871 EClass.Branch.RemoveMemeber(c);
1872 c.Destroy();
1873 }
1874 });
1875 return "Fixed!";
1876 }
static FactionBranch Branch
Definition: EClass.cs:23
List< Chara > members

References EClass.Branch, Card.id, and FactionBranch.members.

◆ FlyMode()

static string CoreDebug.FlyMode ( )
inlinestatic

Definition at line 2195 of file CoreDebug.cs.

2196 {
2198 return "I can fly!";
2199 }
Condition AddCondition(string id, int p=100, bool force=false)
Definition: Chara.cs:9420

References Chara.AddCondition(), and EClass.pc.

◆ GetDebugContainer()

Thing CoreDebug.GetDebugContainer ( )
inline

Definition at line 776 of file CoreDebug.cs.

777 {
778 foreach (Thing thing in EClass._map.things)
779 {
780 if (thing.c_altName == "DebugContainer")
781 {
782 return thing;
783 }
784 }
785 return null;
786 }
string c_altName
Definition: Card.cs:1607

References EClass._map, Card.c_altName, and Map.things.

Referenced by BuildMenu.OnActivate().

◆ GetOrCreateDebugContainer()

Thing CoreDebug.GetOrCreateDebugContainer ( )
inline

Definition at line 759 of file CoreDebug.cs.

760 {
761 foreach (Thing thing2 in EClass._map.things)
762 {
763 if (thing2.c_altName == "DebugContainer")
764 {
765 return thing2;
766 }
767 }
768 Thing thing = EClass._zone.AddThing("barrel", EClass.pc.pos).Thing;
769 thing.ChangeMaterial("obsidian");
770 thing.c_altName = "DebugContainer";
771 thing.isNPCProperty = false;
772 thing.SetPlaceState(PlaceState.installed);
773 return thing;
774 }
PlaceState
Definition: PlaceState.cs:2
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3801
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:3089
virtual Thing Thing
Definition: Card.cs:2084
Card AddThing(string id, int x, int z)
Definition: Zone.cs:1984

References EClass._map, EClass._zone, Zone.AddThing(), Card.c_altName, Card.ChangeMaterial(), EClass.pc, Card.pos, Card.SetPlaceState(), Card.Thing, and Map.things.

Referenced by EnableDebugResource(), and Map.PutAway().

◆ GodMode()

static string CoreDebug.GodMode ( )
inlinestatic

Definition at line 2121 of file CoreDebug.cs.

2122 {
2123 if (!CheatEnabled())
2124 {
2125 return EnableCheat;
2126 }
2127 EClass.pc.Revive();
2128 EClass.pc.hp = EClass.pc.MaxHP;
2129 return "I'm God!";
2130 }
override int MaxHP
Definition: Chara.cs:722
void Revive(Point p=null, bool msg=false)
Definition: Chara.cs:5223

References Chara.MaxHP, EClass.pc, and Chara.Revive().

◆ Init()

void CoreDebug.Init ( )
inline

Definition at line 328 of file CoreDebug.cs.

329 {
331 EInput.disableKeyAxis = Application.isEditor;
332 }
void InitDebugCommands()
Definition: CoreDebug.cs:1444

References InitDebugCommands().

Referenced by Core.Init().

◆ InitDebugCommands()

void CoreDebug.InitDebugCommands ( )
inline

Definition at line 1444 of file CoreDebug.cs.

1445 {
1446 commands.Clear();
1447 int cat2 = 0;
1448 Add(cat2, "Save Widgets", delegate
1449 {
1450 EClass.ui.widgets.Save();
1451 });
1452 Add(cat2, "Save Widgets(Dialog)", delegate
1453 {
1454 EClass.ui.widgets.DialogSave();
1455 });
1456 Add(cat2, "Export Zone", delegate
1457 {
1459 });
1460 Add(cat2, "Export Zone(Dialog)", delegate
1461 {
1463 });
1464 Add(0, "Import Zone(Dialog)", delegate
1465 {
1467 });
1468 Add(cat2, "Validate Backer Contents", delegate
1469 {
1470 foreach (SourceBacker.Row row2 in EClass.sources.backers.rows)
1471 {
1472 if (row2.valid)
1473 {
1474 switch (row2.type)
1475 {
1476 case 1:
1477 if (!EClass.sources.things.map.ContainsKey(row2.loot))
1478 {
1479 Debug.Log(row2.id + "/remain/" + row2.Name + "/" + row2.loot);
1480 }
1481 break;
1482 case 4:
1483 if (!EClass.sources.charas.map.ContainsKey(row2.chara))
1484 {
1485 Debug.Log(row2.id + "/pet/" + row2.Name + "/" + row2.chara);
1486 }
1487 break;
1488 case 6:
1489 if (!EClass.sources.religions.map.ContainsKey(row2.deity.ToLowerInvariant()))
1490 {
1491 Debug.Log(row2.id + "/" + row2.Name + "/follower/" + row2.deity);
1492 }
1493 break;
1494 }
1495 }
1496 }
1497 });
1498 Add(cat2, "Edit PCC", delegate
1499 {
1500 EClass.ui.AddLayer<LayerEditPCC>().Activate(EClass.pc, UIPCC.Mode.Full);
1501 });
1502 Add(cat2, "COM_Teleport", COM_Teleport);
1503 Add(cat2, "LOG_Spatials", LOG_Spatials);
1504 Add(cat2, "Play Start Drama", COM_PlayStartDrama);
1505 Add(cat2, "Fix Floating Items", delegate
1506 {
1507 foreach (Thing thing in EClass._map.things)
1508 {
1509 if (thing.Pref.Float)
1510 {
1511 thing.isFloating = true;
1512 }
1513 }
1514 });
1515 cat2 = 1;
1516 Add(cat2, "Add Conditions", delegate
1517 {
1518 if (EScriptable.rnd(2) == 0)
1519 {
1520 EClass.pc.AddCondition<ConWet>();
1521 }
1522 else
1523 {
1524 EClass.pc.AddCondition<ConSuffocation>();
1525 }
1526 if (EScriptable.rnd(2) == 0)
1527 {
1528 EClass.pc.AddCondition<ConPoison>();
1529 }
1530 else
1531 {
1532 EClass.pc.AddCondition<ConDisease>();
1533 }
1534 });
1535 cat2 = 2;
1536 Add(cat2, "Max Construction", COM_MaxConstruction);
1537 Add(cat2, "Add Reserves", delegate
1538 {
1539 EClass.Home.AddReserve(CharaGen.Create("merc_archer"));
1541 EClass.Home.AddReserve(CharaGen.Create("bartender"));
1542 EClass.Home.AddReserve(CharaGen.Create("merchant"));
1546 });
1547 Add(cat2, "Add Recruits", delegate
1548 {
1549 if (EClass.Branch != null)
1550 {
1551 EClass.Branch.AddRecruit(CharaGen.Create("merc_archer"));
1552 EClass.Branch.AddRecruit(CharaGen.Create("healer"));
1553 EClass.Branch.AddRecruit(CharaGen.Create("bartender"));
1554 EClass.Branch.AddRecruit(CharaGen.Create("merchant"));
1555 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter("c_wilds"));
1556 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter("c_wilds"));
1557 EClass.Branch.AddRecruit(CharaGen.CreateFromFilter("c_wilds"));
1558 }
1559 });
1560 Add(cat2, "Add Resources", delegate
1561 {
1562 if (EClass.Branch != null)
1563 {
1564 EClass.Branch.resources.food.Mod(100);
1565 EClass.Branch.resources.knowledge.Mod(100);
1566 }
1567 });
1568 Add(cat2, "Remove Influence", delegate
1569 {
1570 EClass._zone.influence = 0;
1571 });
1572 Add(cat2, "Reroll Hobbies", delegate
1573 {
1574 foreach (Chara chara in EClass._map.charas)
1575 {
1576 chara.RerollHobby();
1577 }
1578 });
1579 Add(cat2, "Test_Siege", Test_Siege);
1580 Add(cat2, "Test_SiegeGuard", Test_SiegeGuard);
1581 Add(cat2, "Log_BranchMembers", delegate
1582 {
1584 {
1585 Debug.Log(EClass.Branch.members.Count);
1586 foreach (Chara member in EClass.Branch.members)
1587 {
1588 EClass.debug.Log(member);
1589 }
1590 }
1591 });
1592 cat2 = 3;
1593 Add(cat2, "Weather.Fine", delegate
1594 {
1596 });
1597 Add(cat2, "Weather.Blossom", delegate
1598 {
1600 });
1601 Add(cat2, "Weather.Random", delegate
1602 {
1604 });
1605 Add(cat2, "Weather.Ether+50", delegate
1606 {
1607 EClass.world.ModEther(50);
1609 });
1610 Add(cat2, "Season.Next", delegate
1611 {
1613 });
1614 Add(cat2, "Unreveal Map", delegate
1615 {
1616 EClass._map.ForeachCell(delegate(Cell c)
1617 {
1618 c.isSeen = false;
1619 });
1621 });
1622 Add(cat2, "Test_GodTalk", Test_GodTalk);
1623 Add(cat2, "Test_Filter", Test_Filter);
1624 Add(cat2, "Test_Grow", Test_Grow);
1625 Add(cat2, "Turn On All Lights", delegate
1626 {
1627 foreach (Thing thing2 in EClass._map.things)
1628 {
1629 if (thing2.trait.IsLighting)
1630 {
1631 thing2.trait.Toggle(on: true);
1632 }
1633 }
1634 });
1635 Add(cat2, "Reset All Custom Lights", delegate
1636 {
1637 foreach (Thing thing3 in EClass._map.things)
1638 {
1639 thing3.c_lightColor = 0;
1640 thing3.RecalculateFOV();
1641 }
1642 });
1643 Add(cat2, "Reset All obj materials", delegate
1644 {
1645 EClass._map.ForeachCell(delegate(Cell c)
1646 {
1647 if (c.HasObj)
1648 {
1649 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1650 }
1651 });
1652 });
1653 Add(cat2, "Reset Certain obj materials", delegate
1654 {
1655 EClass._map.ForeachCell(delegate(Cell c)
1656 {
1657 if (c.HasObj && c.obj == 79)
1658 {
1659 c.objMat = (byte)c.sourceObj.DefaultMaterial.id;
1660 }
1661 });
1662 });
1663 Add(cat2, "Fix Floors under Blocks", delegate
1664 {
1665 EClass._map.ForeachCell(delegate(Cell c)
1666 {
1667 if (c.HasFullBlock)
1668 {
1669 SourceBlock.Row sourceBlock = c.sourceBlock;
1670 SourceFloor.Row row = EClass.sources.floors.alias[sourceBlock.autoFloor];
1671 EClass._map.SetFloor(c.x, c.z, row.DefaultMaterial.id, row.id);
1672 }
1673 });
1674 });
1675 Add(cat2, "Bless Inventory", delegate
1676 {
1677 EClass.pc.things.Foreach(delegate(Thing t)
1678 {
1679 t.SetBlessedState(BlessedState.Blessed);
1680 });
1681 });
1682 Add(cat2, "Curse Inventory", delegate
1683 {
1684 EClass.pc.things.Foreach(delegate(Thing t)
1685 {
1686 t.SetBlessedState(BlessedState.Cursed);
1687 });
1688 });
1689 Add(cat2, "List Global Charas", delegate
1690 {
1691 foreach (KeyValuePair<int, Chara> globalChara in EClass.game.cards.globalCharas)
1692 {
1693 Debug.Log(globalChara.Key + "/" + globalChara.Value.Name + "/" + ((globalChara.Value.currentZone == null) ? "NULL" : globalChara.Value.currentZone.Name) + "/" + globalChara.Value.faction?.ToString() + "/" + globalChara.Value.homeBranch);
1694 }
1695 });
1696 Add(cat2, "List Global Charas In Zone", delegate
1697 {
1698 foreach (KeyValuePair<int, Chara> globalChara2 in EClass.game.cards.globalCharas)
1699 {
1700 if (globalChara2.Value.currentZone == EClass._zone)
1701 {
1702 Debug.Log(globalChara2.Key + "/" + globalChara2.Value);
1703 }
1704 }
1705 });
1706 Add(cat2, "List Citizen", delegate
1707 {
1708 foreach (KeyValuePair<int, string> p in EClass._zone.dictCitizen)
1709 {
1710 Debug.Log(p.Value);
1711 Debug.Log(EClass._map.charas.Find((Chara c) => c.uid == p.Key));
1712 Debug.Log(EClass._map.deadCharas.Find((Chara c) => c.uid == p.Key));
1713 }
1714 });
1715 void Add(int cat, string id, Action action)
1716 {
1717 DebugCommand item = new DebugCommand
1718 {
1719 name = id,
1720 action = action,
1721 cat = cat
1722 };
1723 commands.Add(item);
1724 }
1725 }
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
Definition: UIBook.cs:627
list. Add(item3)
virtual void SetBlessedState(BlessedState s)
Definition: Card.cs:3949
byte obj
Definition: Cell.cs:38
bool HasObj
Definition: Cell.cs:641
bool HasFullBlock
Definition: Cell.cs:817
static Chara CreateFromFilter(string id, int lv=-1, int levelRange=-1)
Definition: CharaGen.cs:22
void Test_Siege()
Definition: CoreDebug.cs:1806
void Test_Filter()
Definition: CoreDebug.cs:1776
List< DebugCommand > commands
Definition: CoreDebug.cs:283
void Test_Grow()
Definition: CoreDebug.cs:1727
void COM_MaxConstruction()
Definition: CoreDebug.cs:1818
void COM_Teleport()
Definition: CoreDebug.cs:1753
void COM_PlayStartDrama()
Definition: CoreDebug.cs:1768
void Test_SiegeGuard()
Definition: CoreDebug.cs:1794
void LOG_Spatials()
Definition: CoreDebug.cs:1786
void Test_GodTalk()
Definition: CoreDebug.cs:1745
static Faction Home
Definition: EClass.cs:27
static World world
Definition: EClass.cs:41
void AddReserve(Chara c)
Definition: FACTION.cs:338
List< Chara > charas
Definition: Map.cs:81
void Next()
Definition: Season.cs:106
SourceBacker backers
void Foreach(Action< Thing > action, bool onlyAccessible=true)
void SetCondition(Condition condition, int _duration=20, bool silent=false)
Definition: Weather.cs:308
Condition
Definition: Weather.cs:16
Condition CurrentCondition
Definition: Weather.cs:79
void SetRandomCondition()
Definition: Weather.cs:295
static WidgetMinimap Instance
void ModEther(int a=3)
Definition: World.cs:58
Weather weather
Definition: World.cs:12
int ether
Definition: World.cs:21
Season season
Definition: World.cs:9
Dictionary< int, string > dictCitizen
Definition: Zone.cs:52
void ImportDialog(string dir=null)
Definition: Zone.cs:3271
void ExportDialog(string dir=null)
Definition: Zone.cs:3258
void Export(string path, PartialMap partial=null, bool usermap=false)
Definition: Zone.cs:3217

References EClass._zone, Add(), SourceManager.backers, commands, Zone.Export(), Zone.ExportDialog(), Zone.ImportDialog(), EClass.sources, and EClass.ui.

Referenced by Init().

◆ LastWish()

static string CoreDebug.LastWish ( string  name)
inlinestatic

Definition at line 2335 of file CoreDebug.cs.

2336 {
2337 string text = "";
2338 foreach (SourceBacker.Row row in EClass.sources.backers.rows)
2339 {
2340 if (row.name.Contains(name) || row.id.ToString() == name)
2341 {
2342 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;
2343 }
2344 }
2345 if (text == "")
2346 {
2347 return "Not Found";
2348 }
2349 return text + Resources.Load<TextAsset>("logo2").text;
2350 }

References SourceManager.backers, Player.doneBackers, EClass.player, and EClass.sources.

◆ ListChara()

static string CoreDebug.ListChara ( )
inlinestatic

Definition at line 1981 of file CoreDebug.cs.

1982 {
1983 string text = "";
1984 foreach (SourceChara.Row row in EClass.sources.charas.rows)
1985 {
1986 text = text + row.id + "\n";
1987 }
1988 return text;
1989 }
SourceChara charas

References SourceManager.charas, and EClass.sources.

◆ ListThing()

static string CoreDebug.ListThing ( )
inlinestatic

Definition at line 1992 of file CoreDebug.cs.

1993 {
1994 string text = "";
1995 foreach (SourceThing.Row row in EClass.sources.things.rows)
1996 {
1997 text = text + row.id + "\n";
1998 }
1999 return text;
2000 }
SourceThing things

References EClass.sources, and SourceManager.things.

◆ LoadBroadcast()

void CoreDebug.LoadBroadcast ( )
inline

Definition at line 2397 of file CoreDebug.cs.

2398 {
2399 TextAsset textAsset = Resources.Load<TextAsset>("Data/Text/broadcast");
2400 blines = textAsset.text.Split('-');
2401 }

◆ Log()

void CoreDebug.Log ( object  o)
inline

Definition at line 2374 of file CoreDebug.cs.

2375 {
2376 Debug.Log(o);
2377 }

References Debug.

Referenced by Tutorial.Play().

◆ LOG_Spatials()

void CoreDebug.LOG_Spatials ( )
inline

Definition at line 1786 of file CoreDebug.cs.

1787 {
1788 foreach (Spatial child in EClass.world.region.children)
1789 {
1790 Debug.Log(child.uid + "/" + child.Name + "/" + child.mainFaction.name + "/" + (child == EClass.player.zone));
1791 }
1792 }
string name
Definition: FACTION.cs:135
Zone zone
Definition: Player.cs:1105
int uid
Definition: Spatial.cs:70
virtual string Name
Definition: Spatial.cs:509
Faction mainFaction
Definition: Spatial.cs:442
List< Spatial > children
Definition: Spatial.cs:37
Region region
Definition: World.cs:23

References Spatial.children, Debug, Spatial.mainFaction, Faction.name, Spatial.Name, EClass.player, World.region, Spatial.uid, EClass.world, and Player.zone.

◆ MaxFame()

static string CoreDebug.MaxFame ( )
inlinestatic

Definition at line 2144 of file CoreDebug.cs.

2145 {
2146 if (!CheatEnabled())
2147 {
2148 return EnableCheat;
2149 }
2150 if (EClass.player.CountKeyItem("license_adv") == 0)
2151 {
2152 EClass.player.ModKeyItem("license_adv");
2153 }
2154 EClass.player.ModFame(int.MaxValue);
2155 return "Done.";
2156 }
void ModFame(int a)
Definition: Player.cs:2119
int CountKeyItem(string alias)
Definition: Player.cs:2193
void ModKeyItem(string alias, int num=1, bool msg=true)
Definition: Player.cs:2161

References Player.CountKeyItem(), Player.ModFame(), Player.ModKeyItem(), and EClass.player.

◆ ModContribution()

static string CoreDebug.ModContribution ( int  amount)
inlinestatic

Definition at line 2170 of file CoreDebug.cs.

2171 {
2172 if (!CheatEnabled())
2173 {
2174 return EnableCheat;
2175 }
2177 return "Done.";
2178 }
void AddContribution(int a)
Definition: FACTION.cs:318
Definition: Guild.cs:2
static Guild GetCurrentGuild()
Definition: Guild.cs:74

References Faction.AddContribution(), and Guild.GetCurrentGuild().

◆ ModFame()

static string CoreDebug.ModFame ( int  amount)
inlinestatic

Definition at line 2133 of file CoreDebug.cs.

2134 {
2135 if (!CheatEnabled())
2136 {
2137 return EnableCheat;
2138 }
2139 EClass.player.ModFame(amount);
2140 return "Done.";
2141 }

References Player.ModFame(), and EClass.player.

◆ ModKarma()

static string CoreDebug.ModKarma ( int  amount)
inlinestatic

Definition at line 2159 of file CoreDebug.cs.

2160 {
2161 if (!CheatEnabled())
2162 {
2163 return EnableCheat;
2164 }
2165 EClass.player.ModKarma(amount);
2166 return "Done.";
2167 }
void ModKarma(int a)
Definition: Player.cs:2563

References Player.ModKarma(), and EClass.player.

◆ NextBGM()

void CoreDebug.NextBGM ( )
inline

Definition at line 2379 of file CoreDebug.cs.

2380 {
2381 if ((bool)SoundManager.current)
2382 {
2383 SoundManager.current.NextBGM();
2384 }
2385 }

◆ OnLoad()

void CoreDebug.OnLoad ( )
inline

Definition at line 711 of file CoreDebug.cs.

712 {
713 if (allRecipe)
714 {
716 }
717 }
bool allRecipe
Definition: CoreDebug.cs:233

References AddAllRecipes(), and allRecipe.

Referenced by Game.OnLoad().

◆ QuickStart()

void CoreDebug.QuickStart ( )
inline

Definition at line 334 of file CoreDebug.cs.

335 {
336 Game.Create("quick");
337 Tutorial.debugSkip = EClass.debug.skipNerun;
338 if (!startSetting.race.IsEmpty())
339 {
341 }
342 if (!startSetting.job.IsEmpty())
343 {
346 }
347 switch (startScene)
348 {
349 case StartScene.Zone:
350 case StartScene.Home:
351 EClass.game.world.date.hour = EClass.debug.startHour;
352 break;
353 case StartScene.Survival:
354 EClass.game.idPrologue = 3;
355 break;
356 case StartScene.Home_Cave:
357 EClass.game.idPrologue = 2;
358 break;
359 }
362 EClass.player.pref.lastIdTabAbility = 3;
364 switch (startParty)
365 {
366 case StartParty.Farris:
367 AddParty("farris");
368 break;
369 case StartParty.Full:
370 AddParty("farris");
371 AddParty("wescott");
372 break;
373 }
374 int lv = startSetting.lv;
375 if (allAbility)
376 {
377 foreach (SourceElement.Row row in EClass.sources.elements.rows)
378 {
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])))
380 {
381 EClass.pc.elements.ModBase(row.id, lv).vPotential = 30;
382 }
383 }
384 }
385 if (allSkill)
386 {
387 foreach (SourceElement.Row row2 in EClass.sources.elements.rows)
388 {
389 if (row2.isSkill && !row2.tag.Contains("unused"))
390 {
391 EClass.pc.elements.ModBase(row2.id, 1);
392 }
393 }
394 }
395 EClass.pc.elements.ModBase(60, lv / 2);
396 EClass.pc.elements.ModBase(61, lv / 2);
397 EClass.pc.elements.ModBase(79, lv / 5);
398 EClass.player.totalFeat = lv;
399 EClass.pc.feat = 1000;
400 EClass.pc.SetLv(lv - 1);
401 EClass.player.fame = EClass.pc.LV * 100;
402 int idx = 0;
403 switch (startLoadout)
404 {
405 case StartLoadout.AllItem:
406 EClass.pc.ModCurrency(50, "plat");
407 EClass.pc.ModCurrency(50, "money2");
408 EClass.pc.EQ_CAT("weapon");
409 EClass.pc.EQ_CAT((EScriptable.rnd(2) == 0) ? "weapon" : "shield");
410 EClass.pc.EQ_CAT("torso");
411 EClass.pc.EQ_CAT("arm");
412 EClass.pc.EQ_CAT("ring");
413 EClass.pc.AddCard(ThingGen.Create("chest2"));
414 EClass.pc.AddCard(ThingGen.Create("torch_held"));
415 AddHotbar("axe");
416 AddHotbar("pickaxe");
417 AddHotbar("wateringCan");
418 AddHotbar("bow");
419 AddHotbar("deed");
420 AddAbility("SpellTeleport");
421 AddAbility("SpellCatsEye");
422 AddHotbar("map_big");
423 break;
424 case StartLoadout.FewItem:
425 {
426 if (startScene == StartScene.Survival)
427 {
428 AddHotbar("pickaxe").ChangeMaterial(0);
429 break;
430 }
431 Thing thing = ThingGen.Create("backpack");
432 thing.AddCard(ThingGen.Create("rp_food", -1, 10).SetNum(30));
433 thing.AddCard(ThingGen.Create("rp_block", -1, 10).SetNum(30));
434 for (int i = 0; i < 30; i++)
435 {
436 thing.AddCard(ThingGen.Create("rp_block", -1, 50));
437 }
438 EClass.pc.AddCard(thing);
439 thing = ThingGen.Create("pouch");
440 for (int j = 0; j < 30; j++)
441 {
443 Thing thing2 = ThingGen.CreateFromCategory("weapon", 214748364);
444 thing2.elements.SetBase(653, 1);
445 if (!(thing2.trait is TraitAmmo))
446 {
447 thing.AddCard(thing2);
448 }
450 thing2 = ThingGen.CreateFromCategory("armor", 214748364);
451 thing2.elements.SetBase(653, 1);
452 thing.AddCard(thing2);
453 }
454 EClass.pc.AddCard(thing);
455 thing = ThingGen.Create("pouch");
456 for (int k = 0; k < 30; k++)
457 {
458 thing.AddCard(ThingGen.Create("mathammer", MATERIAL.GetRandomMaterial(100).alias)).SetNum(10);
459 }
460 thing.AddCard(ThingGen.Create("mathammer", 103)).SetNum(10);
461 thing.AddCard(ThingGen.Create("mathammer", 102)).SetNum(10);
462 thing.AddCard(ThingGen.Create("mathammer", 33)).SetNum(10);
463 thing.AddCard(ThingGen.Create("mathammer", 18)).SetNum(10);
464 thing.AddCard(ThingGen.Create("mathammer", 10)).SetNum(99);
465 thing.AddCard(ThingGen.Create("mathammer", 31)).SetNum(10);
466 thing.AddCard(ThingGen.Create("mathammer", 28)).SetNum(99);
467 EClass.pc.AddCard(thing);
468 thing = ThingGen.Create("pouch");
469 for (int l = 0; l < 30; l++)
470 {
472 }
473 EClass.pc.AddCard(thing);
474 thing = ThingGen.Create("coolerbox");
475 for (int m = 0; m < 20; m++)
476 {
477 thing.AddCard(ThingGen.CreateFromCategory("foodstuff").SetNum(EScriptable.rnd(10) + 1));
478 }
479 EClass.pc.AddCard(thing);
480 List<SourceChara.Row> list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara").ToList();
481 thing = ThingGen.Create("pouch");
482 list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara_L").ToList();
483 for (int n = 0; n < 20; n++)
484 {
485 string id2 = list.RandomItem().id;
486 Thing thing3 = ThingGen.Create("figure");
487 thing3.MakeFigureFrom(id2);
488 thing.AddCard(thing3);
489 }
490 EClass.pc.AddCard(thing);
491 thing = ThingGen.Create("pouch");
492 list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara").ToList();
493 for (int num = 0; num < 20; num++)
494 {
495 string id3 = list.RandomItem().id;
496 Thing thing4 = ThingGen.Create("figure3");
497 thing4.MakeFigureFrom(id3);
498 thing.AddCard(thing4);
499 }
500 EClass.pc.AddCard(thing);
501 thing.Dye("oak");
502 thing = ThingGen.Create("pouch");
503 list = EClass.sources.charas.map.Values.Where((SourceChara.Row a) => a._idRenderData == "chara_L").ToList();
504 for (int num2 = 0; num2 < 20; num2++)
505 {
506 string id4 = list.RandomItem().id;
507 Thing thing5 = ThingGen.Create("figure3");
508 thing5.MakeFigureFrom(id4);
509 thing.AddCard(thing5);
510 }
511 EClass.pc.AddCard(thing);
512 thing.Dye("pine");
513 thing = ThingGen.Create("pouch");
514 thing.AddCard(ThingGen.Create("flour").SetNum(10));
515 thing.AddCard(ThingGen.Create("wheat").SetNum(200));
516 thing.AddCard(ThingGen.Create("rice_plant").SetNum(200));
517 thing.AddCard(ThingGen.Create("noodle").SetNum(10));
518 thing.AddCard(ThingGen.Create("rice").SetNum(10));
519 thing.AddCard(ThingGen.Create("dough_cake").SetNum(10));
520 thing.AddCard(ThingGen.Create("dough_bread").SetNum(10));
521 thing.AddCard(ThingGen.Create("salt").SetNum(10));
522 thing.AddCard(ThingGen.Create("sugar").SetNum(10));
523 thing.AddCard(ThingGen.Create("honey").SetNum(10));
524 thing.AddCard(ThingGen.Create("yeast").SetNum(10));
525 thing.AddCard(ThingGen.Create("ketchup").SetNum(10));
526 thing.AddCard(ThingGen.Create("butter").SetNum(10));
527 thing.AddCard(ThingGen.Create("potion_empty").SetNum(10));
528 thing.AddCard(ThingGen.Create("bucket_empty").SetNum(10));
529 thing.AddCard(ThingGen.Create("battery"));
530 EClass.pc.AddCard(thing);
531 thing.Dye("saphire");
532 thing = ThingGen.Create("pouch");
533 thing.AddCard(ThingGen.Create("log").SetNum(99));
534 thing.AddCard(ThingGen.Create("log").SetNum(99).ChangeMaterial("pine"));
535 thing.AddCard(ThingGen.Create("ore").SetNum(99).ChangeMaterial("steel"));
536 thing.AddCard(ThingGen.Create("ore").SetNum(99).ChangeMaterial("copper"));
537 thing.AddCard(ThingGen.Create("ore_gem").SetNum(99).ChangeMaterial("gold"));
538 thing.AddCard(ThingGen.Create("gem").SetNum(99).ChangeMaterial("rubinus"));
539 thing.AddCard(ThingGen.Create("flower_white").SetNum(99));
540 thing.AddCard(ThingGen.Create("bait").SetNum(10));
541 EClass.pc.AddCard(thing);
542 thing.Dye("rubinus");
543 Thing thing6 = ThingGen.Create("quiver");
544 thing6.AddCard(ThingGen.Create("bullet").SetNum(250));
545 thing6.AddCard(ThingGen.Create("arrow").SetNum(250));
546 thing6.AddCard(ThingGen.Create("bolt").SetNum(250));
547 thing6.AddCard(ThingGen.Create("bullet_energy").SetNum(250));
549 thing = ThingGen.Create("backpack");
550 for (int num3 = 0; num3 < 10; num3++)
551 {
552 thing.AddThing("book", lv);
553 thing.AddThing("parchment");
554 thing.AddThing("book_ancient");
555 thing.AddCard(ThingGen.CreateRedBook("fox_dawn"));
556 thing.AddCard(ThingGen.CreateRedBook("forgotten_gods_1"));
557 }
558 EClass.pc.AddCard(thing);
559 thing.Dye("rubinus");
560 thing = ThingGen.Create("backpack");
561 foreach (SourceObj.Row row3 in EClass.sources.objs.rows)
562 {
563 if (row3.tag.Contains("seed"))
564 {
565 Thing c = TraitSeed.MakeSeed(row3).SetNum(10);
566 thing.AddCard(c);
567 }
568 }
569 EClass.pc.AddCard(thing);
570 thing.Dye("silver");
571 thing = ThingGen.Create("pouch");
572 for (int num4 = 0; num4 < 30; num4++)
573 {
574 thing.AddThing((EScriptable.rnd(10) != 0) ? "potion" : "drink", lv).SetNum(99);
575 }
576 EClass.pc.AddCard(thing);
577 thing.Dye("steel");
578 thing = ThingGen.Create("pouch");
579 for (int num5 = 0; num5 < 30; num5++)
580 {
581 thing.AddThing(ThingGen.CreateFromCategory("rod", lv));
582 }
583 EClass.pc.AddCard(thing);
584 thing.Dye("steel");
585 thing = ThingGen.Create("pouch");
586 for (int num6 = 0; num6 < 30; num6++)
587 {
588 thing.AddThing("scroll", lv).SetNum(99);
589 }
590 EClass.pc.AddCard(thing);
591 thing.Dye("steel");
592 thing = ThingGen.Create("pouch");
593 for (int num7 = 0; num7 < 40; num7++)
594 {
595 thing.AddThing("372", 100);
596 }
597 EClass.pc.AddCard(thing);
598 thing.Dye("steel");
599 Thing thing7 = EClass.pc.things.Find("purse");
600 thing7.AddThing("casino_coin").SetNum(30000000);
601 thing7.AddThing("medal").SetNum(1000);
602 thing7.ModCurrency(500, "plat");
603 EClass.pc.AddThing("record");
604 EClass.pc.AddThing("deed").SetNum(5);
605 EClass.pc.AddThing("book_story");
606 EClass.pc.AddThing("book_story_home");
607 EClass.pc.AddThing("book_tutorial");
608 EClass.pc.AddThing("water").SetNum(20).SetBlessedState(BlessedState.Blessed);
610 EClass.pc.AddThing("potion_empty").SetNum(20);
611 EClass.pc.ModCurrency(10000000);
614 Thing thing8 = ThingGen.Create("scroll_random").SetNum(10);
615 thing8.refVal = 8220;
616 EClass.pc.AddCard(thing8);
617 EClass.pc.ModCurrency(50, "money2");
618 AddHotbar("hoe");
619 AddHotbar("shovel");
620 AddHotbar("axe");
621 AddHotbar("pickaxe");
622 AddHotbar("wateringCan");
623 AddHotbar("gun_assault");
624 AddHotbar("hammer");
625 AddHotbar("bow");
626 break;
627 }
628 }
629 EClass.pc.RestockEquip(onCreate: true);
630 EClass.pc.stamina.value = EClass.pc.stamina.max;
631 EClass.pc.mana.value = EClass.pc.mana.max;
632 EClass.pc.hp = EClass.pc.MaxHP;
633 if (EClass.debug.startScene == StartScene.Zone)
634 {
635 EClass._zone.ClaimZone(debug: true);
636 }
637 SoundManager.ignoreSounds = true;
638 EClass.ui.ToggleInventory();
639 SoundManager.ignoreSounds = true;
640 EClass.ui.ToggleAbility();
641 SoundManager.ignoreSounds = false;
642 EClass.ui.layerFloat.GetLayer<LayerAbility>().windows[0].SetRect(EClass.core.refs.rects.abilityDebug);
643 if (allRecipe)
644 {
646 }
647 foreach (Thing thing11 in EClass.pc.things)
648 {
649 thing11.isNew = false;
650 }
653 if (startScene == StartScene.Story_Test)
654 {
655 EClass._zone.ClaimZone(debug: true);
656 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("loytel"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
657 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("farris"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
658 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("kettle"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
659 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("quru"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
660 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("corgon"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
661 EClass.Branch.AddMemeber(EClass._zone.AddCard(CharaGen.Create("demitas"), EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false)) as Chara);
662 EClass.game.quests.Add("greatDebt");
663 EClass.game.quests.Add("farris_tulip");
664 EClass.game.quests.Add("kettle_join");
665 EClass.game.quests.Add("quru_morning");
666 EClass.game.quests.Add("vernis_gold");
667 EClass.game.quests.Add("quru_sing");
668 EClass.game.quests.Add("quru_past1");
669 EClass.game.quests.Add("quru_past2");
670 EClass.game.quests.Add("pre_debt");
671 EClass.game.quests.Add("exile_meet");
672 EClass.game.quests.Add("exile_quru");
673 EClass.game.quests.Add("exile_kettle");
674 EClass.game.quests.Add("exile_whisper");
675 EClass.game.quests.Add("exile_voice");
676 EClass.game.quests.Add("into_darkness");
677 EClass.game.quests.Add("demitas_spellwriter");
678 EClass.game.quests.Add("negotiation_darkness");
679 EClass.game.quests.Start("into_darkness", EClass.game.cards.globalCharas.Find("kettle"));
681 EClass.player.ModKeyItem("potion_sorin", 1, msg: false);
682 EClass.player.ModKeyItem("potion_farris", 1, msg: false);
683 }
684 static Thing AddAbility(string id)
685 {
686 Thing thing9 = EClass.pc.AddThing(ThingGen.Create("catalyst"));
687 thing9.c_idAbility = id;
688 return thing9;
689 }
690 Thing AddHotbar(string id)
691 {
692 Thing thing10 = EClass.pc.AddThing(ThingGen.Create(id));
693 thing10.invX = idx;
694 thing10.invY = 1;
695 idx++;
696 return thing10;
697 }
698 void AddParty(string id)
699 {
700 Chara chara = CharaGen.Create(id);
701 chara.SetFaction(EClass.Home);
702 chara.SetHomeZone(homeZone);
703 if (chara.currentZone != EClass._zone)
704 {
705 EClass._zone.AddCard(chara, EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false));
706 }
707 EClass.pc.party.AddMemeber(chara);
708 }
709 }
List< Action > actionsNextFrame
Definition: BaseCore.cs:31
static void Set(CardBlueprint _bp=null)
static CardBlueprint DebugEQ
Chara Find(string id)
Definition: CardManager.cs:20
void MakeFigureFrom(string id)
Definition: Card.cs:5767
Card AddCard(Card c)
Definition: Card.cs:3138
Thing AddThing(string id, int lv=-1)
Definition: Card.cs:3152
Card SetLv(int a)
Definition: Card.cs:2949
Thing SetNum(int a)
Definition: Card.cs:3549
void RecalculateFOV()
Definition: Card.cs:6559
void Dye(string idMat)
Definition: Card.cs:6181
void ModCurrency(int a, string id="money")
Definition: Card.cs:4015
bool HasElement(int ele, bool includeNagative=false)
Definition: Card.cs:6090
int LV
Definition: Card.cs:387
Thing GetEquippedThing(int elementId)
Definition: CharaBody.cs:424
Party party
Definition: Chara.cs:43
Chara SetHomeZone(Zone zone)
Definition: Chara.cs:1461
Chara SetFaction(Faction f)
Definition: Chara.cs:1453
Stats mana
Definition: Chara.cs:1180
Stats stamina
Definition: Chara.cs:1172
void RestockEquip(bool onCreate)
Definition: Chara.cs:4757
void EQ_CAT(string s)
Definition: Chara.cs:5163
StartParty startParty
Definition: CoreDebug.cs:100
bool allSkill
Definition: CoreDebug.cs:193
bool allAbility
Definition: CoreDebug.cs:191
int startHour
Definition: CoreDebug.cs:102
StartLoadout startLoadout
Definition: CoreDebug.cs:98
bool skipNerun
Definition: CoreDebug.cs:164
StartSetting startSetting
Definition: CoreDebug.cs:104
StartScene startScene
Definition: CoreDebug.cs:96
RectData abilityDebug
Definition: CoreRef.cs:170
Rects rects
Definition: CoreRef.cs:361
CoreRef refs
Definition: Core.cs:51
static Core core
Definition: EClass.cs:7
Element SetBase(string alias, int v, int potential=0)
int vPotential
Definition: ELEMENT.cs:261
void AddMemeber(Chara c)
Definition: Game.cs:9
SpatialManager spatials
Definition: Game.cs:153
static void Create(string _id=null, bool cloud=false)
Definition: Game.cs:730
Prologue Prologue
Definition: Game.cs:264
QuestManager quests
Definition: Game.cs:183
void StartNewGame()
Definition: Game.cs:803
static void SetDirtyAll(bool immediate=false)
static SourceMaterial.Row GetRandomMaterial(int lv, string group=null, bool tryLevelMatTier=false)
Definition: MATERIAL.cs:56
void AddMemeber(Chara c, bool showMsg=false)
Definition: Party.cs:57
string idStartZone
Definition: Prologue.cs:9
Quest Add(string id, string idGlobalChara=null)
Definition: QuestManager.cs:29
Quest Start(string id, string idGlobalChara)
Definition: QuestManager.cs:41
Quest Get(string id)
SourceObj objs
SourceElement elements
Zone Find(string id)
virtual int max
Definition: Stats.cs:68
static Thing CreateBlock(int id, int idMat)
Definition: ThingGen.cs:101
static Thing CreateRedBook(string id, int num=1)
Definition: ThingGen.cs:167
static Thing CreateFloor(int id, int idMat, bool platform=false)
Definition: ThingGen.cs:108
static Thing CreateFromCategory(string idCat, int lv=-1)
Definition: ThingGen.cs:75
static Thing MakeSeed(string id, PlantData plant=null)
Definition: TraitSeed.cs:88
Definition: Zone.cs:12
void ClaimZone(bool debug=false, Point pos=null)
Definition: Zone.cs:1729

References EClass._zone, CoreRef.Rects.abilityDebug, BaseCore.actionsNextFrame, QuestManager.Add(), AddAllRecipes(), Card.AddCard(), Zone.AddCard(), FactionBranch.AddMemeber(), Party.AddMemeber(), Card.AddThing(), allAbility, allRecipe, allSkill, Chara.body, EClass.Branch, Game.cards, Chara.ChangeJob(), Card.ChangeMaterial(), Chara.ChangeRace(), SourceManager.charas, Zone.ClaimZone(), EClass.core, Game.Create(), ThingGen.Create(), CharaGen.Create(), ThingGen.CreateBlock(), ThingGen.CreateFloor(), ThingGen.CreateFromCategory(), ThingGen.CreateRedBook(), Chara.currentZone, EClass.debug, CardBlueprint.DebugEQ, Card.Dye(), Card.elements, SourceManager.elements, Chara.EQ_CAT(), ThingContainer.Find(), CardManager.GlobalCharaList.Find(), SpatialManager.Find(), Player.flags, EClass.game, QuestManager.Get(), CharaBody.GetEquippedThing(), Point.GetNearestPoint(), MATERIAL.GetRandomMaterial(), CardManager.globalCharas, Card.HasElement(), EClass.Home, Prologue.idStartZone, CoreDebug.StartSetting.job, Card.LV, CoreDebug.StartSetting.lv, Card.MakeFigureFrom(), TraitSeed.MakeSeed(), Chara.mana, Stats.max, Chara.MaxHP, ElementContainer.ModBase(), Card.ModCurrency(), Player.ModKeyItem(), SourceManager.objs, Player.Flags.OnEnableDebug(), Chara.party, EClass.pc, EClass.player, Card.pos, Game.Prologue, Game.quests, CoreDebug.StartSetting.race, Card.RecalculateFOV(), CoreRef.rects, Player.RefreshDomain(), Core.refs, Chara.RestockEquip(), EScriptable.rnd(), CardBlueprint.Set(), ElementContainer.SetBase(), Card.SetBlessedState(), LayerInventory.SetDirtyAll(), Chara.SetFaction(), Chara.SetHomeZone(), Card.SetLv(), Card.SetNum(), skipNerun, EClass.sources, Game.spatials, Chara.stamina, QuestManager.Start(), startHour, startLoadout, Game.StartNewGame(), startParty, startScene, startSetting, Card.things, Card.trait, EClass.ui, and Element.vPotential.

Referenced by Core.Init().

◆ RegenerateNames()

static string CoreDebug.RegenerateNames ( )
inlinestatic

Definition at line 2286 of file CoreDebug.cs.

2287 {
2289 NameGen.list = null;
2290 AliasGen.list = null;
2291 NameGen.Init();
2292 AliasGen.Init();
2293 foreach (Chara chara in EClass._map.charas)
2294 {
2295 if (!chara.IsPC)
2296 {
2297 if (chara.source.name == "*r")
2298 {
2299 chara.c_altName = NameGen.getRandomName();
2300 }
2301 if (!chara._alias.IsEmpty())
2302 {
2303 chara._alias = AliasGen.GetRandomAlias();
2304 }
2305 }
2306 }
2307 return "Done!";
2308 }
override bool IsPC
Definition: Chara.cs:626
SourceChara.Row source
Definition: Chara.cs:160
string _alias
Definition: Chara.cs:221
ModManager mods
Definition: Core.cs:39

References Chara._alias, EClass._map, Map.charas, EClass.core, BaseModManager.InitLang(), Chara.IsPC, Core.mods, and Chara.source.

◆ Reset_LoytelDebt()

static string CoreDebug.Reset_LoytelDebt ( )
inlinestatic

Definition at line 1843 of file CoreDebug.cs.

1844 {
1845 QuestDebt questDebt = EClass.game.quests.Get<QuestDebt>();
1846 if (questDebt == null)
1847 {
1848 return "Quest Status Not Valid.";
1849 }
1850 questDebt.stage = 0;
1851 questDebt.paid = false;
1852 questDebt.gaveBill = false;
1853 EClass.player.debt = 20000000;
1854 Thing thing = ThingGen.Create("856");
1855 thing.refVal = 109;
1856 EClass.pc.Pick(thing);
1857 return "Quest Reset!";
1858 }
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Definition: Chara.cs:4369

References ThingGen.Create(), EClass.game, QuestManager.Get(), EClass.pc, Chara.Pick(), and Game.quests.

◆ ResetAchievement()

static string CoreDebug.ResetAchievement ( ID_Achievement  id)
inlinestatic

Definition at line 2250 of file CoreDebug.cs.

2251 {
2253 return "Done.";
2254 }
Definition: Steam.cs:10
static void ResetAchievement(ID_Achievement id)
Definition: Steam.cs:95

References Steam.ResetAchievement().

◆ ResetAllAchievement()

static string CoreDebug.ResetAllAchievement ( )
inlinestatic

Definition at line 2243 of file CoreDebug.cs.

2244 {
2246 return "Done.";
2247 }
static void ResetAllAchievement()
Definition: Steam.cs:86

References Steam.ResetAllAchievement().

◆ ResetPetUpgrades()

static string CoreDebug.ResetPetUpgrades ( )
inlinestatic

Definition at line 2097 of file CoreDebug.cs.

2098 {
2099 foreach (Chara value in EClass.game.cards.globalCharas.Values)
2100 {
2101 if (value.IsPCFaction)
2102 {
2103 value.ResetUpgrade();
2104 }
2105 }
2106 return "Not Implemented.";
2107 }
void ResetUpgrade()
Definition: Chara.cs:8716
override bool IsPCFaction
Definition: Chara.cs:685

References Game.cards, EClass.game, CardManager.globalCharas, Chara.IsPCFaction, and Chara.ResetUpgrade().

◆ ResetPrincipalSeals()

static string CoreDebug.ResetPrincipalSeals ( )
inlinestatic

Definition at line 2110 of file CoreDebug.cs.

2111 {
2112 if (!CheatEnabled())
2113 {
2114 return EnableCheat;
2115 }
2116 EClass.game.principal.modified.Clear();
2117 return "Done.";
2118 }
HashSet< string > modified
GamePrincipal principal
Definition: Game.cs:225

References EClass.game, GamePrincipal.modified, and Game.principal.

◆ Resource()

static string CoreDebug.Resource ( )
inlinestatic

Definition at line 2364 of file CoreDebug.cs.

2365 {
2366 if (!CheatEnabled())
2367 {
2368 return EnableCheat;
2369 }
2371 return "Resources spawned.";
2372 }
void SpawnCheatContainer()
Definition: CoreDebug.cs:802

References EClass.debug, and SpawnCheatContainer().

◆ Rust()

static string CoreDebug.Rust ( )
inlinestatic

Definition at line 2181 of file CoreDebug.cs.

2182 {
2183 if (!CheatEnabled())
2184 {
2185 return EnableCheat;
2186 }
2187 EClass.pc.things.Foreach(delegate(Thing t)
2188 {
2189 t.ModEncLv(-100);
2190 });
2191 return "Done.";
2192 }
void ModEncLv(int a)
Definition: Card.cs:3900

References ThingContainer.Foreach(), Card.ModEncLv(), EClass.pc, and Card.things.

◆ SetElement()

static string CoreDebug.SetElement ( string  alias,
int  value,
int  potential = 100 
)
inlinestatic

Definition at line 2003 of file CoreDebug.cs.

2004 {
2005 if (!CheatEnabled())
2006 {
2007 return EnableCheat;
2008 }
2009 SourceElement.Row row = EClass.sources.elements.alias.TryGetValue(alias);
2010 if (row == null)
2011 {
2012 return "Element not found.";
2013 }
2014 if (row.type == "Feat")
2015 {
2016 EClass.pc.SetFeat(row.id, value, msg: true);
2017 }
2018 else
2019 {
2020 EClass.pc.elements.SetBase(row.id, value, potential);
2021 }
2022 return "Done.";
2023 }
void SetFeat(int id, int value=1, bool msg=false)
Definition: Chara.cs:10059

References Card.elements, SourceManager.elements, SourceElement.Row.id, EClass.pc, ElementContainer.SetBase(), Chara.SetFeat(), EClass.sources, and SourceElement.Row.type.

◆ SetStartStockpile()

void CoreDebug.SetStartStockpile ( Thing  container,
int  num = 100 
)
inline

Definition at line 730 of file CoreDebug.cs.

731 {
732 LittlePopper.skipPop = true;
733 foreach (SourceMaterial.Row row in EClass.sources.materials.rows)
734 {
735 if (!(row.alias == "void") && (!randomResource || EScriptable.rnd(4) == 0))
736 {
737 row.CreateByProduct(container, num);
738 }
739 }
740 foreach (SourceThing.Row row2 in EClass.sources.things.rows)
741 {
742 if ((row2.factory.IsEmpty() || !(row2.factory[0] == "x")) && !row2.isOrigin && row2.Category.tag.Contains("debug"))
743 {
744 Thing thing = ThingGen.Create(row2.id);
745 if (thing.trait.CanStack)
746 {
747 thing.ModNum(num);
748 }
749 container.AddThing(thing);
750 }
751 }
752 for (int i = 0; i < 10; i++)
753 {
754 container.AddThing(TraitSeed.MakeRandomSeed());
755 }
756 LittlePopper.skipPop = false;
757 }
void ModNum(int a, bool notify=true)
Definition: Card.cs:3569
bool randomResource
Definition: CoreDebug.cs:175
SourceMaterial materials
static Thing MakeRandomSeed(bool enc=false)
Definition: TraitSeed.cs:192
virtual bool CanStack
Definition: Trait.cs:163

References Card.AddThing(), Trait.CanStack, ThingGen.Create(), TraitSeed.MakeRandomSeed(), SourceManager.materials, Card.ModNum(), randomResource, EScriptable.rnd(), EClass.sources, SourceManager.things, and Card.trait.

Referenced by EnableDebugResource().

◆ Spawn()

static string CoreDebug.Spawn ( string  id,
int  num = 1,
string  aliasMat = "",
int  objLv = -1 
)
inlinestatic

Definition at line 2041 of file CoreDebug.cs.

2042 {
2043 if (!CheatEnabled())
2044 {
2045 return EnableCheat;
2046 }
2047 if (EClass.sources.things.map.ContainsKey(id))
2048 {
2049 Thing thing = ThingGen.Create(id, -1, objLv).SetNum(num);
2050 if (!aliasMat.IsEmpty())
2051 {
2052 thing.ChangeMaterial(aliasMat);
2053 }
2054 EClass._zone.AddCard(thing, EClass.pc.pos);
2055 return "Spawned " + thing.Name;
2056 }
2057 if (EClass.sources.charas.map.ContainsKey(id))
2058 {
2059 Chara chara = CharaGen.Create(id);
2060 if (objLv != -1)
2061 {
2062 chara.SetLv(objLv);
2063 }
2064 EClass._zone.AddCard(chara, EClass.pc.pos);
2065 return "Spawned " + chara.Name;
2066 }
2067 return "'" + id + "' does not exist in the database.";
2068 }
string Name
Definition: Card.cs:2165

References EClass._zone, Zone.AddCard(), Card.ChangeMaterial(), SourceManager.charas, ThingGen.Create(), CharaGen.Create(), Card.Name, EClass.pc, Card.pos, Card.SetLv(), Card.SetNum(), EClass.sources, and SourceManager.things.

◆ SpawnBoss()

static string CoreDebug.SpawnBoss ( string  id)
inlinestatic

Definition at line 2026 of file CoreDebug.cs.

2027 {
2028 if (!CheatEnabled())
2029 {
2030 return EnableCheat;
2031 }
2032 if (EClass.sources.charas.map.ContainsKey(id))
2033 {
2035 return "Spawned " + chara.Name;
2036 }
2037 return "'" + id + "' does not exist in the database.";
2038 }
static SpawnSetting Boss(int filterLv, int fixedLv=-1)
Definition: SpawnSetting.cs:47
Chara SpawnMob(string id, Point pos=null)
Definition: Zone.cs:2775

References EClass._zone, SpawnSetting.Boss(), SourceManager.charas, Point.GetNearestPoint(), Card.Name, EClass.pc, Card.pos, EClass.sources, and Zone.SpawnMob().

◆ SpawnCheatContainer()

void CoreDebug.SpawnCheatContainer ( )
inline

Definition at line 802 of file CoreDebug.cs.

803 {
804 }

Referenced by Resource().

◆ Stats()

static string CoreDebug.Stats ( )
inlinestatic

Definition at line 2311 of file CoreDebug.cs.

2312 {
2313 return string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat("" + "Fish Stolen: " + EClass.player.flags.fishStolen + Environment.NewLine, "Little Saved: ", EClass.player.little_saved.ToString(), Environment.NewLine), "Little Lost: ", EClass.player.little_dead.ToString(), Environment.NewLine), "Angry Cats: ", EClass.player.stats.angryCats.ToString(), Environment.NewLine), "Love Made: ", EClass.player.stats.kimo.ToString(), Environment.NewLine), "Nefia Beaten: ", EClass.player.stats.nefiaBeaten.ToString(), Environment.NewLine), "Sheared: ", EClass.player.stats.shear.ToString(), Environment.NewLine), "Brushed: ", EClass.player.stats.brush.ToString(), Environment.NewLine), "Egg Hatched: ", EClass.player.stats.eggHatched.ToString(), Environment.NewLine), "Plowed: ", EClass.player.stats.plow.ToString(), Environment.NewLine), "Cleaned: ", EClass.player.stats.clean.ToString(), Environment.NewLine), "Unpaid Bill: ", EClass.player.unpaidBill.ToString(), Environment.NewLine), "Statue Shipped: ", EClass.player.flags.statueShipped.ToString(), Environment.NewLine);
2314 }
int fishStolen
Definition: Player.cs:718
bool statueShipped
Definition: Player.cs:442
long eggHatched
Definition: Player.cs:195
long nefiaBeaten
Definition: Player.cs:147
long plow
Definition: Player.cs:207
long brush
Definition: Player.cs:183
long kimo
Definition: Player.cs:159
long clean
Definition: Player.cs:219
int angryCats
Definition: Player.cs:135
long shear
Definition: Player.cs:171
Stats stats
Definition: Player.cs:1039
int little_dead
Definition: Player.cs:949
int unpaidBill
Definition: Player.cs:934
int little_saved
Definition: Player.cs:952

References Player.Stats.angryCats, Player.Stats.brush, Player.Stats.clean, Player.Stats.eggHatched, Player.Flags.fishStolen, Player.flags, Player.Stats.kimo, Player.little_dead, Player.little_saved, Player.Stats.nefiaBeaten, EClass.player, Player.Stats.plow, Player.Stats.shear, Player.stats, Player.Flags.statueShipped, and Player.unpaidBill.

◆ Test_Filter()

void CoreDebug.Test_Filter ( )
inline

Definition at line 1776 of file CoreDebug.cs.

1777 {
1778 bilinear = !bilinear;
1779 MeshPass[] passes = EClass.scene.passes;
1780 for (int i = 0; i < passes.Length; i++)
1781 {
1782 passes[i].mat.GetTexture("_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1783 }
1784 }
bool bilinear
Definition: CoreDebug.cs:278
Material mat
Definition: MeshPass.cs:21
MeshPass[] passes
Definition: Scene.cs:121

References MeshPass.mat, Scene.passes, and EClass.scene.

◆ Test_GodTalk()

void CoreDebug.Test_GodTalk ( )
inline

Definition at line 1745 of file CoreDebug.cs.

1746 {
1747 foreach (Religion value in EClass.game.religions.dictAll.Values)
1748 {
1749 value.Talk("test");
1750 }
1751 }
ReligionManager religions
Definition: Game.cs:159
Dictionary< string, Religion > dictAll
void Talk(string idTalk, Card c=null, Card agent=null)
Definition: Religion.cs:154

References ReligionManager.dictAll, EClass.game, Game.religions, and Religion.Talk().

◆ Test_Grow()

void CoreDebug.Test_Grow ( )
inline

Definition at line 1727 of file CoreDebug.cs.

1728 {
1729 EClass._map.ForeachCell(delegate(Cell c)
1730 {
1731 if (c.sourceObj.HasGrowth)
1732 {
1733 c.TryGrow();
1734 }
1735 });
1736 foreach (Thing item in EClass._map.things.Copy())
1737 {
1738 if (item.trait is TraitSeed traitSeed)
1739 {
1740 traitSeed.TrySprout(force: true);
1741 }
1742 }
1743 }
SourceObj.Row sourceObj
Definition: Cell.cs:1072

References EClass._map, Map.ForeachCell(), item, Cell.sourceObj, and Map.things.

◆ Test_Siege()

void CoreDebug.Test_Siege ( )
inline

Definition at line 1806 of file CoreDebug.cs.

1807 {
1808 if (EClass._zone.events.GetEvent<ZoneEventSiege>() == null)
1809 {
1811 }
1812 else
1813 {
1815 }
1816 }
void Add(ZoneEvent e, bool allowDuplicate=false)
void Remove(ZoneEvent e)
ZoneEventManager events
Definition: Zone.cs:40

References EClass._zone, ZoneEventManager.Add(), Zone.events, and ZoneEventManager.Remove().

◆ Test_SiegeGuard()

void CoreDebug.Test_SiegeGuard ( )
inline

Definition at line 1794 of file CoreDebug.cs.

1795 {
1796 if (EClass._zone.events.GetEvent<ZoneEventSiegeGuard>() == null)
1797 {
1799 }
1800 else
1801 {
1803 }
1804 }

References EClass._zone, ZoneEventManager.Add(), Zone.events, and ZoneEventManager.Remove().

◆ TestSpawn()

static string CoreDebug.TestSpawn ( int  lv,
int  num,
int  lvRange = -1 
)
inlinestatic

Definition at line 2071 of file CoreDebug.cs.

2072 {
2073 if (!CheatEnabled())
2074 {
2075 return EnableCheat;
2076 }
2077 if (EClass._zone is Zone_Arena)
2078 {
2079 EClass._zone._dangerLv = lv;
2080 }
2081 foreach (Chara item in EClass._map.charas.Where((Chara c) => c.HasEditorTag(EditorTag.SpawnTest)).ToList())
2082 {
2083 item.Destroy();
2084 }
2085 for (int i = 0; i < num; i++)
2086 {
2087 EClass._zone.SpawnMob(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: false, ignoreCenter: true), new SpawnSetting
2088 {
2089 filterLv = lv,
2090 levelRange = lvRange
2091 }).AddEditorTag(EditorTag.SpawnTest);
2092 }
2093 return "Spawned.";
2094 }
EditorTag
Definition: EditorTag.cs:2
void AddEditorTag(EditorTag tag)
Definition: Card.cs:2633
bool HasEditorTag(EditorTag tag)
Definition: Card.cs:2628

References EClass._map, EClass._zone, Card.AddEditorTag(), Map.charas, Point.GetNearestPoint(), Card.HasEditorTag(), item, EClass.pc, Card.pos, and Zone.SpawnMob().

◆ ToggleRevealMap()

void CoreDebug.ToggleRevealMap ( )
inline

Definition at line 2387 of file CoreDebug.cs.

2388 {
2390 if (revealMap)
2391 {
2393 }
2394 SE.ClickGeneral();
2395 }
bool revealMap
Definition: CoreDebug.cs:154
void RevealAll(bool reveal=true)
Definition: Map.cs:905

References EClass._map, and Map.RevealAll().

Referenced by HotItemContext.Show().

◆ UpdateAlways()

void CoreDebug.UpdateAlways ( )
inline

Definition at line 806 of file CoreDebug.cs.

807 {
808 if (!EClass.debug.enable || (bool)EClass.ui.GetLayer<LayerConsole>())
809 {
810 return;
811 }
812 if (Input.GetKeyDown(KeyCode.B))
813 {
815 }
816 if (Input.GetKeyDown(KeyCode.P))
817 {
819 }
820 if (Input.GetKeyDown(KeyCode.F11))
821 {
822 if (Application.isEditor)
823 {
824 EClass.core.SetLang((Lang.langCode == "EN") ? "JP" : "EN");
825 }
826 else
827 {
829 }
830 NewsList.dict = null;
831 BookList.dict = null;
832 BottleMessageList.list = null;
833 }
835 {
836 if (Input.GetKeyDown(KeyCode.U))
837 {
839 Msg.SayRaw(offset.ToString() ?? "");
840 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
841 }
842 if (Input.GetKeyDown(KeyCode.I))
843 {
845 Msg.SayRaw(offset.ToString() ?? "");
846 EClass.screen.tileMap.rendererInnerBlock.offset = new Vector3(0f, 0.54f, -0.5f);
847 }
848 }
849 }
ID_Achievement
BaseTileMap tileMap
RenderData rendererInnerBlock
Definition: BaseTileMap.cs:203
bool IsGameStarted
Definition: Core.cs:84
void SetLang(string langCode, bool force=false)
Definition: Core.cs:708
static BaseGameScreen screen
Definition: EClass.cs:33
Definition: Lang.cs:6
static string langCode
Definition: Lang.cs:28
Definition: Msg.cs:5
static string SayRaw(string text)
Definition: Msg.cs:118
Vector3 offset
Definition: RenderData.cs:18
void ImportSourceTexts()
static void GetAchievement(ID_Achievement id)
Definition: Steam.cs:51
static void TryShowTip(Transform root=null, bool highlight=true, bool ignoreWhenRightClick=true)
Definition: UIButton.cs:778

References EClass.core, EClass.debug, enable, Steam.GetAchievement(), SourceManager.ImportSourceTexts(), Core.IsGameStarted, Lang.langCode, RenderData.offset, BaseTileMap.rendererInnerBlock, Msg.SayRaw(), EClass.screen, Core.SetLang(), EClass.sources, BaseGameScreen.tileMap, UIButton.TryShowTip(), and EClass.ui.

Referenced by Core.Update().

◆ UpdateInput()

void CoreDebug.UpdateInput ( )
inline

Definition at line 861 of file CoreDebug.cs.

862 {
863 if (!debugInput || EInput.isInputFieldActive || (bool)EClass.ui.GetLayer<LayerConsole>())
864 {
865 return;
866 }
867 bool key = Input.GetKey(KeyCode.LeftShift);
868 bool key2 = Input.GetKey(KeyCode.LeftAlt);
869 bool key3 = Input.GetKey(KeyCode.LeftControl);
870 TraitStairs traitStairs = null;
871 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Period)))
872 {
874 if (traitStairsLocked != null && EClass._zone.CanUnlockExit)
875 {
876 traitStairsLocked.OnUse(EClass.pc);
877 }
878 }
879 if (Input.GetKeyDown(KeyCode.KeypadPlus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Period)))
880 {
881 traitStairs = EClass._map.FindThing<TraitStairsDown>();
882 }
883 if (Input.GetKeyDown(KeyCode.KeypadMinus) || (EInput.isShiftDown && Input.GetKeyDown(KeyCode.Comma)))
884 {
885 traitStairs = EClass._map.FindThing<TraitStairsUp>();
886 }
887 traitStairs?.MoveZone();
888 if (EInput.action == EAction.ShowGrid)
889 {
890 EClass.ui.Find("_Guide").ToggleActive();
891 }
892 if (Input.GetKey(KeyCode.N))
893 {
894 if (key)
895 {
896 SoundManager.current.sourceBGM.pitch = 10f;
897 }
898 if (key3)
899 {
900 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
901 }
902 }
903 else if (Input.GetKeyUp(KeyCode.N))
904 {
905 SoundManager.current.sourceBGM.pitch = 1f;
906 }
908 {
909 string text = "festival";
910 if (Input.GetKeyDown(KeyCode.F1))
911 {
912 EClass.ui.AddLayer<LayerDebug>();
913 }
914 if (Input.GetKeyDown(KeyCode.F2))
915 {
916 Zone.forceRegenerate = true;
918 EClass.scene.Init(Scene.Mode.Zone);
920 SE.MoveZone();
921 }
922 if (Input.GetKeyDown(KeyCode.F4))
923 {
924 if (!MapSubset.Exist(text))
925 {
926 SE.Beep();
927 return;
928 }
929 Zone.forceRegenerate = true;
930 Zone.forceSubset = text;
932 EClass.scene.Init(Scene.Mode.Zone);
934 SE.MoveZone();
935 EClass.ui.Say("Loaded Subset");
936 }
937 if (Input.GetKeyDown(KeyCode.F5))
938 {
939 MapSubset.Save(text);
940 SE.WriteJournal();
941 EClass.ui.Say("Exported Subset");
942 }
943 return;
944 }
945 if (Input.GetKeyDown(KeyCode.F1))
946 {
947 EClass.ui.AddLayer<LayerDebug>();
948 Debug.Log(EClass._zone);
949 Debug.Log(EClass._zone.id + "/" + EClass._zone.parent);
951 }
952 if (Input.GetKeyDown(KeyCode.F2))
953 {
954 EClass._zone.development += 10;
955 EClass._zone.development *= EClass._zone.development;
957 if (targetChara != null)
958 {
959 EClass.pc.Pick(targetChara.MakeEgg(effect: true, 10));
960 EClass.pc.Pick(targetChara.MakeGene());
961 TraitFoodEggFertilized.Incubate(targetChara.MakeEgg(effect: false, 1, addToZone: false, 100), targetChara.pos.GetNearestPoint(allowBlock: false, allowChara: false));
962 targetChara.ScaleByPrincipal();
963 }
964 if (EClass.game.quests.Get<QuestDebt>() == null)
965 {
966 Chara chara = CharaGen.Create("loytel");
968 chara.SetGlobal();
969 Quest q = EClass.game.quests.Add("debt", "loytel");
972 Hostility hostility2 = (chara.c_originalHostility = Hostility.Ally);
973 chara.hostility = hostility2;
974 }
975 return;
976 }
977 if (Input.GetKeyDown(KeyCode.F3))
978 {
979 for (int i = 0; i < 10; i++)
980 {
981 Thing thing = ThingGen.Create("egg_fertilized");
982 thing.TryMakeRandomItem(40);
983 thing.SetEncLv(200);
984 EClass.pc.Pick(thing);
985 }
986 foreach (Chara deadChara in EClass._map.deadCharas)
987 {
988 Debug.Log(deadChara);
989 }
992 Msg.Say("loytelmart:" + EClass.player.flags.loytelMartLv);
993 Guild.Fighter.relation.rank = 20;
994 Guild.Mage.relation.rank = 20;
995 Guild.Thief.relation.rank = 20;
996 Guild.Merchant.relation.rank = 20;
997 if (EClass.Branch != null)
998 {
1000 }
1001 foreach (Chara item in EClass._map.charas.ToList())
1002 {
1003 item.AddExp(item.ExpToNext);
1004 item.Vomit();
1005 }
1006 EClass.pc.PlayEffect("boost");
1007 EClass.pc.PlaySound("boost");
1008 EClass.pc.elements.SetBase(306, 100);
1009 EClass.pc.elements.SetBase(85, 100);
1010 EClass.pc.feat += 10;
1011 EClass.player.totalFeat += 10;
1012 return;
1013 }
1014 if (Input.GetKeyDown(KeyCode.F4))
1015 {
1016 string text2 = new string[4] { "エターナルフォースブリザード", "Eternal Force Blizzard", "ぬるぽ", "Null Pointer" }.RandomItem();
1017 EClass.pc.renderer.Say("| " + text2 + " ");
1018 return;
1019 }
1020 if (Input.GetKeyDown(KeyCode.F5))
1021 {
1022 string text3 = (Input.GetKey(KeyCode.LeftControl) ? "quick3" : (Input.GetKey(KeyCode.LeftShift) ? "quick2" : "quick"));
1023 if (text3 != Game.id)
1024 {
1027 Game.id = text3;
1028 }
1029 EClass.game.isCloud = false;
1030 EClass.game.Save();
1031 }
1032 if (Input.GetKeyDown(KeyCode.F6))
1033 {
1035 {
1036 string id = (Input.GetKey(KeyCode.LeftControl) ? "quick3" : (Input.GetKey(KeyCode.LeftShift) ? "quick2" : "quick"));
1037 EClass.scene.Init(Scene.Mode.None);
1038 Game.Load(id, cloud: false);
1039 });
1040 }
1041 if (Input.GetKeyDown(KeyCode.F7))
1042 {
1043 MiniGame.Activate(MiniGame.Type.Scratch);
1044 return;
1045 }
1046 if (Input.GetKeyDown(KeyCode.F8))
1047 {
1048 SE.Click();
1050 runtimeGodBuild = true;
1053 }
1054 if (key3)
1055 {
1056 if (Input.GetKeyDown(KeyCode.F9))
1057 {
1059 if (indexResolution >= resolutions.Count)
1060 {
1061 indexResolution = 0;
1062 }
1063 int[] array = resolutions[indexResolution];
1064 int width = array[0];
1065 int height = array[1];
1066 Screen.SetResolution(width, height, key);
1067 WidgetFeed.Instance?.Nerun(width + "/" + height);
1068 }
1069 if (Input.GetKeyDown(KeyCode.F10))
1070 {
1071 int width2 = Screen.width;
1072 int height2 = width2 / 16 * 9;
1073 Screen.SetResolution(width2, height2, key);
1074 WidgetFeed.Instance?.Nerun(width2 + "/" + height2);
1075 }
1076 }
1077 else
1078 {
1079 Input.GetKeyDown(KeyCode.F9);
1080 if (Input.GetKey(KeyCode.F9))
1081 {
1082 EClass.scene.paused = false;
1083 for (int j = 0; j < advanceMin; j++)
1084 {
1086 }
1088 }
1089 if (Input.GetKeyDown(KeyCode.F10))
1090 {
1091 switch (EScriptable.rnd(5))
1092 {
1093 case 0:
1095 break;
1096 case 1:
1098 break;
1099 case 2:
1101 break;
1102 default:
1104 break;
1105 }
1106 }
1107 }
1108 if (Input.GetKeyDown(KeyCode.N) && !EInput.isShiftDown && !EInput.isCtrlDown)
1109 {
1110 EClass.Sound.NextBGM();
1111 }
1112 if (Input.GetKeyDown(KeyCode.Tab))
1113 {
1114 if (key)
1115 {
1116 EClass.ui.AddLayer<LayerConsole>();
1117 }
1118 else
1119 {
1120 EClass.ui.widgets.Toggle("Debug");
1121 }
1122 }
1123 Point hitPoint = Scene.HitPoint;
1124 if (!hitPoint.IsValid || EClass.ui.IsActive)
1125 {
1126 return;
1127 }
1128 if (hitPoint.detail != null)
1129 {
1130 _ = hitPoint.area;
1131 }
1132 if (hitPoint.detail?.things == null)
1133 {
1134 new List<Thing>();
1135 }
1136 if (hitPoint.detail?.charas == null)
1137 {
1138 new List<Chara>();
1139 }
1140 List<Card> list = hitPoint.ListCards();
1141 if (Input.GetMouseButtonDown(2))
1142 {
1143 if (EClass.core.releaseMode != 0)
1144 {
1145 if (key)
1146 {
1147 EClass._zone.SpawnMob(hitPoint);
1148 }
1149 else if (key3)
1150 {
1151 EClass._zone.SpawnMob(hitPoint);
1152 }
1153 else if (key2)
1154 {
1155 EClass._zone.SpawnMob(hitPoint);
1156 }
1157 }
1158 return;
1159 }
1160 if (key2)
1161 {
1162 if (Input.GetMouseButtonDown(0))
1163 {
1164 foreach (Card item2 in list)
1165 {
1166 Debug.Log(item2.Name + "/" + item2.dir + "/" + item2.flipX + "/" + item2.angle);
1167 }
1168 }
1169 if (Input.GetMouseButtonDown(1))
1170 {
1171 if (key)
1172 {
1173 EClass._map.charas.ForeachReverse(delegate(Chara c)
1174 {
1175 if (c.IsHostile(EClass.pc))
1176 {
1177 c.DamageHP(999999999L, AttackSource.Finish, EClass.pc);
1178 }
1179 });
1180 }
1181 else if (hitPoint.detail != null)
1182 {
1183 for (int num = hitPoint.detail.charas.Count - 1; num >= 0; num--)
1184 {
1185 hitPoint.detail.charas[num].DamageHP(999999999L, AttackSource.Finish, EClass.pc);
1186 }
1187 }
1188 EInput.Consume();
1189 }
1190 }
1191 if (Input.GetKeyDown(KeyCode.Delete))
1192 {
1193 if (Input.GetKey(KeyCode.RightControl))
1194 {
1195 return;
1196 }
1197 if (key)
1198 {
1199 foreach (Card item3 in EClass._map.Roaming.all)
1200 {
1201 EClass._zone.RemoveCard(item3);
1202 }
1203 }
1204 else if (hitPoint.detail != null)
1205 {
1206 for (int num2 = hitPoint.detail.things.Count - 1; num2 >= 0; num2--)
1207 {
1208 hitPoint.detail.things[num2].Destroy();
1209 }
1210 if (hitPoint.detail != null)
1211 {
1212 for (int num3 = hitPoint.detail.charas.Count - 1; num3 >= 0; num3--)
1213 {
1214 hitPoint.detail.charas[num3].Destroy();
1215 }
1216 }
1217 }
1218 }
1219 if (Input.GetKeyDown(KeyCode.End) && hitPoint.detail != null)
1220 {
1221 for (int num4 = hitPoint.detail.things.Count - 1; num4 >= 0; num4--)
1222 {
1223 Thing thing2 = hitPoint.detail.things[num4];
1224 Debug.Log(thing2.id + "/" + thing2.Pref.height + "/" + thing2.trait?.ToString() + "/" + thing2.source.tileType.CanStack + "/" + thing2.source.tileType?.ToString() + "/" + thing2.isSynced + "/" + RenderObject.syncList.Contains(thing2.renderer));
1225 }
1226 }
1227 if (!Application.isEditor)
1228 {
1229 return;
1230 }
1231 switch (debugHotkeys)
1232 {
1233 case DebugHotkey.Anime:
1234 {
1235 int num5 = -1;
1236 if (Input.GetKeyDown(KeyCode.Alpha0))
1237 {
1238 num5 = 0;
1239 }
1240 if (Input.GetKeyDown(KeyCode.Alpha1))
1241 {
1242 num5 = 1;
1243 }
1244 if (Input.GetKeyDown(KeyCode.Alpha2))
1245 {
1246 num5 = 2;
1247 }
1248 if (Input.GetKeyDown(KeyCode.Alpha3))
1249 {
1250 num5 = 3;
1251 }
1252 if (Input.GetKeyDown(KeyCode.Alpha4))
1253 {
1254 num5 = 4;
1255 }
1256 if (Input.GetKeyDown(KeyCode.Alpha5))
1257 {
1258 num5 = 5;
1259 }
1260 if (Input.GetKeyDown(KeyCode.Alpha6))
1261 {
1262 num5 = 6;
1263 }
1264 if (Input.GetKeyDown(KeyCode.Alpha7))
1265 {
1266 num5 = 7;
1267 }
1268 if (Input.GetKeyDown(KeyCode.Alpha8))
1269 {
1270 num5 = 8;
1271 }
1272 if (Input.GetKeyDown(KeyCode.Alpha9))
1273 {
1274 num5 = 9;
1275 }
1276 if (num5 == -1)
1277 {
1278 break;
1279 }
1280 foreach (Card item4 in hitPoint.ListCards())
1281 {
1282 item4.renderer.PlayAnime(num5.ToEnum<AnimeID>());
1283 }
1284 Debug.Log(num5.ToEnum<AnimeID>());
1285 break;
1286 }
1287 case DebugHotkey.Block:
1288 if (Input.GetKeyDown(KeyCode.Alpha1))
1289 {
1290 EClass._map.SetLiquid(hitPoint.x, hitPoint.z, 1, 9);
1291 }
1292 if (Input.GetKeyDown(KeyCode.Alpha2))
1293 {
1294 EClass._map.SetLiquid(hitPoint.x, hitPoint.z, 2, 9);
1295 }
1296 break;
1297 case DebugHotkey.Item:
1298 if (Input.GetKeyDown(KeyCode.Alpha1))
1299 {
1300 Thing thing3 = ThingGen.Create("stairsDown_cave");
1301 EClass._zone.AddCard(thing3, EClass.pc.pos);
1302 thing3.SetPlaceState(PlaceState.installed);
1303 }
1304 if (Input.GetKeyDown(KeyCode.Alpha2))
1305 {
1306 Thing thing4 = ThingGen.Create("stairs");
1307 EClass._zone.AddCard(thing4, EClass.pc.pos);
1308 thing4.SetPlaceState(PlaceState.installed);
1309 }
1310 if (Input.GetKeyDown(KeyCode.Alpha3))
1311 {
1312 Thing thing5 = ThingGen.Create("sign");
1313 EClass._zone.AddCard(thing5, hitPoint);
1314 thing5.SetPlaceState(PlaceState.installed);
1315 }
1316 if (Input.GetKeyDown(KeyCode.Alpha4))
1317 {
1318 Thing thing6 = ThingGen.Create("sign2");
1319 EClass._zone.AddCard(thing6, hitPoint);
1320 thing6.SetPlaceState(PlaceState.installed);
1321 }
1322 if (Input.GetKeyDown(KeyCode.Alpha5))
1323 {
1324 Thing thing7 = ThingGen.Create("well");
1325 EClass._zone.AddCard(thing7, hitPoint);
1326 thing7.SetPlaceState(PlaceState.installed);
1327 }
1328 if (Input.GetKeyDown(KeyCode.Alpha6))
1329 {
1330 Thing thing8 = ThingGen.Create("altar");
1331 EClass._zone.AddCard(thing8, hitPoint);
1332 thing8.SetPlaceState(PlaceState.installed);
1333 }
1334 if (Input.GetKeyDown(KeyCode.Alpha7))
1335 {
1336 Thing t = ThingGen.Create("torch");
1337 EClass._zone.AddCard(t, hitPoint);
1338 }
1339 if (Input.GetKeyDown(KeyCode.Alpha8))
1340 {
1341 Thing t2 = ThingGen.Create("street_lamp");
1342 EClass._zone.AddCard(t2, hitPoint);
1343 }
1344 if (Input.GetKeyDown(KeyCode.Alpha9))
1345 {
1346 Thing t3 = ThingGen.Create("statue_elin");
1347 EClass._zone.AddCard(t3, hitPoint);
1348 }
1349 if (Input.GetKeyDown(KeyCode.Alpha0))
1350 {
1351 Thing t4 = ThingGen.TestCreate();
1352 EClass._zone.AddCard(t4, hitPoint);
1353 }
1354 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1355 {
1356 Chara t5 = CharaGen.Create("korgon");
1357 EClass._zone.AddCard(t5, hitPoint);
1358 }
1359 break;
1360 case DebugHotkey.Decal:
1361 if (Input.GetKeyDown(KeyCode.Alpha1))
1362 {
1363 EClass._map.AddDecal(hitPoint.x, hitPoint.z, EClass.pc.material.decal);
1364 }
1365 if (!Input.GetKeyDown(KeyCode.Alpha2))
1366 {
1367 }
1368 break;
1369 case DebugHotkey.Test:
1370 if (Input.GetKeyDown(KeyCode.Alpha1))
1371 {
1372 QualitySettings.vSyncCount = 0;
1373 Application.targetFrameRate = 60;
1374 }
1375 if (Input.GetKeyDown(KeyCode.Alpha2))
1376 {
1377 QualitySettings.vSyncCount = 0;
1378 Application.targetFrameRate = 20;
1379 }
1380 if (Input.GetKeyDown(KeyCode.Alpha3))
1381 {
1382 QualitySettings.vSyncCount = 0;
1383 Application.targetFrameRate = 30;
1384 }
1385 if (Input.GetKeyDown(KeyCode.Alpha4))
1386 {
1387 QualitySettings.vSyncCount = 0;
1388 Application.targetFrameRate = 40;
1389 }
1390 break;
1391 }
1392 Card card = (Card)(((object)hitPoint.FirstChara) ?? ((object)hitPoint.FirstThing));
1393 if (card == null)
1394 {
1395 return;
1396 }
1397 CharaActorPCC charaActorPCC = (card.renderer.actor as CharaActor) as CharaActorPCC;
1398 if ((bool)charaActorPCC)
1399 {
1400 if (Input.GetKeyDown(KeyCode.Keypad0))
1401 {
1402 charaActorPCC.NextFrame();
1403 charaActorPCC.RefreshSprite();
1404 }
1405 if (Input.GetKeyDown(KeyCode.Keypad1))
1406 {
1407 charaActorPCC.NextDir();
1408 card.angle = charaActorPCC.provider.angle;
1409 charaActorPCC.RefreshSprite();
1410 }
1411 if (Input.GetKeyDown(KeyCode.Keypad2))
1412 {
1413 charaActorPCC.pcc.data.Randomize();
1414 charaActorPCC.provider.Rebuild();
1415 }
1416 }
1417 if (Input.GetKeyDown(KeyCode.Keypad4))
1418 {
1419 lastEmo = lastEmo.NextEnum();
1420 card.ShowEmo();
1421 card.ShowEmo(lastEmo);
1422 }
1423 if (Input.GetKeyDown(KeyCode.Keypad5))
1424 {
1425 card.ShowEmo();
1426 card.ShowEmo(lastEmo);
1427 }
1428 if (Input.GetKeyDown(KeyCode.Keypad7))
1429 {
1430 lastAnime = lastAnime.NextEnum();
1431 card.renderer.PlayAnime(lastAnime);
1432 }
1433 if (Input.GetKeyDown(KeyCode.Keypad8))
1434 {
1435 card.renderer.PlayAnime(lastAnime);
1436 animeDest = card;
1437 }
1438 if (Input.GetKeyDown(KeyCode.Keypad9))
1439 {
1440 card.renderer.PlayAnime(AnimeID.Attack, animeDest);
1441 }
1442 }
AnimeID
Definition: AnimeID.cs:2
AttackSource
Definition: AttackSource.cs:2
EAction
Definition: EAction.cs:2
Hostility
Definition: Hostility.cs:2
void Activate(Thing t)
static AM_Inspect Inspect
Definition: ActionMode.cs:23
void Deactivate()
Definition: ActionMode.cs:529
virtual bool IsBuildMode
Definition: ActionMode.cs:181
void WaitForEndOfFrame(Action action)
Definition: BaseCore.cs:61
ReleaseMode releaseMode
Definition: BaseCore.cs:23
void PlayAnime(AnimeID id, bool force)
void Say(string text, Color c=default(Color), float duration=0f)
Definition: Card.cs:11
float angle
Definition: Card.cs:72
Thing TryMakeRandomItem(int lv=-1, TryMakeRandomItemSource itemSource=TryMakeRandomItemSource.Default, Chara crafter=null)
Definition: Card.cs:5507
SourceMaterial.Row material
Definition: Card.cs:2077
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:6343
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:6377
void SetEncLv(int a)
Definition: Card.cs:3918
int dir
Definition: Card.cs:147
CardRenderer renderer
Definition: Card.cs:62
virtual bool flipX
Definition: Card.cs:2142
virtual bool isSynced
Definition: Card.cs:2113
Thing MakeEgg(bool effect=true, int num=1, bool addToZone=true, int fertChance=20, BlessedState? state=null)
Definition: Card.cs:5790
List< Thing > things
Definition: CellDetail.cs:11
List< Chara > charas
Definition: CellDetail.cs:13
override void RefreshSprite()
override void NextDir()
override void NextFrame()
SpriteProvider provider
Definition: CharaActorPCC.cs:9
Chara SetGlobal(Zone _home, int x, int z)
Definition: Chara.cs:1505
Chara ScaleByPrincipal()
Definition: Chara.cs:1728
Thing MakeGene(DNA.Type? type=null)
Definition: Chara.cs:8325
bool IsHostile()
Definition: Chara.cs:6646
int indexResolution
Definition: CoreDebug.cs:290
DebugHotkey debugHotkeys
Definition: CoreDebug.cs:143
Card animeDest
Definition: CoreDebug.cs:273
bool debugInput
Definition: CoreDebug.cs:139
bool runtimeGodBuild
Definition: CoreDebug.cs:299
Emo lastEmo
Definition: CoreDebug.cs:294
readonly List< int[]> resolutions
Definition: CoreDebug.cs:266
AnimeID lastAnime
Definition: CoreDebug.cs:292
void EnableDebugResource()
Definition: CoreDebug.cs:788
int advanceMin
Definition: CoreDebug.cs:146
static string RootSave
Definition: CorePath.cs:210
Steam steam
Definition: Core.cs:57
static SoundManager Sound
Definition: EClass.cs:47
Definition: EInput.cs:8
static bool isCtrlDown
Definition: EInput.cs:269
static void Consume(int _skipFrame)
Definition: EInput.cs:662
static bool isInputFieldActive
Definition: EInput.cs:283
static bool isShiftDown
Definition: EInput.cs:267
static EAction action
Definition: EInput.cs:265
void ModExp(int a)
int GetNextExp(int _lv=-1)
void AdvanceMin(int a)
Definition: GameDate.cs:22
void FixedUpdate()
Definition: GameUpdater.cs:436
static void Load(string id, bool cloud)
Definition: Game.cs:322
static string id
Definition: Game.cs:148
bool Save(bool isAutoSave=false, bool silent=false)
Definition: Game.cs:1035
GameUpdater updater
Definition: Game.cs:250
new World world
Definition: Game.cs:177
void ResetHotbar(int id)
Definition: HotbarManager.cs:8
Definition: IO.cs:11
static void DeleteDirectory(string path)
Definition: IO.cs:353
static void CopyAll(string fromPath, string toPath, bool overwrite=true)
Definition: IO.cs:306
static bool Exist(string id)
Definition: MapSubset.cs:17
static void Save(string id)
Definition: MapSubset.cs:22
Thing FindThing(Func< Thing, bool > func)
Definition: Map.cs:2592
void SetLiquid(int x, int z, CellEffect effect=null)
Definition: Map.cs:1477
PropsRoaming Roaming
Definition: Map.cs:125
List< Chara > deadCharas
Definition: Map.cs:46
void AddDecal(int x, int z, int id, int amount=1, bool refresh=true)
Definition: Map.cs:2029
static void Activate(Type type)
Definition: MiniGame.cs:44
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
void RemoveMember(Chara c)
Definition: Party.cs:102
int loytelMartLv
Definition: Player.cs:682
HotbarManager hotbars
Definition: Player.cs:1108
Chara TargetChara
Definition: PointTarget.cs:41
List< Card > ListCards(bool includeMasked=false)
Definition: Point.cs:1051
CellDetail detail
Definition: Point.cs:71
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
Area area
Definition: Point.cs:73
Chara FirstChara
Definition: Point.cs:288
Thing FirstThing
Definition: Point.cs:301
PropSet all
Definition: Props.cs:8
Definition: Quest.cs:7
static List< ISyncScreen > syncList
Definition: RenderObject.cs:24
Definition: Scene.cs:8
static Point HitPoint
Definition: Scene.cs:21
ActionMode actionMode
Definition: Scene.cs:79
PointTarget mouseTarget
Definition: Scene.cs:135
void Init(Mode newMode)
Definition: Scene.cs:178
Mode
Definition: Scene.cs:10
float height
Definition: SourcePref.cs:51
Spatial parent
Definition: Spatial.cs:10
string id
Definition: Spatial.cs:13
int development
Definition: Spatial.cs:238
virtual Point RegionPos
Definition: Spatial.cs:560
void CheckUpdate()
Definition: Steam.cs:32
static Thing TestCreate()
Definition: ThingGen.cs:32
SourceThing.Row source
Definition: Thing.cs:11
override SourcePref Pref
Definition: Thing.cs:50
static Chara Incubate(Thing egg, Point pos, Card incubator=null)
bool MoveZone(bool confirmed=false)
override bool OnUse(Chara c)
void Nerun(string text, string idPortrait="UN_nerun")
Definition: WidgetFeed.cs:93
static WidgetFeed Instance
Definition: WidgetFeed.cs:14
static void OnChangeMode()
GameDate date
Definition: World.cs:6
virtual bool CanUnlockExit
Definition: Zone.cs:279
void RemoveCard(Card t)
Definition: Zone.cs:2034

References EClass._map, EClass._zone, EInput.action, Scene.actionMode, AM_MoveInstalled.Activate(), MiniGame.Activate(), QuestManager.Add(), Zone.AddCard(), Map.AddDecal(), advanceMin, GameDate.AdvanceMin(), Props.all, Card.angle, animeDest, Point.area, EClass.Branch, Zone.CanUnlockExit, card, CellDetail.charas, Map.charas, Steam.CheckUpdate(), EInput.Consume(), EClass.core, ThingGen.Create(), CharaGen.Create(), World.date, ActionMode.Deactivate(), Map.deadCharas, Debug, debugHotkeys, debugInput, Point.detail, Spatial.development, Card.dir, Card.elements, EnableDebugResource(), MapSubset.Exist(), Map.FindThing(), Point.FirstChara, Point.FirstThing, GameUpdater.FixedUpdate(), Player.flags, Card.flipX, EClass.game, QuestManager.Get(), Point.GetNearestPoint(), FactionBranch.GetNextExp(), SourcePref.height, Scene.HitPoint, Player.hotbars, Card.id, Game.id, Spatial.id, TraitFoodEggFertilized.Incubate(), indexResolution, Scene.Init(), ActionMode.Inspect, WidgetFeed.Instance, ActionMode.IsBuildMode, EInput.isCtrlDown, Chara.IsHostile(), EInput.isInputFieldActive, EInput.isShiftDown, Card.isSynced, Point.IsValid, item, lastAnime, lastEmo, Point.ListCards(), Game.Load(), Player.Flags.loytelMartLv, Card.MakeEgg(), Chara.MakeGene(), Card.material, FactionBranch.ModExp(), Scene.mouseTarget, TraitNewZone.MoveZone(), Card.Name, WidgetFeed.Nerun(), CharaActorPCC.NextDir(), CharaActorPCC.NextFrame(), WidgetMenuPanel.OnChangeMode(), TraitStairsLocked.OnUse(), Spatial.parent, Chara.party, EClass.pc, CharaActorPCC.pcc, Chara.Pick(), CardRenderer.PlayAnime(), Card.PlayEffect(), EClass.player, Card.PlaySound(), Card.pos, Thing.Pref, CharaActorPCC.provider, Game.quests, CharaActorPCC.RefreshSprite(), Spatial.RegionPos, BaseCore.releaseMode, Zone.RemoveCard(), Party.RemoveMember(), Card.renderer, HotbarManager.ResetHotbar(), resolutions, EScriptable.rnd(), Map.Roaming, CorePath.RootSave, runtimeGodBuild, Game.Save(), MapSubset.Save(), Msg.Say(), CardRenderer.Say(), Chara.ScaleByPrincipal(), EClass.scene, ElementContainer.SetBase(), Weather.SetCondition(), Card.SetEncLv(), Chara.SetGlobal(), Map.SetLiquid(), Card.SetPlaceState(), EClass.Sound, Thing.source, Zone.SpawnMob(), QuestManager.Start(), Core.steam, RenderObject.syncList, PointTarget.TargetChara, ThingGen.TestCreate(), CellDetail.things, Card.trait, Card.TryMakeRandomItem(), EClass.ui, Game.updater, BaseCore.WaitForEndOfFrame(), World.weather, EClass.world, Game.world, Point.x, and Point.z.

Referenced by ActionMode.UpdateInput().

◆ ValidateData()

void CoreDebug.ValidateData ( )
inline

Definition at line 851 of file CoreDebug.cs.

852 {
854 {
858 }
859 }
PropsInstalled Installed
Definition: Map.cs:123
PropsStocked Stocked
Definition: Map.cs:121
void Validate()
Definition: Props.cs:445

References EClass._map, EClass.core, Map.Installed, Core.IsGameStarted, Map.Roaming, Map.Stocked, and Props.Validate().

◆ ZoneIDs()

IEnumerable< string > CoreDebug.ZoneIDs ( )
inlineprivate

Definition at line 317 of file CoreDebug.cs.

318 {
319 List<SourceZone.Row> rows = EClass.sources.zones.rows;
320 List<string> list = new List<string>();
321 foreach (SourceZone.Row item in rows)
322 {
323 list.Add(item.id);
324 }
325 return list;
326 }
SourceZone zones

References item, EClass.sources, and SourceManager.zones.

Member Data Documentation

◆ _godBuild

bool CoreDebug._godBuild

Definition at line 179 of file CoreDebug.cs.

◆ advanceMin

int CoreDebug.advanceMin

Definition at line 146 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ allAbility

bool CoreDebug.allAbility

Definition at line 191 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allArt

bool CoreDebug.allArt

Definition at line 197 of file CoreDebug.cs.

Referenced by ContentGallery.OnSwitchContent().

◆ allBGM

bool CoreDebug.allBGM

Definition at line 199 of file CoreDebug.cs.

Referenced by LayerEditPlaylist.Refresh().

◆ allHomeSkill

bool CoreDebug.allHomeSkill

Definition at line 195 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allMenu

bool CoreDebug.allMenu

Definition at line 235 of file CoreDebug.cs.

◆ allPolicy

bool CoreDebug.allPolicy

Definition at line 237 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allRecipe

bool CoreDebug.allRecipe

Definition at line 233 of file CoreDebug.cs.

Referenced by RecipeManager.IsKnown(), OnLoad(), and QuickStart().

◆ allSkill

bool CoreDebug.allSkill

Definition at line 193 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allStory

bool CoreDebug.allStory

Definition at line 239 of file CoreDebug.cs.

Referenced by TraitStoryBook.OnRead().

◆ alwaysFavFood

bool CoreDebug.alwaysFavFood

Definition at line 228 of file CoreDebug.cs.

Referenced by Affinity.OnGift().

◆ alwaysResetWindow

bool CoreDebug.alwaysResetWindow

Definition at line 128 of file CoreDebug.cs.

Referenced by ELayer.Kill().

◆ animeDest

Card CoreDebug.animeDest
private

Definition at line 273 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ autoAdvanceQuest

bool CoreDebug.autoAdvanceQuest

◆ autoIdentify

bool CoreDebug.autoIdentify

Definition at line 189 of file CoreDebug.cs.

Referenced by CraftUtil.MakeDarkSoup(), CraftUtil.MakeLoveLunch(), and Thing.OnCreate().

◆ bidx

int CoreDebug.bidx
private

Definition at line 276 of file CoreDebug.cs.

◆ bilinear

bool CoreDebug.bilinear
private

Definition at line 278 of file CoreDebug.cs.

◆ blines

string [] CoreDebug.blines
private

Definition at line 281 of file CoreDebug.cs.

◆ boradcast

bool CoreDebug.boradcast

Definition at line 260 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ command

string CoreDebug.command

Definition at line 136 of file CoreDebug.cs.

Referenced by Core.Awake().

◆ commands

List<DebugCommand> CoreDebug.commands = new List<DebugCommand>()

Definition at line 283 of file CoreDebug.cs.

Referenced by InitDebugCommands(), and LayerDebug.OnSwitchContent().

◆ debugHoard

bool CoreDebug.debugHoard

Definition at line 156 of file CoreDebug.cs.

Referenced by LayerHoard.OnAfterInit().

◆ debugHotkeys

DebugHotkey CoreDebug.debugHotkeys

Definition at line 143 of file CoreDebug.cs.

Referenced by ActionMode.UpdateInput(), and UpdateInput().

◆ debugInput

bool CoreDebug.debugInput

Definition at line 139 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ debugProps

bool CoreDebug.debugProps

Definition at line 152 of file CoreDebug.cs.

◆ debugScatter

bool CoreDebug.debugScatter

Definition at line 177 of file CoreDebug.cs.

◆ dontCompressSave

bool CoreDebug.dontCompressSave

Definition at line 132 of file CoreDebug.cs.

◆ dontUseThread

bool CoreDebug.dontUseThread

Definition at line 122 of file CoreDebug.cs.

Referenced by LayerProgress.Start().

◆ enable

bool CoreDebug.enable

Definition at line 286 of file CoreDebug.cs.

Referenced by InvOwnerRecycle._OnProcess(), AM_Adv._OnUpdateInput(), WidgetDate._Refresh(), WidgetSystemIndicator._Refresh(), ActPlan._Update(), GameDate.AdvanceDay(), DramaCustomSequence.Build(), RecipeCard.Build(), FactionBranch.CanUpgrade(), TraitMannequin.CanUse(), CheatEnabled(), LayerFeedback.CollectFiles(), RecipeManager.ComeUpWithRecipe(), TraitCrafter.Craft(), RecipeCard.Craft(), Player.CreateEquip(), Region.CreateRandomSite(), SpatialGen.CreateRecursive(), Trait.CreateStock(), FactionBranch.DailyOutcome(), WidgetManager.DialogSave(), EnableDebugResource(), Player.EnterLocalZone(), HitSummary.Execute(), ZonePreEnterEncounter.Execute(), Zone.Generate(), DNA.Generate(), FactionBranch.GenerateGarbage(), Net.GetBook(), Net.GetChat(), Thing.GetExtraName(), Religion.GetGiftRank(), Affinity.GetLunchChance(), TraitGeneMachine.GetProgress(), CraftUtil.GetRandomLoveLunchIngredient(), Region.GetRandomSiteSource(), AM_MoveInstalled.HitTest(), CoreConfig.Init(), AM_MoveInstalled.InputWheel(), TraitCrafter.IsIngredient(), Props.ListThingStack(), ActEffect.LoveMiracle(), Card.MakeEgg(), AI_Fish.Makefish(), Card.MakeMilk(), BuildMenu.OnActivate(), WidgetArtTool.OnActivate(), Zone_Specwing.OnActivate(), GlobalGoalAdv.OnAdvanceHour(), Region.OnAdvanceHour(), Trait.OnBarter(), ContentCodex.OnClickAddCards(), Chara.OnCreate(), Game.OnGameInstantiated(), MapGenDungen.OnGenerateTerrain(), LayerMod.OnInit(), LayerNewspaper.OnInit(), SurvivalManager.OnMineWreck(), AI_Fish.ProgressFish.OnProgressComplete(), TaskDig.OnProgressComplete(), TraitDeed.OnRead(), ConSleep.OnRemoved(), TileSelectorElona.OnRenderTile(), HotItemLayer.OnSetItem(), FactionBranch.OnSimulateDay(), ContentQuest.OnSwitchContent(), LayerQuestBoard.OnSwitchContent(), AM_Inspect.OnUpdateInput(), TileSelectorElona.OnUpdateInput(), TraitDaggerGrave.OnUse(), TraitGeneMachine.OnUse(), ZoneEventMusic.OnVisit(), ZoneEventWedding.OnVisit(), DramaManager.ParseLine(), ActRide.Perform(), FoodEffect.Proc(), ActEffect.Proc(), ActEffect.ProcAt(), Map.PutAway(), WindowCharaMini.Refresh(), UIInventory.RefreshMenu(), ContentPolicy.RefreshPolicy(), ContentConfigOther.RefreshRewardCode(), Chara.RestockEquip(), ActionMode.RotateUnderMouse(), AI_Idle.Run(), AI_OpenGambleChest.Run(), AI_PassTime.Run(), AI_PlayMusic.Run(), Net.SendBook(), Net.SendChat(), Card.SetRandomTone(), GameDate.ShipRandomPackages(), HotItemContext.Show(), UI.ShowLang(), Core.StartCase(), UIInventory.SwitchTab(), ActThrow.Throw(), ConDeathSentense.Tick(), ConDisease.Tick(), UI.ToggleFeedback(), Chara.TryDropBossLoot(), TraitCoreDefense.TrySetAct(), TraitEffect.TrySetAct(), TraitElevator.TrySetAct(), TraitHouseBoard.TrySetAct(), TraitMapBoard.TrySetAct(), TraitPaintBoard.TrySetAct(), TraitRoomPlate.TrySetAct(), TraitTeleporter.TrySetAct(), TraitWell.TrySetAct(), AI_Shopping.TryShop(), Zone.TrySpawnFollower(), Chara.TryUpgrade(), LayerHoard.Update(), LayerUploader.Update(), UpdateAlways(), ActionMode.UpdateInput(), Zone.UpdateQuests(), and TraitWrench.Upgrade().

◆ enableMapPieceEditor

bool CoreDebug.enableMapPieceEditor

Definition at line 213 of file CoreDebug.cs.

◆ fixedColor

Color32 CoreDebug.fixedColor

Definition at line 264 of file CoreDebug.cs.

◆ fov

Fov CoreDebug.fov = new Fov()

Definition at line 288 of file CoreDebug.cs.

◆ godCraft

bool CoreDebug.godCraft

◆ godFood

bool CoreDebug.godFood

Definition at line 183 of file CoreDebug.cs.

Referenced by AI_Eat.Run(), Card.SpawnLoot(), and ActSlime.ValidatePerform().

◆ godMode

◆ hidePCItemsInBuild

bool CoreDebug.hidePCItemsInBuild

Definition at line 209 of file CoreDebug.cs.

Referenced by BuildMenu.RefreshCategory().

◆ ignoreAutoSave

bool CoreDebug.ignoreAutoSave

Definition at line 126 of file CoreDebug.cs.

Referenced by LayerSleep.Advance(), Scene.Init(), Chara.MoveZone(), and Game.Save().

◆ ignoreBuildRule

◆ ignoreEncounter

bool CoreDebug.ignoreEncounter

Definition at line 201 of file CoreDebug.cs.

Referenced by Chara.Tick().

◆ ignorePool

bool CoreDebug.ignorePool

Definition at line 117 of file CoreDebug.cs.

Referenced by Core.Update().

◆ ignorePopup

bool CoreDebug.ignorePopup

Definition at line 160 of file CoreDebug.cs.

Referenced by PopupManager.Add().

◆ ignoreWeight

bool CoreDebug.ignoreWeight

◆ indexResolution

int CoreDebug.indexResolution
private

Definition at line 290 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ instaReturn

bool CoreDebug.instaReturn

Definition at line 205 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ inviteAnytime

bool CoreDebug.inviteAnytime

Definition at line 222 of file CoreDebug.cs.

Referenced by Affinity.CanInvite().

◆ keypadDebug

bool CoreDebug.keypadDebug

Definition at line 141 of file CoreDebug.cs.

◆ langCode

Lang.LangCode CoreDebug.langCode

Definition at line 114 of file CoreDebug.cs.

Referenced by Core.Awake().

◆ lastAnime

AnimeID CoreDebug.lastAnime
private

Definition at line 292 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ lastEmo

Emo CoreDebug.lastEmo
private

Definition at line 294 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ logAdv

bool CoreDebug.logAdv

Definition at line 242 of file CoreDebug.cs.

Referenced by GlobalGoalVisitAndStay.OnAdvanceHour().

◆ logCombat

bool CoreDebug.logCombat

Definition at line 245 of file CoreDebug.cs.

Referenced by GoalCombat.Run(), GoalCombat.TryMove(), and GoalCombat.TryUseAbility().

◆ logDice

bool CoreDebug.logDice

Definition at line 247 of file CoreDebug.cs.

Referenced by Check.Perform(), and DramaActor.SetChoice().

◆ marryAnytime

bool CoreDebug.marryAnytime

Definition at line 224 of file CoreDebug.cs.

Referenced by Affinity.CanMarry(), and Affinity.CanSleepBeside().

◆ matColorTest

MatColorTest CoreDebug.matColorTest

Definition at line 258 of file CoreDebug.cs.

◆ maxQuests

bool CoreDebug.maxQuests

Definition at line 230 of file CoreDebug.cs.

◆ naked

bool CoreDebug.naked
private

Definition at line 296 of file CoreDebug.cs.

◆ numResource

int CoreDebug.numResource

Definition at line 217 of file CoreDebug.cs.

Referenced by EnableDebugResource().

◆ param1

int CoreDebug.param1

Definition at line 253 of file CoreDebug.cs.

◆ param2

int CoreDebug.param2

Definition at line 256 of file CoreDebug.cs.

◆ randomResource

bool CoreDebug.randomResource

Definition at line 175 of file CoreDebug.cs.

Referenced by SetStartStockpile().

◆ resetPlayerConfig

bool CoreDebug.resetPlayerConfig

Definition at line 120 of file CoreDebug.cs.

Referenced by WidgetManager.OnGameInstantiated(), and Player.OnLoad().

◆ resolutions

readonly List<int[]> CoreDebug.resolutions
private
Initial value:
= new List<int[]>
{
new int[2] { 1920, 1080 },
new int[2] { 1366, 768 },
new int[2] { 1280, 720 }
}

Definition at line 266 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ returnAnywhere

bool CoreDebug.returnAnywhere

Definition at line 203 of file CoreDebug.cs.

Referenced by SpatialManager.ListReturnLocations(), and Region.ListTravelZones().

◆ revealInner

bool CoreDebug.revealInner

Definition at line 158 of file CoreDebug.cs.

◆ revealMap

bool CoreDebug.revealMap

Definition at line 154 of file CoreDebug.cs.

Referenced by HotItemContext.Show().

◆ runtimeGodBuild

bool CoreDebug.runtimeGodBuild
private

Definition at line 299 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ showExtra

◆ showFav

bool CoreDebug.showFav

Definition at line 226 of file CoreDebug.cs.

Referenced by DramaCustomSequence.Build().

◆ showSceneSelector

bool CoreDebug.showSceneSelector

Definition at line 109 of file CoreDebug.cs.

Referenced by UI.ShowLang(), and Core.StartCase().

◆ showTone

bool CoreDebug.showTone

Definition at line 166 of file CoreDebug.cs.

◆ skipEvent

bool CoreDebug.skipEvent

Definition at line 162 of file CoreDebug.cs.

Referenced by ZoneEventManager.Add().

◆ skipMod

bool CoreDebug.skipMod

Definition at line 134 of file CoreDebug.cs.

Referenced by ModManager.Init(), and ModManager.RefreshMods().

◆ skipModSync

bool CoreDebug.skipModSync

Definition at line 112 of file CoreDebug.cs.

Referenced by Core.StartCase().

◆ skipNerun

bool CoreDebug.skipNerun

Definition at line 164 of file CoreDebug.cs.

Referenced by LayerDrama.ActivateNerun(), and QuickStart().

◆ startHour

int CoreDebug.startHour

Definition at line 102 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startLoadout

StartLoadout CoreDebug.startLoadout

Definition at line 98 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startParty

StartParty CoreDebug.startParty

Definition at line 100 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startScene

StartScene CoreDebug.startScene

Definition at line 96 of file CoreDebug.cs.

Referenced by Core.Init(), QuickStart(), and Game.StartNewGame().

◆ startSetting

StartSetting CoreDebug.startSetting

Definition at line 104 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startZone

string CoreDebug.startZone

Definition at line 106 of file CoreDebug.cs.

Referenced by Game.StartNewGame().

◆ test

bool CoreDebug.test

Definition at line 170 of file CoreDebug.cs.

Referenced by Zone.TryGenerateShrine().

◆ testFixedColor

bool CoreDebug.testFixedColor

Definition at line 262 of file CoreDebug.cs.

◆ testLOS

bool CoreDebug.testLOS

Definition at line 148 of file CoreDebug.cs.

Referenced by HotItemContext.Show(), and GameUpdater.Update().

◆ testLOS2

bool CoreDebug.testLOS2

Definition at line 150 of file CoreDebug.cs.

Referenced by HotItemContext.Show(), and GameUpdater.Update().

◆ testThingQuality

bool CoreDebug.testThingQuality

Definition at line 215 of file CoreDebug.cs.

Referenced by Card.Create().

◆ travelAnywhere

bool CoreDebug.travelAnywhere

Definition at line 207 of file CoreDebug.cs.

Referenced by Spatial.Create().

◆ ttt

int CoreDebug.ttt
private

Definition at line 301 of file CoreDebug.cs.

◆ unlimitedInterest

bool CoreDebug.unlimitedInterest

Definition at line 220 of file CoreDebug.cs.

Referenced by Affinity.OnTalkRumor().

◆ useNewConfig

bool CoreDebug.useNewConfig

Definition at line 124 of file CoreDebug.cs.

Referenced by CoreConfig.Exist(), CoreConfig.Init(), and CoreConfig.TryLoadConfig().

◆ validateData

bool CoreDebug.validateData

Definition at line 130 of file CoreDebug.cs.

◆ validatePref

bool CoreDebug.validatePref

Definition at line 250 of file CoreDebug.cs.

Referenced by Core.Init().

Property Documentation

◆ EnableCheat

string CoreDebug.EnableCheat
staticget

Definition at line 315 of file CoreDebug.cs.

◆ godBuild


The documentation for this class was generated from the following file: