Elin Decompiled Documentation EA 23.153 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 , 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 
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 698 of file CoreDebug.cs.

699 {
701 {
702 if (!EClass.player.recipes.knownRecipes.ContainsKey(item.id))
703 {
705 }
706 }
707 }
Definition: EClass.cs:5
static Player player
Definition: EClass.cs:12
RecipeManager recipes
Definition: Player.cs:913
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 2242 of file CoreDebug.cs.

2243 {
2244 if (!CheatEnabled())
2245 {
2246 return EnableCheat;
2247 }
2248 if (forget)
2249 {
2251 }
2252 else
2253 {
2255 }
2256 return "Done!";
2257 }
static bool CheatEnabled()
Definition: CoreDebug.cs:1823
static string EnableCheat
Definition: CoreDebug.cs:314
void AddAllRecipes()
Definition: CoreDebug.cs:698
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 2328 of file CoreDebug.cs.

2329 {
2330 LoadBroadcast();
2331 if (Input.GetKey(KeyCode.LeftControl))
2332 {
2333 bidx--;
2334 }
2335 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2336 string text = blines[bidx];
2337 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
2338 EClass.pc.SayRaw(text.TrimNewLines());
2339 }
void SayRaw(string text, string ref1=null, string ref2=null)
Definition: Card.cs:6402
string[] blines
Definition: CoreDebug.cs:280
int bidx
Definition: CoreDebug.cs:275
void LoadBroadcast()
Definition: CoreDebug.cs:2322
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 2188 of file CoreDebug.cs.

2189 {
2190 if (EClass.sources.jobs.map.ContainsKey(id))
2191 {
2192 EClass.pc.ChangeJob(id);
2194 return "Done.";
2195 }
2196 string text = "";
2197 foreach (SourceJob.Row row in EClass.sources.jobs.rows)
2198 {
2199 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2200 }
2201 return text;
2202 }
void ChangeJob(string idNew)
Definition: Chara.cs:1959
static SourceManager sources
Definition: EClass.cs:42
void RefreshDomain()
Definition: Player.cs:1338
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 2147 of file CoreDebug.cs.

2148 {
2149 if (EClass.sources.races.map.ContainsKey(id))
2150 {
2151 Thing thing = null;
2152 foreach (BodySlot slot in EClass.pc.body.slots)
2153 {
2154 if (slot.thing != null)
2155 {
2156 if (slot.thing.blessedState <= BlessedState.Cursed)
2157 {
2158 slot.thing.blessedState = BlessedState.Normal;
2159 }
2160 if (slot.thing.trait is TraitToolBelt)
2161 {
2162 thing = slot.thing;
2163 }
2164 EClass.pc.body.Unequip(slot);
2165 }
2166 }
2169 EClass.pc.ChangeRace(id);
2170 if (EClass.ui.IsInventoryOpen)
2171 {
2172 EClass.ui.ToggleInventory();
2173 }
2176 EClass.pc.body.Equip(thing);
2177 return "Done.";
2178 }
2179 string text = "";
2180 foreach (SourceRace.Row row in EClass.sources.races.rows)
2181 {
2182 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2183 }
2184 return text;
2185 }
BlessedState
Definition: BlessedState.cs:2
Thing thing
Definition: BodySlot.cs:8
Trait trait
Definition: Card.cs:49
BlessedState blessedState
Definition: Card.cs:262
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:2058
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 1833 of file CoreDebug.cs.

1834 {
1835 EClass.game.config.cheat = true;
1836 return "Cheat Enabled";
1837 }

◆ CheatEnabled()

static bool CoreDebug.CheatEnabled ( )
inlinestatic

Definition at line 1823 of file CoreDebug.cs.

1824 {
1825 if (!EClass.debug.enable)
1826 {
1827 return EClass.game.config.cheat;
1828 }
1829 return true;
1830 }
bool enable
Definition: CoreDebug.cs:285
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 2278 of file CoreDebug.cs.

2279 {
2280 if (!CheatEnabled())
2281 {
2282 return EnableCheat;
2283 }
2284 EClass.player.doneBackers.Clear();
2285 return Resources.Load<TextAsset>("logo2").text + Environment.NewLine + "Done!";
2286 }
HashSet< int > doneBackers
Definition: Player.cs:889

References Player.doneBackers, and EClass.player.

◆ COM_MaxConstruction()

void CoreDebug.COM_MaxConstruction ( )
inline

Definition at line 1815 of file CoreDebug.cs.

1816 {
1817 if (EClass.pc.homeBranch != null)
1818 {
1820 }
1821 }
FactionBranch homeBranch
Definition: Chara.cs:932
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 1765 of file CoreDebug.cs.

1766 {
1767 EClass.ui.CloseLayers();
1768 EClass.game.world.date.hour = 2;
1770 LayerDrama.ActivateMain("mono", "1-2");
1771 }
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 1750 of file CoreDebug.cs.

