Elin Decompiled Documentation EA 23.189 Nightly
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_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 ModKarma (int amount)
 
static string ModContribution (int amount)
 
static string FlyMode ()
 
static string ChangeRace (string id="?")
 
static string ChangeJob (string id="?")
 
static string FirstAdventurer ()
 
static string RegenerateNames ()
 
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 707 of file CoreDebug.cs.

708 {
710 {
711 if (!EClass.player.recipes.knownRecipes.ContainsKey(item.id))
712 {
714 }
715 }
716 }
Definition: EClass.cs:5
static Player player
Definition: EClass.cs:12
RecipeManager recipes
Definition: Player.cs:1017
static List< RecipeSource > list
Definition: RecipeManager.cs:9
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 2253 of file CoreDebug.cs.

2254 {
2255 if (!CheatEnabled())
2256 {
2257 return EnableCheat;
2258 }
2259 if (forget)
2260 {
2262 }
2263 else
2264 {
2266 }
2267 return "Done!";
2268 }
static bool CheatEnabled()
Definition: CoreDebug.cs:1834
static string EnableCheat
Definition: CoreDebug.cs:315
void AddAllRecipes()
Definition: CoreDebug.cs:707
static CoreDebug debug
Definition: EClass.cs:48

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

◆ BroadcastNext()

void CoreDebug.BroadcastNext ( )
inline

Definition at line 2339 of file CoreDebug.cs.

2340 {
2341 LoadBroadcast();
2342 if (Input.GetKey(KeyCode.LeftControl))
2343 {
2344 bidx--;
2345 }
2346 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2347 string text = blines[bidx];
2348 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
2349 EClass.pc.SayRaw(text.TrimNewLines());
2350 }
void SayRaw(string text, string ref1=null, string ref2=null)
Definition: Card.cs:6478
string[] blines
Definition: CoreDebug.cs:281
int bidx
Definition: CoreDebug.cs:276
void LoadBroadcast()
Definition: CoreDebug.cs:2333
static Chara pc
Definition: EClass.cs:14

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

Referenced by AM_Adv._OnUpdateInput().

◆ ChangeJob()

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

Definition at line 2199 of file CoreDebug.cs.

2200 {
2201 if (EClass.sources.jobs.map.ContainsKey(id))
2202 {
2203 EClass.pc.ChangeJob(id);
2205 return "Done.";
2206 }
2207 string text = "";
2208 foreach (SourceJob.Row row in EClass.sources.jobs.rows)
2209 {
2210 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2211 }
2212 return text;
2213 }
void ChangeJob(string idNew)
Definition: Chara.cs:2109
static SourceManager sources
Definition: EClass.cs:42
void RefreshDomain()
Definition: Player.cs:1442
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 2158 of file CoreDebug.cs.

2159 {
2160 if (EClass.sources.races.map.ContainsKey(id))
2161 {
2162 Thing thing = null;
2163 foreach (BodySlot slot in EClass.pc.body.slots)
2164 {
2165 if (slot.thing != null)
2166 {
2167 if (slot.thing.blessedState <= BlessedState.Cursed)
2168 {
2169 slot.thing.blessedState = BlessedState.Normal;
2170 }
2171 if (slot.thing.trait is TraitToolBelt)
2172 {
2173 thing = slot.thing;
2174 }
2175 EClass.pc.body.Unequip(slot);
2176 }
2177 }
2180 EClass.pc.ChangeRace(id);
2181 if (EClass.ui.IsInventoryOpen)
2182 {
2183 EClass.ui.ToggleInventory();
2184 }
2187 EClass.pc.body.Equip(thing);
2188 return "Done.";
2189 }
2190 string text = "";
2191 foreach (SourceRace.Row row in EClass.sources.races.rows)
2192 {
2193 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2194 }
2195 return text;
2196 }
BlessedState
Definition: BlessedState.cs:2
Thing thing
Definition: BodySlot.cs:8
Trait trait
Definition: Card.cs:51
BlessedState blessedState
Definition: Card.cs:264
void AddBodyPart(int ele, Thing thing=null)
Definition: CharaBody.cs:261
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:182
void RemoveBodyPart(int ele)
Definition: CharaBody.cs:316
void ChangeRace(string idNew)
Definition: Chara.cs:2208
CharaBody body
Definition: Chara.cs:94
static UI ui
Definition: EClass.cs:16
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 1844 of file CoreDebug.cs.

1845 {
1846 EClass.game.config.cheat = true;
1847 return "Cheat Enabled";
1848 }

◆ CheatEnabled()

static bool CoreDebug.CheatEnabled ( )
inlinestatic

Definition at line 1834 of file CoreDebug.cs.

1835 {
1836 if (!EClass.debug.enable)
1837 {
1838 return EClass.game.config.cheat;
1839 }
1840 return true;
1841 }
bool enable
Definition: CoreDebug.cs:286
static Game game
Definition: EClass.cs:8
bool cheat
Definition: Game.cs:54
Config config
Definition: Game.cs:215

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

◆ ClearLastWishFlag()

static string CoreDebug.ClearLastWishFlag ( )
inlinestatic

Definition at line 2289 of file CoreDebug.cs.

2290 {
2291 if (!CheatEnabled())
2292 {
2293 return EnableCheat;
2294 }
2295 EClass.player.doneBackers.Clear();
2296 return Resources.Load<TextAsset>("logo2").text + Environment.NewLine + "Done!";
2297 }
HashSet< int > doneBackers
Definition: Player.cs:993

References Player.doneBackers, and EClass.player.

◆ COM_MaxConstruction()

void CoreDebug.COM_MaxConstruction ( )
inline

Definition at line 1826 of file CoreDebug.cs.

1827 {
1828 if (EClass.pc.homeBranch != null)
1829 {
1831 }
1832 }
FactionBranch homeBranch
Definition: Chara.cs:1052
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 1776 of file CoreDebug.cs.

1777 {
1778 EClass.ui.CloseLayers();
1779 EClass.game.world.date.hour = 2;
1781 LayerDrama.ActivateMain("mono", "1-2");
1782 }
static Scene scene
Definition: EClass.cs:30
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 1761 of file CoreDebug.cs.

1762 {
1763 for (int i = 0; i < 10000; i++)
1764 {
1765 Point point = EClass.pc.pos.Copy();
1766 point.x += EScriptable.rnd(60) - EScriptable.rnd(60);
1767 point.z += EScriptable.rnd(60) - EScriptable.rnd(60);
1768 if (point.IsValid && !point.cell.blocked && point.HasFloor)
1769 {
1770 EClass.pc.Teleport(point);
1771 break;
1772 }
1773 }
1774 }
void Teleport(Point point, bool silent=false, bool force=false)
Definition: Card.cs:5577
Point pos
Definition: Card.cs:57
static int rnd(int a)
Definition: EScriptable.cs:5
Definition: Point.cs:9
Point Copy()
Definition: Point.cs:479
bool IsValid
Definition: Point.cs:88
bool HasFloor
Definition: Point.cs:207
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 776 of file CoreDebug.cs.

777 {
780 enable = true;
781 if ((bool)WidgetHotbar.HotbarBuild)
782 {
784 }
786 Thing orCreateDebugContainer = GetOrCreateDebugContainer();
787 SetStartStockpile(orCreateDebugContainer, numResource);
788 }
int numResource
Definition: CoreDebug.cs:217
void SetStartStockpile(Thing container, int num=100)
Definition: CoreDebug.cs:718
Thing GetOrCreateDebugContainer()
Definition: CoreDebug.cs:747
void OnEnableDebug()
Definition: Player.cs:665
Flags flags
Definition: Player.cs:1014
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 2216 of file CoreDebug.cs.

