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

Classes

class  DebugCommand
 
class  MatColorTest
 
class  StartSetting
 

Public Types

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

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Properties

bool godBuild [get]
 
static string EnableCheat [get]
 

Private Member Functions

IEnumerable< string > ZoneIDs ()
 

Private Attributes

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

Detailed Description

Definition at line 9 of file CoreDebug.cs.

Member Enumeration Documentation

◆ DebugHotkey

Enumerator
None 
Block 
Item 
Decal 
Act 
Test 
Anime 

Definition at line 21 of file CoreDebug.cs.

◆ StartLoadout

Enumerator
New 
AllItem 
FewItem 

Definition at line 32 of file CoreDebug.cs.

◆ StartParty

Enumerator
None 
Farris 
Full 

Definition at line 39 of file CoreDebug.cs.

◆ StartScene

Enumerator
Title 
Zone 
Home 
Home_Cave 
Story_Test 
MeetFarris 
NymelleBoss 
AfterNymelle 
Melilith 
Tefra 

Definition at line 46 of file CoreDebug.cs.

Member Function Documentation

◆ AddAllRecipes()

void CoreDebug.AddAllRecipes ( )
inline

Definition at line 694 of file CoreDebug.cs.

695 {
697 {
698 if (!EClass.player.recipes.knownRecipes.ContainsKey(item.id))
699 {
701 }
702 }
703 }
Definition: EClass.cs:5
static Player player
Definition: EClass.cs:12
RecipeManager recipes
Definition: Player.cs:898
static List< RecipeSource > list
Definition: RecipeManager.cs:9
Dictionary< string, int > knownRecipes

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

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

◆ AllRecipe()

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

Definition at line 2190 of file CoreDebug.cs.

2191 {
2192 if (!CheatEnabled())
2193 {
2194 return EnableCheat;
2195 }
2196 if (forget)
2197 {
2199 }
2200 else
2201 {
2203 }
2204 return "Done!";
2205 }
static bool CheatEnabled()
Definition: CoreDebug.cs:1784
static string EnableCheat
Definition: CoreDebug.cs:314
void AddAllRecipes()
Definition: CoreDebug.cs:694
static CoreDebug debug
Definition: EClass.cs:48

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

◆ BroadcastNext()

void CoreDebug.BroadcastNext ( )
inline

Definition at line 2276 of file CoreDebug.cs.

2277 {
2278 LoadBroadcast();
2279 if (Input.GetKey(KeyCode.LeftControl))
2280 {
2281 bidx--;
2282 }
2283 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2284 string text = blines[bidx];
2285 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
2286 EClass.pc.SayRaw(text.TrimNewLines());
2287 }
void SayRaw(string text, string ref1=null, string ref2=null)
Definition: Card.cs:6025
string[] blines
Definition: CoreDebug.cs:280
int bidx
Definition: CoreDebug.cs:275
void LoadBroadcast()
Definition: CoreDebug.cs:2270
static Chara pc
Definition: EClass.cs:14

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

Referenced by AM_Adv._OnUpdateInput().

◆ ChangeJob()

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

Definition at line 2136 of file CoreDebug.cs.

2137 {
2138 if (EClass.sources.jobs.map.ContainsKey(id))
2139 {
2140 EClass.pc.ChangeJob(id);
2142 return "Done.";
2143 }
2144 string text = "";
2145 foreach (SourceJob.Row row in EClass.sources.jobs.rows)
2146 {
2147 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2148 }
2149 return text;
2150 }
void ChangeJob(string idNew)
Definition: Chara.cs:1891
static SourceManager sources
Definition: EClass.cs:42
void RefreshDomain()
Definition: Player.cs:1323
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 2095 of file CoreDebug.cs.

2096 {
2097 if (EClass.sources.races.map.ContainsKey(id))
2098 {
2099 Thing thing = null;
2100 foreach (BodySlot slot in EClass.pc.body.slots)
2101 {
2102 if (slot.thing != null)
2103 {
2104 if (slot.thing.blessedState <= BlessedState.Cursed)
2105 {
2106 slot.thing.blessedState = BlessedState.Normal;
2107 }
2108 if (slot.thing.trait is TraitToolBelt)
2109 {
2110 thing = slot.thing;
2111 }
2112 EClass.pc.body.Unequip(slot);
2113 }
2114 }
2117 EClass.pc.ChangeRace(id);
2118 if (EClass.ui.IsInventoryOpen)
2119 {
2120 EClass.ui.ToggleInventory();
2121 }
2124 EClass.pc.body.Equip(thing);
2125 return "Done.";
2126 }
2127 string text = "";
2128 foreach (SourceRace.Row row in EClass.sources.races.rows)
2129 {
2130 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2131 }
2132 return text;
2133 }
BlessedState
Definition: BlessedState.cs:2
Thing thing
Definition: BodySlot.cs:8
Trait trait
Definition: Card.cs:49
BlessedState blessedState
Definition: Card.cs:262
void AddBodyPart(int ele, Thing thing=null)
Definition: CharaBody.cs:261
void Unequip(Thing thing, bool refresh=true)
Definition: CharaBody.cs:49
List< BodySlot > slots
Definition: CharaBody.cs:8
bool Equip(Thing thing, BodySlot slot=null, bool msg=true)
Definition: CharaBody.cs:182
void RemoveBodyPart(int ele)
Definition: CharaBody.cs:310
void ChangeRace(string idNew)
Definition: Chara.cs:1989
CharaBody body
Definition: Chara.cs:91
static UI ui
Definition: EClass.cs:16
SourceRace races
Definition: Thing.cs:8

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

◆ Cheat()

static string CoreDebug.Cheat ( )
inlinestatic

Definition at line 1794 of file CoreDebug.cs.

1795 {
1796 EClass.game.config.cheat = true;
1797 return "Cheat Enabled";
1798 }

◆ CheatEnabled()

static bool CoreDebug.CheatEnabled ( )
inlinestatic

Definition at line 1784 of file CoreDebug.cs.

1785 {
1786 if (!EClass.debug.enable)
1787 {
1788 return EClass.game.config.cheat;
1789 }
1790 return true;
1791 }
bool enable
Definition: CoreDebug.cs:285
static Game game
Definition: EClass.cs:8
bool cheat
Definition: Game.cs:54
Config config
Definition: Game.cs:215

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

◆ ClearLastWishFlag()

static string CoreDebug.ClearLastWishFlag ( )
inlinestatic

Definition at line 2226 of file CoreDebug.cs.

2227 {
2228 if (!CheatEnabled())
2229 {
2230 return EnableCheat;
2231 }
2232 EClass.player.doneBackers.Clear();
2233 return Resources.Load<TextAsset>("logo2").text + Environment.NewLine + "Done!";
2234 }
HashSet< int > doneBackers
Definition: Player.cs:874

References Player.doneBackers, and EClass.player.

◆ COM_MaxConstruction()

void CoreDebug.COM_MaxConstruction ( )
inline

Definition at line 1776 of file CoreDebug.cs.

1777 {
1778 if (EClass.pc.homeBranch != null)
1779 {
1781 }
1782 }
FactionBranch homeBranch
Definition: Chara.cs:889
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 1726 of file CoreDebug.cs.

1727 {
1728 EClass.ui.CloseLayers();
1729 EClass.game.world.date.hour = 2;
1731 LayerDrama.ActivateMain("mono", "1-2");
1732 }
static Scene scene
Definition: EClass.cs:30
static LayerDrama ActivateMain(string idSheet, string idStep=null, Chara target=null, Card ref1=null, string tag="")
Definition: LayerDrama.cs:61
GameScreen screenElin
Definition: Scene.cs:89

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

◆ COM_Teleport()

void CoreDebug.COM_Teleport ( )
inline

Definition at line 1711 of file CoreDebug.cs.

1712 {
1713 for (int i = 0; i < 10000; i++)
1714 {
1715 Point point = EClass.pc.pos.Copy();
1716 point.x += EScriptable.rnd(60) - EScriptable.rnd(60);
1717 point.z += EScriptable.rnd(60) - EScriptable.rnd(60);
1718 if (point.IsValid && !point.cell.blocked && point.HasFloor)
1719 {
1720 EClass.pc.Teleport(point);
1721 break;
1722 }
1723 }
1724 }
void Teleport(Point point, bool silent=false, bool force=false)
Definition: Card.cs:5153
Point pos
Definition: Card.cs:55
static int rnd(int a)
Definition: EScriptable.cs:5
Definition: Point.cs:9
Point Copy()
Definition: Point.cs:467
bool IsValid
Definition: Point.cs:88
bool HasFloor
Definition: Point.cs:207
Cell cell
Definition: Point.cs:51

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

◆ EnableDebugResource()

void CoreDebug.EnableDebugResource ( )
inline

Definition at line 763 of file CoreDebug.cs.

764 {
767 enable = true;
768 if ((bool)WidgetHotbar.HotbarBuild)
769 {
771 }
773 Thing orCreateDebugContainer = GetOrCreateDebugContainer();
774 SetStartStockpile(orCreateDebugContainer, numResource);
775 }
int numResource
Definition: CoreDebug.cs:216
void SetStartStockpile(Thing container, int num=100)
Definition: CoreDebug.cs:705
Thing GetOrCreateDebugContainer()
Definition: CoreDebug.cs:734
void OnEnableDebug()
Definition: Player.cs:549
Flags flags
Definition: Player.cs:895
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 2153 of file CoreDebug.cs.

2154 {
2155 string text = "Steam is not running.";
2156 DateTime dateTime = new DateTime(2024, 11, 3, 6, 0, 0);
2157 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))));
2158 dateTimeOffset = dateTimeOffset.ToOffset(new TimeSpan(9, 0, 0));
2159 text = ((dateTimeOffset < dateTime) ? "Valid: " : "Invalid: ");
2160 text = text + "Arrived North Tyris on " + dateTimeOffset.Year + " " + dateTimeOffset.Month + "/" + dateTimeOffset.Day + " " + dateTimeOffset.Hour + ":" + dateTimeOffset.Minute;
2161 return text + " Eligible by " + dateTime.Year + " " + dateTime.Month + "/" + dateTime.Day + " " + dateTime.Hour + ":" + dateTime.Minute;
2162 }

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

◆ Fix_EtherDisease()

static string CoreDebug.Fix_EtherDisease ( )
inlinestatic

Definition at line 1837 of file CoreDebug.cs.

1838 {
1839 EClass.pc.ModCorruption(-100000);
1840 Chara chara = CharaGen.Create("chara");
1841 chara.ChangeRace(EClass.pc.race.id);
1842 chara.ChangeJob(EClass.pc.job.id);
1843 string text = "";
1844 foreach (Element value in chara.elements.dict.Values)
1845 {
1846 if (!(value.source.category != "attribute"))
1847 {
1848 Element orCreateElement = EClass.pc.elements.GetOrCreateElement(value.id);
1849 if (value.vBase > orCreateElement.vBase)
1850 {
1851 text = text + "Fixing Base Value:" + orCreateElement.Name + " Before:" + orCreateElement.vBase + " Now:" + (value.vBase + 1) + Environment.NewLine;
1852 EClass.pc.elements.ModBase(orCreateElement.id, value.vBase - orCreateElement.vBase + 1);
1853 }
1854 }
1855 }
1856 return text + "Fixed!";
1857 }
ElementContainerCard elements
Definition: Card.cs:37
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
SourceJob.Row job
Definition: Chara.cs:451
void ModCorruption(int a)
Definition: Chara.cs:8906
SourceRace.Row race
Definition: Chara.cs:449
Dictionary< int, Element > dict
Element GetOrCreateElement(Element ele)
int id
Definition: ELEMENT.cs:240
int vBase
Definition: ELEMENT.cs:242
SourceElement.Row source
Definition: ELEMENT.cs:263

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

1861 {
1863 {
1864 return "Not in base.";
1865 }
1866 foreach (Thing thing in EClass._map.things)
1867 {
1868 if (thing.trait is TraitCoreZone)
1869 {
1870 return "Base already has core.";
1871 }
1872 }
1873 if (EClass.pc.things.Find((Thing t) => t.trait is TraitCoreZone) != null)
1874 {
1875 return "Player has core.";
1876 }
1878 return "Done.";
1879 }
ThingContainer things
Definition: Card.cs:34
static Zone _zone
Definition: EClass.cs:20
static Map _map
Definition: EClass.cs:18
Point GetCenterPos()
Definition: MapBounds.cs:52
List< Thing > things
Definition: Map.cs:49
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false)
Definition: Point.cs:595
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:464
Card AddCard(Card t, Point point)
Definition: Zone.cs:1893

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

static string CoreDebug.Fix_LoytelDebt ( )
inlinestatic

Definition at line 1801 of file CoreDebug.cs.

1802 {
1803 QuestDebt questDebt = EClass.game.quests.Get<QuestDebt>();
1804 if (questDebt == null || questDebt.stage != 6 || EClass.player.debt == 19000000)
1805 {
1806 return "Quest Status Not Valid.";
1807 }
1808 questDebt.stage = 0;
1809 questDebt.paid = false;
1810 questDebt.gaveBill = true;
1811 EClass.player.debt = 20000000;
1812 Thing thing = ThingGen.Create("856");
1813 thing.refVal = 109;
1814 EClass.pc.Pick(thing);
1815 return "Quest Reset!";
1816 }
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Definition: Chara.cs:3920
QuestManager quests
Definition: Game.cs:179
int debt
Definition: Player.cs:754
int stage
Definition: QuestDebt.cs:12
Quest Get(string id)

References ThingGen.Create(), Player.debt, EClass.game, QuestManager.Get(), EClass.pc, Chara.Pick(), EClass.player, Game.quests, and QuestDebt.stage.

◆ Fix_RemoveDemitas()

static string CoreDebug.Fix_RemoveDemitas ( )
inlinestatic

Definition at line 1882 of file CoreDebug.cs.

1883 {
1884 List<Chara> list = new List<Chara>();
1885 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1886 {
1887 if (value.id == "demitas" && value.currentZone == EClass._zone)
1888 {
1889 list.Add(value);
1890 }
1891 }
1892 if (list.Count > 1)
1893 {
1894 Chara chara = list[1];
1895 chara.homeBranch.BanishMember(chara);
1896 chara.Destroy();
1897 return "Demitas Removed!";
1898 }
1899 return "Not enough Demitas!";
1900 }
GlobalCharaList globalCharas
Definition: CardManager.cs:46
string id
Definition: Card.cs:31
void Destroy()
Definition: Card.cs:4538
Zone currentZone
Definition: Chara.cs:240
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_RemoveDuplicateUnique()

static string CoreDebug.Fix_RemoveDuplicateUnique ( )
inlinestatic

Definition at line 1819 of file CoreDebug.cs.

1820 {
1821 if (EClass.Branch == null)
1822 {
1823 return "No Branch";
1824 }
1825 EClass.Branch.members.ForeachReverse(delegate(Chara c)
1826 {
1827 if ((c.id == "kettle" || c.id == "quru") && EClass.Branch.members.Where((Chara c2) => c2.id == c.id).Count() >= 2)
1828 {
1829 EClass.Branch.RemoveMemeber(c);
1830 c.Destroy();
1831 }
1832 });
1833 return "Fixed!";
1834 }
static FactionBranch Branch
Definition: EClass.cs:22
List< Chara > members

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

◆ FlyMode()

static string CoreDebug.FlyMode ( )
inlinestatic

Definition at line 2088 of file CoreDebug.cs.

2089 {
2091 return "I can fly!";
2092 }
Condition AddCondition(string id, int p=100, bool force=false)
Definition: Chara.cs:8415

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

◆ GetDebugContainer()

Thing CoreDebug.GetDebugContainer ( )
inline

Definition at line 751 of file CoreDebug.cs.

752 {
753 foreach (Thing thing in EClass._map.things)
754 {
755 if (thing.c_altName == "DebugContainer")
756 {
757 return thing;
758 }
759 }
760 return null;
761 }
string c_altName
Definition: Card.cs:1493

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

Referenced by BuildMenu.OnActivate().

◆ GetOrCreateDebugContainer()

Thing CoreDebug.GetOrCreateDebugContainer ( )
inline

Definition at line 734 of file CoreDebug.cs.

735 {
736 foreach (Thing thing2 in EClass._map.things)
737 {
738 if (thing2.c_altName == "DebugContainer")
739 {
740 return thing2;
741 }
742 }
743 Thing thing = EClass._zone.AddThing("barrel", EClass.pc.pos).Thing;
744 thing.ChangeMaterial("obsidian");
745 thing.c_altName = "DebugContainer";
746 thing.isNPCProperty = false;
747 thing.SetPlaceState(PlaceState.installed);
748 return thing;
749 }
PlaceState
Definition: PlaceState.cs:2
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3454
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:2838
virtual Thing Thing
Definition: Card.cs:1934
Card AddThing(string id, int x, int z)
Definition: Zone.cs:1883

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

2044 {
2045 if (!CheatEnabled())
2046 {
2047 return EnableCheat;
2048 }
2049 EClass.pc.Revive();
2050 EClass.pc.hp = EClass.pc.MaxHP;
2051 return "I'm God!";
2052 }
override int MaxHP
Definition: Chara.cs:693
void Revive(Point p=null, bool msg=false)
Definition: Chara.cs:4649

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

◆ Init()

void CoreDebug.Init ( )
inline

Definition at line 327 of file CoreDebug.cs.

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

References InitDebugCommands().

Referenced by Core.Init().

◆ InitDebugCommands()

void CoreDebug.InitDebugCommands ( )
inline

Definition at line 1412 of file CoreDebug.cs.

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

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

2209 {
2210 string text = "";
2211 foreach (SourceBacker.Row row in EClass.sources.backers.rows)
2212 {
2213 if (row.name.Contains(name) || row.id.ToString() == name)
2214 {
2215 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;
2216 }
2217 }
2218 if (text == "")
2219 {
2220 return "Not Found";
2221 }
2222 return text + Resources.Load<TextAsset>("logo2").text;
2223 }

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

◆ ListChara()

static string CoreDebug.ListChara ( )
inlinestatic

Definition at line 1903 of file CoreDebug.cs.

1904 {
1905 string text = "";
1906 foreach (SourceChara.Row row in EClass.sources.charas.rows)
1907 {
1908 text = text + row.id + "\n";
1909 }
1910 return text;
1911 }
SourceChara charas

References SourceManager.charas, and EClass.sources.

◆ ListThing()

static string CoreDebug.ListThing ( )
inlinestatic

Definition at line 1914 of file CoreDebug.cs.

1915 {
1916 string text = "";
1917 foreach (SourceThing.Row row in EClass.sources.things.rows)
1918 {
1919 text = text + row.id + "\n";
1920 }
1921 return text;
1922 }
SourceThing things

References EClass.sources, and SourceManager.things.

◆ LoadBroadcast()

void CoreDebug.LoadBroadcast ( )
inline

Definition at line 2270 of file CoreDebug.cs.

2271 {
2272 TextAsset textAsset = Resources.Load<TextAsset>("Data/Text/broadcast");
2273 blines = textAsset.text.Split('-');
2274 }

◆ Log()

void CoreDebug.Log ( object  o)
inline

Definition at line 2247 of file CoreDebug.cs.

2248 {
2249 Debug.Log(o);
2250 }

References Debug.

Referenced by Tutorial.Play().

◆ LOG_Spatials()

void CoreDebug.LOG_Spatials ( )
inline

Definition at line 1744 of file CoreDebug.cs.

1745 {
1746 foreach (Spatial child in EClass.world.region.children)
1747 {
1748 Debug.Log(child.uid + "/" + child.Name + "/" + child.mainFaction.name + "/" + (child == EClass.player.zone));
1749 }
1750 }
string name
Definition: FACTION.cs:133
Zone zone
Definition: Player.cs:883
int uid
Definition: Spatial.cs:70
virtual string Name
Definition: Spatial.cs:495
Faction mainFaction
Definition: Spatial.cs:430
List< Spatial > children
Definition: Spatial.cs:37
Region region
Definition: World.cs:23

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

◆ ModContribution()

static string CoreDebug.ModContribution ( int  amount)
inlinestatic

Definition at line 2077 of file CoreDebug.cs.

2078 {
2079 if (!CheatEnabled())
2080 {
2081 return EnableCheat;
2082 }
2084 return "Done.";
2085 }
void AddContribution(int a)
Definition: FACTION.cs:316
Definition: Guild.cs:2
static Guild GetCurrentGuild()
Definition: Guild.cs:41

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

◆ ModFame()

static string CoreDebug.ModFame ( int  amount)
inlinestatic

Definition at line 2055 of file CoreDebug.cs.

2056 {
2057 if (!CheatEnabled())
2058 {
2059 return EnableCheat;
2060 }
2061 EClass.player.ModFame(amount);
2062 return "Done.";
2063 }
void ModFame(int a)
Definition: Player.cs:1879

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

◆ ModKarma()

static string CoreDebug.ModKarma ( int  amount)
inlinestatic

Definition at line 2066 of file CoreDebug.cs.

2067 {
2068 if (!CheatEnabled())
2069 {
2070 return EnableCheat;
2071 }
2072 EClass.player.ModKarma(amount);
2073 return "Done.";
2074 }
void ModKarma(int a)
Definition: Player.cs:2289

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

◆ NextBGM()

void CoreDebug.NextBGM ( )
inline

Definition at line 2252 of file CoreDebug.cs.

2253 {
2254 if ((bool)SoundManager.current)
2255 {
2256 SoundManager.current.NextBGM();
2257 }
2258 }

◆ OnLoad()

void CoreDebug.OnLoad ( )
inline

Definition at line 686 of file CoreDebug.cs.

687 {
688 if (allRecipe)
689 {
691 }
692 }
bool allRecipe
Definition: CoreDebug.cs:232

References AddAllRecipes(), and allRecipe.

Referenced by Game.OnLoad().

◆ QuickStart()

void CoreDebug.QuickStart ( )
inline

Definition at line 333 of file CoreDebug.cs.

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

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

Referenced by Core.Init().

◆ RegenerateNames()

static string CoreDebug.RegenerateNames ( )
inlinestatic

Definition at line 2165 of file CoreDebug.cs.

2166 {
2168 NameGen.list = null;
2169 AliasGen.list = null;
2170 NameGen.Init();
2171 AliasGen.Init();
2172 foreach (Chara chara in EClass._map.charas)
2173 {
2174 if (!chara.IsPC)
2175 {
2176 if (chara.source.name == "*r")
2177 {
2178 chara.c_altName = NameGen.getRandomName();
2179 }
2180 if (!chara._alias.IsEmpty())
2181 {
2182 chara._alias = AliasGen.GetRandomAlias();
2183 }
2184 }
2185 }
2186 return "Done!";
2187 }
override bool IsPC
Definition: Chara.cs:597
SourceChara.Row source
Definition: Chara.cs:143
string _alias
Definition: Chara.cs:204
ModManager mods
Definition: Core.cs:39

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

◆ ResetPetUpgrades()

static string CoreDebug.ResetPetUpgrades ( )
inlinestatic

Definition at line 2019 of file CoreDebug.cs.

2020 {
2021 foreach (Chara value in EClass.game.cards.globalCharas.Values)
2022 {
2023 if (value.IsPCFaction)
2024 {
2025 value.ResetUpgrade();
2026 }
2027 }
2028 return "Not Implemented.";
2029 }
void ResetUpgrade()
Definition: Chara.cs:7791
override bool IsPCFaction
Definition: Chara.cs:656

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

◆ ResetPrincipalSeals()

static string CoreDebug.ResetPrincipalSeals ( )
inlinestatic

Definition at line 2032 of file CoreDebug.cs.

2033 {
2034 if (!CheatEnabled())
2035 {
2036 return EnableCheat;
2037 }
2038 EClass.game.principal.modified.Clear();
2039 return "Done.";
2040 }
HashSet< string > modified
GamePrincipal principal
Definition: Game.cs:221

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

◆ Resource()

static string CoreDebug.Resource ( )
inlinestatic

Definition at line 2237 of file CoreDebug.cs.

2238 {
2239 if (!CheatEnabled())
2240 {
2241 return EnableCheat;
2242 }
2244 return "Resources spawned.";
2245 }
void SpawnCheatContainer()
Definition: CoreDebug.cs:777

References EClass.debug, and SpawnCheatContainer().

◆ SetElement()

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

Definition at line 1925 of file CoreDebug.cs.

1926 {
1927 if (!CheatEnabled())
1928 {
1929 return EnableCheat;
1930 }
1931 SourceElement.Row row = EClass.sources.elements.alias.TryGetValue(alias);
1932 if (row == null)
1933 {
1934 return "Element not found.";
1935 }
1936 if (row.type == "Feat")
1937 {
1938 EClass.pc.SetFeat(row.id, value, msg: true);
1939 }
1940 else
1941 {
1942 EClass.pc.elements.SetBase(row.id, value, potential);
1943 }
1944 return "Done.";
1945 }
void SetFeat(int id, int value=1, bool msg=false)
Definition: Chara.cs:8964

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

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

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

1964 {
1965 if (!CheatEnabled())
1966 {
1967 return EnableCheat;
1968 }
1969 if (EClass.sources.things.map.ContainsKey(id))
1970 {
1971 Thing thing = ThingGen.Create(id, -1, objLv).SetNum(num);
1972 if (!aliasMat.IsEmpty())
1973 {
1974 thing.ChangeMaterial(aliasMat);
1975 }
1976 EClass._zone.AddCard(thing, EClass.pc.pos);
1977 return "Spawned " + thing.Name;
1978 }
1979 if (EClass.sources.charas.map.ContainsKey(id))
1980 {
1981 Chara chara = CharaGen.Create(id);
1982 if (objLv != -1)
1983 {
1984 chara.SetLv(objLv);
1985 }
1986 EClass._zone.AddCard(chara, EClass.pc.pos);
1987 return "Spawned " + chara.Name;
1988 }
1989 return "'" + id + "' does not exist in the database.";
1990 }
string Name
Definition: Card.cs:2013

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

1949 {
1950 if (!CheatEnabled())
1951 {
1952 return EnableCheat;
1953 }
1954 if (EClass.sources.charas.map.ContainsKey(id))
1955 {
1957 return "Spawned " + chara.Name;
1958 }
1959 return "'" + id + "' does not exist in the database.";
1960 }
static SpawnSetting Boss(int filterLv, int fixedLv=-1)
Definition: SpawnSetting.cs:45
Chara SpawnMob(Point pos=null, SpawnSetting setting=null)
Definition: Zone.cs:2543

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

778 {
779 }

Referenced by Resource().

◆ Test_Filter()

void CoreDebug.Test_Filter ( )
inline

Definition at line 1734 of file CoreDebug.cs.