1751 {
1752 for (int i = 0; i < 10000; i++)
1753 {
1754 Point point = EClass.pc.pos.Copy();
1755 point.x += EScriptable.rnd(60) - EScriptable.rnd(60);
1756 point.z += EScriptable.rnd(60) - EScriptable.rnd(60);
1757 if (point.IsValid && !point.cell.blocked && point.HasFloor)
1758 {
1759 EClass.pc.Teleport(point);
1760 break;
1761 }
1762 }
1763 }
void Teleport(Point point, bool silent=false, bool force=false)
Definition: Card.cs:5505
Point pos
Definition: Card.cs:55
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 767 of file CoreDebug.cs.

768 {
771 enable = true;
772 if ((bool)WidgetHotbar.HotbarBuild)
773 {
775 }
777 Thing orCreateDebugContainer = GetOrCreateDebugContainer();
778 SetStartStockpile(orCreateDebugContainer, numResource);
779 }
int numResource
Definition: CoreDebug.cs:216
void SetStartStockpile(Thing container, int num=100)
Definition: CoreDebug.cs:709
Thing GetOrCreateDebugContainer()
Definition: CoreDebug.cs:738
void OnEnableDebug()
Definition: Player.cs:561
Flags flags
Definition: Player.cs:910
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 2205 of file CoreDebug.cs.

2206 {
2207 string text = "Steam is not running.";
2208 DateTime dateTime = new DateTime(2024, 11, 3, 6, 0, 0);
2209 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))));
2210 dateTimeOffset = dateTimeOffset.ToOffset(new TimeSpan(9, 0, 0));
2211 text = ((dateTimeOffset < dateTime) ? "Valid: " : "Invalid: ");
2212 text = text + "Arrived North Tyris on " + dateTimeOffset.Year + " " + dateTimeOffset.Month + "/" + dateTimeOffset.Day + " " + dateTimeOffset.Hour + ":" + dateTimeOffset.Minute;
2213 return text + " Eligible by " + dateTime.Year + " " + dateTime.Month + "/" + dateTime.Day + " " + dateTime.Hour + ":" + dateTime.Minute;
2214 }

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

◆ Fix_EtherDisease()

static string CoreDebug.Fix_EtherDisease ( )
inlinestatic

Definition at line 1876 of file CoreDebug.cs.

1877 {
1878 EClass.pc.ModCorruption(-100000);
1879 Chara chara = CharaGen.Create("chara");
1880 chara.ChangeRace(EClass.pc.race.id);
1881 chara.ChangeJob(EClass.pc.job.id);
1882 string text = "";
1883 foreach (Element value in chara.elements.dict.Values)
1884 {
1885 if (!(value.source.category != "attribute"))
1886 {
1887 Element orCreateElement = EClass.pc.elements.GetOrCreateElement(value.id);
1888 if (value.vBase > orCreateElement.vBase)
1889 {
1890 text = text + "Fixing Base Value:" + orCreateElement.Name + " Before:" + orCreateElement.vBase + " Now:" + (value.vBase + 1) + Environment.NewLine;
1891 EClass.pc.elements.ModBase(orCreateElement.id, value.vBase - orCreateElement.vBase + 1);
1892 }
1893 }
1894 }
1895 return text + "Fixed!";
1896 }
ElementContainerCard elements
Definition: Card.cs:37
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
SourceJob.Row job
Definition: Chara.cs:462
void ModCorruption(int a)
Definition: Chara.cs:9056
SourceRace.Row race
Definition: Chara.cs:460
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 1899 of file CoreDebug.cs.

1900 {
1902 {
1903 return "Not in base.";
1904 }
1905 foreach (Thing thing in EClass._map.things)
1906 {
1907 if (thing.trait is TraitCoreZone)
1908 {
1909 return "Base already has core.";
1910 }
1911 }
1912 if (EClass.pc.things.Find((Thing t) => t.trait is TraitCoreZone) != null)
1913 {
1914 return "Player has core.";
1915 }
1917 return "Done.";
1918 }
ThingContainer things
Definition: Card.cs:34
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)
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:466
Card AddCard(Card t, Point point)
Definition: Zone.cs:1910

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

1922 {
1923 List<Chara> list = new List<Chara>();
1924 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1925 {
1926 if (value.id == "demitas" && value.currentZone == EClass._zone)
1927 {
1928 list.Add(value);
1929 }
1930 }
1931 if (list.Count > 1)
1932 {
1933 Chara chara = list[1];
1934 chara.homeBranch.BanishMember(chara);
1935 chara.Destroy();
1936 return "Demitas Removed!";
1937 }
1938 return "Not enough Demitas!";
1939 }
GlobalCharaList globalCharas
Definition: CardManager.cs:46
string id
Definition: Card.cs:31
void Destroy()
Definition: Card.cs:4783
Zone currentZone
Definition: Chara.cs:251
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 1942 of file CoreDebug.cs.