2217 {
2218 string text = "Steam is not running.";
2219 DateTime dateTime = new DateTime(2024, 11, 3, 6, 0, 0);
2220 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))));
2221 dateTimeOffset = dateTimeOffset.ToOffset(new TimeSpan(9, 0, 0));
2222 text = ((dateTimeOffset < dateTime) ? "Valid: " : "Invalid: ");
2223 text = text + "Arrived North Tyris on " + dateTimeOffset.Year + " " + dateTimeOffset.Month + "/" + dateTimeOffset.Day + " " + dateTimeOffset.Hour + ":" + dateTimeOffset.Minute;
2224 return text + " Eligible by " + dateTime.Year + " " + dateTime.Month + "/" + dateTime.Day + " " + dateTime.Hour + ":" + dateTime.Minute;
2225 }

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

◆ Fix_EtherDisease()

static string CoreDebug.Fix_EtherDisease ( )
inlinestatic

Definition at line 1887 of file CoreDebug.cs.

1888 {
1889 EClass.pc.ModCorruption(-100000);
1890 Chara chara = CharaGen.Create("chara");
1891 chara.ChangeRace(EClass.pc.race.id);
1892 chara.ChangeJob(EClass.pc.job.id);
1893 string text = "";
1894 foreach (Element value in chara.elements.dict.Values)
1895 {
1896 if (!(value.source.category != "attribute"))
1897 {
1898 Element orCreateElement = EClass.pc.elements.GetOrCreateElement(value.id);
1899 if (value.vBase > orCreateElement.vBase)
1900 {
1901 text = text + "Fixing Base Value:" + orCreateElement.Name + " Before:" + orCreateElement.vBase + " Now:" + (value.vBase + 1) + Environment.NewLine;
1902 EClass.pc.elements.ModBase(orCreateElement.id, value.vBase - orCreateElement.vBase + 1);
1903 }
1904 }
1905 }
1906 return text + "Fixed!";
1907 }
ElementContainerCard elements
Definition: Card.cs:39
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
SourceJob.Row job
Definition: Chara.cs:464
void ModCorruption(int a)
Definition: Chara.cs:9323
SourceRace.Row race
Definition: Chara.cs:462
Dictionary< int, Element > dict
Element GetOrCreateElement(Element ele)
int id
Definition: ELEMENT.cs:248
int vBase
Definition: ELEMENT.cs:250
SourceElement.Row source
Definition: ELEMENT.cs:271

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 1910 of file CoreDebug.cs.

1911 {
1913 {
1914 return "Not in base.";
1915 }
1916 foreach (Thing thing in EClass._map.things)
1917 {
1918 if (thing.trait is TraitCoreZone)
1919 {
1920 return "Base already has core.";
1921 }
1922 }
1923 if (EClass.pc.things.Find((Thing t) => t.trait is TraitCoreZone) != null)
1924 {
1925 return "Player has core.";
1926 }
1928 return "Done.";
1929 }
ThingContainer things
Definition: Card.cs:36
static Zone _zone
Definition: EClass.cs:20
static Map _map
Definition: EClass.cs:18
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:607
Thing Find(int uid)
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
MapBounds bounds
Definition: Zone.cs:46
bool IsPCFaction
Definition: Zone.cs:468
Card AddCard(Card t, Point point)
Definition: Zone.cs:1935

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_RemoveDemitas()

static string CoreDebug.Fix_RemoveDemitas ( )
inlinestatic

Definition at line 1932 of file CoreDebug.cs.

1933 {
1934 List<Chara> list = new List<Chara>();
1935 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1936 {
1937 if (value.id == "demitas" && value.currentZone == EClass._zone)
1938 {
1939 list.Add(value);
1940 }
1941 }
1942 if (list.Count > 1)
1943 {
1944 Chara chara = list[1];
1945 chara.homeBranch.BanishMember(chara);
1946 chara.Destroy();
1947 return "Demitas Removed!";
1948 }
1949 return "Not enough Demitas!";
1950 }
GlobalCharaList globalCharas
Definition: CardManager.cs:46
string id
Definition: Card.cs:33
void Destroy()
Definition: Card.cs:4850
Zone currentZone
Definition: Chara.cs:253
void BanishMember(Chara c, bool skipMsg=false)
CardManager cards
Definition: Game.cs:155

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

◆ Fix_RemoveDesignations()

static string CoreDebug.Fix_RemoveDesignations ( )
inlinestatic

Definition at line 1953 of file CoreDebug.cs.

1954 {
1955 EClass._map.ForeachCell(delegate(Cell c)
1956 {
1957 if (c.detail != null && c.detail.designation != null)
1958 {
1959 c.detail.designation.taskList.Remove(c.detail.designation);
1960 }
1961 });
1962 return "Done.";
1963 }
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 1869 of file CoreDebug.cs.

1870 {
1871 if (EClass.Branch == null)
1872 {
1873 return "No Branch";
1874 }
1875 EClass.Branch.members.ForeachReverse(delegate(Chara c)
1876 {
1877 if ((c.id == "kettle" || c.id == "quru") && EClass.Branch.members.Where((Chara c2) => c2.id == c.id).Count() >= 2)
1878 {
1879 EClass.Branch.RemoveMemeber(c);
1880 c.Destroy();
1881 }
1882 });
1883 return "Fixed!";
1884 }
static FactionBranch Branch
Definition: EClass.cs:22
List< Chara > members

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

◆ FlyMode()

static string CoreDebug.FlyMode ( )
inlinestatic

Definition at line 2151 of file CoreDebug.cs.

2152 {
2154 return "I can fly!";
2155 }
Condition AddCondition(string id, int p=100, bool force=false)
Definition: Chara.cs:8823

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

◆ GetDebugContainer()

Thing CoreDebug.GetDebugContainer ( )
inline

Definition at line 764 of file CoreDebug.cs.

765 {
766 foreach (Thing thing in EClass._map.things)
767 {
768 if (thing.c_altName == "DebugContainer")
769 {
770 return thing;
771 }
772 }
773 return null;
774 }
string c_altName
Definition: Card.cs:1567

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

Referenced by BuildMenu.OnActivate().

◆ GetOrCreateDebugContainer()

Thing CoreDebug.GetOrCreateDebugContainer ( )
inline

Definition at line 747 of file CoreDebug.cs.

748 {
749 foreach (Thing thing2 in EClass._map.things)
750 {
751 if (thing2.c_altName == "DebugContainer")
752 {
753 return thing2;
754 }
755 }
756 Thing thing = EClass._zone.AddThing("barrel", EClass.pc.pos).Thing;
757 thing.ChangeMaterial("obsidian");
758 thing.c_altName = "DebugContainer";
759 thing.isNPCProperty = false;
760 thing.SetPlaceState(PlaceState.installed);
761 return thing;
762 }
PlaceState
Definition: PlaceState.cs:2
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3639
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:2994
virtual Thing Thing
Definition: Card.cs:2020
Card AddThing(string id, int x, int z)
Definition: Zone.cs:1925

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 2106 of file CoreDebug.cs.

2107 {
2108 if (!CheatEnabled())
2109 {
2110 return EnableCheat;
2111 }
2112 EClass.pc.Revive();
2113 EClass.pc.hp = EClass.pc.MaxHP;
2114 return "I'm God!";
2115 }
override int MaxHP
Definition: Chara.cs:706
void Revive(Point p=null, bool msg=false)
Definition: Chara.cs:4926

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:1452

