Elin Decompiled Documentation EA 23.321 Nightly Patch 1
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
}
 

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

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

◆ AddAllRecipes()

void CoreDebug.AddAllRecipes ( )
inline

Definition at line 741 of file CoreDebug.cs.

742 {
744 {
745 if (!EClass.player.recipes.knownRecipes.ContainsKey(item.id))
746 {
748 }
749 }
750 }
Definition: EClass.cs:6
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 2266 of file CoreDebug.cs.

2267 {
2268 if (!CheatEnabled())
2269 {
2270 return EnableCheat;
2271 }
2272 EClass.pc.body.AddBodyPart((int)bodyCode);
2275 return "Done.";
2276 }
void AddBodyPart(int ele, Thing thing=null)
Definition: CharaBody.cs:283
void RefreshBodyParts()
Definition: CharaBody.cs:309
CharaBody body
Definition: Chara.cs:94
static bool CheatEnabled()
Definition: CoreDebug.cs:1850
static string EnableCheat
Definition: CoreDebug.cs:330
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().

◆ AllRecipe()

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

Definition at line 2421 of file CoreDebug.cs.

2422 {
2423 if (!CheatEnabled())
2424 {
2425 return EnableCheat;
2426 }
2427 if (forget)
2428 {
2430 }
2431 else
2432 {
2434 }
2435 return "Done!";
2436 }
void AddAllRecipes()
Definition: CoreDebug.cs:741
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 2507 of file CoreDebug.cs.

2508 {
2509 LoadBroadcast();
2510 if (Input.GetKey(KeyCode.LeftControl))
2511 {
2512 bidx--;
2513 }
2514 bidx = Mathf.Clamp(bidx, 0, blines.Length - 1);
2515 string text = blines[bidx];
2516 bidx += ((!Input.GetKey(KeyCode.LeftShift)) ? 1 : (-1));
2517 EClass.pc.SayRaw(text.TrimNewLines());
2518 }
void SayRaw(string text, string ref1=null, string ref2=null)
Definition: Card.cs:7235
string[] blines
Definition: CoreDebug.cs:296
int bidx
Definition: CoreDebug.cs:291
void LoadBroadcast()
Definition: CoreDebug.cs:2501

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

Referenced by AM_Adv._OnUpdateInput().

◆ ChangeJob()

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

Definition at line 2353 of file CoreDebug.cs.

2354 {
2355 if (!CheatEnabled())
2356 {
2357 return EnableCheat;
2358 }
2359 if (EClass.sources.jobs.map.ContainsKey(id))
2360 {
2361 EClass.pc.ChangeJob(id);
2363 return "Done.";
2364 }
2365 string text = "";
2366 foreach (SourceJob.Row row in EClass.sources.jobs.rows)
2367 {
2368 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2369 }
2370 return text;
2371 }
void ChangeJob(string idNew)
Definition: Chara.cs:2316
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 2292 of file CoreDebug.cs.

2293 {
2294 if (!CheatEnabled())
2295 {
2296 return EnableCheat;
2297 }
2298 if (EClass.sources.races.map.ContainsKey(id))
2299 {
2300 Thing thing = null;
2301 foreach (BodySlot slot in EClass.pc.body.slots)
2302 {
2303 if (slot.thing != null)
2304 {
2305 if (slot.thing.blessedState <= BlessedState.Cursed)
2306 {
2307 slot.thing.blessedState = BlessedState.Normal;
2308 }
2309 if (slot.thing.trait is TraitToolBelt)
2310 {
2311 thing = slot.thing;
2312 }
2313 EClass.pc.body.Unequip(slot);
2314 }
2315 }
2318 EClass.pc.ChangeRace(id);
2319 if (EClass.ui.IsInventoryOpen)
2320 {
2321 EClass.ui.ToggleInventory();
2322 }
2325 EClass.pc.body.Equip(thing);
2328 return "Done.";
2329 }
2330 string text = "";
2331 foreach (SourceRace.Row row in EClass.sources.races.rows)
2332 {
2333 text = text + row.id + " " + row.GetName() + Environment.NewLine;
2334 }
2335 return text;
2336 }
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:194
void RemoveBodyPart(int ele)
Definition: CharaBody.cs:338
void ChangeRace(string idNew)
Definition: Chara.cs:2436
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 1860 of file CoreDebug.cs.

1861 {
1862 EClass.game.config.cheat = true;
1863 return "Cheat Enabled";
1864 }

◆ CheatEnabled()

static bool CoreDebug.CheatEnabled ( )
inlinestatic

Definition at line 1850 of file CoreDebug.cs.

1851 {
1852 if (!EClass.debug.enable)
1853 {
1854 return EClass.game.config.cheat;
1855 }
1856 return true;
1857 }
bool enable
Definition: CoreDebug.cs:301
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 2457 of file CoreDebug.cs.

2458 {
2459 if (!CheatEnabled())
2460 {
2461 return EnableCheat;
2462 }
2463 EClass.player.doneBackers.Clear();
2464 return Resources.Load<TextAsset>("logo2").text + Environment.NewLine + "Done!";
2465 }
HashSet< int > doneBackers
Definition: Player.cs:1140

References Player.doneBackers, and EClass.player.

◆ COM_MaxConstruction()

void CoreDebug.COM_MaxConstruction ( )
inline

Definition at line 1842 of file CoreDebug.cs.

1843 {
1844 if (EClass.pc.homeBranch != null)
1845 {
1847 }
1848 }
FactionBranch homeBranch
Definition: Chara.cs:1089
Element ModBase(int ele, int v)
ElementContainerZone elements
Definition: Zone.cs:43

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