1943 {
1944 EClass._map.ForeachCell(delegate(Cell c)
1945 {
1946 if (c.detail != null && c.detail.designation != null)
1947 {
1948 c.detail.designation.taskList.Remove(c.detail.designation);
1949 }
1950 });
1951 return "Done.";
1952 }
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:2324

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

◆ Fix_RemoveDuplicateUnique()

static string CoreDebug.Fix_RemoveDuplicateUnique ( )
inlinestatic

Definition at line 1858 of file CoreDebug.cs.

1859 {
1860 if (EClass.Branch == null)
1861 {
1862 return "No Branch";
1863 }
1864 EClass.Branch.members.ForeachReverse(delegate(Chara c)
1865 {
1866 if ((c.id == "kettle" || c.id == "quru") && EClass.Branch.members.Where((Chara c2) => c2.id == c.id).Count() >= 2)
1867 {
1868 EClass.Branch.RemoveMemeber(c);
1869 c.Destroy();
1870 }
1871 });
1872 return "Fixed!";
1873 }
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 2140 of file CoreDebug.cs.

2141 {
2143 return "I can fly!";
2144 }
Condition AddCondition(string id, int p=100, bool force=false)
Definition: Chara.cs:8559

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

◆ GetDebugContainer()

Thing CoreDebug.GetDebugContainer ( )
inline

Definition at line 755 of file CoreDebug.cs.

756 {
757 foreach (Thing thing in EClass._map.things)
758 {
759 if (thing.c_altName == "DebugContainer")
760 {
761 return thing;
762 }
763 }
764 return null;
765 }
string c_altName
Definition: Card.cs:1553

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

Referenced by BuildMenu.OnActivate().

◆ GetOrCreateDebugContainer()

Thing CoreDebug.GetOrCreateDebugContainer ( )
inline

Definition at line 738 of file CoreDebug.cs.

739 {
740 foreach (Thing thing2 in EClass._map.things)
741 {
742 if (thing2.c_altName == "DebugContainer")
743 {
744 return thing2;
745 }
746 }
747 Thing thing = EClass._zone.AddThing("barrel", EClass.pc.pos).Thing;
748 thing.ChangeMaterial("obsidian");
749 thing.c_altName = "DebugContainer";
750 thing.isNPCProperty = false;
751 thing.SetPlaceState(PlaceState.installed);
752 return thing;
753 }
PlaceState
Definition: PlaceState.cs:2
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3596
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:2957
virtual Thing Thing
Definition: Card.cs:1994
Card AddThing(string id, int x, int z)
Definition: Zone.cs:1900

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

2096 {
2097 if (!CheatEnabled())
2098 {
2099 return EnableCheat;
2100 }
2101 EClass.pc.Revive();
2102 EClass.pc.hp = EClass.pc.MaxHP;
2103 return "I'm God!";
2104 }
override int MaxHP
Definition: Chara.cs:704
void Revive(Point p=null, bool msg=false)
Definition: Chara.cs:4746

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

◆ Init()

void CoreDebug.Init ( )
inline

Definition at line 327 of file CoreDebug.cs.

328 {
330 EInput.disableKeyAxis = Application.isEditor;
331 }
void InitDebugCommands()
Definition: CoreDebug.cs:1441

References InitDebugCommands().

Referenced by Core.Init().

◆ InitDebugCommands()

void CoreDebug.InitDebugCommands ( )
inline

Definition at line 1441 of file CoreDebug.cs.

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

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

2261 {
2262 string text = "";
2263 foreach (SourceBacker.Row row in EClass.sources.backers.rows)
2264 {
2265 if (row.name.Contains(name) || row.id.ToString() == name)
2266 {
2267 text = text + row.id + " valid?:" + row.valid + " lang:" + row.lang + " type:" + row.type + " destroyed:" + EClass.player.doneBackers.Contains(row.id) + " loc:" + (row.loc.IsEmpty() ? "random" : row.loc) + Environment.NewLine;
2268 }
2269 }
2270 if (text == "")
2271 {
2272 return "Not Found";
2273 }
2274 return text + Resources.Load<TextAsset>("logo2").text;
2275 }

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

◆ ListChara()

static string CoreDebug.ListChara ( )
inlinestatic

Definition at line 1955 of file CoreDebug.cs.

1956 {
1957 string text = "";
1958 foreach (SourceChara.Row row in EClass.sources.charas.rows)
1959 {
1960 text = text + row.id + "\n";
1961 }
1962 return text;
1963 }
SourceChara charas

References SourceManager.charas, and EClass.sources.

◆ ListThing()

static string CoreDebug.ListThing ( )
inlinestatic

Definition at line 1966 of file CoreDebug.cs.

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

References EClass.sources, and SourceManager.things.

◆ LoadBroadcast()

void CoreDebug.LoadBroadcast ( )
inline

Definition at line 2322 of file CoreDebug.cs.

