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

Classes

class  DebugCommand
 
class  MatColorTest
 
class  StartSetting
 

Public Types

enum  DebugHotkey {
  None , Block , Item , Decal ,
  Act , Test , Anime
}
 
enum  StartLoadout { New , AllItem , FewItem }
 
enum  StartParty { None , Farris , Full }
 
enum  StartScene {
  Title , Survival , Zone , Home ,
  Home_Cave , Story_Test , MeetFarris , NymelleBoss ,
  AfterNymelle , Melilith , Tefra
}
 
enum  BodyCode {
  head = 30 , neck = 31 , torso = 32 , back = 33 ,
  waist = 37 , arm = 34 , hand = 35 , finger = 36 ,
  leg = 38 , foot = 39 , lightsource = 45 , relic = 46
}
 

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Properties

bool godBuild [get]
 
static string EnableCheat [get]
 

Private Member Functions

IEnumerable< string > ZoneIDs ()
 

Private Attributes

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

Detailed Description

Definition at line 9 of file CoreDebug.cs.

Member Enumeration Documentation

◆ BodyCode

Enumerator
head 
neck 
torso 
back 
waist 
arm 
hand 
finger 
leg 
foot 
lightsource 
relic 

Definition at line 61 of file CoreDebug.cs.

◆ DebugHotkey

Enumerator
None 
Block 
Item 
Decal 
Act 
Test 
Anime 

Definition at line 21 of file CoreDebug.cs.

◆ StartLoadout

Enumerator
New 
AllItem 
FewItem 

Definition at line 32 of file CoreDebug.cs.

◆ StartParty

Enumerator
None 
Farris 
Full 

Definition at line 39 of file CoreDebug.cs.

◆ StartScene

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

Definition at line 46 of file CoreDebug.cs.

Member Function Documentation

◆ _AddBodyPart()

static void CoreDebug._AddBodyPart ( BodyCode  bodyCode)
inlinestatic

Definition at line 2296 of file CoreDebug.cs.

2297 {
2298 EClass.pc.body.AddBodyPart((int)bodyCode);
2301 }
void AddBodyPart(int ele, Thing thing=null)
Definition: CharaBody.cs:302
void RefreshBodyParts()
Definition: CharaBody.cs:328
CharaBody body
Definition: Chara.cs:94
Definition: EClass.cs:6
static Chara pc
Definition: EClass.cs:15
static void OnChangeBodyPart()
Definition: WidgetEquip.cs:53

References CharaBody.AddBodyPart(), Chara.body, WidgetEquip.OnChangeBodyPart(), EClass.pc, and CharaBody.RefreshBodyParts().

◆ _RemoveBodyPart()

static void CoreDebug._RemoveBodyPart ( BodyCode  bodyCode)
inlinestatic

◆ AddAllRecipes()

void CoreDebug.AddAllRecipes ( )
inline

Definition at line 749 of file CoreDebug.cs.

750 {
752 {
753 if (!EClass.player.recipes.knownRecipes.ContainsKey(item.id))
754 {
756 }
757 }
758 }
static Player player
Definition: EClass.cs:13
RecipeManager recipes
Definition: Player.cs:1164
static List< RecipeSource > list
Dictionary< string, int > knownRecipes

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

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

◆ AddBodyPart()

static string CoreDebug.AddBodyPart ( BodyCode  bodyCode)
inlinestatic

Definition at line 2275 of file CoreDebug.cs.

2276 {
2277 if (!CheatEnabled())
2278 {
2279 return EnableCheat;
2280 }
2281 _AddBodyPart(bodyCode);
2282 return "Done.";
2283 }
static bool CheatEnabled()
Definition: CoreDebug.cs:1859
static string EnableCheat
Definition: CoreDebug.cs:331
static void _AddBodyPart(BodyCode bodyCode)
Definition: CoreDebug.cs:2296

◆ AllRecipe()

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

Definition at line 2440 of file CoreDebug.cs.

2441 {
2442 if (!CheatEnabled())
2443 {
2444 return EnableCheat;
2445 }
2446 if (forget)
2447 {
2449 }
2450 else
2451 {
2453 }
2454 return "Done!";
2455 }
void AddAllRecipes()
Definition: CoreDebug.cs:749
static CoreDebug debug
Definition: EClass.cs:49

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

◆ BroadcastNext()

void CoreDebug.BroadcastNext ( )
inline

Definition at line 2526 of file CoreDebug.cs.

2527 {
2528 LoadBroadcast();
2529 if (Input.GetKey(KeyCode.LeftControl))
2530 {
2531 bidx--;
2532 }
2533 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2534 string text = blines[bidx];
2535 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
2536 EClass.pc.SayRaw(text.TrimNewLines());
2537 }
void SayRaw(string text, string ref1=null, string ref2=null)
Definition: Card.cs:7295
string[] blines
Definition: CoreDebug.cs:297
int bidx
Definition: CoreDebug.cs:292
void LoadBroadcast()
Definition: CoreDebug.cs:2520

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

Referenced by AM_Adv._OnUpdateInput().

◆ ChangeJob()

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

Definition at line 2372 of file CoreDebug.cs.

2373 {
2374 if (!CheatEnabled())
2375 {
2376 return EnableCheat;
2377 }
2378 if (EClass.sources.jobs.map.ContainsKey(id))
2379 {
2380 EClass.pc.ChangeJob(id);
2382 return "Done.";
2383 }
2384 string text = "";
2385 foreach (SourceJob.Row row in EClass.sources.jobs.rows)
2386 {
2387 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2388 }
2389 return text;
2390 }
void ChangeJob(string idNew)
Definition: Chara.cs:2358
static SourceManager sources
Definition: EClass.cs:43
void RefreshDomain()
Definition: Player.cs:1594
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 2311 of file CoreDebug.cs.

2312 {
2313 if (!CheatEnabled())
2314 {
2315 return EnableCheat;
2316 }
2317 if (EClass.sources.races.map.ContainsKey(id))
2318 {
2319 Thing thing = null;
2320 foreach (BodySlot slot in EClass.pc.body.slots)
2321 {
2322 if (slot.thing != null)
2323 {
2324 if (slot.thing.blessedState <= BlessedState.Cursed)
2325 {
2326 slot.thing.blessedState = BlessedState.Normal;
2327 }
2328 if (slot.thing.trait is TraitToolBelt)
2329 {
2330 thing = slot.thing;
2331 }
2332 EClass.pc.body.Unequip(slot);
2333 }
2334 }
2337 EClass.pc.ChangeRace(id);
2338 if (EClass.ui.IsInventoryOpen)
2339 {
2340 EClass.ui.ToggleInventory();
2341 }
2344 EClass.pc.body.Equip(thing);
2347 return "Done.";
2348 }
2349 string text = "";
2350 foreach (SourceRace.Row row in EClass.sources.races.rows)
2351 {
2352 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2353 }
2354 return text;
2355 }
BlessedState
Definition: BlessedState.cs:2
Thing thing
Definition: BodySlot.cs:8
Trait trait
Definition: Card.cs:54
BlessedState blessedState
Definition: Card.cs:281
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:206
void ChangeRace(string idNew)
Definition: Chara.cs:2478
static UI ui
Definition: EClass.cs:17
SourceRace races
Definition: Thing.cs:8

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

◆ Cheat()

static string CoreDebug.Cheat ( )
inlinestatic