References InitDebugCommands().

Referenced by Core.Init().

◆ InitDebugCommands()

void CoreDebug.InitDebugCommands ( )
inline

Definition at line 1452 of file CoreDebug.cs.

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

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 2271 of file CoreDebug.cs.

2272 {
2273 string text = "";
2274 foreach (SourceBacker.Row row in EClass.sources.backers.rows)
2275 {
2276 if (row.name.Contains(name) || row.id.ToString() == name)
2277 {
2278 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;
2279 }
2280 }
2281 if (text == "")
2282 {
2283 return "Not Found";
2284 }
2285 return text + Resources.Load<TextAsset>("logo2").text;
2286 }

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

◆ ListChara()

static string CoreDebug.ListChara ( )
inlinestatic

Definition at line 1966 of file CoreDebug.cs.

1967 {
1968 string text = "";
1969 foreach (SourceChara.Row row in EClass.sources.charas.rows)
1970 {
1971 text = text + row.id + "\n";
1972 }
1973 return text;
1974 }
SourceChara charas

References SourceManager.charas, and EClass.sources.

◆ ListThing()

static string CoreDebug.ListThing ( )
inlinestatic

Definition at line 1977 of file CoreDebug.cs.

1978 {
1979 string text = "";
1980 foreach (SourceThing.Row row in EClass.sources.things.rows)
1981 {
1982 text = text + row.id + "\n";
1983 }
1984 return text;
1985 }
SourceThing things

References EClass.sources, and SourceManager.things.

◆ LoadBroadcast()

void CoreDebug.LoadBroadcast ( )
inline

Definition at line 2333 of file CoreDebug.cs.

2334 {
2335 TextAsset textAsset = Resources.Load<TextAsset>("Data/Text/broadcast");
2336 blines = textAsset.text.Split('-');
2337 }

◆ Log()

void CoreDebug.Log ( object  o)
inline

Definition at line 2310 of file CoreDebug.cs.

2311 {
2312 Debug.Log(o);
2313 }

References Debug.

Referenced by Tutorial.Play().

◆ LOG_Spatials()

void CoreDebug.LOG_Spatials ( )
inline

Definition at line 1794 of file CoreDebug.cs.

1795 {
1796 foreach (Spatial child in EClass.world.region.children)
1797 {
1798 Debug.Log(child.uid + "/" + child.Name + "/" + child.mainFaction.name + "/" + (child == EClass.player.zone));
1799 }
1800 }
string name
Definition: FACTION.cs:135
Zone zone
Definition: Player.cs:1002
int uid
Definition: Spatial.cs:70
virtual string Name
Definition: Spatial.cs:497
Faction mainFaction
Definition: Spatial.cs:430
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.

◆ ModContribution()

static string CoreDebug.ModContribution ( int  amount)
inlinestatic

Definition at line 2140 of file CoreDebug.cs.

2141 {
2142 if (!CheatEnabled())
2143 {
2144 return EnableCheat;
2145 }
2147 return "Done.";
2148 }
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 2118 of file CoreDebug.cs.

2119 {
2120 if (!CheatEnabled())
2121 {
2122 return EnableCheat;
2123 }
2124 EClass.player.ModFame(amount);
2125 return "Done.";
2126 }
void ModFame(int a)
Definition: Player.cs:1997

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

◆ ModKarma()

static string CoreDebug.ModKarma ( int  amount)
inlinestatic

Definition at line 2129 of file CoreDebug.cs.

2130 {
2131 if (!CheatEnabled())
2132 {
2133 return EnableCheat;
2134 }
2135 EClass.player.ModKarma(amount);
2136 return "Done.";
2137 }
void ModKarma(int a)
Definition: Player.cs:2408

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

◆ NextBGM()

void CoreDebug.NextBGM ( )
inline

Definition at line 2315 of file CoreDebug.cs.

2316 {
2317 if ((bool)SoundManager.current)
2318 {
2319 SoundManager.current.NextBGM();
2320 }
2321 }

◆ OnLoad()

void CoreDebug.OnLoad ( )
inline

Definition at line 699 of file CoreDebug.cs.

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

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, Chara.ChangeJob(), Card.ChangeMaterial(), Chara.ChangeRace(), SourceManager.charas, Zone.ClaimZone(), EClass.core, Game.Create(), ThingGen.Create(), CharaGen.Create(), ThingGen.CreateBlock(), ThingGen.CreateFloor(), ThingGen.CreateFromCategory(), Chara.currentZone, EClass.debug, CardBlueprint.DebugEQ, Card.Dye(), Card.elements, SourceManager.elements, Chara.EQ_CAT(), ThingContainer.Find(), SpatialManager.Find(), Player.flags, EClass.game, CharaBody.GetEquippedThing(), Point.GetNearestPoint(), MATERIAL.GetRandomMaterial(), 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(), SourceManager.objs, Player.Flags.OnEnableDebug(), Chara.party, EClass.pc, EClass.player, Card.pos, Game.Prologue, Game.quests, CoreDebug.StartSetting.race, Card.RecalculateFOV(), CoreRef.rects, 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, 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 2228 of file CoreDebug.cs.

2229 {
2231 NameGen.list = null;
2232 AliasGen.list = null;
2233 NameGen.Init();
2234 AliasGen.Init();
2235 foreach (Chara chara in EClass._map.charas)
2236 {
2237 if (!chara.IsPC)
2238 {
2239 if (chara.source.name == "*r")
2240 {
2241 chara.c_altName = NameGen.getRandomName();
2242 }
2243 if (!chara._alias.IsEmpty())
2244 {
2245 chara._alias = AliasGen.GetRandomAlias();
2246 }
2247 }
2248 }
2249 return "Done!";
2250 }
override bool IsPC
Definition: Chara.cs:610
SourceChara.Row source
Definition: Chara.cs:156
string _alias
Definition: Chara.cs:217
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 1851 of file CoreDebug.cs.

1852 {
1853 QuestDebt questDebt = EClass.game.quests.Get<QuestDebt>();
1854 if (questDebt == null)
1855 {
1856 return "Quest Status Not Valid.";
1857 }
1858 questDebt.stage = 0;
1859 questDebt.paid = false;
1860 questDebt.gaveBill = false;
1861 EClass.player.debt = 20000000;
1862 Thing thing = ThingGen.Create("856");
1863 thing.refVal = 109;
1864 EClass.pc.Pick(thing);
1865 return "Quest Reset!";
1866 }
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Definition: Chara.cs:4187
Quest Get(string id)

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

◆ ResetPetUpgrades()

static string CoreDebug.ResetPetUpgrades ( )
inlinestatic

Definition at line 2082 of file CoreDebug.cs.

2083 {
2084 foreach (Chara value in EClass.game.cards.globalCharas.Values)
2085 {
2086 if (value.IsPCFaction)
2087 {
2088 value.ResetUpgrade();
2089 }
2090 }
2091 return "Not Implemented.";
2092 }
void ResetUpgrade()
Definition: Chara.cs:8174
override bool IsPCFaction
Definition: Chara.cs:669

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

◆ ResetPrincipalSeals()

static string CoreDebug.ResetPrincipalSeals ( )
inlinestatic

Definition at line 2095 of file CoreDebug.cs.

2096 {
2097 if (!CheatEnabled())
2098 {
2099 return EnableCheat;
2100 }
2101 EClass.game.principal.modified.Clear();
2102 return "Done.";
2103 }
HashSet< string > modified
GamePrincipal principal
Definition: Game.cs:221

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