2323 {
2324 TextAsset textAsset = Resources.Load<TextAsset>("Data/Text/broadcast");
2325 blines = textAsset.text.Split('-');
2326 }

◆ Log()

void CoreDebug.Log ( object  o)
inline

Definition at line 2299 of file CoreDebug.cs.

2300 {
2301 Debug.Log(o);
2302 }

References Debug.

Referenced by Tutorial.Play().

◆ LOG_Spatials()

void CoreDebug.LOG_Spatials ( )
inline

Definition at line 1783 of file CoreDebug.cs.

1784 {
1785 foreach (Spatial child in EClass.world.region.children)
1786 {
1787 Debug.Log(child.uid + "/" + child.Name + "/" + child.mainFaction.name + "/" + (child == EClass.player.zone));
1788 }
1789 }
string name
Definition: FACTION.cs:135
Zone zone
Definition: Player.cs:898
int uid
Definition: Spatial.cs:70
virtual string Name
Definition: Spatial.cs:495
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 2129 of file CoreDebug.cs.

2130 {
2131 if (!CheatEnabled())
2132 {
2133 return EnableCheat;
2134 }
2136 return "Done.";
2137 }
void AddContribution(int a)
Definition: FACTION.cs:318
Definition: Guild.cs:2
static Guild GetCurrentGuild()
Definition: Guild.cs:41

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

◆ ModFame()

static string CoreDebug.ModFame ( int  amount)
inlinestatic

Definition at line 2107 of file CoreDebug.cs.

2108 {
2109 if (!CheatEnabled())
2110 {
2111 return EnableCheat;
2112 }
2113 EClass.player.ModFame(amount);
2114 return "Done.";
2115 }
void ModFame(int a)
Definition: Player.cs:1900

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

◆ ModKarma()

static string CoreDebug.ModKarma ( int  amount)
inlinestatic

Definition at line 2118 of file CoreDebug.cs.

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

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

◆ NextBGM()

void CoreDebug.NextBGM ( )
inline

Definition at line 2304 of file CoreDebug.cs.

2305 {
2306 if ((bool)SoundManager.current)
2307 {
2308 SoundManager.current.NextBGM();
2309 }
2310 }

◆ OnLoad()

void CoreDebug.OnLoad ( )
inline

Definition at line 690 of file CoreDebug.cs.

691 {
692 if (allRecipe)
693 {
695 }
696 }
bool allRecipe
Definition: CoreDebug.cs:232

References AddAllRecipes(), and allRecipe.

Referenced by Game.OnLoad().

◆ QuickStart()

void CoreDebug.QuickStart ( )
inline

Definition at line 333 of file CoreDebug.cs.

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

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

2218 {
2220 NameGen.list = null;
2221 AliasGen.list = null;
2222 NameGen.Init();
2223 AliasGen.Init();
2224 foreach (Chara chara in EClass._map.charas)
2225 {
2226 if (!chara.IsPC)
2227 {
2228 if (chara.source.name == "*r")
2229 {
2230 chara.c_altName = NameGen.getRandomName();
2231 }
2232 if (!chara._alias.IsEmpty())
2233 {
2234 chara._alias = AliasGen.GetRandomAlias();
2235 }
2236 }
2237 }
2238 return "Done!";
2239 }
override bool IsPC
Definition: Chara.cs:608
SourceChara.Row source
Definition: Chara.cs:154
string _alias
Definition: Chara.cs:215
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 1840 of file CoreDebug.cs.

1841 {
1842 QuestDebt questDebt = EClass.game.quests.Get<QuestDebt>();
1843 if (questDebt == null)
1844 {
1845 return "Quest Status Not Valid.";
1846 }
1847 questDebt.stage = 0;
1848 questDebt.paid = false;
1849 questDebt.gaveBill = false;
1850 EClass.player.debt = 20000000;
1851 Thing thing = ThingGen.Create("856");
1852 thing.refVal = 109;
1853 EClass.pc.Pick(thing);
1854 return "Quest Reset!";
1855 }
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Definition: Chara.cs:4017
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 2071 of file CoreDebug.cs.

2072 {
2073 foreach (Chara value in EClass.game.cards.globalCharas.Values)
2074 {
2075 if (value.IsPCFaction)
2076 {
2077 value.ResetUpgrade();
2078 }
2079 }
2080 return "Not Implemented.";
2081 }
void ResetUpgrade()
Definition: Chara.cs:7935
override bool IsPCFaction
Definition: Chara.cs:667

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

◆ ResetPrincipalSeals()

static string CoreDebug.ResetPrincipalSeals ( )
inlinestatic

Definition at line 2084 of file CoreDebug.cs.

2085 {
2086 if (!CheatEnabled())
2087 {
2088 return EnableCheat;
2089 }
2090 EClass.game.principal.modified.Clear();
2091 return "Done.";
2092 }
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 2289 of file CoreDebug.cs.

