Elin Decompiled Documentation EA 23.240 Nightly
Loading...
Searching...
No Matches
CoreDebug Class Reference
Inheritance diagram for CoreDebug:
EScriptable

Classes

class  DebugCommand
 
class  MatColorTest
 
class  StartSetting
 

Public Types

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

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Properties

bool godBuild [get]
 
static string EnableCheat [get]
 

Private Member Functions

IEnumerable< string > ZoneIDs ()
 

Private Attributes

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

Detailed Description

Definition at line 9 of file CoreDebug.cs.

Member Enumeration Documentation

◆ DebugHotkey

Enumerator
None 
Block 
Item 
Decal 
Act 
Test 
Anime 

Definition at line 21 of file CoreDebug.cs.

◆ StartLoadout

Enumerator
New 
AllItem 
FewItem 

Definition at line 32 of file CoreDebug.cs.

◆ StartParty

Enumerator
None 
Farris 
Full 

Definition at line 39 of file CoreDebug.cs.

◆ StartScene

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

Definition at line 46 of file CoreDebug.cs.

Member Function Documentation

◆ AddAllRecipes()

void CoreDebug.AddAllRecipes ( )
inline

Definition at line 714 of file CoreDebug.cs.

715 {
717 {
718 if (!EClass.player.recipes.knownRecipes.ContainsKey(item.id))
719 {
721 }
722 }
723 }
Definition: EClass.cs:6
static Player player
Definition: EClass.cs:13
RecipeManager recipes
Definition: Player.cs:1097
static List< RecipeSource > list
Dictionary< string, int > knownRecipes

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

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

◆ AllRecipe()

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

Definition at line 2279 of file CoreDebug.cs.

2280 {
2281 if (!CheatEnabled())
2282 {
2283 return EnableCheat;
2284 }
2285 if (forget)
2286 {
2288 }
2289 else
2290 {
2292 }
2293 return "Done!";
2294 }
static bool CheatEnabled()
Definition: CoreDebug.cs:1831
static string EnableCheat
Definition: CoreDebug.cs:315
void AddAllRecipes()
Definition: CoreDebug.cs:714
static CoreDebug debug
Definition: EClass.cs:49

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

◆ BroadcastNext()

void CoreDebug.BroadcastNext ( )
inline

Definition at line 2365 of file CoreDebug.cs.

2366 {
2367 LoadBroadcast();
2368 if (Input.GetKey(KeyCode.LeftControl))
2369 {
2370 bidx--;
2371 }
2372 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2373 string text = blines[bidx];
2374 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
2375 EClass.pc.SayRaw(text.TrimNewLines());
2376 }
void SayRaw(string text, string ref1=null, string ref2=null)
Definition: Card.cs:6760
string[] blines
Definition: CoreDebug.cs:281
int bidx
Definition: CoreDebug.cs:276
void LoadBroadcast()
Definition: CoreDebug.cs:2359
static Chara pc
Definition: EClass.cs:15

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

Referenced by AM_Adv._OnUpdateInput().

◆ ChangeJob()

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

Definition at line 2225 of file CoreDebug.cs.

2226 {
2227 if (EClass.sources.jobs.map.ContainsKey(id))
2228 {
2229 EClass.pc.ChangeJob(id);
2231 return "Done.";
2232 }
2233 string text = "";
2234 foreach (SourceJob.Row row in EClass.sources.jobs.rows)
2235 {
2236 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2237 }
2238 return text;
2239 }
void ChangeJob(string idNew)
Definition: Chara.cs:2154
static SourceManager sources
Definition: EClass.cs:43
void RefreshDomain()
Definition: Player.cs:1522
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 2184 of file CoreDebug.cs.

2185 {
2186 if (EClass.sources.races.map.ContainsKey(id))
2187 {
2188 Thing thing = null;
2189 foreach (BodySlot slot in EClass.pc.body.slots)
2190 {
2191 if (slot.thing != null)
2192 {
2193 if (slot.thing.blessedState <= BlessedState.Cursed)
2194 {
2195 slot.thing.blessedState = BlessedState.Normal;
2196 }
2197 if (slot.thing.trait is TraitToolBelt)
2198 {
2199 thing = slot.thing;
2200 }
2201 EClass.pc.body.Unequip(slot);
2202 }
2203 }
2206 EClass.pc.ChangeRace(id);
2207 if (EClass.ui.IsInventoryOpen)
2208 {
2209 EClass.ui.ToggleInventory();
2210 }
2213 EClass.pc.body.Equip(thing);
2214 return "Done.";
2215 }
2216 string text = "";
2217 foreach (SourceRace.Row row in EClass.sources.races.rows)
2218 {
2219 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2220 }
2221 return text;
2222 }
BlessedState
Definition: BlessedState.cs:2
Thing thing
Definition: BodySlot.cs:8
Trait trait
Definition: Card.cs:53
BlessedState blessedState
Definition: Card.cs:278
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:2253
CharaBody body
Definition: Chara.cs:94
static UI ui
Definition: EClass.cs:17
SourceRace races
Definition: Thing.cs:8

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

◆ Cheat()

static string CoreDebug.Cheat ( )
inlinestatic

Definition at line 1841 of file CoreDebug.cs.

1842 {
1843 EClass.game.config.cheat = true;
1844 return "Cheat Enabled";
1845 }

◆ CheatEnabled()

static bool CoreDebug.CheatEnabled ( )
inlinestatic

Definition at line 1831 of file CoreDebug.cs.

1832 {
1833 if (!EClass.debug.enable)
1834 {
1835 return EClass.game.config.cheat;
1836 }
1837 return true;
1838 }
bool enable
Definition: CoreDebug.cs:286
static Game game
Definition: EClass.cs:9
bool cheat
Definition: Game.cs:54
Config config
Definition: Game.cs:218

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

◆ ClearLastWishFlag()

static string CoreDebug.ClearLastWishFlag ( )
inlinestatic

Definition at line 2315 of file CoreDebug.cs.

2316 {
2317 if (!CheatEnabled())
2318 {
2319 return EnableCheat;
2320 }
2321 EClass.player.doneBackers.Clear();
2322 return Resources.Load<TextAsset>("logo2").text + Environment.NewLine + "Done!";
2323 }
HashSet< int > doneBackers
Definition: Player.cs:1073

References Player.doneBackers, and EClass.player.

◆ COM_MaxConstruction()

void CoreDebug.COM_MaxConstruction ( )
inline

Definition at line 1823 of file CoreDebug.cs.

1824 {
1825 if (EClass.pc.homeBranch != null)
1826 {
1828 }
1829 }
FactionBranch homeBranch
Definition: Chara.cs:1066
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 1773 of file CoreDebug.cs.

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

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

◆ COM_Teleport()

void CoreDebug.COM_Teleport ( )
inline

Definition at line 1758 of file CoreDebug.cs.

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

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

◆ EnableDebugResource()

void CoreDebug.EnableDebugResource ( )
inline

Definition at line 783 of file CoreDebug.cs.

784 {
787 enable = true;
788 if ((bool)WidgetHotbar.HotbarBuild)
789 {
791 }
793 Thing orCreateDebugContainer = GetOrCreateDebugContainer();
794 SetStartStockpile(orCreateDebugContainer, numResource);
795 }
int numResource
Definition: CoreDebug.cs:217
void SetStartStockpile(Thing container, int num=100)
Definition: CoreDebug.cs:725
Thing GetOrCreateDebugContainer()
Definition: CoreDebug.cs:754
void OnEnableDebug()
Definition: Player.cs:722
Flags flags
Definition: Player.cs:1094
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 2242 of file CoreDebug.cs.

2243 {
2244 string text = "Steam is not running.";
2245 DateTime dateTime = new DateTime(2024, 11, 3, 6, 0, 0);
2246 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))));
2247 dateTimeOffset = dateTimeOffset.ToOffset(new TimeSpan(9, 0, 0));
2248 text = ((dateTimeOffset < dateTime) ? "Valid: " : "Invalid: ");
2249 text = text + "Arrived North Tyris on " + dateTimeOffset.Year + " " + dateTimeOffset.Month + "/" + dateTimeOffset.Day + " " + dateTimeOffset.Hour + ":" + dateTimeOffset.Minute;
2250 return text + " Eligible by " + dateTime.Year + " " + dateTime.Month + "/" + dateTime.Day + " " + dateTime.Hour + ":" + dateTime.Minute;
2251 }

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

◆ Fix_EtherDisease()

static string CoreDebug.Fix_EtherDisease ( )
inlinestatic

Definition at line 1884 of file CoreDebug.cs.

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

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

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

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

1930 {
1931 List<Chara> list = new List<Chara>();
1932 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1933 {
1934 if (value.id == "demitas" && value.currentZone == EClass._zone)
1935 {
1936 list.Add(value);
1937 }
1938 }
1939 if (list.Count > 1)
1940 {
1941 Chara chara = list[1];
1942 chara.homeBranch.BanishMember(chara);
1943 chara.Destroy();
1944 return "Demitas Removed!";
1945 }
1946 return "Not enough Demitas!";
1947 }
GlobalCharaList globalCharas
Definition: CardManager.cs:46
string id
Definition: Card.cs:35
void Destroy()
Definition: Card.cs:5067
Zone currentZone
Definition: Chara.cs:255
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 1950 of file CoreDebug.cs.

1951 {
1952 EClass._map.ForeachCell(delegate(Cell c)
1953 {
1954 if (c.detail != null && c.detail.designation != null)
1955 {
1956 c.detail.designation.taskList.Remove(c.detail.designation);
1957 }
1958 });
1959 return "Done.";
1960 }
TaskDesignation designation
Definition: CellDetail.cs:19
Definition: Cell.cs:7
CellDetail detail
Definition: Cell.cs:92
new void ForeachCell(Action< Cell > action)
Definition: Map.cs:2346

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

◆ Fix_RemoveDuplicateUnique()

static string CoreDebug.Fix_RemoveDuplicateUnique ( )
inlinestatic

Definition at line 1866 of file CoreDebug.cs.

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

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

◆ FlyMode()

static string CoreDebug.FlyMode ( )
inlinestatic

Definition at line 2177 of file CoreDebug.cs.

2178 {
2180 return "I can fly!";
2181 }
Condition AddCondition(string id, int p=100, bool force=false)
Definition: Chara.cs:9146

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

◆ GetDebugContainer()

Thing CoreDebug.GetDebugContainer ( )
inline

Definition at line 771 of file CoreDebug.cs.

772 {
773 foreach (Thing thing in EClass._map.things)
774 {
775 if (thing.c_altName == "DebugContainer")
776 {
777 return thing;
778 }
779 }
780 return null;
781 }
string c_altName
Definition: Card.cs:1593

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

Referenced by BuildMenu.OnActivate().

◆ GetOrCreateDebugContainer()

Thing CoreDebug.GetOrCreateDebugContainer ( )
inline

Definition at line 754 of file CoreDebug.cs.

755 {
756 foreach (Thing thing2 in EClass._map.things)
757 {
758 if (thing2.c_altName == "DebugContainer")
759 {
760 return thing2;
761 }
762 }
763 Thing thing = EClass._zone.AddThing("barrel", EClass.pc.pos).Thing;
764 thing.ChangeMaterial("obsidian");
765 thing.c_altName = "DebugContainer";
766 thing.isNPCProperty = false;
767 thing.SetPlaceState(PlaceState.installed);
768 return thing;
769 }
PlaceState
Definition: PlaceState.cs:2
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3744
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:3038
virtual Thing Thing
Definition: Card.cs:2058
Card AddThing(string id, int x, int z)
Definition: Zone.cs:1949

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

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

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

◆ Init()

void CoreDebug.Init ( )
inline

Definition at line 328 of file CoreDebug.cs.

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

References InitDebugCommands().

Referenced by Core.Init().

◆ InitDebugCommands()

void CoreDebug.InitDebugCommands ( )
inline

Definition at line 1449 of file CoreDebug.cs.

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

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

2298 {
2299 string text = "";
2300 foreach (SourceBacker.Row row in EClass.sources.backers.rows)
2301 {
2302 if (row.name.Contains(name) || row.id.ToString() == name)
2303 {
2304 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;
2305 }
2306 }
2307 if (text == "")
2308 {
2309 return "Not Found";
2310 }
2311 return text + Resources.Load<TextAsset>("logo2").text;
2312 }

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

◆ ListChara()

static string CoreDebug.ListChara ( )
inlinestatic

Definition at line 1963 of file CoreDebug.cs.

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

References SourceManager.charas, and EClass.sources.

◆ ListThing()

static string CoreDebug.ListThing ( )
inlinestatic

Definition at line 1974 of file CoreDebug.cs.

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

References EClass.sources, and SourceManager.things.

◆ LoadBroadcast()

void CoreDebug.LoadBroadcast ( )
inline

Definition at line 2359 of file CoreDebug.cs.

2360 {
2361 TextAsset textAsset = Resources.Load<TextAsset>("Data/Text/broadcast");
2362 blines = textAsset.text.Split('-');
2363 }

◆ Log()

void CoreDebug.Log ( object  o)
inline

Definition at line 2336 of file CoreDebug.cs.

2337 {
2338 Debug.Log(o);
2339 }

References Debug.

Referenced by Tutorial.Play().

◆ LOG_Spatials()

void CoreDebug.LOG_Spatials ( )
inline

Definition at line 1791 of file CoreDebug.cs.

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

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

◆ MaxFame()

static string CoreDebug.MaxFame ( )
inlinestatic

Definition at line 2126 of file CoreDebug.cs.

2127 {
2128 if (!CheatEnabled())
2129 {
2130 return EnableCheat;
2131 }
2132 if (EClass.player.CountKeyItem("license_adv") == 0)
2133 {
2134 EClass.player.ModKeyItem("license_adv");
2135 }
2136 EClass.player.ModFame(int.MaxValue);
2137 return "Done.";
2138 }
void ModFame(int a)
Definition: Player.cs:2089
int CountKeyItem(string alias)
Definition: Player.cs:2163
void ModKeyItem(string alias, int num=1, bool msg=true)
Definition: Player.cs:2131

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

◆ ModContribution()

static string CoreDebug.ModContribution ( int  amount)
inlinestatic

Definition at line 2152 of file CoreDebug.cs.

2153 {
2154 if (!CheatEnabled())
2155 {
2156 return EnableCheat;
2157 }
2159 return "Done.";
2160 }
void AddContribution(int a)
Definition: FACTION.cs:318
Definition: Guild.cs:2
static Guild GetCurrentGuild()
Definition: Guild.cs:74

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

◆ ModFame()

static string CoreDebug.ModFame ( int  amount)
inlinestatic

Definition at line 2115 of file CoreDebug.cs.

2116 {
2117 if (!CheatEnabled())
2118 {
2119 return EnableCheat;
2120 }
2121 EClass.player.ModFame(amount);
2122 return "Done.";
2123 }

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

◆ ModKarma()

static string CoreDebug.ModKarma ( int  amount)
inlinestatic

Definition at line 2141 of file CoreDebug.cs.

2142 {
2143 if (!CheatEnabled())
2144 {
2145 return EnableCheat;
2146 }
2147 EClass.player.ModKarma(amount);
2148 return "Done.";
2149 }
void ModKarma(int a)
Definition: Player.cs:2511

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

◆ NextBGM()

void CoreDebug.NextBGM ( )
inline

Definition at line 2341 of file CoreDebug.cs.

2342 {
2343 if ((bool)SoundManager.current)
2344 {
2345 SoundManager.current.NextBGM();
2346 }
2347 }

◆ OnLoad()

void CoreDebug.OnLoad ( )
inline

Definition at line 706 of file CoreDebug.cs.

707 {
708 if (allRecipe)
709 {
711 }
712 }
bool allRecipe
Definition: CoreDebug.cs:233

References AddAllRecipes(), and allRecipe.

Referenced by Game.OnLoad().

◆ QuickStart()

void CoreDebug.QuickStart ( )
inline

Definition at line 334 of file CoreDebug.cs.

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

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(), ThingGen.CreateRedBook(), 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, Player.RefreshDomain(), Core.refs, Chara.RestockEquip(), EScriptable.rnd(), CardBlueprint.Set(), ElementContainer.SetBase(), Card.SetBlessedState(), LayerInventory.SetDirtyAll(), Chara.SetFaction(), Chara.SetHomeZone(), Card.SetLv(), Card.SetNum(), skipNerun, EClass.sources, Game.spatials, Chara.stamina, 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 2254 of file CoreDebug.cs.

2255 {
2257 NameGen.list = null;
2258 AliasGen.list = null;
2259 NameGen.Init();
2260 AliasGen.Init();
2261 foreach (Chara chara in EClass._map.charas)
2262 {
2263 if (!chara.IsPC)
2264 {
2265 if (chara.source.name == "*r")
2266 {
2267 chara.c_altName = NameGen.getRandomName();
2268 }
2269 if (!chara._alias.IsEmpty())
2270 {
2271 chara._alias = AliasGen.GetRandomAlias();
2272 }
2273 }
2274 }
2275 return "Done!";
2276 }
override bool IsPC
Definition: Chara.cs:612
SourceChara.Row source
Definition: Chara.cs:158
string _alias
Definition: Chara.cs:219
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 1848 of file CoreDebug.cs.

1849 {
1850 QuestDebt questDebt = EClass.game.quests.Get<QuestDebt>();
1851 if (questDebt == null)
1852 {
1853 return "Quest Status Not Valid.";
1854 }
1855 questDebt.stage = 0;
1856 questDebt.paid = false;
1857 questDebt.gaveBill = false;
1858 EClass.player.debt = 20000000;
1859 Thing thing = ThingGen.Create("856");
1860 thing.refVal = 109;
1861 EClass.pc.Pick(thing);
1862 return "Quest Reset!";
1863 }
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Definition: Chara.cs:4263
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 2079 of file CoreDebug.cs.

2080 {
2081 foreach (Chara value in EClass.game.cards.globalCharas.Values)
2082 {
2083 if (value.IsPCFaction)
2084 {
2085 value.ResetUpgrade();
2086 }
2087 }
2088 return "Not Implemented.";
2089 }
void ResetUpgrade()
Definition: Chara.cs:8442
override bool IsPCFaction
Definition: Chara.cs:671

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

◆ ResetPrincipalSeals()

static string CoreDebug.ResetPrincipalSeals ( )
inlinestatic

Definition at line 2092 of file CoreDebug.cs.

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

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

◆ Resource()

static string CoreDebug.Resource ( )
inlinestatic

Definition at line 2326 of file CoreDebug.cs.

2327 {
2328 if (!CheatEnabled())
2329 {
2330 return EnableCheat;
2331 }
2333 return "Resources spawned.";
2334 }
void SpawnCheatContainer()
Definition: CoreDebug.cs:797

References EClass.debug, and SpawnCheatContainer().

◆ Rust()

static string CoreDebug.Rust ( )
inlinestatic

Definition at line 2163 of file CoreDebug.cs.

2164 {
2165 if (!CheatEnabled())
2166 {
2167 return EnableCheat;
2168 }
2169 EClass.pc.things.Foreach(delegate(Thing t)
2170 {
2171 t.ModEncLv(-100);
2172 });
2173 return "Done.";
2174 }
void ModEncLv(int a)
Definition: Card.cs:3843

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

◆ SetElement()

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

Definition at line 1985 of file CoreDebug.cs.

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

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

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

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

Referenced by EnableDebugResource().

◆ Spawn()

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

Definition at line 2023 of file CoreDebug.cs.

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

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

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

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

798 {
799 }

Referenced by Resource().

◆ Test_Filter()

void CoreDebug.Test_Filter ( )
inline

Definition at line 1781 of file CoreDebug.cs.

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

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

◆ Test_GodTalk()

void CoreDebug.Test_GodTalk ( )
inline

Definition at line 1750 of file CoreDebug.cs.

1751 {
1752 foreach (Religion value in EClass.game.religions.dictAll.Values)
1753 {
1754 value.Talk("test");
1755 }
1756 }
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 1732 of file CoreDebug.cs.

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

1812 {
1813 if (EClass._zone.events.GetEvent<ZoneEventSiege>() == null)
1814 {
1816 }
1817 else
1818 {
1820 }
1821 }
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 1799 of file CoreDebug.cs.

1800 {
1801 if (EClass._zone.events.GetEvent<ZoneEventSiegeGuard>() == null)
1802 {
1804 }
1805 else
1806 {
1808 }
1809 }

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

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

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

2350 {
2352 if (revealMap)
2353 {
2355 }
2356 SE.ClickGeneral();
2357 }
bool revealMap
Definition: CoreDebug.cs:154
void RevealAll(bool reveal=true)
Definition: Map.cs:905

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

Referenced by HotItemContext.Show().

◆ UpdateAlways()

void CoreDebug.UpdateAlways ( )
inline

Definition at line 801 of file CoreDebug.cs.

802 {
803 if (!EClass.debug.enable || (bool)EClass.ui.GetLayer<LayerConsole>())
804 {
805 return;
806 }
807 if (Input.GetKeyDown(KeyCode.B))
808 {
810 }
811 if (Input.GetKeyDown(KeyCode.O))
812 {
814 }
815 if (Input.GetKeyDown(KeyCode.P))
816 {
818 }
819 if (Input.GetKeyDown(KeyCode.F11))
820 {
821 if (Application.isEditor)
822 {
823 EClass.core.SetLang((Lang.langCode == "EN") ? "JP" : "EN");
824 }
825 else
826 {
828 }
829 NewsList.dict = null;
830 BookList.dict = null;
831 BookList.Init();
832 }
834 {
835 if (Input.GetKeyDown(KeyCode.U))
836 {
838 Msg.SayRaw(offset.ToString() ?? "");
839 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
840 }
841 if (Input.GetKeyDown(KeyCode.I))
842 {
844 Msg.SayRaw(offset.ToString() ?? "");
845 EClass.screen.tileMap.rendererInnerBlock.offset = new Vector3(0f, 0.54f, -0.5f);
846 }
847 }
848 }
ID_Achievement
BaseTileMap tileMap
RenderData rendererInnerBlock
Definition: BaseTileMap.cs:203
static void Init()
Definition: BookList.cs:22
bool IsGameStarted
Definition: Core.cs:84
void SetLang(string langCode, bool force=false)
Definition: Core.cs:704
static BaseGameScreen screen
Definition: EClass.cs:33
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 860 of file CoreDebug.cs.

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

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

Referenced by ActionMode.UpdateInput().

◆ ValidateData()

void CoreDebug.ValidateData ( )
inline

Definition at line 850 of file CoreDebug.cs.

851 {
853 {
857 }
858 }
PropsInstalled Installed
Definition: Map.cs:123
PropsStocked Stocked
Definition: Map.cs:121
void Validate()
Definition: Props.cs:445

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

◆ ZoneIDs()

IEnumerable< string > CoreDebug.ZoneIDs ( )
inlineprivate

Definition at line 317 of file CoreDebug.cs.

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

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

Member Data Documentation

◆ _godBuild

bool CoreDebug._godBuild

Definition at line 179 of file CoreDebug.cs.

◆ advanceMin

int CoreDebug.advanceMin

Definition at line 146 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ allAbility

bool CoreDebug.allAbility

Definition at line 191 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allArt

bool CoreDebug.allArt

Definition at line 197 of file CoreDebug.cs.

Referenced by ContentGallery.OnSwitchContent().

◆ allBGM

bool CoreDebug.allBGM

Definition at line 199 of file CoreDebug.cs.

Referenced by LayerEditPlaylist.Refresh().

◆ allHomeSkill

bool CoreDebug.allHomeSkill

Definition at line 195 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allMenu

bool CoreDebug.allMenu

Definition at line 235 of file CoreDebug.cs.

◆ allPolicy

bool CoreDebug.allPolicy

Definition at line 237 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allRecipe

bool CoreDebug.allRecipe

Definition at line 233 of file CoreDebug.cs.

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

◆ allSkill

bool CoreDebug.allSkill

Definition at line 193 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allStory

bool CoreDebug.allStory

Definition at line 239 of file CoreDebug.cs.

Referenced by TraitStoryBook.OnRead().

◆ alwaysFavFood

bool CoreDebug.alwaysFavFood

Definition at line 228 of file CoreDebug.cs.

Referenced by Affinity.OnGift().

◆ alwaysResetWindow

bool CoreDebug.alwaysResetWindow

Definition at line 128 of file CoreDebug.cs.

Referenced by ELayer.Kill().

◆ animeDest

Card CoreDebug.animeDest
private

Definition at line 273 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ autoAdvanceQuest

bool CoreDebug.autoAdvanceQuest

◆ autoIdentify

bool CoreDebug.autoIdentify

Definition at line 189 of file CoreDebug.cs.

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

◆ bidx

int CoreDebug.bidx
private

Definition at line 276 of file CoreDebug.cs.

◆ bilinear

bool CoreDebug.bilinear
private

Definition at line 278 of file CoreDebug.cs.

◆ blines

string [] CoreDebug.blines
private

Definition at line 281 of file CoreDebug.cs.

◆ boradcast

bool CoreDebug.boradcast

Definition at line 260 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ command

string CoreDebug.command

Definition at line 136 of file CoreDebug.cs.

Referenced by Core.Awake().

◆ commands

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

Definition at line 283 of file CoreDebug.cs.

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

◆ debugHoard

bool CoreDebug.debugHoard

Definition at line 156 of file CoreDebug.cs.

Referenced by LayerHoard.OnAfterInit().

◆ debugHotkeys

DebugHotkey CoreDebug.debugHotkeys

Definition at line 143 of file CoreDebug.cs.

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

◆ debugInput

bool CoreDebug.debugInput

Definition at line 139 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ debugProps

bool CoreDebug.debugProps

Definition at line 152 of file CoreDebug.cs.

◆ debugScatter

bool CoreDebug.debugScatter

Definition at line 177 of file CoreDebug.cs.

◆ dontCompressSave

bool CoreDebug.dontCompressSave

Definition at line 132 of file CoreDebug.cs.

◆ dontUseThread

bool CoreDebug.dontUseThread

Definition at line 122 of file CoreDebug.cs.

Referenced by LayerProgress.Start().

◆ enable

bool CoreDebug.enable

Definition at line 286 of file CoreDebug.cs.

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

◆ enableMapPieceEditor

bool CoreDebug.enableMapPieceEditor

Definition at line 213 of file CoreDebug.cs.

◆ fixedColor

Color32 CoreDebug.fixedColor

Definition at line 264 of file CoreDebug.cs.

◆ fov

Fov CoreDebug.fov = new Fov()

Definition at line 288 of file CoreDebug.cs.

◆ godCraft

bool CoreDebug.godCraft

◆ godFood

bool CoreDebug.godFood

Definition at line 183 of file CoreDebug.cs.

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

◆ godMode

◆ hidePCItemsInBuild

bool CoreDebug.hidePCItemsInBuild

Definition at line 209 of file CoreDebug.cs.

Referenced by BuildMenu.RefreshCategory().

◆ ignoreAutoSave

bool CoreDebug.ignoreAutoSave

Definition at line 126 of file CoreDebug.cs.

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

◆ ignoreBuildRule

◆ ignoreEncounter

bool CoreDebug.ignoreEncounter

Definition at line 201 of file CoreDebug.cs.

Referenced by Chara.Tick().

◆ ignorePool

bool CoreDebug.ignorePool

Definition at line 117 of file CoreDebug.cs.

Referenced by Core.Update().

◆ ignorePopup

bool CoreDebug.ignorePopup

Definition at line 160 of file CoreDebug.cs.

Referenced by PopupManager.Add().

◆ ignoreWeight

bool CoreDebug.ignoreWeight

◆ indexResolution

int CoreDebug.indexResolution
private

Definition at line 290 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ instaReturn

bool CoreDebug.instaReturn

Definition at line 205 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ inviteAnytime

bool CoreDebug.inviteAnytime

Definition at line 222 of file CoreDebug.cs.

Referenced by Affinity.CanInvite().

◆ keypadDebug

bool CoreDebug.keypadDebug

Definition at line 141 of file CoreDebug.cs.

◆ langCode

Lang.LangCode CoreDebug.langCode

Definition at line 114 of file CoreDebug.cs.

Referenced by Core.Awake().

◆ lastAnime

AnimeID CoreDebug.lastAnime
private

Definition at line 292 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ lastEmo

Emo CoreDebug.lastEmo
private

Definition at line 294 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ logAdv

bool CoreDebug.logAdv

Definition at line 242 of file CoreDebug.cs.

Referenced by GlobalGoalVisitAndStay.OnAdvanceHour().

◆ logCombat

bool CoreDebug.logCombat

Definition at line 245 of file CoreDebug.cs.

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

◆ logDice

bool CoreDebug.logDice

Definition at line 247 of file CoreDebug.cs.

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

◆ marryAnytime

bool CoreDebug.marryAnytime

Definition at line 224 of file CoreDebug.cs.

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

◆ matColorTest

MatColorTest CoreDebug.matColorTest

Definition at line 258 of file CoreDebug.cs.

◆ maxQuests

bool CoreDebug.maxQuests

Definition at line 230 of file CoreDebug.cs.

◆ naked

bool CoreDebug.naked
private

Definition at line 296 of file CoreDebug.cs.

◆ numResource

int CoreDebug.numResource

Definition at line 217 of file CoreDebug.cs.

Referenced by EnableDebugResource().

◆ param1

int CoreDebug.param1

Definition at line 253 of file CoreDebug.cs.

◆ param2

int CoreDebug.param2

Definition at line 256 of file CoreDebug.cs.

◆ randomResource

bool CoreDebug.randomResource

Definition at line 175 of file CoreDebug.cs.

Referenced by SetStartStockpile().

◆ resetPlayerConfig

bool CoreDebug.resetPlayerConfig

Definition at line 120 of file CoreDebug.cs.

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

◆ resolutions

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

Definition at line 266 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ returnAnywhere

bool CoreDebug.returnAnywhere

Definition at line 203 of file CoreDebug.cs.

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

◆ revealInner

bool CoreDebug.revealInner

Definition at line 158 of file CoreDebug.cs.

◆ revealMap

bool CoreDebug.revealMap

Definition at line 154 of file CoreDebug.cs.

Referenced by HotItemContext.Show().

◆ runtimeGodBuild

bool CoreDebug.runtimeGodBuild
private

Definition at line 299 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ showExtra

◆ showFav

bool CoreDebug.showFav

Definition at line 226 of file CoreDebug.cs.

Referenced by DramaCustomSequence.Build().

◆ showSceneSelector

bool CoreDebug.showSceneSelector

Definition at line 109 of file CoreDebug.cs.

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

◆ showTone

bool CoreDebug.showTone

Definition at line 166 of file CoreDebug.cs.

◆ skipEvent

bool CoreDebug.skipEvent

Definition at line 162 of file CoreDebug.cs.

Referenced by ZoneEventManager.Add().

◆ skipMod

bool CoreDebug.skipMod

Definition at line 134 of file CoreDebug.cs.

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

◆ skipModSync

bool CoreDebug.skipModSync

Definition at line 112 of file CoreDebug.cs.

Referenced by Core.StartCase().

◆ skipNerun

bool CoreDebug.skipNerun

Definition at line 164 of file CoreDebug.cs.

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

◆ startHour

int CoreDebug.startHour

Definition at line 102 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startLoadout

StartLoadout CoreDebug.startLoadout

Definition at line 98 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startParty

StartParty CoreDebug.startParty

Definition at line 100 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startScene

StartScene CoreDebug.startScene

Definition at line 96 of file CoreDebug.cs.

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

◆ startSetting

StartSetting CoreDebug.startSetting

Definition at line 104 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startZone

string CoreDebug.startZone

Definition at line 106 of file CoreDebug.cs.

Referenced by Game.StartNewGame().

◆ test

bool CoreDebug.test

Definition at line 170 of file CoreDebug.cs.

Referenced by Zone.TryGenerateShrine().

◆ testFixedColor

bool CoreDebug.testFixedColor

Definition at line 262 of file CoreDebug.cs.

◆ testLOS

bool CoreDebug.testLOS

Definition at line 148 of file CoreDebug.cs.

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

◆ testLOS2

bool CoreDebug.testLOS2

Definition at line 150 of file CoreDebug.cs.

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

◆ testThingQuality

bool CoreDebug.testThingQuality

Definition at line 215 of file CoreDebug.cs.

Referenced by Card.Create().

◆ travelAnywhere

bool CoreDebug.travelAnywhere

Definition at line 207 of file CoreDebug.cs.

Referenced by Spatial.Create().

◆ ttt

int CoreDebug.ttt
private

Definition at line 301 of file CoreDebug.cs.

◆ unlimitedInterest

bool CoreDebug.unlimitedInterest

Definition at line 220 of file CoreDebug.cs.

Referenced by Affinity.OnTalkRumor().

◆ useNewConfig

bool CoreDebug.useNewConfig

Definition at line 124 of file CoreDebug.cs.

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

◆ validateData

bool CoreDebug.validateData

Definition at line 130 of file CoreDebug.cs.

◆ validatePref

bool CoreDebug.validatePref

Definition at line 250 of file CoreDebug.cs.

Referenced by Core.Init().

Property Documentation

◆ EnableCheat

string CoreDebug.EnableCheat
staticget

Definition at line 315 of file CoreDebug.cs.

◆ godBuild


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