◆ Resource()

static string CoreDebug.Resource ( )
inlinestatic

Definition at line 2300 of file CoreDebug.cs.

2301 {
2302 if (!CheatEnabled())
2303 {
2304 return EnableCheat;
2305 }
2307 return "Resources spawned.";
2308 }
void SpawnCheatContainer()
Definition: CoreDebug.cs:790

References EClass.debug, and SpawnCheatContainer().

◆ SetElement()

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

Definition at line 1988 of file CoreDebug.cs.

1989 {
1990 if (!CheatEnabled())
1991 {
1992 return EnableCheat;
1993 }
1994 SourceElement.Row row = EClass.sources.elements.alias.TryGetValue(alias);
1995 if (row == null)
1996 {
1997 return "Element not found.";
1998 }
1999 if (row.type == "Feat")
2000 {
2001 EClass.pc.SetFeat(row.id, value, msg: true);
2002 }
2003 else
2004 {
2005 EClass.pc.elements.SetBase(row.id, value, potential);
2006 }
2007 return "Done.";
2008 }
void SetFeat(int id, int value=1, bool msg=false)
Definition: Chara.cs:9381

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 718 of file CoreDebug.cs.

719 {
720 LittlePopper.skipPop = true;
721 foreach (SourceMaterial.Row row in EClass.sources.materials.rows)
722 {
723 if (!(row.alias == "void") && (!randomResource || EScriptable.rnd(4) == 0))
724 {
725 row.CreateByProduct(container, num);
726 }
727 }
728 foreach (SourceThing.Row row2 in EClass.sources.things.rows)
729 {
730 if ((row2.factory.IsEmpty() || !(row2.factory[0] == "x")) && !row2.isOrigin && row2.Category.tag.Contains("debug"))
731 {
732 Thing thing = ThingGen.Create(row2.id);
733 if (thing.trait.CanStack)
734 {
735 thing.ModNum(num);
736 }
737 container.AddThing(thing);
738 }
739 }
740 for (int i = 0; i < 10; i++)
741 {
742 container.AddThing(TraitSeed.MakeRandomSeed());
743 }
744 LittlePopper.skipPop = false;
745 }
void ModNum(int a, bool notify=true)
Definition: Card.cs:3413
bool randomResource
Definition: CoreDebug.cs:175
SourceMaterial materials
static Thing MakeRandomSeed(bool enc=false)
Definition: TraitSeed.cs:187
virtual bool CanStack
Definition: Trait.cs:150

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 2026 of file CoreDebug.cs.

2027 {
2028 if (!CheatEnabled())
2029 {
2030 return EnableCheat;
2031 }
2032 if (EClass.sources.things.map.ContainsKey(id))
2033 {
2034 Thing thing = ThingGen.Create(id, -1, objLv).SetNum(num);
2035 if (!aliasMat.IsEmpty())
2036 {
2037 thing.ChangeMaterial(aliasMat);
2038 }
2039 EClass._zone.AddCard(thing, EClass.pc.pos);
2040 return "Spawned " + thing.Name;
2041 }
2042 if (EClass.sources.charas.map.ContainsKey(id))
2043 {
2044 Chara chara = CharaGen.Create(id);
2045 if (objLv != -1)
2046 {
2047 chara.SetLv(objLv);
2048 }
2049 EClass._zone.AddCard(chara, EClass.pc.pos);
2050 return "Spawned " + chara.Name;
2051 }
2052 return "'" + id + "' does not exist in the database.";
2053 }
string Name
Definition: Card.cs:2099

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 2011 of file CoreDebug.cs.

2012 {
2013 if (!CheatEnabled())
2014 {
2015 return EnableCheat;
2016 }
2017 if (EClass.sources.charas.map.ContainsKey(id))
2018 {
2020 return "Spawned " + chara.Name;
2021 }
2022 return "'" + id + "' does not exist in the database.";
2023 }
static SpawnSetting Boss(int filterLv, int fixedLv=-1)
Definition: SpawnSetting.cs:47
Chara SpawnMob(Point pos=null, SpawnSetting setting=null)
Definition: Zone.cs:2689

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 790 of file CoreDebug.cs.

791 {
792 }

Referenced by Resource().

◆ Test_Filter()

void CoreDebug.Test_Filter ( )
inline

Definition at line 1784 of file CoreDebug.cs.