2290 {
2291 if (!CheatEnabled())
2292 {
2293 return EnableCheat;
2294 }
2296 return "Resources spawned.";
2297 }
void SpawnCheatContainer()
Definition: CoreDebug.cs:781

References EClass.debug, and SpawnCheatContainer().

◆ SetElement()

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

Definition at line 1977 of file CoreDebug.cs.

1978 {
1979 if (!CheatEnabled())
1980 {
1981 return EnableCheat;
1982 }
1983 SourceElement.Row row = EClass.sources.elements.alias.TryGetValue(alias);
1984 if (row == null)
1985 {
1986 return "Element not found.";
1987 }
1988 if (row.type == "Feat")
1989 {
1990 EClass.pc.SetFeat(row.id, value, msg: true);
1991 }
1992 else
1993 {
1994 EClass.pc.elements.SetBase(row.id, value, potential);
1995 }
1996 return "Done.";
1997 }
void SetFeat(int id, int value=1, bool msg=false)
Definition: Chara.cs:9114

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

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

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

2016 {
2017 if (!CheatEnabled())
2018 {
2019 return EnableCheat;
2020 }
2021 if (EClass.sources.things.map.ContainsKey(id))
2022 {
2023 Thing thing = ThingGen.Create(id, -1, objLv).SetNum(num);
2024 if (!aliasMat.IsEmpty())
2025 {
2026 thing.ChangeMaterial(aliasMat);
2027 }
2028 EClass._zone.AddCard(thing, EClass.pc.pos);
2029 return "Spawned " + thing.Name;
2030 }
2031 if (EClass.sources.charas.map.ContainsKey(id))
2032 {
2033 Chara chara = CharaGen.Create(id);
2034 if (objLv != -1)
2035 {
2036 chara.SetLv(objLv);
2037 }
2038 EClass._zone.AddCard(chara, EClass.pc.pos);
2039 return "Spawned " + chara.Name;
2040 }
2041 return "'" + id + "' does not exist in the database.";
2042 }
string Name
Definition: Card.cs:2073

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

2001 {
2002 if (!CheatEnabled())
2003 {
2004 return EnableCheat;
2005 }
2006 if (EClass.sources.charas.map.ContainsKey(id))
2007 {
2009 return "Spawned " + chara.Name;
2010 }
2011 return "'" + id + "' does not exist in the database.";
2012 }
static SpawnSetting Boss(int filterLv, int fixedLv=-1)
Definition: SpawnSetting.cs:45
Chara SpawnMob(Point pos=null, SpawnSetting setting=null)
Definition: Zone.cs:2645

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

782 {
783 }

Referenced by Resource().

◆ Test_Filter()

void CoreDebug.Test_Filter ( )
inline

Definition at line 1773 of file CoreDebug.cs.