◆ COM_PlayStartDrama()

void CoreDebug.COM_PlayStartDrama ( )
inline

Definition at line 1792 of file CoreDebug.cs.

1793 {
1794 EClass.ui.CloseLayers();
1795 EClass.game.world.date.hour = 2;
1797 LayerDrama.ActivateMain("mono", "1-2");
1798 }
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 1777 of file CoreDebug.cs.

1778 {
1779 for (int i = 0; i < 10000; i++)
1780 {
1781 Point point = EClass.pc.pos.Copy();
1782 point.x += EScriptable.rnd(60) - EScriptable.rnd(60);
1783 point.z += EScriptable.rnd(60) - EScriptable.rnd(60);
1784 if (point.IsValid && !point.cell.blocked && point.HasFloor)
1785 {
1786 EClass.pc.Teleport(point);
1787 break;
1788 }
1789 }
1790 }
void Teleport(Point point, bool silent=false, bool force=false)
Definition: Card.cs:6138
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 810 of file CoreDebug.cs.

811 {
814 enable = true;
815 if ((bool)WidgetHotbar.HotbarBuild)
816 {
818 }
820 Thing orCreateDebugContainer = GetOrCreateDebugContainer();
821 SetStartStockpile(orCreateDebugContainer, numResource);
822 }
int numResource
Definition: CoreDebug.cs:232
void SetStartStockpile(Thing container, int num=100)
Definition: CoreDebug.cs:752
Thing GetOrCreateDebugContainer()
Definition: CoreDebug.cs:781
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 2374 of file CoreDebug.cs.

2375 {
2376 string text = "Steam is not running.";
2377 DateTime dateTime = new DateTime(2024, 11, 3, 6, 0, 0);
2378 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))));
2379 dateTimeOffset = dateTimeOffset.ToOffset(new TimeSpan(9, 0, 0));
2380 text = ((dateTimeOffset < dateTime) ? "Valid: " : "Invalid: ");
2381 text = text + "Arrived North Tyris on " + dateTimeOffset.Year + " " + dateTimeOffset.Month + "/" + dateTimeOffset.Day + " " + dateTimeOffset.Hour + ":" + dateTimeOffset.Minute;
2382 return text + " Eligible by " + dateTime.Year + " " + dateTime.Month + "/" + dateTime.Day + " " + dateTime.Hour + ":" + dateTime.Minute;
2383 }

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

◆ Fix_Awning()

static string CoreDebug.Fix_Awning ( )
inlinestatic

Definition at line 1885 of file CoreDebug.cs.

1886 {
1887 foreach (Thing thing in EClass._map.things)
1888 {
1889 if (thing.id == "ash3")
1890 {
1891 thing.id = "awning ";
1892 thing.source = EClass.sources.things.map[thing.id];
1893 thing._CreateRenderer();
1894 }
1895 }
1896 return "Fixed!";
1897 }
string id
Definition: Card.cs:36
virtual CardRenderer _CreateRenderer()
Definition: Card.cs:6373
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 1918 of file CoreDebug.cs.

1919 {
1920 EClass.pc.ModCorruption(-100000);
1921 Chara chara = CharaGen.Create("chara");
1922 chara.ChangeRace(EClass.pc.race.id);
1923 chara.ChangeJob(EClass.pc.job.id);
1924 string text = "";
1925 foreach (Element value in chara.elements.dict.Values)
1926 {
1927 if (!(value.source.category != "attribute"))
1928 {
1929 Element orCreateElement = EClass.pc.elements.GetOrCreateElement(value.id);
1930 if (value.vBase > orCreateElement.vBase)
1931 {
1932 text = text + "Fixing Base Value:" + orCreateElement.Name + " Before:" + orCreateElement.vBase + " Now:" + (value.vBase + 1) + Environment.NewLine;
1933 EClass.pc.elements.ModBase(orCreateElement.id, value.vBase - orCreateElement.vBase + 1);
1934 }
1935 }
1936 }
1937 return text + "Fixed!";
1938 }
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:10286
SourceRace.Row race
Definition: Chara.cs:468
Dictionary< int, Element > dict
Element GetOrCreateElement(Element ele)
int id
Definition: ELEMENT.cs:257
int vBase
Definition: ELEMENT.cs:259
SourceElement.Row source
Definition: ELEMENT.cs:280

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

1942 {
1944 {
1945 return "Not in base.";
1946 }
1947 foreach (Thing thing in EClass._map.things)
1948 {
1949 if (thing.trait is TraitCoreZone)
1950 {
1951 return "Base already has core.";
1952 }
1953 }
1954 if (EClass.pc.things.Find((Thing t) => t.trait is TraitCoreZone) != null)
1955 {
1956 return "Player has core.";
1957 }
1959 return "Done.";
1960 }
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:49
bool IsPCFaction
Definition: Zone.cs:477
Card AddCard(Card t, Point point)
Definition: Zone.cs:2086

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

1986 {
1987 List<Chara> list = new List<Chara>();
1988 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1989 {
1990 if (value.id == "ashland")
1991 {
1992 list.Add(value);
1993 }
1994 }
1995 if (list.Count > 1)
1996 {
1997 Chara chara = list[1];
1998 chara.RemoveGlobal();
1999 chara.homeBranch.BanishMember(chara);
2000 chara.Destroy();
2001 return "Ashland Removed!";
2002 }
2003 return "Not enough Ashland!";
2004 }
GlobalCharaList globalCharas
Definition: CardManager.cs:46
void Destroy()
Definition: Card.cs:5284
void RemoveGlobal()
Definition: Chara.cs:1546
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 1963 of file CoreDebug.cs.