1785 {
1786 bilinear = !bilinear;
1787 MeshPass[] passes = EClass.scene.passes;
1788 for (int i = 0; i < passes.Length; i++)
1789 {
1790 passes[i].mat.GetTexture("_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1791 }
1792 }
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 1753 of file CoreDebug.cs.

1754 {
1755 foreach (Religion value in EClass.game.religions.dictAll.Values)
1756 {
1757 value.Talk("test");
1758 }
1759 }
ReligionManager religions
Definition: Game.cs:158
Dictionary< string, Religion > dictAll
void Talk(string idTalk, Card c=null, Card agent=null)
Definition: Religion.cs:153

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

◆ Test_Grow()

void CoreDebug.Test_Grow ( )
inline

Definition at line 1735 of file CoreDebug.cs.

1736 {
1737 EClass._map.ForeachCell(delegate(Cell c)
1738 {
1739 if (c.sourceObj.HasGrowth)
1740 {
1741 c.TryGrow();
1742 }
1743 });
1744 foreach (Thing item in EClass._map.things.Copy())
1745 {
1746 if (item.trait is TraitSeed traitSeed)
1747 {
1748 traitSeed.TrySprout(force: true);
1749 }
1750 }
1751 }
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 1814 of file CoreDebug.cs.

1815 {
1816 if (EClass._zone.events.GetEvent<ZoneEventSiege>() == null)
1817 {
1819 }
1820 else
1821 {
1823 }
1824 }
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 1802 of file CoreDebug.cs.

1803 {
1804 if (EClass._zone.events.GetEvent<ZoneEventSiegeGuard>() == null)
1805 {
1807 }
1808 else
1809 {
1811 }
1812 }

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 2056 of file CoreDebug.cs.

2057 {
2058 if (!CheatEnabled())
2059 {
2060 return EnableCheat;
2061 }
2062 if (EClass._zone is Zone_Arena)
2063 {
2064 EClass._zone._dangerLv = lv;
2065 }
2066 foreach (Chara item in EClass._map.charas.Where((Chara c) => c.HasEditorTag(EditorTag.SpawnTest)).ToList())
2067 {
2068 item.Destroy();
2069 }
2070 for (int i = 0; i < num; i++)
2071 {
2072 EClass._zone.SpawnMob(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: false, ignoreCenter: true), new SpawnSetting
2073 {
2074 filterLv = lv,
2075 levelRange = lvRange
2076 }).AddEditorTag(EditorTag.SpawnTest);
2077 }
2078 return "Spawned.";
2079 }
EditorTag
Definition: EditorTag.cs:2
void AddEditorTag(EditorTag tag)
Definition: Card.cs:2567
bool HasEditorTag(EditorTag tag)
Definition: Card.cs:2562

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 2323 of file CoreDebug.cs.

2324 {
2326 if (revealMap)
2327 {
2329 }
2330 SE.ClickGeneral();
2331 }
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 794 of file CoreDebug.cs.

795 {
796 if (!EClass.debug.enable || (bool)EClass.ui.GetLayer<LayerConsole>())
797 {
798 return;
799 }
800 if (Input.GetKeyDown(KeyCode.B))
801 {
803 }
804 if (Input.GetKeyDown(KeyCode.O))
805 {
807 }
808 if (Input.GetKeyDown(KeyCode.P))
809 {
811 }
812 if (Input.GetKeyDown(KeyCode.F11))
813 {
814 if (Application.isEditor)
815 {
816 EClass.core.SetLang((Lang.langCode == "EN") ? "JP" : "EN");
817 }
818 else
819 {
821 }
822 NewsList.dict = null;
823 BookList.dict = null;
824 BookList.Init();
825 }
827 {
828 if (Input.GetKeyDown(KeyCode.U))
829 {
831 Msg.SayRaw(offset.ToString() ?? "");
832 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
833 }
834 if (Input.GetKeyDown(KeyCode.I))
835 {
837 Msg.SayRaw(offset.ToString() ?? "");
838 EClass.screen.tileMap.rendererInnerBlock.offset = new Vector3(0f, 0.54f, -0.5f);
839 }
840 }
841 }
ID_Achievement
BaseTileMap tileMap
RenderData rendererInnerBlock
Definition: BaseTileMap.cs:203
static void Init()
Definition: BookList.cs:22
bool IsGameStarted
Definition: Core.cs:84
void SetLang(string langCode, bool force=false)
Definition: Core.cs:704
static BaseGameScreen screen
Definition: EClass.cs:32
Definition: Lang.cs:6
static string langCode
Definition: Lang.cs:28
Definition: Msg.cs:5
static string SayRaw(string text)
Definition: Msg.cs:113
Vector3 offset
Definition: RenderData.cs:18
void ImportSourceTexts()
Definition: Steam.cs:8
static void GetAchievement(ID_Achievement id)
Definition: Steam.cs:49
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(), BookList.Init(), 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 853 of file CoreDebug.cs.

854 {
855 if (!debugInput || EInput.isInputFieldActive || (bool)EClass.ui.GetLayer<LayerConsole>())
856 {
857 return;
858 }
859 bool key = Input.GetKey(KeyCode.LeftShift);
860 bool key2 = Input.GetKey(KeyCode.LeftAlt);
861 bool key3 = Input.GetKey(KeyCode.LeftControl);
862 TraitStairs traitStairs = null;
863 if (Input.GetKeyDown(KeyCode.KeypadPlus))
864 {
865 traitStairs = EClass._map.FindThing<TraitStairsDown>();
866 }
867 if (Input.GetKeyDown(KeyCode.KeypadMinus))
868 {
869 traitStairs = EClass._map.FindThing<TraitStairsUp>();
870 }
871 traitStairs?.MoveZone();
872 if (EInput.action == EAction.ShowGrid)
873 {
874 EClass.ui.Find("_Guide").ToggleActive();
875 }
876 if (Input.GetKey(KeyCode.N))
877 {
878 if (key)
879 {
880 SoundManager.current.sourceBGM.pitch = 10f;
881 }
882 if (key3)
883 {
884 SoundManager.current.sourceBGM.time = SoundManager.current.currentBGM.length - 10f;
885 }
886 }
887 else if (Input.GetKeyUp(KeyCode.N))
888 {
889 SoundManager.current.sourceBGM.pitch = 1f;
890 }
892 {
893 string text = "festival";
894 if (Input.GetKeyDown(KeyCode.F1))
895 {
896 EClass.ui.AddLayer<LayerDebug>();
897 }
898 if (Input.GetKeyDown(KeyCode.F2))
899 {
900 Zone.forceRegenerate = true;
902 EClass.scene.Init(Scene.Mode.Zone);
904 SE.MoveZone();
905 }
906 if (Input.GetKeyDown(KeyCode.F4))
907 {
908 if (!MapSubset.Exist(text))
909 {
910 SE.Beep();
911 return;
912 }
913 Zone.forceRegenerate = true;
914 Zone.forceSubset = text;
916 EClass.scene.Init(Scene.Mode.Zone);
918 SE.MoveZone();
919 EClass.ui.Say("Loaded Subset");
920 }
921 if (Input.GetKeyDown(KeyCode.F5))
922 {
923 MapSubset.Save(text);
924 SE.WriteJournal();
925 EClass.ui.Say("Exported Subset");
926 }
927 return;
928 }
929 if (Input.GetKeyDown(KeyCode.F1))
930 {
931 EClass.ui.AddLayer<LayerDebug>();
932 Debug.Log(EClass._zone);
933 Debug.Log(EClass._zone.id + "/" + EClass._zone.parent);
935 }
936 if (Input.GetKeyDown(KeyCode.F2))
937 {
938 EClass.game.world.date.year = 3000;
939 EClass._zone.development += 10;
940 EClass._zone.development *= EClass._zone.development;
942 if (targetChara != null)
943 {
944 EClass.pc.Pick(CraftUtil.MakeLoveLunch(targetChara));
946 EClass.pc.Pick(targetChara.MakeMilk());
947 EClass.pc.Pick(targetChara.MakeGene());
948 EClass.pc.Pick(targetChara.MakeBraineCell());
949 EClass.pc.Pick(targetChara.MakeEgg(effect: true, 10));
950 targetChara.ModAffinity(EClass.pc, 10000);
951 }
952 targetChara.ScaleByPrincipal();
953 if (EClass.game.quests.Get<QuestDebt>() == null)
954 {
955 Chara chara = CharaGen.Create("loytel");
957 chara.SetGlobal();
958 Quest q = EClass.game.quests.Add("debt", "loytel");
961 Hostility hostility2 = (chara.c_originalHostility = Hostility.Ally);
962 chara.hostility = hostility2;
963 }
964 return;
965 }
966 if (Input.GetKeyDown(KeyCode.F3))
967 {
968 for (int i = 0; i < 10; i++)
969 {
970 Thing thing = ThingGen.Create("egg_fertilized");
971 thing.TryMakeRandomItem(40);
972 thing.SetEncLv(200);
973 EClass.pc.Pick(thing);
974 }
975 foreach (Chara deadChara in EClass._map.deadCharas)
976 {
977 Debug.Log(deadChara);
978 }
981 Msg.Say("loytelmart:" + EClass.player.flags.loytelMartLv);
982 Guild.Fighter.relation.rank = 20;
983 Guild.Mage.relation.rank = 20;
984 Guild.Thief.relation.rank = 20;
985 Guild.Merchant.relation.rank = 20;
986 if (EClass.Branch != null)
987 {
989 }
990 foreach (Chara item in EClass._map.charas.ToList())
991 {
992 item.AddExp(item.ExpToNext);
993 item.Vomit();
994 }
995 EClass.pc.PlayEffect("boost");
996 EClass.pc.PlaySound("boost");
997 EClass.pc.elements.SetBase(306, 100);
998 EClass.pc.elements.SetBase(85, 100);
999 EClass.pc.feat += 10;
1000 EClass.player.totalFeat += 10;
1001 return;
1002 }
1003 if (Input.GetKeyDown(KeyCode.F4))
1004 {
1005 foreach (Chara member in EClass.pc.party.members)
1006 {
1007 member.InstantEat();
1008 if (!member.IsPC)
1009 {
1010 string id = "test";
1011 member.spriteReplacer = new SpriteReplacer();
1012 member.spriteReplacer.HasSprite(id);
1013 member._CreateRenderer();
1014 }
1015 }
1016 for (int j = 0; j < 10; j++)
1017 {
1018 Thing thing2 = ThingGen.CreateFromCategory("fish", 999);
1019 thing2.SetTier(EScriptable.rnd(4));
1020 EClass.pc.Pick(thing2);
1021 thing2 = ThingGen.Create("89");
1022 thing2.SetTier(EScriptable.rnd(4));
1023 EClass.pc.Pick(thing2);
1024 }
1025 EClass.pc.PlayEffect("phoenix");
1026 return;
1027 }
1028 if (Input.GetKeyDown(KeyCode.F5))
1029 {
1030 string text2 = (Input.GetKey(KeyCode.LeftControl) ? "quick3" : (Input.GetKey(KeyCode.LeftShift) ? "quick2" : "quick"));
1031 if (text2 != Game.id)
1032 {
1035 Game.id = text2;
1036 }
1037 EClass.game.isCloud = false;
1038 EClass.game.Save();
1039 }
1040 if (Input.GetKeyDown(KeyCode.F6))
1041 {
1043 {
1044 string id2 = (Input.GetKey(KeyCode.LeftControl) ? "quick3" : (Input.GetKey(KeyCode.LeftShift) ? "quick2" : "quick"));
1045 EClass.scene.Init(Scene.Mode.None);
1046 Game.Load(id2, cloud: false);
1047 });
1048 }
1049 if (Input.GetKeyDown(KeyCode.F7))
1050 {
1051 MiniGame.Activate(MiniGame.Type.Scratch);
1052 return;
1053 }
1054 if (Input.GetKeyDown(KeyCode.F8))
1055 {
1056 SE.Click();
1058 runtimeGodBuild = true;
1061 }
1062 if (key3)
1063 {
1064 if (Input.GetKeyDown(KeyCode.F9))
1065 {
1067 if (indexResolution >= resolutions.Count)
1068 {
1069 indexResolution = 0;
1070 }
1071 int[] array = resolutions[indexResolution];
1072 int width = array[0];
1073 int height = array[1];
1074 Screen.SetResolution(width, height, key);
1075 WidgetFeed.Instance?.Nerun(width + "/" + height);
1076 }
1077 if (Input.GetKeyDown(KeyCode.F10))
1078 {
1079 int width2 = Screen.width;
1080 int height2 = width2 / 16 * 9;
1081 Screen.SetResolution(width2, height2, key);
1082 WidgetFeed.Instance?.Nerun(width2 + "/" + height2);
1083 }
1084 }
1085 else
1086 {
1087 Input.GetKeyDown(KeyCode.F9);
1088 if (Input.GetKey(KeyCode.F9))
1089 {
1090 EClass.scene.paused = false;
1091 for (int k = 0; k < advanceMin; k++)
1092 {
1094 }
1096 }
1097 if (Input.GetKeyDown(KeyCode.F10))
1098 {
1099 switch (EScriptable.rnd(5))
1100 {
1101 case 0:
1103 break;
1104 case 1:
1106 break;
1107 case 2:
1109 break;
1110 default:
1112 break;
1113 }
1114 }
1115 }
1116 if (Input.GetKeyDown(KeyCode.N) && !EInput.isShiftDown && !EInput.isCtrlDown)
1117 {
1118 EClass.Sound.NextBGM();
1119 }
1120 if (Input.GetKeyDown(KeyCode.Tab))
1121 {
1122 if (key)
1123 {
1124 EClass.ui.AddLayer<LayerConsole>();
1125 }
1126 else
1127 {
1128 EClass.ui.widgets.Toggle("Debug");
1129 }
1130 }
1131 Point hitPoint = Scene.HitPoint;
1132 if (!hitPoint.IsValid || EClass.ui.IsActive)
1133 {
1134 return;
1135 }
1136 if (hitPoint.detail != null)
1137 {
1138 _ = hitPoint.area;
1139 }
1140 if (hitPoint.detail?.things == null)
1141 {
1142 new List<Thing>();
1143 }
1144 if (hitPoint.detail?.charas == null)
1145 {
1146 new List<Chara>();
1147 }
1148 List<Card> list = hitPoint.ListCards();
1149 if (Input.GetMouseButtonDown(2))
1150 {
1151 if (EClass.core.releaseMode != 0)
1152 {
1153 if (key)
1154 {
1155 EClass._zone.SpawnMob(hitPoint);
1156 }
1157 else if (key3)
1158 {
1159 EClass._zone.SpawnMob(hitPoint);
1160 }
1161 else if (key2)
1162 {
1163 EClass._zone.SpawnMob(hitPoint);
1164 }
1165 }
1166 return;
1167 }
1168 if (key2)
1169 {
1170 if (Input.GetMouseButtonDown(0))
1171 {
1172 foreach (Card item2 in list)
1173 {
1174 Debug.Log(item2.Name + "/" + item2.dir + "/" + item2.flipX + "/" + item2.angle);
1175 }
1176 }
1177 if (Input.GetMouseButtonDown(1))
1178 {
1179 if (key)
1180 {
1181 EClass._map.charas.ForeachReverse(delegate(Chara c)
1182 {
1183 if (c.IsHostile(EClass.pc))
1184 {
1185 c.DamageHP(9999999, AttackSource.Finish, EClass.pc);
1186 }
1187 });
1188 }
1189 else if (hitPoint.detail != null)
1190 {
1191 for (int num = hitPoint.detail.charas.Count - 1; num >= 0; num--)
1192 {
1193 hitPoint.detail.charas[num].DamageHP(9999999, AttackSource.Finish, EClass.pc);
1194 }
1195 }
1196 EInput.Consume();
1197 }
1198 }
1199 if (Input.GetKeyDown(KeyCode.Delete))
1200 {
1201 if (Input.GetKey(KeyCode.RightControl))
1202 {
1203 return;
1204 }
1205 if (key)
1206 {
1207 foreach (Card item3 in EClass._map.Roaming.all)
1208 {
1209 EClass._zone.RemoveCard(item3);
1210 }
1211 }
1212 else if (hitPoint.detail != null)
1213 {
1214 for (int num2 = hitPoint.detail.things.Count - 1; num2 >= 0; num2--)
1215 {
1216 hitPoint.detail.things[num2].Destroy();
1217 }
1218 if (hitPoint.detail != null)
1219 {
1220 for (int num3 = hitPoint.detail.charas.Count - 1; num3 >= 0; num3--)
1221 {
1222 hitPoint.detail.charas[num3].Destroy();
1223 }
1224 }
1225 }
1226 }
1227 if (Input.GetKeyDown(KeyCode.End) && hitPoint.detail != null)
1228 {
1229 for (int num4 = hitPoint.detail.things.Count - 1; num4 >= 0; num4--)
1230 {
1231 Thing thing3 = hitPoint.detail.things[num4];
1232 Debug.Log(thing3.id + "/" + thing3.Pref.height + "/" + thing3.trait?.ToString() + "/" + thing3.source.tileType.CanStack + "/" + thing3.source.tileType?.ToString() + "/" + thing3.isSynced + "/" + RenderObject.syncList.Contains(thing3.renderer));
1233 }
1234 }
1235 if (!Application.isEditor)
1236 {
1237 return;
1238 }
1239 switch (debugHotkeys)
1240 {
1241 case DebugHotkey.Anime:
1242 {
1243 int num5 = -1;
1244 if (Input.GetKeyDown(KeyCode.Alpha0))
1245 {
1246 num5 = 0;
1247 }
1248 if (Input.GetKeyDown(KeyCode.Alpha1))
1249 {
1250 num5 = 1;
1251 }
1252 if (Input.GetKeyDown(KeyCode.Alpha2))
1253 {
1254 num5 = 2;
1255 }
1256 if (Input.GetKeyDown(KeyCode.Alpha3))
1257 {
1258 num5 = 3;
1259 }
1260 if (Input.GetKeyDown(KeyCode.Alpha4))
1261 {
1262 num5 = 4;
1263 }
1264 if (Input.GetKeyDown(KeyCode.Alpha5))
1265 {
1266 num5 = 5;
1267 }
1268 if (Input.GetKeyDown(KeyCode.Alpha6))
1269 {
1270 num5 = 6;
1271 }
1272 if (Input.GetKeyDown(KeyCode.Alpha7))
1273 {
1274 num5 = 7;
1275 }
1276 if (Input.GetKeyDown(KeyCode.Alpha8))
1277 {
1278 num5 = 8;
1279 }
1280 if (Input.GetKeyDown(KeyCode.Alpha9))
1281 {
1282 num5 = 9;
1283 }
1284 if (num5 == -1)
1285 {
1286 break;
1287 }
1288 foreach (Card item4 in hitPoint.ListCards())
1289 {
1290 item4.renderer.PlayAnime(num5.ToEnum<AnimeID>());
1291 }
1292 Debug.Log(num5.ToEnum<AnimeID>());
1293 break;
1294 }
1295 case DebugHotkey.Block:
1296 if (Input.GetKeyDown(KeyCode.Alpha1))
1297 {
1298 EClass._map.SetLiquid(hitPoint.x, hitPoint.z, 1, 9);
1299 }
1300 if (Input.GetKeyDown(KeyCode.Alpha2))
1301 {
1302 EClass._map.SetLiquid(hitPoint.x, hitPoint.z, 2, 9);
1303 }
1304 break;
1305 case DebugHotkey.Item:
1306 if (Input.GetKeyDown(KeyCode.Alpha1))
1307 {
1308 Thing thing4 = ThingGen.Create("stairsDown_cave");
1309 EClass._zone.AddCard(thing4, EClass.pc.pos);
1310 thing4.SetPlaceState(PlaceState.installed);
1311 }
1312 if (Input.GetKeyDown(KeyCode.Alpha2))
1313 {
1314 Thing thing5 = ThingGen.Create("stairs");
1315 EClass._zone.AddCard(thing5, EClass.pc.pos);
1316 thing5.SetPlaceState(PlaceState.installed);
1317 }
1318 if (Input.GetKeyDown(KeyCode.Alpha3))
1319 {
1320 Thing thing6 = ThingGen.Create("sign");
1321 EClass._zone.AddCard(thing6, hitPoint);
1322 thing6.SetPlaceState(PlaceState.installed);
1323 }
1324 if (Input.GetKeyDown(KeyCode.Alpha4))
1325 {
1326 Thing thing7 = ThingGen.Create("sign2");
1327 EClass._zone.AddCard(thing7, hitPoint);
1328 thing7.SetPlaceState(PlaceState.installed);
1329 }
1330 if (Input.GetKeyDown(KeyCode.Alpha5))
1331 {
1332 Thing thing8 = ThingGen.Create("well");
1333 EClass._zone.AddCard(thing8, hitPoint);
1334 thing8.SetPlaceState(PlaceState.installed);
1335 }
1336 if (Input.GetKeyDown(KeyCode.Alpha6))
1337 {
1338 Thing thing9 = ThingGen.Create("altar");
1339 EClass._zone.AddCard(thing9, hitPoint);
1340 thing9.SetPlaceState(PlaceState.installed);
1341 }
1342 if (Input.GetKeyDown(KeyCode.Alpha7))
1343 {
1344 Thing t = ThingGen.Create("torch");
1345 EClass._zone.AddCard(t, hitPoint);
1346 }
1347 if (Input.GetKeyDown(KeyCode.Alpha8))
1348 {
1349 Thing t2 = ThingGen.Create("street_lamp");
1350 EClass._zone.AddCard(t2, hitPoint);
1351 }
1352 if (Input.GetKeyDown(KeyCode.Alpha9))
1353 {
1354 Thing t3 = ThingGen.Create("statue_elin");
1355 EClass._zone.AddCard(t3, hitPoint);
1356 }
1357 if (Input.GetKeyDown(KeyCode.Alpha0))
1358 {
1359 Thing t4 = ThingGen.TestCreate();
1360 EClass._zone.AddCard(t4, hitPoint);
1361 }
1362 if (key && Input.GetKeyDown(KeyCode.Alpha1))
1363 {
1364 Chara t5 = CharaGen.Create("korgon");
1365 EClass._zone.AddCard(t5, hitPoint);
1366 }
1367 break;
1368 case DebugHotkey.Decal:
1369 if (Input.GetKeyDown(KeyCode.Alpha1))
1370 {
1371 EClass._map.AddDecal(hitPoint.x, hitPoint.z, EClass.pc.material.decal);
1372 }
1373 if (!Input.GetKeyDown(KeyCode.Alpha2))
1374 {
1375 }
1376 break;
1377 case DebugHotkey.Test:
1378 if (Input.GetKeyDown(KeyCode.Alpha1))
1379 {
1380 QualitySettings.vSyncCount = 0;
1381 Application.targetFrameRate = 60;
1382 }
1383 if (Input.GetKeyDown(KeyCode.Alpha2))
1384 {
1385 QualitySettings.vSyncCount = 0;
1386 Application.targetFrameRate = 20;
1387 }
1388 if (Input.GetKeyDown(KeyCode.Alpha3))
1389 {
1390 QualitySettings.vSyncCount = 0;
1391 Application.targetFrameRate = 30;
1392 }
1393 if (Input.GetKeyDown(KeyCode.Alpha4))
1394 {
1395 QualitySettings.vSyncCount = 0;
1396 Application.targetFrameRate = 40;
1397 }
1398 break;
1399 }
1400 Card card = (Card)(((object)hitPoint.FirstChara) ?? ((object)hitPoint.FirstThing));
1401 if (card == null)
1402 {
1403 return;
1404 }
1405 CharaActorPCC charaActorPCC = (card.renderer.actor as CharaActor) as CharaActorPCC;
1406 if ((bool)charaActorPCC)
1407 {
1408 if (Input.GetKeyDown(KeyCode.Keypad0))
1409 {
1410 charaActorPCC.NextFrame();
1411 charaActorPCC.RefreshSprite();
1412 }
1413 if (Input.GetKeyDown(KeyCode.Keypad1))
1414 {
1415 charaActorPCC.NextDir();
1416 card.angle = charaActorPCC.provider.angle;
1417 charaActorPCC.RefreshSprite();
1418 }
1419 if (Input.GetKeyDown(KeyCode.Keypad2))
1420 {
1421 charaActorPCC.pcc.data.Randomize();
1422 charaActorPCC.provider.Rebuild();
1423 }
1424 }
1425 if (Input.GetKeyDown(KeyCode.Keypad4))
1426 {
1427 lastEmo = lastEmo.NextEnum();
1428 card.ShowEmo();
1429 card.ShowEmo(lastEmo);
1430 }
1431 if (Input.GetKeyDown(KeyCode.Keypad5))
1432 {
1433 card.ShowEmo();
1434 card.ShowEmo(lastEmo);
1435 }
1436 if (Input.GetKeyDown(KeyCode.Keypad7))
1437 {
1438 lastAnime = lastAnime.NextEnum();
1439 card.renderer.PlayAnime(lastAnime);
1440 }
1441 if (Input.GetKeyDown(KeyCode.Keypad8))
1442 {
1443 card.renderer.PlayAnime(lastAnime);
1444 animeDest = card;
1445 }
1446 if (Input.GetKeyDown(KeyCode.Keypad9))
1447 {
1448 card.renderer.PlayAnime(AnimeID.Attack, animeDest);
1449 }
1450 }
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)
Definition: Card.cs:11
float angle
Definition: Card.cs:69
void SetTier(int a, bool setTraits=true)
Definition: Card.cs:3761
Thing TryMakeRandomItem(int lv=-1, TryMakeRandomItemSource itemSource=TryMakeRandomItemSource.Default, Chara crafter=null)
Definition: Card.cs:5204
SourceMaterial.Row material
Definition: Card.cs:2013
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5852
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:5886
Thing MakeMilk(bool effect=true, int num=1, bool addToZone=true, BlessedState? state=null)
Definition: Card.cs:5491
void SetEncLv(int a)
Definition: Card.cs:3756
int dir
Definition: Card.cs:144
CardRenderer renderer
Definition: Card.cs:59
virtual bool flipX
Definition: Card.cs:2078
virtual bool isSynced
Definition: Card.cs:2049
Thing MakeEgg(bool effect=true, int num=1, bool addToZone=true, int fertChance=20, BlessedState? state=null)
Definition: Card.cs:5475
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
void InstantEat(Thing t=null, bool sound=true)
Definition: Chara.cs:7237
void ModAffinity(Chara c, int a, bool show=true, bool showOnlyEmo=false)
Definition: Chara.cs:7571
Thing MakeBraineCell()
Definition: Chara.cs:7788
SpriteReplacer spriteReplacer
Definition: Chara.cs:152
Chara SetGlobal(Zone _home, int x, int z)
Definition: Chara.cs:1444
override CardRenderer _CreateRenderer()
Definition: Chara.cs:6338
Chara ScaleByPrincipal()
Definition: Chara.cs:1668
Thing MakeGene(DNA.Type? type=null)
Definition: Chara.cs:7783
bool IsHostile()
Definition: Chara.cs:6229
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:776
int advanceMin
Definition: CoreDebug.cs:146
static string RootSave
Definition: CorePath.cs:206
Steam steam
Definition: Core.cs:57
static Thing MakeLoveLunch(Chara c)
Definition: CraftUtil.cs:122
static Thing MakeDarkSoup()
Definition: CraftUtil.cs:102
static SoundManager Sound
Definition: EClass.cs:46
Definition: EInput.cs:8
static bool isCtrlDown
Definition: EInput.cs:263
static void Consume(int _skipFrame)
Definition: EInput.cs:656
static bool isInputFieldActive
Definition: EInput.cs:277
static bool isShiftDown
Definition: EInput.cs:261
static EAction action
Definition: EInput.cs:259
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:318
static string id
Definition: Game.cs:147
bool Save(bool isAutoSave=false, bool silent=false)
Definition: Game.cs:1008
GameUpdater updater
Definition: Game.cs:246
new World world
Definition: Game.cs:173
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:101
List< Chara > members
Definition: Party.cs:18
int loytelMartLv
Definition: Player.cs:638
HotbarManager hotbars
Definition: Player.cs:1005
Chara TargetChara
Definition: PointTarget.cs:41
List< Card > ListCards(bool includeMasked=false)
Definition: Point.cs:1035
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:276
Thing FirstThing
Definition: Point.cs:289
PropSet all
Definition: Props.cs:8
Quest Start(string id, string idGlobalChara)
Definition: QuestManager.cs:41
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:548
bool HasSprite(string id)
void CheckUpdate()
Definition: Steam.cs:30
static Thing TestCreate()
Definition: ThingGen.cs:32
SourceThing.Row source
Definition: Thing.cs:11
override SourcePref Pref
Definition: Thing.cs:50
bool MoveZone(bool confirmed=false)
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
void RemoveCard(Card t)
Definition: Zone.cs:1975