1774 {
1775 bilinear = !bilinear;
1776 MeshPass[] passes = EClass.scene.passes;
1777 for (int i = 0; i < passes.Length; i++)
1778 {
1779 passes[i].mat.GetTexture("_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1780 }
1781 }
bool bilinear
Definition: CoreDebug.cs:277
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 1742 of file CoreDebug.cs.

1743 {
1744 foreach (Religion value in EClass.game.religions.dictAll.Values)
1745 {
1746 value.Talk("test");
1747 }
1748 }
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 1724 of file CoreDebug.cs.

1725 {
1726 EClass._map.ForeachCell(delegate(Cell c)
1727 {
1728 if (c.sourceObj.HasGrowth)
1729 {
1730 c.TryGrow();
1731 }
1732 });
1733 foreach (Thing item in EClass._map.things.Copy())
1734 {
1735 if (item.trait is TraitSeed traitSeed)
1736 {
1737 traitSeed.TrySprout(force: true);
1738 }
1739 }
1740 }
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 1803 of file CoreDebug.cs.

1804 {
1805 if (EClass._zone.events.GetEvent<ZoneEventSiege>() == null)
1806 {
1808 }
1809 else
1810 {
1812 }
1813 }
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 1791 of file CoreDebug.cs.

1792 {
1793 if (EClass._zone.events.GetEvent<ZoneEventSiegeGuard>() == null)
1794 {
1796 }
1797 else
1798 {
1800 }
1801 }

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

2046 {
2047 if (!CheatEnabled())
2048 {
2049 return EnableCheat;
2050 }
2051 if (EClass._zone is Zone_Arena)
2052 {
2053 EClass._zone._dangerLv = lv;
2054 }
2055 foreach (Chara item in EClass._map.charas.Where((Chara c) => c.HasEditorTag(EditorTag.SpawnTest)).ToList())
2056 {
2057 item.Destroy();
2058 }
2059 for (int i = 0; i < num; i++)
2060 {
2061 EClass._zone.SpawnMob(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: false, ignoreCenter: true), new SpawnSetting
2062 {
2063 filterLv = lv,
2064 levelRange = lvRange
2065 }).AddEditorTag(EditorTag.SpawnTest);
2066 }
2067 return "Spawned.";
2068 }
EditorTag
Definition: EditorTag.cs:2
void AddEditorTag(EditorTag tag)
Definition: Card.cs:2541
bool HasEditorTag(EditorTag tag)
Definition: Card.cs:2536

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

2313 {
2315 if (revealMap)
2316 {
2318 }
2319 SE.ClickGeneral();
2320 }
bool revealMap
Definition: CoreDebug.cs:153
void RevealAll(bool reveal=true)
Definition: Map.cs:899

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

Referenced by HotItemContext.Show().

◆ UpdateAlways()

void CoreDebug.UpdateAlways ( )
inline

Definition at line 785 of file CoreDebug.cs.

786 {
787 if (!EClass.debug.enable || (bool)EClass.ui.GetLayer<LayerConsole>())
788 {
789 return;
790 }
791 if (Input.GetKeyDown(KeyCode.B))
792 {
794 }
795 if (Input.GetKeyDown(KeyCode.O))
796 {
798 }
799 if (Input.GetKeyDown(KeyCode.P))
800 {
802 }
803 if (Input.GetKeyDown(KeyCode.F11))
804 {
805 if (Application.isEditor)
806 {
807 EClass.core.SetLang((Lang.langCode == "EN") ? "JP" : "EN");
808 }
809 else
810 {
812 }
813 NewsList.dict = null;
814 BookList.dict = null;
815 BookList.Init();
816 }
818 {
819 if (Input.GetKeyDown(KeyCode.U))
820 {
822 Msg.SayRaw(offset.ToString() ?? "");
823 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
824 }
825 if (Input.GetKeyDown(KeyCode.I))
826 {
828 Msg.SayRaw(offset.ToString() ?? "");
829 EClass.screen.tileMap.rendererInnerBlock.offset = new Vector3(0f, 0.54f, -0.5f);
830 }
831 }
832 }
ID_Achievement
BaseTileMap tileMap
RenderData rendererInnerBlock
Definition: BaseTileMap.cs:203
static void Init()
Definition: BookList.cs:20
bool IsGameStarted
Definition: Core.cs:84
void SetLang(string langCode, bool force=false)
Definition: Core.cs:699
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 844 of file CoreDebug.cs.

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

References Chara._CreateRenderer(), EClass._map, EClass._zone, EInput.action, Scene.actionMode, AM_MoveInstalled.Activate(), MiniGame.Activate(), QuestManager.Add(), Zone.AddCard(), Map.AddDecal(), Card.AddExp(), advanceMin, GameDate.AdvanceMin(), Props.all, animeDest, Point.area, EClass.Branch, card, CellDetail.charas, Map.charas, Steam.CheckUpdate(), EInput.Consume(), EClass.core, ThingGen.Create(), CharaGen.Create(), ThingGen.CreateFromCategory(), ThingGen.CreatePotion(), ThingGen.CreateSpellbook(), World.date, ActionMode.Deactivate(), Map.deadCharas, Debug, debugHotkeys, debugInput, Point.detail, Spatial.development, Card.elements, EnableDebugResource(), MapSubset.Exist(), Card.ExpToNext, Map.FindThing(), Point.FirstChara, Point.FirstThing, GameUpdater.FixedUpdate(), Player.flags, 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(), Card.MakeEgg(), Chara.MakeGene(), Card.MakeMilk(), Card.material, Party.members, FactionBranch.ModExp(), Scene.mouseTarget, TraitNewZone.MoveZone(), 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(), 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 834 of file CoreDebug.cs.

835 {
837 {
841 }
842 }
PropsInstalled Installed
Definition: Map.cs:123
PropsStocked Stocked
Definition: Map.cs:121
void Validate()
Definition: Props.cs:413

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

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

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

Member Data Documentation

◆ _godBuild

bool CoreDebug._godBuild

Definition at line 178 of file CoreDebug.cs.

◆ advanceMin

int CoreDebug.advanceMin

Definition at line 145 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ allAbility

bool CoreDebug.allAbility

Definition at line 190 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allArt

bool CoreDebug.allArt

Definition at line 196 of file CoreDebug.cs.

Referenced by ContentGallery.OnSwitchContent().

◆ allBGM

bool CoreDebug.allBGM

Definition at line 198 of file CoreDebug.cs.

Referenced by LayerEditPlaylist.Refresh().

◆ allHomeSkill

bool CoreDebug.allHomeSkill

Definition at line 194 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allMenu

bool CoreDebug.allMenu

Definition at line 234 of file CoreDebug.cs.

◆ allPolicy

bool CoreDebug.allPolicy

Definition at line 236 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allRecipe

bool CoreDebug.allRecipe

Definition at line 232 of file CoreDebug.cs.

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

◆ allSkill

bool CoreDebug.allSkill

Definition at line 192 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allStory

bool CoreDebug.allStory

Definition at line 238 of file CoreDebug.cs.

Referenced by TraitStoryBook.OnRead().

◆ alwaysFavFood

bool CoreDebug.alwaysFavFood

Definition at line 227 of file CoreDebug.cs.

Referenced by Affinity.OnGift().

◆ alwaysResetWindow

bool CoreDebug.alwaysResetWindow

Definition at line 127 of file CoreDebug.cs.

Referenced by ELayer.Kill().

◆ animeDest

Card CoreDebug.animeDest
private

Definition at line 272 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ autoAdvanceQuest

bool CoreDebug.autoAdvanceQuest

◆ autoIdentify

bool CoreDebug.autoIdentify

Definition at line 188 of file CoreDebug.cs.

Referenced by Thing.OnCreate().

◆ bidx

int CoreDebug.bidx
private

Definition at line 275 of file CoreDebug.cs.

◆ bilinear

bool CoreDebug.bilinear
private

Definition at line 277 of file CoreDebug.cs.

◆ blines

string [] CoreDebug.blines
private

Definition at line 280 of file CoreDebug.cs.

◆ boradcast

bool CoreDebug.boradcast

Definition at line 259 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ command

string CoreDebug.command

Definition at line 135 of file CoreDebug.cs.

Referenced by Core.Awake().

◆ commands

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

Definition at line 282 of file CoreDebug.cs.

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

◆ debugHoard

bool CoreDebug.debugHoard

Definition at line 155 of file CoreDebug.cs.

Referenced by LayerHoard.OnAfterInit().

◆ debugHotkeys

DebugHotkey CoreDebug.debugHotkeys

Definition at line 142 of file CoreDebug.cs.

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

◆ debugInput

bool CoreDebug.debugInput

Definition at line 138 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ debugProps

bool CoreDebug.debugProps

Definition at line 151 of file CoreDebug.cs.

◆ debugScatter

bool CoreDebug.debugScatter

Definition at line 176 of file CoreDebug.cs.

◆ dontCompressSave

bool CoreDebug.dontCompressSave

Definition at line 131 of file CoreDebug.cs.

◆ dontUseThread

bool CoreDebug.dontUseThread

Definition at line 121 of file CoreDebug.cs.

Referenced by LayerProgress.Start().

◆ enable

bool CoreDebug.enable

Definition at line 285 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(), TraitGeneMachine.GetProgress(), 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(), AI_Fish.ProgressFish.OnProgressComplete(), TaskDig.OnProgressComplete(), TraitDeed.OnRead(), TileSelectorElona.OnRenderTile(), HotItemLayer.OnSetItem(), FactionBranch.OnSimulateDay(), ContentQuest.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(), 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(), 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 212 of file CoreDebug.cs.

◆ fixedColor

Color32 CoreDebug.fixedColor

Definition at line 263 of file CoreDebug.cs.

◆ fov

Fov CoreDebug.fov = new Fov()

Definition at line 287 of file CoreDebug.cs.

◆ godCraft

bool CoreDebug.godCraft

◆ godFood

bool CoreDebug.godFood

Definition at line 182 of file CoreDebug.cs.

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

◆ godMode

◆ hidePCItemsInBuild

bool CoreDebug.hidePCItemsInBuild

Definition at line 208 of file CoreDebug.cs.

Referenced by BuildMenu.RefreshCategory().

◆ ignoreAutoSave

bool CoreDebug.ignoreAutoSave

Definition at line 125 of file CoreDebug.cs.

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

◆ ignoreBuildRule

◆ ignoreEncounter

bool CoreDebug.ignoreEncounter

Definition at line 200 of file CoreDebug.cs.

Referenced by Chara.Tick().

◆ ignorePool

bool CoreDebug.ignorePool

Definition at line 116 of file CoreDebug.cs.

Referenced by Core.Update().

◆ ignorePopup

bool CoreDebug.ignorePopup

Definition at line 159 of file CoreDebug.cs.

Referenced by PopupManager.Add().

◆ ignoreWeight

bool CoreDebug.ignoreWeight

Definition at line 186 of file CoreDebug.cs.

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

◆ indexResolution

int CoreDebug.indexResolution
private

Definition at line 289 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ instaReturn

bool CoreDebug.instaReturn

Definition at line 204 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ inviteAnytime

bool CoreDebug.inviteAnytime

Definition at line 221 of file CoreDebug.cs.

Referenced by Affinity.CanInvite().

◆ keypadDebug

bool CoreDebug.keypadDebug

Definition at line 140 of file CoreDebug.cs.

◆ langCode

Lang.LangCode CoreDebug.langCode

Definition at line 113 of file CoreDebug.cs.

Referenced by Core.Awake().

◆ lastAnime

AnimeID CoreDebug.lastAnime
private

Definition at line 291 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ lastEmo

Emo CoreDebug.lastEmo
private

Definition at line 293 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ logAdv

bool CoreDebug.logAdv

Definition at line 241 of file CoreDebug.cs.

Referenced by GlobalGoalVisitAndStay.OnAdvanceHour().

◆ logCombat

bool CoreDebug.logCombat

Definition at line 244 of file CoreDebug.cs.

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

◆ logDice

bool CoreDebug.logDice

Definition at line 246 of file CoreDebug.cs.

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

◆ marryAnytime

bool CoreDebug.marryAnytime

Definition at line 223 of file CoreDebug.cs.

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

◆ matColorTest

MatColorTest CoreDebug.matColorTest

Definition at line 257 of file CoreDebug.cs.

◆ maxQuests

bool CoreDebug.maxQuests

Definition at line 229 of file CoreDebug.cs.

◆ naked

bool CoreDebug.naked
private

Definition at line 295 of file CoreDebug.cs.

◆ numResource

int CoreDebug.numResource

Definition at line 216 of file CoreDebug.cs.

Referenced by EnableDebugResource().

◆ param1

int CoreDebug.param1

Definition at line 252 of file CoreDebug.cs.

◆ param2

int CoreDebug.param2

Definition at line 255 of file CoreDebug.cs.

◆ randomResource

bool CoreDebug.randomResource

Definition at line 174 of file CoreDebug.cs.

Referenced by SetStartStockpile().

◆ resetPlayerConfig

bool CoreDebug.resetPlayerConfig

Definition at line 119 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 265 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ returnAnywhere

bool CoreDebug.returnAnywhere

Definition at line 202 of file CoreDebug.cs.

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

◆ revealInner

bool CoreDebug.revealInner

Definition at line 157 of file CoreDebug.cs.

◆ revealMap

bool CoreDebug.revealMap

Definition at line 153 of file CoreDebug.cs.

Referenced by HotItemContext.Show().

◆ runtimeGodBuild

bool CoreDebug.runtimeGodBuild
private

Definition at line 298 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ showExtra

◆ showFav

bool CoreDebug.showFav

Definition at line 225 of file CoreDebug.cs.

Referenced by DramaCustomSequence.Build().

◆ showSceneSelector

bool CoreDebug.showSceneSelector

Definition at line 108 of file CoreDebug.cs.

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

◆ showTone

bool CoreDebug.showTone

Definition at line 165 of file CoreDebug.cs.

◆ skipEvent

bool CoreDebug.skipEvent

Definition at line 161 of file CoreDebug.cs.

Referenced by ZoneEventManager.Add().

◆ skipMod

bool CoreDebug.skipMod

Definition at line 133 of file CoreDebug.cs.

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

◆ skipModSync

bool CoreDebug.skipModSync

Definition at line 111 of file CoreDebug.cs.

Referenced by Core.StartCase().

◆ skipNerun

bool CoreDebug.skipNerun

Definition at line 163 of file CoreDebug.cs.

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

◆ startHour

int CoreDebug.startHour

Definition at line 101 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startLoadout

StartLoadout CoreDebug.startLoadout

Definition at line 97 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startParty

StartParty CoreDebug.startParty

Definition at line 99 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startScene

StartScene CoreDebug.startScene

Definition at line 95 of file CoreDebug.cs.

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

◆ startSetting

StartSetting CoreDebug.startSetting

Definition at line 103 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startZone

string CoreDebug.startZone

Definition at line 105 of file CoreDebug.cs.

Referenced by Game.StartNewGame().

◆ test

bool CoreDebug.test

Definition at line 169 of file CoreDebug.cs.

Referenced by Zone.TryGenerateShrine().

◆ testFixedColor

bool CoreDebug.testFixedColor

Definition at line 261 of file CoreDebug.cs.

◆ testLOS

bool CoreDebug.testLOS

Definition at line 147 of file CoreDebug.cs.

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

◆ testLOS2

bool CoreDebug.testLOS2

Definition at line 149 of file CoreDebug.cs.

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

◆ testThingQuality

bool CoreDebug.testThingQuality

Definition at line 214 of file CoreDebug.cs.

Referenced by Card.Create().

◆ travelAnywhere

bool CoreDebug.travelAnywhere

Definition at line 206 of file CoreDebug.cs.

Referenced by Spatial.Create().

◆ ttt

int CoreDebug.ttt
private

Definition at line 300 of file CoreDebug.cs.

◆ unlimitedInterest

bool CoreDebug.unlimitedInterest

Definition at line 219 of file CoreDebug.cs.

Referenced by Affinity.OnTalkRumor().

◆ useNewConfig

bool CoreDebug.useNewConfig

Definition at line 123 of file CoreDebug.cs.

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

◆ validateData

bool CoreDebug.validateData

Definition at line 129 of file CoreDebug.cs.

◆ validatePref

bool CoreDebug.validatePref

Definition at line 249 of file CoreDebug.cs.

Referenced by Core.Init().

Property Documentation

◆ EnableCheat

string CoreDebug.EnableCheat
staticget

Definition at line 314 of file CoreDebug.cs.

◆ godBuild


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