1964 {
1965 List<Chara> list = new List<Chara>();
1966 foreach (Chara value in EClass.game.cards.globalCharas.Values)
1967 {
1968 if (value.id == "demitas" && value.currentZone == EClass._zone)
1969 {
1970 list.Add(value);
1971 }
1972 }
1973 if (list.Count > 1)
1974 {
1975 Chara chara = list[1];
1976 chara.RemoveGlobal();
1977 chara.homeBranch.BanishMember(chara);
1978 chara.Destroy();
1979 return "Demitas Removed!";
1980 }
1981 return "Not enough Demitas!";
1982 }
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 2007 of file CoreDebug.cs.

2008 {
2009 EClass._map.ForeachCell(delegate(Cell c)
2010 {
2011 if (c.detail != null && c.detail.designation != null)
2012 {
2013 c.detail.designation.taskList.Remove(c.detail.designation);
2014 }
2015 });
2016 return "Done.";
2017 }
TaskDesignation designation
Definition: CellDetail.cs:19
Definition: Cell.cs:7
CellDetail detail
Definition: Cell.cs:100
new void ForeachCell(Action< Cell > action)
Definition: Map.cs:2404

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

◆ Fix_RemoveDuplicateUnique()

static string CoreDebug.Fix_RemoveDuplicateUnique ( )
inlinestatic

Definition at line 1900 of file CoreDebug.cs.

1901 {
1902 if (EClass.Branch == null)
1903 {
1904 return "No Branch";
1905 }
1906 EClass.Branch.members.ForeachReverse(delegate(Chara c)
1907 {
1908 if ((c.id == "kettle" || c.id == "quru") && EClass.Branch.members.Where((Chara c2) => c2.id == c.id).Count() >= 2)
1909 {
1910 EClass.Branch.RemoveMemeber(c);
1911 c.Destroy();
1912 }
1913 });
1914 return "Fixed!";
1915 }
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 2255 of file CoreDebug.cs.

2256 {
2257 if (!CheatEnabled())
2258 {
2259 return EnableCheat;
2260 }
2262 return "I can fly!";
2263 }
Condition AddCondition(string id, int p=100, bool force=false)
Definition: Chara.cs:9701

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

◆ GetDebugContainer()

Thing CoreDebug.GetDebugContainer ( )
inline

Definition at line 798 of file CoreDebug.cs.

799 {
800 foreach (Thing thing in EClass._map.things)
801 {
802 if (thing.c_altName == "DebugContainer")
803 {
804 return thing;
805 }
806 }
807 return null;
808 }
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 781 of file CoreDebug.cs.

782 {
783 foreach (Thing thing2 in EClass._map.things)
784 {
785 if (thing2.c_altName == "DebugContainer")
786 {
787 return thing2;
788 }
789 }
790 Thing thing = EClass._zone.AddThing("barrel", EClass.pc.pos).Thing;
791 thing.ChangeMaterial("obsidian");
792 thing.c_altName = "DebugContainer";
793 thing.isNPCProperty = false;
794 thing.SetPlaceState(PlaceState.installed);
795 return thing;
796 }
PlaceState
Definition: PlaceState.cs:2
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3921
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:3210
virtual Thing Thing
Definition: Card.cs:2110
Card AddThing(string id, int x, int z)
Definition: Zone.cs:2076

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

2182 {
2183 if (!CheatEnabled())
2184 {
2185 return EnableCheat;
2186 }
2187 EClass.pc.Revive();
2188 EClass.pc.hp = EClass.pc.MaxHP;
2189 return "I'm God!";
2190 }
override int MaxHP
Definition: Chara.cs:726
void Revive(Point p=null, bool msg=false)
Definition: Chara.cs:5382

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

◆ Init()

void CoreDebug.Init ( )
inline

Definition at line 343 of file CoreDebug.cs.

344 {
346 EInput.disableKeyAxis = Application.isEditor;
347 }
void InitDebugCommands()
Definition: CoreDebug.cs:1468

References InitDebugCommands().

Referenced by Core.Init().

◆ InitDebugCommands()

void CoreDebug.InitDebugCommands ( )
inline

Definition at line 1468 of file CoreDebug.cs.

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

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

2440 {
2441 string text = "";
2442 foreach (SourceBacker.Row row in EClass.sources.backers.rows)
2443 {
2444 if (row.name.Contains(name) || row.id.ToString() == name)
2445 {
2446 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;
2447 }
2448 }
2449 if (text == "")
2450 {
2451 return "Not Found";
2452 }
2453 return text + Resources.Load<TextAsset>("logo2").text;
2454 }

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

◆ ListChara()

static string CoreDebug.ListChara ( )
inlinestatic

Definition at line 2020 of file CoreDebug.cs.

2021 {
2022 string text = "";
2023 foreach (SourceChara.Row row in EClass.sources.charas.rows)
2024 {
2025 text = text + row.id + "\n";
2026 }
2027 return text;
2028 }
SourceChara charas

References SourceManager.charas, and EClass.sources.

◆ ListThing()

static string CoreDebug.ListThing ( )
inlinestatic

Definition at line 2031 of file CoreDebug.cs.

2032 {
2033 string text = "";
2034 foreach (SourceThing.Row row in EClass.sources.things.rows)
2035 {
2036 text = text + row.id + "\n";
2037 }
2038 return text;
2039 }

References EClass.sources, and SourceManager.things.

◆ LoadBroadcast()

void CoreDebug.LoadBroadcast ( )
inline

Definition at line 2501 of file CoreDebug.cs.

2502 {
2503 TextAsset textAsset = Resources.Load<TextAsset>("Data/Text/broadcast");
2504 blines = textAsset.text.Split('-');
2505 }

◆ Log()

void CoreDebug.Log ( object  o)
inline

Definition at line 2478 of file CoreDebug.cs.

2479 {
2480 Debug.Log(o);
2481 }

References Debug.

Referenced by Tutorial.Play().

◆ LOG_Spatials()

void CoreDebug.LOG_Spatials ( )
inline

Definition at line 1810 of file CoreDebug.cs.

1811 {
1812 foreach (Spatial child in EClass.world.region.children)
1813 {
1814 Debug.Log(child.uid + "/" + child.Name + "/" + child.mainFaction.name + "/" + (child == EClass.player.zone));
1815 }
1816 }
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 2204 of file CoreDebug.cs.

2205 {
2206 if (!CheatEnabled())
2207 {
2208 return EnableCheat;
2209 }
2210 if (EClass.player.CountKeyItem("license_adv") == 0)
2211 {
2212 EClass.player.ModKeyItem("license_adv");
2213 }
2214 EClass.player.ModFame(int.MaxValue);
2215 return "Done.";
2216 }
void ModFame(int a)
Definition: Player.cs:2166
int CountKeyItem(string alias)
Definition: Player.cs:2240
void ModKeyItem(string alias, int num=1, bool msg=true)
Definition: Player.cs:2208

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

◆ ModContribution()

static string CoreDebug.ModContribution ( int  amount)
inlinestatic

Definition at line 2230 of file CoreDebug.cs.

2231 {
2232 if (!CheatEnabled())
2233 {
2234 return EnableCheat;
2235 }
2237 return "Done.";
2238 }
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 2193 of file CoreDebug.cs.

2194 {
2195 if (!CheatEnabled())
2196 {
2197 return EnableCheat;
2198 }
2199 EClass.player.ModFame(amount);
2200 return "Done.";
2201 }

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

◆ ModKarma()

static string CoreDebug.ModKarma ( int  amount)
inlinestatic

Definition at line 2219 of file CoreDebug.cs.

2220 {
2221 if (!CheatEnabled())
2222 {
2223 return EnableCheat;
2224 }
2225 EClass.player.ModKarma(amount);
2226 return "Done.";
2227 }
void ModKarma(int a)
Definition: Player.cs:2610

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

◆ NextBGM()

void CoreDebug.NextBGM ( )
inline

Definition at line 2483 of file CoreDebug.cs.

2484 {
2485 if ((bool)SoundManager.current)
2486 {
2487 SoundManager.current.NextBGM();
2488 }
2489 }

◆ OnLoad()

void CoreDebug.OnLoad ( )
inline

Definition at line 733 of file CoreDebug.cs.

734 {
735 if (allRecipe)
736 {
738 }
739 }
bool allRecipe
Definition: CoreDebug.cs:248

References AddAllRecipes(), and allRecipe.

Referenced by Game.OnLoad().

◆ QuickStart()

void CoreDebug.QuickStart ( )
inline

Definition at line 349 of file CoreDebug.cs.

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

References EClass._zone, CoreRef.Rects.abilityDebug, BaseCore.actionsNextFrame, QuestManager.Add(), AddAllRecipes(), Card.AddCard(), Zone.AddCard(), FactionBranch.AddMemeber(), Party.AddMemeber(), Card.AddThing(), allAbility, allRecipe, allSkill, Chara.body, EClass.Branch, 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(), 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 2386 of file CoreDebug.cs.

2387 {
2388 EClass.core.mods.InitLang();
2389 NameGen.list = null;
2390 AliasGen.list = null;
2391 AliasGen.listMix.Clear();
2392 AliasGen.listBuiltin.Clear();
2393 WordGen.listMix.Clear();
2394 WordGen.listBuiltin.Clear();
2395 NameGen.Init();
2396 AliasGen.Init();
2397 foreach (Chara chara in EClass._map.charas)
2398 {
2399 if (!chara.IsPC)
2400 {
2401 if (chara.source.name == "*r")
2402 {
2403 chara.c_altName = NameGen.getRandomName();
2404 }
2405 if (!chara._alias.IsEmpty())
2406 {
2407 chara._alias = AliasGen.GetRandomAlias();
2408 }
2409 }
2410 }
2411 return "Done!";
2412 }
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 2279 of file CoreDebug.cs.

2280 {
2281 if (!CheatEnabled())
2282 {
2283 return EnableCheat;
2284 }
2285 EClass.pc.body.RemoveBodyPart((int)bodyCode);
2288 return "Done.";
2289 }

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

◆ Reset_LoytelDebt()

static string CoreDebug.Reset_LoytelDebt ( )
inlinestatic

Definition at line 1867 of file CoreDebug.cs.

1868 {
1869 QuestDebt questDebt = EClass.game.quests.Get<QuestDebt>();
1870 if (questDebt == null)
1871 {
1872 return "Quest Status Not Valid.";
1873 }
1874 questDebt.stage = 0;
1875 questDebt.paid = false;
1876 questDebt.gaveBill = false;
1877 EClass.player.debt = 20000000;
1878 Thing thing = ThingGen.Create("856");
1879 thing.refVal = 109;
1880 EClass.pc.Pick(thing);
1881 return "Quest Reset!";
1882 }
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
Definition: Chara.cs:4515

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

2347 {
2349 return "Done.";
2350 }
Definition: Steam.cs:10
static void ResetAchievement(ID_Achievement id)
Definition: Steam.cs:99

References Steam.ResetAchievement().

◆ ResetAllAchievement()

static string CoreDebug.ResetAllAchievement ( )
inlinestatic

Definition at line 2339 of file CoreDebug.cs.

2340 {
2342 return "Done.";
2343 }
static void ResetAllAchievement()
Definition: Steam.cs:90

References Steam.ResetAllAchievement().

◆ ResetPetUpgrades()

static string CoreDebug.ResetPetUpgrades ( )
inlinestatic

Definition at line 2157 of file CoreDebug.cs.

2158 {
2159 foreach (Chara value in EClass.game.cards.globalCharas.Values)
2160 {
2161 if (value.IsPCFaction)
2162 {
2163 value.ResetUpgrade();
2164 }
2165 }
2166 return "Not Implemented.";
2167 }
void ResetUpgrade()
Definition: Chara.cs:8987
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 2170 of file CoreDebug.cs.

2171 {
2172 if (!CheatEnabled())
2173 {
2174 return EnableCheat;
2175 }
2176 EClass.game.principal.modified.Clear();
2177 return "Done.";
2178 }
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 2468 of file CoreDebug.cs.

2469 {
2470 if (!CheatEnabled())
2471 {
2472 return EnableCheat;
2473 }
2475 return "Resources spawned.";
2476 }
void SpawnCheatContainer()
Definition: CoreDebug.cs:824

References EClass.debug, and SpawnCheatContainer().

◆ Rust()

static string CoreDebug.Rust ( )
inlinestatic

Definition at line 2241 of file CoreDebug.cs.

2242 {
2243 if (!CheatEnabled())
2244 {
2245 return EnableCheat;
2246 }
2247 EClass.pc.things.Foreach(delegate(Thing t)
2248 {
2249 t.ModEncLv(-100);
2250 });
2251 return "Done.";
2252 }
void ModEncLv(int a)
Definition: Card.cs:4020

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

2043 {
2044 if (!CheatEnabled())
2045 {
2046 return EnableCheat;
2047 }
2048 SourceElement.Row row = EClass.sources.elements.alias.TryGetValue(alias);
2049 if (row == null)
2050 {
2051 return "Element not found.";
2052 }
2053 if (row.type == "Feat")
2054 {
2055 EClass.pc.SetFeat(row.id, value, msg: true);
2056 }
2057 else
2058 {
2059 EClass.pc.elements.SetBase(row.id, value, potential);
2060 }
2061 return "Done.";
2062 }
void SetFeat(int id, int value=1, bool msg=false)
Definition: Chara.cs:10344

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

753 {
754 LittlePopper.skipPop = true;
755 foreach (SourceMaterial.Row row in EClass.sources.materials.rows)
756 {
757 if (!(row.alias == "void") && (!randomResource || EScriptable.rnd(4) == 0))
758 {
759 row.CreateByProduct(container, num);
760 }
761 }
762 foreach (SourceThing.Row row2 in EClass.sources.things.rows)
763 {
764 if ((row2.factory.IsEmpty() || !(row2.factory[0] == "x")) && !row2.isOrigin && row2.Category.tag.Contains("debug"))
765 {
766 Thing thing = ThingGen.Create(row2.id);
767 if (thing.trait.CanStack)
768 {
769 thing.ModNum(num);
770 }
771 container.AddThing(thing);
772 }
773 }
774 for (int i = 0; i < 10; i++)
775 {
776 container.AddThing(TraitSeed.MakeRandomSeed());
777 }
778 LittlePopper.skipPop = false;
779 }
void ModNum(int a, bool notify=true)
Definition: Card.cs:3689
bool randomResource
Definition: CoreDebug.cs:190
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 2080 of file CoreDebug.cs.

2081 {
2082 if (!CheatEnabled())
2083 {
2084 return EnableCheat;
2085 }
2086 if (EClass.sources.things.map.ContainsKey(id))
2087 {
2088 Thing thing = ThingGen.Create(id, -1, objLv).SetNum(num);
2089 if (!aliasMat.IsEmpty())
2090 {
2091 thing.ChangeMaterial(aliasMat);
2092 }
2093 EClass._zone.AddCard(thing, EClass.pc.pos);
2094 return "Spawned " + thing.Name;
2095 }
2096 _ = EClass.sources.charas.map;
2097 if (EClass.sources.charas.map.ContainsKey(id))
2098 {
2099 Chara chara = CharaGen.Create(id);
2100 if (objLv != -1)
2101 {
2102 chara.SetLv(objLv);
2103 }
2104 EClass._zone.AddCard(chara, EClass.pc.pos);
2105 return "Spawned " + chara.Name;
2106 }
2107 return "'" + id + "' does not exist in the database.";
2108 }
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 2065 of file CoreDebug.cs.

2066 {
2067 if (!CheatEnabled())
2068 {
2069 return EnableCheat;
2070 }
2071 if (EClass.sources.charas.map.ContainsKey(id))
2072 {
2074 return "Spawned " + chara.Name;
2075 }
2076 return "'" + id + "' does not exist in the database.";
2077 }
static SpawnSetting Boss(int filterLv, int fixedLv=-1)
Definition: SpawnSetting.cs:49
Chara SpawnMob(string id, Point pos=null)
Definition: Zone.cs:2885

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

825 {
826 }

Referenced by Resource().

◆ SpawnFigure()

static string CoreDebug.SpawnFigure ( string  id)
inlinestatic

Definition at line 2111 of file CoreDebug.cs.

2112 {
2113 if (!CheatEnabled())
2114 {
2115 return EnableCheat;
2116 }
2117 if (!EClass.sources.charas.map.ContainsKey(id))
2118 {
2119 return "'" + id + "' does not exist in the database.";
2120 }
2121 Thing thing = ThingGen.Create("figure");
2122 Thing thing2 = ThingGen.Create("figure3");
2123 string c_idRefCard = (thing2.c_idRefCard = id);
2124 thing.c_idRefCard = c_idRefCard;
2125 EClass.pc.DropThing(thing);
2126 EClass.pc.DropThing(thing2);
2127 return "Spawned figures for '" + id + "'";
2128 }
void DropThing(Thing t, int num=-1)
Definition: Chara.cs:4832

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

◆ Stats()

static string CoreDebug.Stats ( )
inlinestatic

Definition at line 2415 of file CoreDebug.cs.

2416 {
2417 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);
2418 }
int fishStolen
Definition: Player.cs:736
bool statueShipped
Definition: Player.cs:460
long eggHatched
Definition: Player.cs:201
int sistersDepart
Definition: Player.cs:126
long nefiaBeaten
Definition: Player.cs:153
int catDepart
Definition: Player.cs:129
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:138
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 1800 of file CoreDebug.cs.

1801 {
1802 bilinear = !bilinear;
1803 MeshPass[] passes = EClass.scene.passes;
1804 for (int i = 0; i < passes.Length; i++)
1805 {
1806 passes[i].mat.GetTexture("_MainTex").filterMode = (bilinear ? FilterMode.Bilinear : FilterMode.Point);
1807 }
1808 }
bool bilinear
Definition: CoreDebug.cs:293
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 1769 of file CoreDebug.cs.

1770 {
1771 foreach (Religion value in EClass.game.religions.dictAll.Values)
1772 {
1773 value.Talk("test");
1774 }
1775 }
ReligionManager religions
Definition: Game.cs:159
Dictionary< string, Religion > dictAll
virtual void Talk(string idTalk, Card c=null, Card agent=null)
Definition: Religion.cs:168

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

◆ Test_Grow()

void CoreDebug.Test_Grow ( )
inline

Definition at line 1751 of file CoreDebug.cs.

1752 {
1753 EClass._map.ForeachCell(delegate(Cell c)
1754 {
1755 if (c.sourceObj.HasGrowth)
1756 {
1757 c.TryGrow();
1758 }
1759 });
1760 foreach (Thing item in EClass._map.things.Copy())
1761 {
1762 if (item.trait is TraitSeed traitSeed)
1763 {
1764 traitSeed.TrySprout(force: true);
1765 }
1766 }
1767 }
SourceObj.Row sourceObj
Definition: Cell.cs:1084

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

◆ Test_Siege()

void CoreDebug.Test_Siege ( )
inline

Definition at line 1830 of file CoreDebug.cs.

1831 {
1832 if (EClass._zone.events.GetEvent<ZoneEventSiege>() == null)
1833 {
1835 }
1836 else
1837 {
1839 }
1840 }
void Add(ZoneEvent e, bool allowDuplicate=false)
void Remove(ZoneEvent e)
ZoneEventManager events
Definition: Zone.cs:40

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

◆ Test_SiegeGuard()

void CoreDebug.Test_SiegeGuard ( )
inline

Definition at line 1818 of file CoreDebug.cs.

1819 {
1820 if (EClass._zone.events.GetEvent<ZoneEventSiegeGuard>() == null)
1821 {
1823 }
1824 else
1825 {
1827 }
1828 }

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

2132 {
2133 if (!CheatEnabled())
2134 {
2135 return EnableCheat;
2136 }
2137 if (EClass._zone is Zone_Arena)
2138 {
2139 EClass._zone._dangerLv = lv;
2140 }
2141 foreach (Chara item in EClass._map.charas.Where((Chara c) => c.HasEditorTag(EditorTag.SpawnTest)).ToList())
2142 {
2143 item.Destroy();
2144 }
2145 for (int i = 0; i < num; i++)
2146 {
2147 EClass._zone.SpawnMob(EClass.pc.pos.GetNearestPoint(allowBlock: false, allowChara: false, allowInstalled: false, ignoreCenter: true), new SpawnSetting
2148 {
2149 filterLv = lv,
2150 levelRange = lvRange
2151 }).AddEditorTag(EditorTag.SpawnTest);
2152 }
2153 return "Spawned.";
2154 }
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 2491 of file CoreDebug.cs.

2492 {
2494 if (revealMap)
2495 {
2497 }
2498 SE.ClickGeneral();
2499 }
bool revealMap
Definition: CoreDebug.cs:169
void RevealAll(bool reveal=true)
Definition: Map.cs:918

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

Referenced by HotItemContext.Show().

◆ UpdateAlways()

void CoreDebug.UpdateAlways ( )
inline

Definition at line 828 of file CoreDebug.cs.

829 {
830 if (!EClass.debug.enable || (bool)EClass.ui.GetLayer<LayerConsole>())
831 {
832 return;
833 }
834 if (Input.GetKeyDown(KeyCode.B))
835 {
837 }
838 if (Input.GetKeyDown(KeyCode.P))
839 {
841 }
842 if (Input.GetKeyDown(KeyCode.F11))
843 {
844 if (Application.isEditor)
845 {
846 EClass.core.SetLang((Lang.langCode == "EN") ? "JP" : "EN");
847 }
848 else
849 {
851 }
852 NewsList.dict = null;
853 BookList.dict = null;
854 BottleMessageList.list = null;
855 }
857 {
858 if (Input.GetKeyDown(KeyCode.U))
859 {
861 Msg.SayRaw(offset.ToString() ?? "");
862 EClass.screen.tileMap.rendererInnerBlock.offset = Vector3.zero;
863 }
864 if (Input.GetKeyDown(KeyCode.I))
865 {
867 Msg.SayRaw(offset.ToString() ?? "");
868 EClass.screen.tileMap.rendererInnerBlock.offset = new Vector3(0f, 0.54f, -0.5f);
869 }
870 }
871 }
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:51
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 883 of file CoreDebug.cs.

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

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

Referenced by ActionMode.UpdateInput().

◆ ValidateData()

void CoreDebug.ValidateData ( )
inline

Definition at line 873 of file CoreDebug.cs.

874 {
876 {
880 }
881 }
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 332 of file CoreDebug.cs.

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

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

Member Data Documentation

◆ _godBuild

bool CoreDebug._godBuild

Definition at line 194 of file CoreDebug.cs.

◆ advanceMin

int CoreDebug.advanceMin

Definition at line 161 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ allAbility

bool CoreDebug.allAbility

Definition at line 206 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allArt

bool CoreDebug.allArt

Definition at line 212 of file CoreDebug.cs.

Referenced by ContentGallery.OnSwitchContent().

◆ allBGM

bool CoreDebug.allBGM

Definition at line 214 of file CoreDebug.cs.

Referenced by LayerEditPlaylist.Refresh().

◆ allHomeSkill

bool CoreDebug.allHomeSkill

Definition at line 210 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allMenu

bool CoreDebug.allMenu

Definition at line 250 of file CoreDebug.cs.

◆ allPolicy

bool CoreDebug.allPolicy

Definition at line 252 of file CoreDebug.cs.

Referenced by FactionBranch.OnClaimZone().

◆ allRecipe

bool CoreDebug.allRecipe

Definition at line 248 of file CoreDebug.cs.

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

◆ allSkill

bool CoreDebug.allSkill

Definition at line 208 of file CoreDebug.cs.

Referenced by QuickStart().

◆ allStory

bool CoreDebug.allStory

Definition at line 254 of file CoreDebug.cs.

Referenced by TraitStoryBook.OnRead().

◆ alwaysFavFood

bool CoreDebug.alwaysFavFood

Definition at line 243 of file CoreDebug.cs.

Referenced by Affinity.OnGift().

◆ alwaysResetWindow

bool CoreDebug.alwaysResetWindow

Definition at line 143 of file CoreDebug.cs.

Referenced by ELayer.Kill().

◆ animeDest

Card CoreDebug.animeDest
private

Definition at line 288 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ autoAdvanceQuest

bool CoreDebug.autoAdvanceQuest

◆ autoIdentify

bool CoreDebug.autoIdentify

Definition at line 204 of file CoreDebug.cs.

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

◆ bidx

int CoreDebug.bidx
private

Definition at line 291 of file CoreDebug.cs.

◆ bilinear

bool CoreDebug.bilinear
private

Definition at line 293 of file CoreDebug.cs.

◆ blines

string [] CoreDebug.blines
private

Definition at line 296 of file CoreDebug.cs.

◆ boradcast

bool CoreDebug.boradcast

Definition at line 275 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ command

string CoreDebug.command

Definition at line 151 of file CoreDebug.cs.

Referenced by Core.Awake().

◆ commands

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

Definition at line 298 of file CoreDebug.cs.

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

◆ debugHoard

bool CoreDebug.debugHoard

Definition at line 171 of file CoreDebug.cs.

Referenced by LayerHoard.OnAfterInit().

◆ debugHotkeys

DebugHotkey CoreDebug.debugHotkeys

Definition at line 158 of file CoreDebug.cs.

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

◆ debugInput

bool CoreDebug.debugInput

Definition at line 154 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ debugProps

bool CoreDebug.debugProps

Definition at line 167 of file CoreDebug.cs.

◆ debugScatter

bool CoreDebug.debugScatter

Definition at line 192 of file CoreDebug.cs.

◆ dontCompressSave

bool CoreDebug.dontCompressSave

Definition at line 147 of file CoreDebug.cs.

◆ dontUseThread

bool CoreDebug.dontUseThread

Definition at line 137 of file CoreDebug.cs.

Referenced by LayerProgress.Start().

◆ enable

bool CoreDebug.enable

Definition at line 301 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(), 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(), 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 228 of file CoreDebug.cs.

◆ fixedColor

Color32 CoreDebug.fixedColor

Definition at line 279 of file CoreDebug.cs.

◆ fov

Fov CoreDebug.fov = new Fov()

Definition at line 303 of file CoreDebug.cs.

◆ godCraft

bool CoreDebug.godCraft

◆ godFood

bool CoreDebug.godFood

Definition at line 198 of file CoreDebug.cs.

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

◆ godMode

◆ hidePCItemsInBuild

bool CoreDebug.hidePCItemsInBuild

Definition at line 224 of file CoreDebug.cs.

Referenced by BuildMenu.RefreshCategory().

◆ ignoreAutoSave

bool CoreDebug.ignoreAutoSave

Definition at line 141 of file CoreDebug.cs.

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

◆ ignoreBuildRule

◆ ignoreEncounter

bool CoreDebug.ignoreEncounter

Definition at line 216 of file CoreDebug.cs.

Referenced by Chara.Tick().

◆ ignorePool

bool CoreDebug.ignorePool

Definition at line 132 of file CoreDebug.cs.

Referenced by Core.Update().

◆ ignorePopup

bool CoreDebug.ignorePopup

Definition at line 175 of file CoreDebug.cs.

Referenced by PopupManager.Add().

◆ ignoreWeight

bool CoreDebug.ignoreWeight

◆ indexResolution

int CoreDebug.indexResolution
private

Definition at line 305 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ instaReturn

bool CoreDebug.instaReturn

Definition at line 220 of file CoreDebug.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ inviteAnytime

bool CoreDebug.inviteAnytime

Definition at line 237 of file CoreDebug.cs.

Referenced by Affinity.CanInvite().

◆ keypadDebug

bool CoreDebug.keypadDebug

Definition at line 156 of file CoreDebug.cs.

◆ langCode

Lang.LangCode CoreDebug.langCode

Definition at line 129 of file CoreDebug.cs.

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

◆ lastAnime

AnimeID CoreDebug.lastAnime
private

Definition at line 307 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ lastEmo

Emo CoreDebug.lastEmo
private

Definition at line 309 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ logAdv

bool CoreDebug.logAdv

Definition at line 257 of file CoreDebug.cs.

Referenced by GlobalGoalVisitAndStay.OnAdvanceHour().

◆ logCombat

bool CoreDebug.logCombat

Definition at line 260 of file CoreDebug.cs.

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

◆ logDice

bool CoreDebug.logDice

Definition at line 262 of file CoreDebug.cs.

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

◆ marryAnytime

bool CoreDebug.marryAnytime

Definition at line 239 of file CoreDebug.cs.

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

◆ matColorTest

MatColorTest CoreDebug.matColorTest

Definition at line 273 of file CoreDebug.cs.

◆ maxQuests

bool CoreDebug.maxQuests

Definition at line 245 of file CoreDebug.cs.

◆ naked

bool CoreDebug.naked
private

Definition at line 311 of file CoreDebug.cs.

◆ numResource

int CoreDebug.numResource

Definition at line 232 of file CoreDebug.cs.

Referenced by EnableDebugResource().

◆ param1

int CoreDebug.param1

Definition at line 268 of file CoreDebug.cs.

◆ param2

int CoreDebug.param2

Definition at line 271 of file CoreDebug.cs.

◆ randomResource

bool CoreDebug.randomResource

Definition at line 190 of file CoreDebug.cs.

Referenced by SetStartStockpile().

◆ resetPlayerConfig

bool CoreDebug.resetPlayerConfig

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

Referenced by UpdateInput().

◆ returnAnywhere

bool CoreDebug.returnAnywhere

Definition at line 218 of file CoreDebug.cs.

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

◆ revealInner

bool CoreDebug.revealInner

Definition at line 173 of file CoreDebug.cs.

◆ revealMap

bool CoreDebug.revealMap

Definition at line 169 of file CoreDebug.cs.

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

◆ runtimeGodBuild

bool CoreDebug.runtimeGodBuild
private

Definition at line 314 of file CoreDebug.cs.

Referenced by UpdateInput().

◆ showExtra

◆ showFav

bool CoreDebug.showFav

◆ showSceneSelector

bool CoreDebug.showSceneSelector

Definition at line 124 of file CoreDebug.cs.

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

◆ showTone

bool CoreDebug.showTone

Definition at line 181 of file CoreDebug.cs.

◆ skipEvent

bool CoreDebug.skipEvent

Definition at line 177 of file CoreDebug.cs.

Referenced by ZoneEventManager.Add().

◆ skipMod

bool CoreDebug.skipMod

Definition at line 149 of file CoreDebug.cs.

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

◆ skipModSync

bool CoreDebug.skipModSync

Definition at line 127 of file CoreDebug.cs.

Referenced by Core.StartCase().

◆ skipNerun

bool CoreDebug.skipNerun

Definition at line 179 of file CoreDebug.cs.

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

◆ startHour

int CoreDebug.startHour

Definition at line 117 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startLoadout

StartLoadout CoreDebug.startLoadout

Definition at line 113 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startParty

StartParty CoreDebug.startParty

Definition at line 115 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startScene

StartScene CoreDebug.startScene

Definition at line 111 of file CoreDebug.cs.

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

◆ startSetting

StartSetting CoreDebug.startSetting

Definition at line 119 of file CoreDebug.cs.

Referenced by QuickStart().

◆ startZone

string CoreDebug.startZone

Definition at line 121 of file CoreDebug.cs.

Referenced by Game.StartNewGame().

◆ test

bool CoreDebug.test

Definition at line 185 of file CoreDebug.cs.

Referenced by Zone.TryGenerateShrine().

◆ testFixedColor

bool CoreDebug.testFixedColor

Definition at line 277 of file CoreDebug.cs.

◆ testLOS

bool CoreDebug.testLOS

Definition at line 163 of file CoreDebug.cs.

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

◆ testLOS2

bool CoreDebug.testLOS2

Definition at line 165 of file CoreDebug.cs.

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

◆ testThingQuality

bool CoreDebug.testThingQuality

Definition at line 230 of file CoreDebug.cs.

Referenced by Card.Create().

◆ travelAnywhere

bool CoreDebug.travelAnywhere

Definition at line 222 of file CoreDebug.cs.

Referenced by Spatial.Create().

◆ ttt

int CoreDebug.ttt
private

Definition at line 316 of file CoreDebug.cs.

◆ unlimitedInterest

bool CoreDebug.unlimitedInterest

Definition at line 235 of file CoreDebug.cs.

Referenced by Affinity.OnTalkRumor().

◆ useNewConfig

bool CoreDebug.useNewConfig

Definition at line 139 of file CoreDebug.cs.

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

◆ validateData

bool CoreDebug.validateData

Definition at line 145 of file CoreDebug.cs.

◆ validatePref

bool CoreDebug.validatePref

Definition at line 265 of file CoreDebug.cs.

Referenced by Core.Init().

Property Documentation

◆ EnableCheat

string CoreDebug.EnableCheat
staticget

Definition at line 330 of file CoreDebug.cs.

◆ godBuild


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