References Chara._CreateRenderer(), 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, card, CellDetail.charas, Map.charas, Steam.CheckUpdate(), EInput.Consume(), EClass.core, ThingGen.Create(), CharaGen.Create(), ThingGen.CreateFromCategory(), 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(), FactionBranch.GetNextExp(), SpriteReplacer.HasSprite(), SourcePref.height, Scene.HitPoint, Player.hotbars, Card.id, Game.id, Spatial.id, indexResolution, Scene.Init(), ActionMode.Inspect, WidgetFeed.Instance, Chara.InstantEat(), ActionMode.IsBuildMode, EInput.isCtrlDown, Chara.IsHostile(), EInput.isInputFieldActive, Chara.IsPC, EInput.isShiftDown, Card.isSynced, Point.IsValid, item, lastAnime, lastEmo, Point.ListCards(), Game.Load(), Player.Flags.loytelMartLv, Chara.MakeBraineCell(), CraftUtil.MakeDarkSoup(), Card.MakeEgg(), Chara.MakeGene(), CraftUtil.MakeLoveLunch(), Card.MakeMilk(), Card.material, Party.members, Chara.ModAffinity(), FactionBranch.ModExp(), Scene.mouseTarget, TraitNewZone.MoveZone(), Card.Name, WidgetFeed.Nerun(), CharaActorPCC.NextDir(), CharaActorPCC.NextFrame(), WidgetMenuPanel.OnChangeMode(), 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(), Chara.ScaleByPrincipal(), EClass.scene, ElementContainer.SetBase(), Weather.SetCondition(), Card.SetEncLv(), Chara.SetGlobal(), Map.SetLiquid(), Card.SetPlaceState(), Card.SetTier(), EClass.Sound, Thing.source, Zone.SpawnMob(), Chara.spriteReplacer, 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 843 of file CoreDebug.cs.