1735 {
1736 bilinear = !bilinear;
1737 MeshPass[] passes = EClass.scene.passes;
1738 for (int i = 0; i < passes.Length; i++)
1739 {
1740 passes[i].mat.GetTexture("_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1741 }
1742 }
bool bilinear
Definition: CoreDebug.cs:277
Material mat
Definition: MeshPass.cs:21
MeshPass[] passes
Definition: Scene.cs:115

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

◆ Test_GodTalk()

void CoreDebug.Test_GodTalk ( )
inline

Definition at line 1703 of file CoreDebug.cs.

1704 {
1705 foreach (Religion value in EClass.game.religions.dictAll.Values)
1706 {
1707 value.Talk("test");
1708 }
1709 }
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 1685 of file CoreDebug.cs.

1686 {
1687 EClass._map.ForeachCell(delegate(Cell c)
1688 {
1689 if (c.sourceObj.HasGrowth)
1690 {
1691 c.TryGrow();
1692 }
1693 });
1694 foreach (Thing item in EClass._map.things.Copy())
1695 {
1696 if (item.trait is TraitSeed traitSeed)
1697 {
1698 traitSeed.TrySprout(force: true);
1699 }
1700 }
1701 }
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 1764 of file CoreDebug.cs.

1765 {
1766 if (EClass._zone.events.GetEvent<ZoneEventSiege>() == null)
1767 {
1769 }
1770 else
1771 {
1773 }
1774 }
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 1752 of file CoreDebug.cs.

1753 {
1754 if (EClass._zone.events.GetEvent<ZoneEventSiegeGuard>() == null)
1755 {
1757 }
1758 else
1759 {
1761 }
1762 }

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

1994 {
1995 if (!CheatEnabled())
1996 {
1997 return EnableCheat;
1998 }
1999 if (EClass._zone is Zone_Arena)
2000 {
2001 EClass._zone._dangerLv = lv;
2002 }
2003 foreach (Chara item in EClass._map.charas.Where((Chara c) => c.HasEditorTag(EditorTag.SpawnTest)).ToList())
2004 {
2005 item.Destroy();
2006 }
2007 for (int i = 0; i < num; i++)
2008 {
2009 EClass._zone.SpawnMob(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: false, ignoreCenter: true), new SpawnSetting
2010 {
2011 filterLv = lv,
2012 levelRange = lvRange
2013 }).AddEditorTag(EditorTag.SpawnTest);
2014 }
2015 return "Spawned.";
2016 }
EditorTag
Definition: EditorTag.cs:2
void AddEditorTag(EditorTag tag)
Definition: Card.cs:2465
bool HasEditorTag(EditorTag tag)
Definition: Card.cs:2460

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

Referenced by UpdateInput().

◆ ToggleRevealMap()

void CoreDebug.ToggleRevealMap ( )
inline

Definition at line 2260 of file CoreDebug.cs.

2261 {
2263 if (revealMap)
2264 {
2266 }
2267 SE.ClickGeneral();
2268 }
bool revealMap
Definition: CoreDebug.cs:153
void RevealAll(bool reveal=true)
Definition: Map.cs:899

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

Referenced by HotItemContext.Show().

◆ UpdateAlways()

void CoreDebug.UpdateAlways ( )
inline

Definition at line 781 of file CoreDebug.cs.

782 {
783 if (!EClass.debug.enable || (bool)EClass.ui.GetLayer<LayerConsole>())
784 {
785 return;
786 }
787 if (Input.GetKeyDown(KeyCode.B))
788 {
790 }
791 if (Input.GetKeyDown(KeyCode.O))
792 {
794 }
795 if (Input.GetKeyDown(KeyCode.P))
796 {
798 }
799 if (Input.GetKeyDown(KeyCode.F11))
800 {
801 if (Application.isEditor)
802 {
803 EClass.core.SetLang((Lang.langCode == "EN") ? "JP" : "EN");
804 }
805 else
806 {
808 }
809 NewsList.dict = null;
810 BookList.dict = null;
811 BookList.Init();
812 }
814 {
815 if (Input.GetKeyDown(KeyCode.U))
816 {
818 Msg.SayRaw(offset.ToString() ?? "");
819 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
820 }
821 if (Input.GetKeyDown(KeyCode.I))
822 {
824 Msg.SayRaw(offset.ToString() ?? "");
825 EClass.screen.tileMap.rendererInnerBlock.offset = new Vector3(0f, 0.54f, -0.5f);
826 }
827 }
828 }
ID_Achievement
BaseTileMap tileMap
RenderData rendererInnerBlock
Definition: BaseTileMap.cs:203
static void Init()
Definition: BookList.cs:20
bool IsGameStarted
Definition: Core.cs:84
void SetLang(string langCode, bool force=false)
Definition: Core.cs:697
static BaseGameScreen screen
Definition: EClass.cs:32
Definition: Lang.cs:6
static string langCode
Definition: Lang.cs:28
Definition: Msg.cs:5
static string SayRaw(string text)
Definition: Msg.cs:113
Vector3 offset
Definition: RenderData.cs:18
void ImportSourceTexts()
Definition: Steam.cs:8
static void GetAchievement(ID_Achievement id)
Definition: Steam.cs:49
static void TryShowTip(Transform root=null, bool highlight=true, bool ignoreWhenRightClick=true)
Definition: UIButton.cs:778

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

Referenced by Core.Update().

◆ UpdateInput()

void CoreDebug.UpdateInput ( )
inline

Definition at line 840 of file CoreDebug.cs.

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

References EClass._map, EClass._zone, EInput.action, Scene.actionMode, AM_MoveInstalled.Activate(), MiniGame.Activate(), QuestManager.Add(), Zone.AddCard(), Chara.AddCondition(), Map.AddDecal(), Card.AddExp(), advanceMin, GameDate.AdvanceMin(), Props.all, animeDest, Point.area, EClass.Branch, card, CellDetail.charas, Map.charas, Steam.CheckUpdate(), EInput.Consume(), EClass.core, ThingGen.Create(), CharaGen.Create(), World.date, ActionMode.Deactivate(), Map.deadCharas, Debug, debugHotkeys, debugInput, Point.detail, Card.elements, EnableDebugResource(), MapSubset.Exist(), Card.ExpToNext, Map.FindThing(), Point.FirstChara, Point.FirstThing, GameUpdater.FixedUpdate(), Player.flags, EClass.game, QuestManager.Get(), 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, Chara.MakeBraineCell(), Chara.MakeEgg(), Chara.MakeGene(), Chara.MakeMilk(), Card.material, FactionBranch.ModExp(), Scene.mouseTarget, TraitNewZone.MoveZone(), WidgetFeed.Nerun(), CharaActorPCC.NextDir(), CharaActorPCC.NextFrame(), WidgetMenuPanel.OnChangeMode(), param1, param2, Spatial.parent, Chara.party, EClass.pc, CharaActorPCC.pcc, Chara.Pick(), CardRenderer.PlayAnime(), Card.PlayEffect(), EClass.player, Card.PlaySound(), Card.pos, Thing.Pref, CharaActorPCC.provider, Game.quests, CharaActorPCC.RefreshSprite(), Spatial.RegionPos, BaseCore.releaseMode, Zone.RemoveCard(), Party.RemoveMember(), Card.renderer, HotbarManager.ResetHotbar(), resolutions, EScriptable.rnd(), Map.Roaming, CorePath.RootSave, runtimeGodBuild, Game.Save(), MapSubset.Save(), Msg.Say(), EClass.scene, ElementContainer.SetBase(), Weather.SetCondition(), Card.SetEncLv(), Chara.SetGlobal(), Map.SetLiquid(), Card.SetPlaceState(), EClass.Sound, Thing.source, Zone.SpawnMob(), QuestManager.Start(), Core.steam, RenderObject.syncList, PointTarget.TargetChara, ThingGen.TestCreate(), TestSpawn(), 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 830 of file CoreDebug.cs.

831 {
833 {
837 }
838 }
PropsInstalled Installed
Definition: Map.cs:123
PropsStocked Stocked
Definition: Map.cs:121
void Validate()
Definition: Props.cs:413

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

◆ ZoneIDs()

IEnumerable< string > CoreDebug.ZoneIDs ( )
inlineprivate

Definition at line 316 of file CoreDebug.cs.

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

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

Member Data Documentation

◆ _godBuild

bool CoreDebug._godBuild

Definition at line 178 of file CoreDebug.cs.

◆ advanceMin

int CoreDebug.advanceMin

Definition at line 145 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ allAbility

bool CoreDebug.allAbility

Definition at line 190 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allArt

bool CoreDebug.allArt

Definition at line 196 of file CoreDebug.cs.

Referenced by ContentGallery.OnSwitchContent().

◆ allBGM

bool CoreDebug.allBGM

Definition at line 198 of file CoreDebug.cs.

Referenced by LayerEditPlaylist.Refresh().

◆ allHomeSkill

bool CoreDebug.allHomeSkill

Definition at line 194 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allMenu

bool CoreDebug.allMenu

Definition at line 234 of file CoreDebug.cs.

◆ allPolicy

bool CoreDebug.allPolicy

Definition at line 236 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allRecipe

bool CoreDebug.allRecipe

Definition at line 232 of file CoreDebug.cs.

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

◆ allSkill

bool CoreDebug.allSkill

Definition at line 192 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allStory

bool CoreDebug.allStory

Definition at line 238 of file CoreDebug.cs.

Referenced by TraitStoryBook.OnRead().

◆ alwaysFavFood

bool CoreDebug.alwaysFavFood

Definition at line 227 of file CoreDebug.cs.

Referenced by Affinity.OnGift().

◆ alwaysResetWindow

bool CoreDebug.alwaysResetWindow

Definition at line 127 of file CoreDebug.cs.

Referenced by ELayer.Kill().

◆ animeDest

Card CoreDebug.animeDest
private

Definition at line 272 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ autoAdvanceQuest

bool CoreDebug.autoAdvanceQuest

◆ autoIdentify

bool CoreDebug.autoIdentify

Definition at line 188 of file CoreDebug.cs.

Referenced by Thing.OnCreate().

◆ bidx

int CoreDebug.bidx
private

Definition at line 275 of file CoreDebug.cs.

◆ bilinear

bool CoreDebug.bilinear
private

Definition at line 277 of file CoreDebug.cs.

◆ blines

string [] CoreDebug.blines
private

Definition at line 280 of file CoreDebug.cs.

◆ boradcast

bool CoreDebug.boradcast

Definition at line 259 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ command

string CoreDebug.command

Definition at line 135 of file CoreDebug.cs.

Referenced by Core.Awake().

◆ commands

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

Definition at line 282 of file CoreDebug.cs.

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

◆ debugHoard

bool CoreDebug.debugHoard

Definition at line 155 of file CoreDebug.cs.

Referenced by LayerHoard.OnAfterInit().

◆ debugHotkeys

DebugHotkey CoreDebug.debugHotkeys

Definition at line 142 of file CoreDebug.cs.

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

◆ debugInput

bool CoreDebug.debugInput

Definition at line 138 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ debugProps

bool CoreDebug.debugProps

Definition at line 151 of file CoreDebug.cs.

◆ debugScatter

bool CoreDebug.debugScatter

Definition at line 176 of file CoreDebug.cs.

◆ dontCompressSave

bool CoreDebug.dontCompressSave

Definition at line 131 of file CoreDebug.cs.

◆ dontUseThread

bool CoreDebug.dontUseThread

Definition at line 121 of file CoreDebug.cs.

Referenced by LayerProgress.Start().

◆ enable

bool CoreDebug.enable

Definition at line 285 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput(), WidgetDate._Refresh(), WidgetSystemIndicator._Refresh(), ActPlan._Update(), DramaCustomSequence.Build(), RecipeCard.Build(), Chara.CanAcceptItem(), FactionBranch.CanUpgrade(), CheatEnabled(), LayerFeedback.CollectFiles(), RecipeManager.ComeUpWithRecipe(), TraitCrafter.Craft(), RecipeCard.Craft(), Player.CreateEquip(), Region.CreateRandomSite(), SpatialGen.CreateRecursive(), Trait.CreateStock(), FactionBranch.DailyOutcome(), WidgetManager.DialogSave(), EnableDebugResource(), HitSummary.Execute(), ZonePreEnterEncounter.Execute(), DNA.Generate(), FactionBranch.GenerateGarbage(), TaskHarvest.GetBaseText(), Net.GetChat(), Thing.GetExtraName(), TraitGeneMachine.GetProgress(), Region.GetRandomSiteSource(), AM_MoveInstalled.HitTest(), CoreConfig.Init(), Props.ListThingStack(), Chara.MakeEgg(), AI_Fish.Makefish(), BuildMenu.OnActivate(), WidgetArtTool.OnActivate(), GlobalGoalAdv.OnAdvanceHour(), Region.OnAdvanceHour(), Trait.OnBarter(), Chara.OnCreate(), Game.OnGameInstantiated(), LayerMod.OnInit(), LayerNewspaper.OnInit(), AI_Fish.ProgressFish.OnProgressComplete(), TaskDig.OnProgressComplete(), TraitDeed.OnRead(), TileSelectorElona.OnRenderTile(), HotItemLayer.OnSetItem(), AM_FlagCell.OnSetSubMenuButton(), FactionBranch.OnSimulateDay(), ContentQuest.OnSwitchContent(), AM_Inspect.OnUpdateInput(), TileSelectorElona.OnUpdateInput(), TraitDaggerGrave.OnUse(), TraitGeneMachine.OnUse(), ZoneEventMusic.OnVisit(), ActRide.Perform(), FoodEffect.Proc(), ActEffect.ProcAt(), Card.PurgeDuplicateArtifact(), Map.PutAway(), WindowCharaMini.Refresh(), UIInventory.RefreshMenu(), ContentPolicy.RefreshPolicy(), ContentConfigOther.RefreshRewardCode(), ActionMode.RotateUnderMouse(), AI_Idle.Run(), AI_OpenGambleChest.Run(), AI_PassTime.Run(), AI_PlayMusic.Run(), Net.SendChat(), GameDate.ShipRandomPackages(), HotItemContext.Show(), UI.ShowLang(), Core.StartCase(), UIInventory.SwitchTab(), ActThrow.Throw(), ConDisease.Tick(), UI.ToggleFeedback(), Chara.TryDropBossLoot(), Religion.TryGetGift(), TraitEffect.TrySetAct(), TraitElevator.TrySetAct(), TraitHouseBoard.TrySetAct(), TraitMapBoard.TrySetAct(), TraitPaintBoard.TrySetAct(), TraitRoomPlate.TrySetAct(), TraitTeleporter.TrySetAct(), TraitWell.TrySetAct(), AI_Shopping.TryShop(), Zone.TrySpawnFollower(), Chara.TryUpgrade(), LayerHoard.Update(), LayerUploader.Update(), UpdateAlways(), ActionMode.UpdateInput(), Zone.UpdateQuests(), and TraitWrench.Upgrade().

◆ enableMapPieceEditor

bool CoreDebug.enableMapPieceEditor

Definition at line 212 of file CoreDebug.cs.

◆ fixedColor

Color32 CoreDebug.fixedColor

Definition at line 263 of file CoreDebug.cs.

◆ fov

Fov CoreDebug.fov = new Fov()

Definition at line 287 of file CoreDebug.cs.

◆ godCraft

bool CoreDebug.godCraft

◆ godFood

bool CoreDebug.godFood

Definition at line 182 of file CoreDebug.cs.

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

◆ godMode

◆ hidePCItemsInBuild

bool CoreDebug.hidePCItemsInBuild

Definition at line 208 of file CoreDebug.cs.

Referenced by BuildMenu.RefreshCategory().

◆ ignoreAutoSave

bool CoreDebug.ignoreAutoSave

Definition at line 125 of file CoreDebug.cs.

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

◆ ignoreBuildRule

◆ ignoreEncounter

bool CoreDebug.ignoreEncounter

Definition at line 200 of file CoreDebug.cs.

Referenced by Chara.Tick().

◆ ignorePool

bool CoreDebug.ignorePool

Definition at line 116 of file CoreDebug.cs.

Referenced by Core.Update().

◆ ignorePopup

bool CoreDebug.ignorePopup

Definition at line 159 of file CoreDebug.cs.

Referenced by PopupManager.Add().

◆ ignoreWeight

bool CoreDebug.ignoreWeight

Definition at line 186 of file CoreDebug.cs.

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

◆ indexResolution

int CoreDebug.indexResolution
private

Definition at line 289 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ instaReturn

bool CoreDebug.instaReturn

Definition at line 204 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ inviteAnytime

bool CoreDebug.inviteAnytime

Definition at line 221 of file CoreDebug.cs.

Referenced by Affinity.CanInvite().

◆ keypadDebug

bool CoreDebug.keypadDebug

Definition at line 140 of file CoreDebug.cs.

◆ langCode

Lang.LangCode CoreDebug.langCode

Definition at line 113 of file CoreDebug.cs.

Referenced by Core.Awake().

◆ lastAnime

AnimeID CoreDebug.lastAnime
private

Definition at line 291 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ lastEmo

Emo CoreDebug.lastEmo
private

Definition at line 293 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ logAdv

bool CoreDebug.logAdv

Definition at line 241 of file CoreDebug.cs.

Referenced by GlobalGoalVisitAndStay.OnAdvanceHour().

◆ logCombat

bool CoreDebug.logCombat

Definition at line 244 of file CoreDebug.cs.

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

◆ logDice

bool CoreDebug.logDice

Definition at line 246 of file CoreDebug.cs.

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

◆ marryAnytime

bool CoreDebug.marryAnytime

Definition at line 223 of file CoreDebug.cs.

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

◆ matColorTest

MatColorTest CoreDebug.matColorTest

Definition at line 257 of file CoreDebug.cs.

◆ maxQuests

bool CoreDebug.maxQuests

Definition at line 229 of file CoreDebug.cs.

◆ naked

bool CoreDebug.naked
private

Definition at line 295 of file CoreDebug.cs.

◆ numResource

int CoreDebug.numResource

Definition at line 216 of file CoreDebug.cs.

Referenced by EnableDebugResource().

◆ param1

int CoreDebug.param1

Definition at line 252 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ param2

int CoreDebug.param2

Definition at line 255 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ randomResource

bool CoreDebug.randomResource

Definition at line 174 of file CoreDebug.cs.

Referenced by SetStartStockpile().

◆ resetPlayerConfig

bool CoreDebug.resetPlayerConfig

Definition at line 119 of file CoreDebug.cs.

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

◆ resolutions

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

Definition at line 265 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ returnAnywhere

bool CoreDebug.returnAnywhere

Definition at line 202 of file CoreDebug.cs.

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

◆ revealInner

bool CoreDebug.revealInner

Definition at line 157 of file CoreDebug.cs.

◆ revealMap

bool CoreDebug.revealMap

Definition at line 153 of file CoreDebug.cs.

Referenced by HotItemContext.Show().

◆ runtimeGodBuild

bool CoreDebug.runtimeGodBuild
private

Definition at line 298 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ showExtra

◆ showFav

bool CoreDebug.showFav

Definition at line 225 of file CoreDebug.cs.

Referenced by DramaCustomSequence.Build().

◆ showSceneSelector

bool CoreDebug.showSceneSelector

Definition at line 108 of file CoreDebug.cs.

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

◆ showTone

bool CoreDebug.showTone

Definition at line 165 of file CoreDebug.cs.

◆ skipEvent

bool CoreDebug.skipEvent

Definition at line 161 of file CoreDebug.cs.

Referenced by ZoneEventManager.Add().

◆ skipMod

bool CoreDebug.skipMod

Definition at line 133 of file CoreDebug.cs.

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

◆ skipModSync

bool CoreDebug.skipModSync

Definition at line 111 of file CoreDebug.cs.

Referenced by Core.StartCase().

◆ skipNerun

bool CoreDebug.skipNerun

Definition at line 163 of file CoreDebug.cs.

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

◆ startHour

int CoreDebug.startHour

Definition at line 101 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startLoadout

StartLoadout CoreDebug.startLoadout

Definition at line 97 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startParty

StartParty CoreDebug.startParty

Definition at line 99 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startScene

StartScene CoreDebug.startScene

Definition at line 95 of file CoreDebug.cs.

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

◆ startSetting

StartSetting CoreDebug.startSetting

Definition at line 103 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startZone

string CoreDebug.startZone

Definition at line 105 of file CoreDebug.cs.

Referenced by Game.StartNewGame().

◆ test

bool CoreDebug.test

Definition at line 169 of file CoreDebug.cs.

Referenced by Zone.TryGenerateShrine().

◆ testFixedColor

bool CoreDebug.testFixedColor

Definition at line 261 of file CoreDebug.cs.

◆ testLOS

bool CoreDebug.testLOS

Definition at line 147 of file CoreDebug.cs.

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

◆ testLOS2

bool CoreDebug.testLOS2

Definition at line 149 of file CoreDebug.cs.

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

◆ testThingQuality

bool CoreDebug.testThingQuality

Definition at line 214 of file CoreDebug.cs.

Referenced by Card.Create().

◆ travelAnywhere

bool CoreDebug.travelAnywhere

Definition at line 206 of file CoreDebug.cs.

Referenced by Spatial.Create().

◆ ttt

int CoreDebug.ttt
private

Definition at line 300 of file CoreDebug.cs.

◆ unlimitedInterest

bool CoreDebug.unlimitedInterest

Definition at line 219 of file CoreDebug.cs.

Referenced by Affinity.OnTalkRumor().

◆ useNewConfig

bool CoreDebug.useNewConfig

Definition at line 123 of file CoreDebug.cs.

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

◆ validateData

bool CoreDebug.validateData

Definition at line 129 of file CoreDebug.cs.

◆ validatePref

bool CoreDebug.validatePref

Definition at line 249 of file CoreDebug.cs.

Referenced by Core.Init().

Property Documentation

◆ EnableCheat

string CoreDebug.EnableCheat
staticget

Definition at line 314 of file CoreDebug.cs.

◆ godBuild


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