Definition at line 1869 of file CoreDebug.cs.

1870 {
1871 EClass.game.config.cheat = true;
1872 return "Cheat Enabled";
1873 }

◆ CheatEnabled()

static bool CoreDebug.CheatEnabled ( )
inlinestatic

Definition at line 1859 of file CoreDebug.cs.

1860 {
1861 if (!EClass.debug.enable)
1862 {
1863 return EClass.game.config.cheat;
1864 }
1865 return true;
1866 }
bool enable
Definition: CoreDebug.cs:302
static Game game
Definition: EClass.cs:9
bool cheat
Definition: Game.cs:55
Config config
Definition: Game.cs:219

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

◆ ClearLastWishFlag()

static string CoreDebug.ClearLastWishFlag ( )
inlinestatic

Definition at line 2476 of file CoreDebug.cs.

2477 {
2478 if (!CheatEnabled())
2479 {
2480 return EnableCheat;
2481 }
2482 EClass.player.doneBackers.Clear();
2483 return Resources.Load<TextAsset>("logo2").text + Environment.NewLine + "Done!";
2484 }
HashSet< int > doneBackers
Definition: Player.cs:1140

References Player.doneBackers, and EClass.player.

◆ COM_MaxConstruction()

void CoreDebug.COM_MaxConstruction ( )
inline

Definition at line 1851 of file CoreDebug.cs.

1852 {
1853 if (EClass.pc.homeBranch != null)
1854 {
1856 }
1857 }
FactionBranch homeBranch
Definition: Chara.cs:1113
Element ModBase(int ele, int v)
ElementContainerZone elements
Definition: Zone.cs:46

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

◆ COM_PlayStartDrama()

void CoreDebug.COM_PlayStartDrama ( )
inline

Definition at line 1801 of file CoreDebug.cs.

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

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

◆ COM_Teleport()

void CoreDebug.COM_Teleport ( )
inline

Definition at line 1786 of file CoreDebug.cs.

1787 {
1788 for (int i = 0; i < 10000; i++)
1789 {
1790 Point point = EClass.pc.pos.Copy();
1791 point.x += EScriptable.rnd(60) - EScriptable.rnd(60);
1792 point.z += EScriptable.rnd(60) - EScriptable.rnd(60);
1793 if (point.IsValid && !point.cell.blocked && point.HasFloor)
1794 {
1795 EClass.pc.Teleport(point);
1796 break;
1797 }
1798 }
1799 }
void Teleport(Point point, bool silent=false, bool force=false)
Definition: Card.cs:6187
Point pos
Definition: Card.cs:60
static int rnd(int a)
Definition: EScriptable.cs:5
Definition: Point.cs:9
Point Copy()
Definition: Point.cs:491
bool IsValid
Definition: Point.cs:88
bool HasFloor
Definition: Point.cs:219
Cell cell
Definition: Point.cs:51

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

◆ EnableDebugResource()

void CoreDebug.EnableDebugResource ( )
inline

Definition at line 818 of file CoreDebug.cs.

819 {
822 enable = true;
823 if ((bool)WidgetHotbar.HotbarBuild)
824 {
826 }
828 Thing orCreateDebugContainer = GetOrCreateDebugContainer();
829 SetStartStockpile(orCreateDebugContainer, numResource);
830 }
int numResource
Definition: CoreDebug.cs:233
void SetStartStockpile(Thing container, int num=100)
Definition: CoreDebug.cs:760
Thing GetOrCreateDebugContainer()
Definition: CoreDebug.cs:789
void OnEnableDebug()
Definition: Player.cs:775
Flags flags
Definition: Player.cs:1161
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 2393 of file CoreDebug.cs.

2394 {
2395 string text = "Steam is not running.";
2396 DateTime dateTime = new DateTime(2024, 11, 3, 6, 0, 0);
2397 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))));
2398 dateTimeOffset = dateTimeOffset.ToOffset(new TimeSpan(9, 0, 0));
2399 text = ((dateTimeOffset < dateTime) ? "Valid: " : "Invalid: ");
2400 text = text + "Arrived North Tyris on " + dateTimeOffset.Year + " " + dateTimeOffset.Month + "/" + dateTimeOffset.Day + " " + dateTimeOffset.Hour + ":" + dateTimeOffset.Minute;
2401 return text + " Eligible by " + dateTime.Year + " " + dateTime.Month + "/" + dateTime.Day + " " + dateTime.Hour + ":" + dateTime.Minute;
2402 }

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

◆ Fix_Awning()

static string CoreDebug.Fix_Awning ( )
inlinestatic

Definition at line 1894 of file CoreDebug.cs.

1895 {
1896 foreach (Thing thing in EClass._map.things)
1897 {
1898 if (thing.id == "ash3")
1899 {
1900 thing.id = "awning ";
1901 thing.source = EClass.sources.things.map[thing.id];
1902 thing._CreateRenderer();
1903 }
1904 }
1905 return "Fixed!";
1906 }
string id
Definition: Card.cs:36
virtual CardRenderer _CreateRenderer()
Definition: Card.cs:6433
static Map _map
Definition: EClass.cs:19
List< Thing > things
Definition: Map.cs:49
SourceThing things

References Card._CreateRenderer(), EClass._map, Card.id, EClass.sources, Map.things, and SourceManager.things.

◆ Fix_EtherDisease()

static string CoreDebug.Fix_EtherDisease ( )
inlinestatic

Definition at line 1927 of file CoreDebug.cs.

1928 {
1929 EClass.pc.ModCorruption(-100000);
1930 Chara chara = CharaGen.Create("chara");
1931 chara.ChangeRace(EClass.pc.race.id);
1932 chara.ChangeJob(EClass.pc.job.id);
1933 string text = "";
1934 foreach (Element value in chara.elements.dict.Values)
1935 {
1936 if (!(value.source.category != "attribute"))
1937 {
1938 Element orCreateElement = EClass.pc.elements.GetOrCreateElement(value.id);
1939 if (value.vBase > orCreateElement.vBase)
1940 {
1941 text = text + "Fixing Base Value:" + orCreateElement.Name + " Before:" + orCreateElement.vBase + " Now:" + (value.vBase + 1) + Environment.NewLine;
1942 EClass.pc.elements.ModBase(orCreateElement.id, value.vBase - orCreateElement.vBase + 1);
1943 }
1944 }
1945 }
1946 return text + "Fixed!";
1947 }
ElementContainerCard elements
Definition: Card.cs:42
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
SourceJob.Row job
Definition: Chara.cs:470
void ModCorruption(int a)
Definition: Chara.cs:10423
SourceRace.Row race
Definition: Chara.cs:468
Dictionary< int, Element > dict
Element GetOrCreateElement(Element ele)
int id
Definition: ELEMENT.cs:259
int vBase
Definition: ELEMENT.cs:261
SourceElement.Row source
Definition: ELEMENT.cs:282

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

1951 {
1953 {
1954 return "Not in base.";
1955 }
1956 foreach (Thing thing in EClass._map.things)
1957 {
1958 if (thing.trait is TraitCoreZone)
1959 {
1960 return "Base already has core.";
1961 }
1962 }
1963 if (EClass.pc.things.Find((Thing t) => t.trait is TraitCoreZone) != null)
1964 {
1965 return "Player has core.";
1966 }
1968 return "Done.";
1969 }
ThingContainer things
Definition: Card.cs:39
static Zone _zone
Definition: EClass.cs:21
Point GetCenterPos()
Definition: MapBounds.cs:52
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false, int minRadius=0)
Definition: Point.cs:624
Thing Find(int uid)
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
MapBounds bounds
Definition: Zone.cs:52
bool IsPCFaction
Definition: Zone.cs:480
Card AddCard(Card t, Point point)
Definition: Zone.cs:2142

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

◆ Fix_RemoveAshland()

static string CoreDebug.Fix_RemoveAshland ( )
inlinestatic

Definition at line 1994 of file CoreDebug.cs.

1995 {
1996 List<Chara> list = new List<Chara>();
1997 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1998 {
1999 if (value.id == "ashland")
2000 {
2001 list.Add(value);
2002 }
2003 }
2004 if (list.Count > 1)
2005 {
2006 Chara chara = list[1];
2007 chara.RemoveGlobal();
2008 chara.homeBranch.BanishMember(chara);
2009 chara.Destroy();
2010 return "Ashland Removed!";
2011 }
2012 return "Not enough Ashland!";
2013 }
GlobalCharaList globalCharas
Definition: CardManager.cs:46
void Destroy()
Definition: Card.cs:5310
void RemoveGlobal()
Definition: Chara.cs:1570
void BanishMember(Chara c, bool skipMsg=false)
CardManager cards
Definition: Game.cs:156

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

◆ Fix_RemoveDemitas()

static string CoreDebug.Fix_RemoveDemitas ( )
inlinestatic

Definition at line 1972 of file CoreDebug.cs.

1973 {
1974 List<Chara> list = new List<Chara>();
1975 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1976 {
1977 if (value.id == "demitas" && value.currentZone == EClass._zone)
1978 {
1979 list.Add(value);
1980 }
1981 }
1982 if (list.Count > 1)
1983 {
1984 Chara chara = list[1];
1985 chara.RemoveGlobal();
1986 chara.homeBranch.BanishMember(chara);
1987 chara.Destroy();
1988 return "Demitas Removed!";
1989 }
1990 return "Not enough Demitas!";
1991 }
Zone currentZone
Definition: Chara.cs:259

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

◆ Fix_RemoveDesignations()

static string CoreDebug.Fix_RemoveDesignations ( )
inlinestatic

Definition at line 2016 of file CoreDebug.cs.

2017 {
2018 EClass._map.ForeachCell(delegate(Cell c)
2019 {
2020 if (c.detail != null && c.detail.designation != null)
2021 {
2022 c.detail.designation.taskList.Remove(c.detail.designation);
2023 }
2024 });
2025 return "Done.";
2026 }
TaskDesignation designation
Definition: CellDetail.cs:19
Definition: Cell.cs:7
CellDetail detail
Definition: Cell.cs:112
new void ForeachCell(Action< Cell > action)
Definition: Map.cs:2403

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

◆ Fix_RemoveDuplicateUnique()

static string CoreDebug.Fix_RemoveDuplicateUnique ( )
inlinestatic

Definition at line 1909 of file CoreDebug.cs.

1910 {
1911 if (EClass.Branch == null)
1912 {
1913 return "No Branch";
1914 }
1915 EClass.Branch.members.ForeachReverse(delegate(Chara c)
1916 {
1917 if ((c.id == "kettle" || c.id == "quru") && EClass.Branch.members.Where((Chara chara) => chara.id == c.id).Count() >= 2)
1918 {
1919 EClass.Branch.RemoveMemeber(c);
1920 c.Destroy();
1921 }
1922 });
1923 return "Fixed!";
1924 }
static FactionBranch Branch
Definition: EClass.cs:23
List< Chara > members

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

◆ FlyMode()

static string CoreDebug.FlyMode ( )
inlinestatic

Definition at line 2264 of file CoreDebug.cs.

2265 {
2266 if (!CheatEnabled())
2267 {
2268 return EnableCheat;
2269 }
2271 return "I can fly!";
2272 }
Condition AddCondition(string id, int p=100, bool force=false)
Definition: Chara.cs:9818

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

◆ GetDebugContainer()

Thing CoreDebug.GetDebugContainer ( )
inline

Definition at line 806 of file CoreDebug.cs.

807 {
808 foreach (Thing thing in EClass._map.things)
809 {
810 if (thing.c_altName == "DebugContainer")
811 {
812 return thing;
813 }
814 }
815 return null;
816 }
string c_altName
Definition: Card.cs:1633

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

Referenced by BuildMenu.OnActivate().

◆ GetOrCreateDebugContainer()

Thing CoreDebug.GetOrCreateDebugContainer ( )
inline

Definition at line 789 of file CoreDebug.cs.

790 {
791 foreach (Thing thing2 in EClass._map.things)
792 {
793 if (thing2.c_altName == "DebugContainer")
794 {
795 return thing2;
796 }
797 }
798 Thing thing = EClass._zone.AddThing("barrel", EClass.pc.pos).Thing;
799 thing.ChangeMaterial("obsidian");
800 thing.c_altName = "DebugContainer";
801 thing.isNPCProperty = false;
802 thing.SetPlaceState(PlaceState.installed);
803 return thing;
804 }
PlaceState
Definition: PlaceState.cs:2
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3925
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:3214
virtual Thing Thing
Definition: Card.cs:2110
Card AddThing(string id, int x, int z)
Definition: Zone.cs:2132

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

2191 {
2192 if (!CheatEnabled())
2193 {
2194 return EnableCheat;
2195 }
2196 EClass.pc.Revive();
2197 EClass.pc.hp = EClass.pc.MaxHP;
2198 return "I'm God!";
2199 }
override int MaxHP
Definition: Chara.cs:726
void Revive(Point p=null, bool msg=false)
Definition: Chara.cs:5453

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

◆ Init()

void CoreDebug.Init ( )
inline

Definition at line 344 of file CoreDebug.cs.

345 {
347 EInput.disableKeyAxis = Application.isEditor;
348 }
void InitDebugCommands()
Definition: CoreDebug.cs:1477

References InitDebugCommands().

Referenced by Core.Init().

◆ InitDebugCommands()

void CoreDebug.InitDebugCommands ( )
inline

Definition at line 1477 of file CoreDebug.cs.

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

References EClass._zone, 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 2458 of file CoreDebug.cs.

2459 {
2460 string text = "";
2461 foreach (SourceBacker.Row row in EClass.sources.backers.rows)
2462 {
2463 if (row.name.Contains(name) || row.id.ToString() == name)
2464 {
2465 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;
2466 }
2467 }
2468 if (text == "")
2469 {
2470 return "Not Found";
2471 }
2472 return text + Resources.Load<TextAsset>("logo2").text;
2473 }

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

◆ ListChara()

static string CoreDebug.ListChara ( )
inlinestatic

Definition at line 2029 of file CoreDebug.cs.

2030 {
2031 string text = "";
2032 foreach (SourceChara.Row row in EClass.sources.charas.rows)
2033 {
2034 text = text + row.id + "\n";
2035 }
2036 return text;
2037 }
SourceChara charas

References SourceManager.charas, and EClass.sources.

◆ ListThing()

static string CoreDebug.ListThing ( )
inlinestatic

Definition at line 2040 of file CoreDebug.cs.

2041 {
2042 string text = "";
2043 foreach (SourceThing.Row row in EClass.sources.things.rows)
2044 {
2045 text = text + row.id + "\n";
2046 }
2047 return text;
2048 }

References EClass.sources, and SourceManager.things.

◆ LoadBroadcast()

void CoreDebug.LoadBroadcast ( )
inline

Definition at line 2520 of file CoreDebug.cs.

2521 {
2522 TextAsset textAsset = Resources.Load<TextAsset>("Data/Text/broadcast");
2523 blines = textAsset.text.Split('-');
2524 }

◆ Log()

void CoreDebug.Log ( object  o)
inline

Definition at line 2497 of file CoreDebug.cs.

2498 {
2499 Debug.Log(o);
2500 }

References Debug.

Referenced by Tutorial.Play().

◆ LOG_Spatials()

void CoreDebug.LOG_Spatials ( )
inline

Definition at line 1819 of file CoreDebug.cs.

1820 {
1821 foreach (Spatial child in EClass.world.region.children)
1822 {
1823 Debug.Log(child.uid + "/" + child.Name + "/" + child.mainFaction.name + "/" + (child == EClass.player.zone));
1824 }
1825 }
string name
Definition: FACTION.cs:135
Zone zone
Definition: Player.cs:1149
int uid
Definition: Spatial.cs:70
virtual string Name
Definition: Spatial.cs:509
Faction mainFaction
Definition: Spatial.cs:442
List< Spatial > children
Definition: Spatial.cs:37
Region region
Definition: World.cs:23

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

◆ MaxFame()

static string CoreDebug.MaxFame ( )
inlinestatic

Definition at line 2213 of file CoreDebug.cs.

2214 {
2215 if (!CheatEnabled())
2216 {
2217 return EnableCheat;
2218 }
2219 if (EClass.player.CountKeyItem("license_adv") == 0)
2220 {
2221 EClass.player.ModKeyItem("license_adv");
2222 }
2223 EClass.player.ModFame(int.MaxValue);
2224 return "Done.";
2225 }
void ModFame(int a)
Definition: Player.cs:2176
int CountKeyItem(string alias)
Definition: Player.cs:2250
void ModKeyItem(string alias, int num=1, bool msg=true)
Definition: Player.cs:2218

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

◆ ModContribution()

static string CoreDebug.ModContribution ( int  amount)
inlinestatic

Definition at line 2239 of file CoreDebug.cs.

2240 {
2241 if (!CheatEnabled())
2242 {
2243 return EnableCheat;
2244 }
2246 return "Done.";
2247 }
void AddContribution(int a)
Definition: FACTION.cs:318
Definition: Guild.cs:2
static Guild GetCurrentGuild()
Definition: Guild.cs:74

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

◆ ModFame()

static string CoreDebug.ModFame ( int  amount)
inlinestatic

Definition at line 2202 of file CoreDebug.cs.

2203 {
2204 if (!CheatEnabled())
2205 {
2206 return EnableCheat;
2207 }
2208 EClass.player.ModFame(amount);
2209 return "Done.";
2210 }

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

◆ ModKarma()

static string CoreDebug.ModKarma ( int  amount)
inlinestatic

Definition at line 2228 of file CoreDebug.cs.

2229 {
2230 if (!CheatEnabled())
2231 {
2232 return EnableCheat;
2233 }
2234 EClass.player.ModKarma(amount);
2235 return "Done.";
2236 }
void ModKarma(int a)
Definition: Player.cs:2620

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

◆ NextBGM()

void CoreDebug.NextBGM ( )
inline

Definition at line 2502 of file CoreDebug.cs.

2503 {
2504 if ((bool)SoundManager.current)
2505 {
2506 SoundManager.current.NextBGM();
2507 }
2508 }

◆ OnLoad()

void CoreDebug.OnLoad ( )
inline

Definition at line 741 of file CoreDebug.cs.

742 {
743 if (allRecipe)
744 {
746 }
747 }
bool allRecipe
Definition: CoreDebug.cs:249

References AddAllRecipes(), and allRecipe.

Referenced by Game.OnLoad().

◆ QuickStart()

void CoreDebug.QuickStart ( )
inline

Definition at line 350 of file CoreDebug.cs.

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

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

Referenced by Core.Init().

◆ RegenerateNames()

static string CoreDebug.RegenerateNames ( )
inlinestatic

Definition at line 2405 of file CoreDebug.cs.

2406 {
2407 EClass.core.mods.InitLang();
2408 NameGen.list = null;
2409 AliasGen.list = null;
2410 AliasGen.listMix.Clear();
2411 AliasGen.listBuiltin.Clear();
2412 WordGen.listMix.Clear();
2413 WordGen.listBuiltin.Clear();
2414 NameGen.Init();
2415 AliasGen.Init();
2416 foreach (Chara chara in EClass._map.charas)
2417 {
2418 if (!chara.IsPC)
2419 {
2420 if (chara.source.name == "*r")
2421 {
2422 chara.c_altName = NameGen.getRandomName();
2423 }
2424 if (!chara._alias.IsEmpty())
2425 {
2426 chara._alias = AliasGen.GetRandomAlias();
2427 }
2428 }
2429 }
2430 return "Done!";
2431 }
override bool IsPC
Definition: Chara.cs:630
SourceChara.Row source
Definition: Chara.cs:162
string _alias
Definition: Chara.cs:223
ModManager mods
Definition: Core.cs:39
override void Init(string path, string defaultPackage="_Elona")
Definition: ModManager.cs:31

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

◆ RemoveBodyPart()

static string CoreDebug.RemoveBodyPart ( BodyCode  bodyCode)
inlinestatic

Definition at line 2286 of file CoreDebug.cs.

2287 {
2288 if (!CheatEnabled())
2289 {
2290 return EnableCheat;
2291 }
2292 _RemoveBodyPart(bodyCode);
2293 return "Done.";
2294 }
static void _RemoveBodyPart(BodyCode bodyCode)
Definition: CoreDebug.cs:2303

◆ Reset_LoytelDebt()

static string CoreDebug.Reset_LoytelDebt ( )
inlinestatic

Definition at line 1876 of file CoreDebug.cs.

1877 {
1878 QuestDebt questDebt = EClass.game.quests.Get<QuestDebt>();
1879 if (questDebt == null)
1880 {
1881 return "Quest Status Not Valid.";
1882 }
1883 questDebt.stage = 0;
1884 questDebt.paid = false;
1885 questDebt.gaveBill = false;
1886 EClass.player.debt = 20000000;
1887 Thing thing = ThingGen.Create("856");
1888 thing.refVal = 109;
1889 EClass.pc.Pick(thing);
1890 return "Quest Reset!";
1891 }
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Definition: Chara.cs:4565

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

◆ ResetAchievement()

static string CoreDebug.ResetAchievement ( ID_Achievement  id)
inlinestatic

Definition at line 2365 of file CoreDebug.cs.

2366 {
2368 return "Done.";
2369 }
Definition: Steam.cs:12
static void ResetAchievement(ID_Achievement id)
Definition: Steam.cs:101

References Steam.ResetAchievement().

◆ ResetAllAchievement()

static string CoreDebug.ResetAllAchievement ( )
inlinestatic

Definition at line 2358 of file CoreDebug.cs.

2359 {
2361 return "Done.";
2362 }
static void ResetAllAchievement()
Definition: Steam.cs:92

References Steam.ResetAllAchievement().

◆ ResetPetUpgrades()

static string CoreDebug.ResetPetUpgrades ( )
inlinestatic

Definition at line 2166 of file CoreDebug.cs.

2167 {
2168 foreach (Chara value in EClass.game.cards.globalCharas.Values)
2169 {
2170 if (value.IsPCFaction)
2171 {
2172 value.ResetUpgrade();
2173 }
2174 }
2175 return "Not Implemented.";
2176 }
void ResetUpgrade()
Definition: Chara.cs:9099
override bool IsPCFaction
Definition: Chara.cs:689

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

◆ ResetPrincipalSeals()

static string CoreDebug.ResetPrincipalSeals ( )
inlinestatic

Definition at line 2179 of file CoreDebug.cs.

2180 {
2181 if (!CheatEnabled())
2182 {
2183 return EnableCheat;
2184 }
2185 EClass.game.principal.modified.Clear();
2186 return "Done.";
2187 }
HashSet< string > modified
GamePrincipal principal
Definition: Game.cs:225

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

◆ Resource()

static string CoreDebug.Resource ( )
inlinestatic

Definition at line 2487 of file CoreDebug.cs.

2488 {
2489 if (!CheatEnabled())
2490 {
2491 return EnableCheat;
2492 }
2494 return "Resources spawned.";
2495 }
void SpawnCheatContainer()
Definition: CoreDebug.cs:832

References EClass.debug, and SpawnCheatContainer().

◆ Rust()

static string CoreDebug.Rust ( )
inlinestatic

Definition at line 2250 of file CoreDebug.cs.

2251 {
2252 if (!CheatEnabled())
2253 {
2254 return EnableCheat;
2255 }
2256 EClass.pc.things.Foreach(delegate(Thing t)
2257 {
2258 t.ModEncLv(-100);
2259 });
2260 return "Done.";
2261 }
void ModEncLv(int a)
Definition: Card.cs:4024

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

◆ SetElement()

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

Definition at line 2051 of file CoreDebug.cs.

2052 {
2053 if (!CheatEnabled())
2054 {
2055 return EnableCheat;
2056 }
2057 SourceElement.Row row = EClass.sources.elements.alias.TryGetValue(alias);
2058 if (row == null)
2059 {
2060 return "Element not found.";
2061 }
2062 if (row.type == "Feat")
2063 {
2064 EClass.pc.SetFeat(row.id, value, msg: true);
2065 }
2066 else
2067 {
2068 EClass.pc.elements.SetBase(row.id, value, potential);
2069 }
2070 return "Done.";
2071 }
void SetFeat(int id, int value=1, bool msg=false)
Definition: Chara.cs:10481

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

761 {
762 LittlePopper.skipPop = true;
763 foreach (SourceMaterial.Row row in EClass.sources.materials.rows)
764 {
765 if (!(row.alias == "void") && (!randomResource || EScriptable.rnd(4) == 0))
766 {
767 row.CreateByProduct(container, num);
768 }
769 }
770 foreach (SourceThing.Row row2 in EClass.sources.things.rows)
771 {
772 if ((row2.factory.IsEmpty() || !(row2.factory[0] == "x")) && !row2.isOrigin && row2.Category.tag.Contains("debug"))
773 {
774 Thing thing = ThingGen.Create(row2.id);
775 if (thing.trait.CanStack)
776 {
777 thing.ModNum(num);
778 }
779 container.AddThing(thing);
780 }
781 }
782 for (int i = 0; i < 10; i++)
783 {
784 container.AddThing(TraitSeed.MakeRandomSeed());
785 }
786 LittlePopper.skipPop = false;
787 }
void ModNum(int a, bool notify=true)
Definition: Card.cs:3693
bool randomResource
Definition: CoreDebug.cs:191
SourceMaterial materials
static Thing MakeRandomSeed(bool enc=false)
Definition: TraitSeed.cs:97
virtual bool CanStack
Definition: Trait.cs:163

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

Referenced by EnableDebugResource().

◆ Spawn()

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

Definition at line 2089 of file CoreDebug.cs.

2090 {
2091 if (!CheatEnabled())
2092 {
2093 return EnableCheat;
2094 }
2095 if (EClass.sources.things.map.ContainsKey(id))
2096 {
2097 Thing thing = ThingGen.Create(id, -1, objLv).SetNum(num);
2098 if (!aliasMat.IsEmpty())
2099 {
2100 thing.ChangeMaterial(aliasMat);
2101 }
2102 EClass._zone.AddCard(thing, EClass.pc.pos);
2103 return "Spawned " + thing.Name;
2104 }
2105 _ = EClass.sources.charas.map;
2106 if (EClass.sources.charas.map.ContainsKey(id))
2107 {
2108 Chara chara = CharaGen.Create(id);
2109 if (objLv != -1)
2110 {
2111 chara.SetLv(objLv);
2112 }
2113 EClass._zone.AddCard(chara, EClass.pc.pos);
2114 return "Spawned " + chara.Name;
2115 }
2116 return "'" + id + "' does not exist in the database.";
2117 }
string Name
Definition: Card.cs:2191

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

2075 {
2076 if (!CheatEnabled())
2077 {
2078 return EnableCheat;
2079 }
2080 if (EClass.sources.charas.map.ContainsKey(id))
2081 {
2083 return "Spawned " + chara.Name;
2084 }
2085 return "'" + id + "' does not exist in the database.";
2086 }
static SpawnSetting Boss(int filterLv, int fixedLv=-1)
Definition: SpawnSetting.cs:49
Chara SpawnMob(string id, Point pos=null)
Definition: Zone.cs:2971

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

833 {
834 }

Referenced by Resource().

◆ SpawnFigure()

static string CoreDebug.SpawnFigure ( string  id)
inlinestatic

Definition at line 2120 of file CoreDebug.cs.

2121 {
2122 if (!CheatEnabled())
2123 {
2124 return EnableCheat;
2125 }
2126 if (!EClass.sources.charas.map.ContainsKey(id))
2127 {
2128 return "'" + id + "' does not exist in the database.";
2129 }
2130 Thing thing = ThingGen.Create("figure");
2131 Thing thing2 = ThingGen.Create("figure3");
2132 string c_idRefCard = (thing2.c_idRefCard = id);
2133 thing.c_idRefCard = c_idRefCard;
2134 EClass.pc.DropThing(thing);
2135 EClass.pc.DropThing(thing2);
2136 return "Spawned figures for '" + id + "'";
2137 }
void DropThing(Thing t, int num=-1)
Definition: Chara.cs:4882

References SourceManager.charas, ThingGen.Create(), Chara.DropThing(), EClass.pc, and EClass.sources.

◆ Stats()

static string CoreDebug.Stats ( )
inlinestatic

Definition at line 2434 of file CoreDebug.cs.

2435 {
2436 return string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat(string.Concat("" + "Fish Stolen: " + EClass.player.flags.fishStolen + Environment.NewLine, "Little Saved: ", EClass.player.little_saved.ToString(), Environment.NewLine), "Little Lost: ", EClass.player.little_dead.ToString(), Environment.NewLine), "Little Depart: ", EClass.player.stats.sistersDepart.ToString(), Environment.NewLine), "Cat Depart: ", EClass.player.stats.catDepart.ToString(), Environment.NewLine), "Angry Cats: ", EClass.player.stats.angryCats.ToString(), Environment.NewLine), "Love Made: ", EClass.player.stats.kimo.ToString(), Environment.NewLine), "Nefia Beaten: ", EClass.player.stats.nefiaBeaten.ToString(), Environment.NewLine), "Sheared: ", EClass.player.stats.shear.ToString(), Environment.NewLine), "Brushed: ", EClass.player.stats.brush.ToString(), Environment.NewLine), "Egg Hatched: ", EClass.player.stats.eggHatched.ToString(), Environment.NewLine), "Plowed: ", EClass.player.stats.plow.ToString(), Environment.NewLine), "Cleaned: ", EClass.player.stats.clean.ToString(), Environment.NewLine), "Unpaid Bill: ", EClass.player.unpaidBill.ToString(), Environment.NewLine), "Statue Shipped: ", EClass.player.flags.statueShipped.ToString(), Environment.NewLine);
2437 }
int fishStolen
Definition: Player.cs:736
bool statueShipped
Definition: Player.cs:460
long eggHatched
Definition: Player.cs:201
int sistersDepart
Definition: Player.cs:123
long nefiaBeaten
Definition: Player.cs:153
int catDepart
Definition: Player.cs:126
long plow
Definition: Player.cs:213
long brush
Definition: Player.cs:189
long kimo
Definition: Player.cs:165
long clean
Definition: Player.cs:225
int angryCats
Definition: Player.cs:135
long shear
Definition: Player.cs:177
Stats stats
Definition: Player.cs:1083
int little_dead
Definition: Player.cs:993
int unpaidBill
Definition: Player.cs:978
int little_saved
Definition: Player.cs:996

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

◆ Test_Filter()

void CoreDebug.Test_Filter ( )
inline

Definition at line 1809 of file CoreDebug.cs.

1810 {
1811 bilinear = !bilinear;
1812 MeshPass[] passes = EClass.scene.passes;
1813 for (int i = 0; i < passes.Length; i++)
1814 {
1815 passes[i].mat.GetTexture("_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1816 }
1817 }
bool bilinear
Definition: CoreDebug.cs:294
Material mat
Definition: MeshPass.cs:21
MeshPass[] passes
Definition: Scene.cs:121

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

◆ Test_GodTalk()

void CoreDebug.Test_GodTalk ( )
inline

Definition at line 1778 of file CoreDebug.cs.

1779 {
1780 foreach (Religion value in EClass.game.religions.dictAll.Values)
1781 {
1782 value.Talk("test");
1783 }
1784 }
ReligionManager religions
Definition: Game.cs:159
Dictionary< string, Religion > dictAll
virtual void Talk(string idTalk, Card c=null, Card agent=null)
Definition: Religion.cs:175

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

◆ Test_Grow()

void CoreDebug.Test_Grow ( )
inline

Definition at line 1760 of file CoreDebug.cs.

1761 {
1762 EClass._map.ForeachCell(delegate(Cell c)
1763 {
1764 if (c.sourceObj.HasGrowth)
1765 {
1766 c.TryGrow();
1767 }
1768 });
1769 foreach (Thing item in EClass._map.things.Copy())
1770 {
1771 if (item.trait is TraitSeed traitSeed)
1772 {
1773 traitSeed.TrySprout(force: true);
1774 }
1775 }
1776 }
SourceObj.Row sourceObj
Definition: Cell.cs:1096

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

◆ Test_Siege()

void CoreDebug.Test_Siege ( )
inline

Definition at line 1839 of file CoreDebug.cs.

1840 {
1841 if (EClass._zone.events.GetEvent<ZoneEventSiege>() == null)
1842 {
1844 }
1845 else
1846 {
1848 }
1849 }
void Add(ZoneEvent e, bool allowDuplicate=false)
void Remove(ZoneEvent e)
ZoneEventManager events
Definition: Zone.cs:43

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

◆ Test_SiegeGuard()

void CoreDebug.Test_SiegeGuard ( )
inline

Definition at line 1827 of file CoreDebug.cs.

1828 {
1829 if (EClass._zone.events.GetEvent<ZoneEventSiegeGuard>() == null)
1830 {
1832 }
1833 else
1834 {
1836 }
1837 }

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

2141 {
2142 if (!CheatEnabled())
2143 {
2144 return EnableCheat;
2145 }
2146 if (EClass._zone is Zone_Arena)
2147 {
2148 EClass._zone._dangerLv = lv;
2149 }
2150 foreach (Chara item in EClass._map.charas.Where((Chara c) => c.HasEditorTag(EditorTag.SpawnTest)).ToList())
2151 {
2152 item.Destroy();
2153 }
2154 for (int num2 = 0; num2 < num; num2++)
2155 {
2156 EClass._zone.SpawnMob(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: false, ignoreCenter: true), new SpawnSetting
2157 {
2158 filterLv = lv,
2159 levelRange = lvRange
2160 }).AddEditorTag(EditorTag.SpawnTest);
2161 }
2162 return "Spawned.";
2163 }
EditorTag
Definition: EditorTag.cs:2
void AddEditorTag(EditorTag tag)
Definition: Card.cs:2738
bool HasEditorTag(EditorTag tag)
Definition: Card.cs:2733

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

◆ ToggleRevealMap()

void CoreDebug.ToggleRevealMap ( )
inline

Definition at line 2510 of file CoreDebug.cs.

2511 {
2513 if (revealMap)
2514 {
2516 }
2517 SE.ClickGeneral();
2518 }
bool revealMap
Definition: CoreDebug.cs:170
void RevealAll(bool reveal=true)
Definition: Map.cs:916

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

Referenced by HotItemContext.Show().

◆ UpdateAlways()

void CoreDebug.UpdateAlways ( )
inline

Definition at line 836 of file CoreDebug.cs.

837 {
838 if (!EClass.debug.enable || (bool)EClass.ui.GetLayer<LayerConsole>())
839 {
840 return;
841 }
842 if (Input.GetKeyDown(KeyCode.B))
843 {
845 }
846 if (Input.GetKeyDown(KeyCode.P))
847 {
849 }
850 if (Input.GetKeyDown(KeyCode.F11))
851 {
852 if (Application.isEditor)
853 {
854 EClass.core.SetLang((Lang.langCode == "EN") ? "JP" : "EN");
855 }
856 else
857 {
859 }
860 NewsList.dict = null;
861 BookList.dict = null;
862 BottleMessageList.list = null;
863 }
865 {
866 if (Input.GetKeyDown(KeyCode.U))
867 {
869 Msg.SayRaw(offset.ToString() ?? "");
870 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
871 }
872 if (Input.GetKeyDown(KeyCode.I))
873 {
875 Msg.SayRaw(offset.ToString() ?? "");
876 EClass.screen.tileMap.rendererInnerBlock.offset = new Vector3(0f, 0.54f, -0.5f);
877 }
878 }
879 }
ID_Achievement
BaseTileMap tileMap
RenderData rendererInnerBlock
Definition: BaseTileMap.cs:203
bool IsGameStarted
Definition: Core.cs:87
void SetLang(string langCode, bool force=false)
Definition: Core.cs:703
static BaseGameScreen screen
Definition: EClass.cs:33
Definition: Lang.cs:7
static string langCode
Definition: Lang.cs:29
Definition: Msg.cs:5
static string SayRaw(string text)
Definition: Msg.cs:118
Vector3 offset
Definition: RenderData.cs:19
void ImportSourceTexts()
static void GetAchievement(ID_Achievement id)
Definition: Steam.cs:53
static void TryShowTip(Transform root=null, bool highlight=true, bool ignoreWhenRightClick=true)
Definition: UIButton.cs:778

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

Referenced by Core.Update().

◆ UpdateInput()

void CoreDebug.UpdateInput ( )
inline

Definition at line 891 of file CoreDebug.cs.

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

References EClass._map, EClass._zone, EInput.action, Scene.actionMode, AM_MoveInstalled.Activate(), QuestManager.Add(), Zone.AddCard(), Map.AddDecal(), GameDate.AdvanceHour(), advanceMin, GameDate.AdvanceMin(), Props.all, Card.angle, animeDest, Point.area, EClass.Branch, Zone.CanUnlockExit, card, CellDetail.charas, Map.charas, Steam.CheckUpdate(), EInput.Consume(), EClass.core, ThingGen.Create(), CharaGen.Create(), World.date, ActionMode.Deactivate(), Map.deadCharas, Debug, debugHotkeys, debugInput, Point.detail, Spatial.development, Card.dir, Card.elements, EnableDebugResource(), MapSubset.Exist(), Map.FindThing(), Point.FirstChara, Point.FirstThing, GameUpdater.FixedUpdate(), Player.flags, Card.flipX, EClass.game, QuestManager.Get(), 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.MakeGene(), Card.material, ElementContainer.ModBase(), FactionBranch.ModExp(), Scene.mouseTarget, TraitNewZone.MoveZone(), Card.Name, WidgetFeed.Nerun(), CharaActorPCC.NextDir(), CharaActorPCC.NextFrame(), WidgetMenuPanel.OnChangeMode(), TraitStairsLocked.OnUse(), Spatial.parent, Chara.party, EClass.pc, CharaActorPCC.pcc, Chara.Pick(), CardRenderer.PlayAnime(), Card.PlayEffect(), EClass.player, Card.PlaySound(), Card.pos, Thing.Pref, CharaActorPCC.provider, Game.quests, CharaActorPCC.RefreshSprite(), Spatial.RegionPos, BaseCore.releaseMode, Zone.RemoveCard(), Party.RemoveMember(), Card.renderer, HotbarManager.ResetHotbar(), resolutions, EScriptable.rnd(), Map.Roaming, CorePath.RootSave, runtimeGodBuild, Game.Save(), MapSubset.Save(), Msg.Say(), CardRenderer.Say(), EClass.scene, ElementContainer.SetBase(), Weather.SetCondition(), Card.SetEncLv(), Chara.SetGlobal(), Map.SetLiquid(), Card.SetPlaceState(), EClass.Sound, Thing.source, Zone.SpawnMob(), QuestManager.Start(), Core.steam, RenderObject.syncList, PointTarget.TargetChara, ThingGen.TestCreate(), CellDetail.things, Card.trait, Card.TryMakeRandomItem(), EClass.ui, Game.updater, BaseCore.WaitForEndOfFrame(), World.weather, EClass.world, Game.world, Point.x, and Point.z.

Referenced by ActionMode.UpdateInput().

◆ ValidateData()

void CoreDebug.ValidateData ( )
inline

Definition at line 881 of file CoreDebug.cs.

882 {
884 {
888 }
889 }
PropsInstalled Installed
Definition: Map.cs:123
PropsStocked Stocked
Definition: Map.cs:121
void Validate()
Definition: Props.cs:445

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

◆ ZoneIDs()

IEnumerable< string > CoreDebug.ZoneIDs ( )
inlineprivate

Definition at line 333 of file CoreDebug.cs.

334 {
335 List<SourceZone.Row> rows = EClass.sources.zones.rows;
336 List<string> list = new List<string>();
337 foreach (SourceZone.Row item in rows)
338 {
339 list.Add(item.id);
340 }
341 return list;
342 }
SourceZone zones

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

Member Data Documentation

◆ _godBuild

bool CoreDebug._godBuild

Definition at line 195 of file CoreDebug.cs.

◆ advanceMin

int CoreDebug.advanceMin

Definition at line 162 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ allAbility

bool CoreDebug.allAbility

Definition at line 207 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allArt

bool CoreDebug.allArt

Definition at line 213 of file CoreDebug.cs.

Referenced by ContentGallery.OnSwitchContent().

◆ allBGM

bool CoreDebug.allBGM

Definition at line 215 of file CoreDebug.cs.

Referenced by LayerEditPlaylist.Refresh().

◆ allHomeSkill

bool CoreDebug.allHomeSkill

Definition at line 211 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allMenu

bool CoreDebug.allMenu

Definition at line 251 of file CoreDebug.cs.

◆ allPolicy

bool CoreDebug.allPolicy

Definition at line 253 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allRecipe

bool CoreDebug.allRecipe

Definition at line 249 of file CoreDebug.cs.

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

◆ allSkill

bool CoreDebug.allSkill

Definition at line 209 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allStory

bool CoreDebug.allStory

Definition at line 255 of file CoreDebug.cs.

Referenced by TraitStoryBook.OnRead().

◆ alwaysFavFood

bool CoreDebug.alwaysFavFood

Definition at line 244 of file CoreDebug.cs.

Referenced by Affinity.OnGift().

◆ alwaysResetWindow

bool CoreDebug.alwaysResetWindow

Definition at line 144 of file CoreDebug.cs.

Referenced by ELayer.Kill().

◆ animeDest

Card CoreDebug.animeDest
private

Definition at line 289 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ autoAdvanceQuest

bool CoreDebug.autoAdvanceQuest

◆ autoIdentify

bool CoreDebug.autoIdentify

Definition at line 205 of file CoreDebug.cs.

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

◆ bidx

int CoreDebug.bidx
private

Definition at line 292 of file CoreDebug.cs.

◆ bilinear

bool CoreDebug.bilinear
private

Definition at line 294 of file CoreDebug.cs.

◆ blines

string [] CoreDebug.blines
private

Definition at line 297 of file CoreDebug.cs.

◆ boradcast

bool CoreDebug.boradcast

Definition at line 276 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ command

string CoreDebug.command

Definition at line 152 of file CoreDebug.cs.

Referenced by Core.Awake().

◆ commands

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

Definition at line 299 of file CoreDebug.cs.

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

◆ debugHoard

bool CoreDebug.debugHoard

Definition at line 172 of file CoreDebug.cs.

Referenced by LayerHoard.OnAfterInit().

◆ debugHotkeys

DebugHotkey CoreDebug.debugHotkeys

Definition at line 159 of file CoreDebug.cs.

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

◆ debugInput

bool CoreDebug.debugInput

Definition at line 155 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ debugProps

bool CoreDebug.debugProps

Definition at line 168 of file CoreDebug.cs.

◆ debugScatter

bool CoreDebug.debugScatter

Definition at line 193 of file CoreDebug.cs.

◆ dontCompressSave

bool CoreDebug.dontCompressSave

Definition at line 148 of file CoreDebug.cs.

◆ dontUseThread

bool CoreDebug.dontUseThread

Definition at line 138 of file CoreDebug.cs.

Referenced by LayerProgress.Start().

◆ enable

bool CoreDebug.enable

Definition at line 302 of file CoreDebug.cs.

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

◆ enableMapPieceEditor

bool CoreDebug.enableMapPieceEditor

Definition at line 229 of file CoreDebug.cs.

◆ fixedColor

Color32 CoreDebug.fixedColor

Definition at line 280 of file CoreDebug.cs.

◆ fov

Fov CoreDebug.fov = new Fov()

Definition at line 304 of file CoreDebug.cs.

◆ godCraft

bool CoreDebug.godCraft

◆ godFood

bool CoreDebug.godFood

Definition at line 199 of file CoreDebug.cs.

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

◆ godMode

◆ hidePCItemsInBuild

bool CoreDebug.hidePCItemsInBuild

Definition at line 225 of file CoreDebug.cs.

Referenced by BuildMenu.RefreshCategory().

◆ ignoreAutoSave

bool CoreDebug.ignoreAutoSave

Definition at line 142 of file CoreDebug.cs.

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

◆ ignoreBuildRule

◆ ignoreEncounter

bool CoreDebug.ignoreEncounter

Definition at line 217 of file CoreDebug.cs.

Referenced by Chara.Tick().

◆ ignorePool

bool CoreDebug.ignorePool

Definition at line 133 of file CoreDebug.cs.

Referenced by Core.Update().

◆ ignorePopup

bool CoreDebug.ignorePopup

Definition at line 176 of file CoreDebug.cs.

Referenced by PopupManager.Add().

◆ ignoreWeight

bool CoreDebug.ignoreWeight

◆ indexResolution

int CoreDebug.indexResolution
private

Definition at line 306 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ instaReturn

bool CoreDebug.instaReturn

Definition at line 221 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ inviteAnytime

bool CoreDebug.inviteAnytime

Definition at line 238 of file CoreDebug.cs.

Referenced by Affinity.CanInvite().

◆ keypadDebug

bool CoreDebug.keypadDebug

Definition at line 157 of file CoreDebug.cs.

◆ langCode

Lang.LangCode CoreDebug.langCode

Definition at line 130 of file CoreDebug.cs.

Referenced by Core.Awake(), and ModPackage.ParseLangMod().

◆ lastAnime

AnimeID CoreDebug.lastAnime
private

Definition at line 308 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ lastEmo

Emo CoreDebug.lastEmo
private

Definition at line 310 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ logAdv

bool CoreDebug.logAdv

Definition at line 258 of file CoreDebug.cs.

Referenced by GlobalGoalVisitAndStay.OnAdvanceHour().

◆ logCombat

bool CoreDebug.logCombat

Definition at line 261 of file CoreDebug.cs.

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

◆ logDice

bool CoreDebug.logDice

Definition at line 263 of file CoreDebug.cs.

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

◆ marryAnytime

bool CoreDebug.marryAnytime

Definition at line 240 of file CoreDebug.cs.

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

◆ matColorTest

MatColorTest CoreDebug.matColorTest

Definition at line 274 of file CoreDebug.cs.

◆ maxQuests

bool CoreDebug.maxQuests

Definition at line 246 of file CoreDebug.cs.

◆ naked

bool CoreDebug.naked
private

Definition at line 312 of file CoreDebug.cs.

◆ numResource

int CoreDebug.numResource

Definition at line 233 of file CoreDebug.cs.

Referenced by EnableDebugResource().

◆ param1

int CoreDebug.param1

Definition at line 269 of file CoreDebug.cs.

◆ param2

int CoreDebug.param2

Definition at line 272 of file CoreDebug.cs.

◆ randomResource

bool CoreDebug.randomResource

Definition at line 191 of file CoreDebug.cs.

Referenced by SetStartStockpile().

◆ resetPlayerConfig

bool CoreDebug.resetPlayerConfig

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

Referenced by UpdateInput().

◆ returnAnywhere

bool CoreDebug.returnAnywhere

Definition at line 219 of file CoreDebug.cs.

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

◆ revealInner

bool CoreDebug.revealInner

Definition at line 174 of file CoreDebug.cs.

◆ revealMap

bool CoreDebug.revealMap

Definition at line 170 of file CoreDebug.cs.

Referenced by Zone.Activate(), and HotItemContext.Show().

◆ runtimeGodBuild

bool CoreDebug.runtimeGodBuild
private

Definition at line 315 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ showExtra

◆ showFav

bool CoreDebug.showFav

◆ showSceneSelector

bool CoreDebug.showSceneSelector

Definition at line 125 of file CoreDebug.cs.

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

◆ showTone

bool CoreDebug.showTone

Definition at line 182 of file CoreDebug.cs.

◆ skipEvent

bool CoreDebug.skipEvent

Definition at line 178 of file CoreDebug.cs.

Referenced by ZoneEventManager.Add().

◆ skipMod

bool CoreDebug.skipMod

Definition at line 150 of file CoreDebug.cs.

Referenced by CoreRef.RefreshBGM(), and ModManager.RefreshMods().

◆ skipModSync

bool CoreDebug.skipModSync

Definition at line 128 of file CoreDebug.cs.

Referenced by Core.StartCase().

◆ skipNerun

bool CoreDebug.skipNerun

Definition at line 180 of file CoreDebug.cs.

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

◆ startHour

int CoreDebug.startHour

Definition at line 118 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startLoadout

StartLoadout CoreDebug.startLoadout

Definition at line 114 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startParty

StartParty CoreDebug.startParty

Definition at line 116 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startScene

StartScene CoreDebug.startScene

Definition at line 112 of file CoreDebug.cs.

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

◆ startSetting

StartSetting CoreDebug.startSetting

Definition at line 120 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startZone

string CoreDebug.startZone

Definition at line 122 of file CoreDebug.cs.

Referenced by Game.StartNewGame().

◆ test

bool CoreDebug.test

Definition at line 186 of file CoreDebug.cs.

Referenced by Zone.TryGenerateShrine().

◆ testFixedColor

bool CoreDebug.testFixedColor

Definition at line 278 of file CoreDebug.cs.

◆ testLOS

bool CoreDebug.testLOS

Definition at line 164 of file CoreDebug.cs.

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

◆ testLOS2

bool CoreDebug.testLOS2

Definition at line 166 of file CoreDebug.cs.

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

◆ testThingQuality

bool CoreDebug.testThingQuality

Definition at line 231 of file CoreDebug.cs.

Referenced by Card.Create().

◆ travelAnywhere

bool CoreDebug.travelAnywhere

Definition at line 223 of file CoreDebug.cs.

Referenced by Spatial.Create().

◆ ttt

int CoreDebug.ttt
private

Definition at line 317 of file CoreDebug.cs.

◆ unlimitedInterest

bool CoreDebug.unlimitedInterest

Definition at line 236 of file CoreDebug.cs.

Referenced by Affinity.OnTalkRumor().

◆ useNewConfig

bool CoreDebug.useNewConfig

Definition at line 140 of file CoreDebug.cs.

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

◆ validateData

bool CoreDebug.validateData

Definition at line 146 of file CoreDebug.cs.

◆ validatePref

bool CoreDebug.validatePref

Definition at line 266 of file CoreDebug.cs.

Referenced by Core.Init().

Property Documentation

◆ EnableCheat

string CoreDebug.EnableCheat
staticget

Definition at line 331 of file CoreDebug.cs.

◆ godBuild


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