844 {
846 {
850 }
851 }
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(), DramaCustomSequence.Build(), RecipeCard.Build(), Chara.CanAcceptItem(), FactionBranch.CanUpgrade(), 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(), DNA.Generate(), FactionBranch.GenerateGarbage(), TaskHarvest.GetBaseText(), Net.GetChat(), Thing.GetExtraName(), Affinity.GetLunchChance(), TraitGeneMachine.GetProgress(), CraftUtil.GetRandomLoveLunchIngredient(), Region.GetRandomSiteSource(), AM_MoveInstalled.HitTest(), CoreConfig.Init(), TraitCrafter.IsIngredient(), Props.ListThingStack(), Card.MakeEgg(), AI_Fish.Makefish(), BuildMenu.OnActivate(), WidgetArtTool.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(), TileSelectorElona.OnRenderTile(), HotItemLayer.OnSetItem(), FactionBranch.OnSimulateDay(), ContentQuest.OnSwitchContent(), LayerQuestBoard.OnSwitchContent(), AM_Inspect.OnUpdateInput(), TileSelectorElona.OnUpdateInput(), TraitDaggerGrave.OnUse(), TraitGeneMachine.OnUse(), ZoneEventMusic.OnVisit(), ActRide.Perform(), FoodEffect.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.SendChat(), Card.SetRandomTone(), GameDate.ShipRandomPackages(), HotItemContext.Show(), UI.ShowLang(), Core.StartCase(), UIInventory.SwitchTab(), ActThrow.Throw(), ConDisease.Tick(), UI.ToggleFeedback(), Chara.TryDropBossLoot(), Religion.TryGetGift(), 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(), and Card.SpawnLoot().

◆ 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

Definition at line 187 of file CoreDebug.cs.

Referenced by Chara.CalcBurden(), Chara.GetBurden(), Chara.Tick(), and Player.TooHeavyToMove().

◆ 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: