From 2cc082f6ee2951b43d97968cd45aa2108a933461 Mon Sep 17 00:00:00 2001 From: shweet Date: Tue, 24 Nov 2026 03:23:39 -0500 Subject: [PATCH] REPENTOGON phase 0 (e2c5aec, GPL-2): ISAAC_REPENTOGON option (on), src/repentogon/ with the hidden REPENTOGON global switch, callback ids 1000-1499 with REPENTOGON's enable state and dispatch (priorities, optional and two-parameter filters, isolated errors), its scripts loaded from assets/repentogon/scripts, its options store and a vanilla-parity switch (on) in the overlay, scripts/repentogon_coverage.py and analysis/repentogon_coverage.tsv (2,834 rows) --- CMakeLists.txt | 10 + README.md | 5 +- analysis/repentogon_coverage.tsv | 2835 ++++++++++++++ assets/repentogon/LICENSE | 339 ++ assets/repentogon/scripts/enums_ex.lua | 3271 +++++++++++++++++ assets/repentogon/scripts/main_ex.lua | 2402 ++++++++++++ .../repentogon_api/room_descriptor.lua | 49 + .../scripts/repentogon_extras/_emmy_lua.lua | 30 + .../repentogon_extras/bestiary_menu.lua | 116 + .../scripts/repentogon_extras/changelog.lua | 343 ++ .../changelog_official_text.lua | 20 + .../scripts/repentogon_extras/daily_stats.lua | 156 + .../entity_save_state_manager.lua | 455 +++ .../scripts/repentogon_extras/mod_manager.lua | 98 + .../repentogon_extras/mods_menu_tweaks.lua | 53 + .../scripts/repentogon_extras/onlinestub.lua | 306 ++ .../repentogon_extras/save_state_manager.lua | 220 ++ .../scripts/repentogon_extras/stats_menu.lua | 258 ++ .../scripts/repentogon_extras/table_utils.lua | 196 + scripts/repentogon_coverage.py | 1251 +++++++ src/game/manager.cpp | 8 +- src/lua/api_isaac.cpp | 23 +- src/lua/callback_run.h | 139 + src/lua/callbacks.cpp | 126 +- src/lua/engine.cpp | 36 +- src/lua/engine.h | 10 +- src/repentogon/options.cpp | 93 + src/repentogon/options.h | 84 + src/repentogon/repentogon.cpp | 88 + src/repentogon/repentogon.h | 12 + src/ui/overlay/game_options.cpp | 72 +- 31 files changed, 12955 insertions(+), 149 deletions(-) create mode 100644 analysis/repentogon_coverage.tsv create mode 100644 assets/repentogon/LICENSE create mode 100644 assets/repentogon/scripts/enums_ex.lua create mode 100644 assets/repentogon/scripts/main_ex.lua create mode 100644 assets/repentogon/scripts/repentogon_api/room_descriptor.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/_emmy_lua.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/bestiary_menu.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/changelog.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/changelog_official_text.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/daily_stats.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/entity_save_state_manager.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/mod_manager.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/mods_menu_tweaks.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/onlinestub.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/save_state_manager.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/stats_menu.lua create mode 100644 assets/repentogon/scripts/repentogon_extras/table_utils.lua create mode 100644 scripts/repentogon_coverage.py create mode 100644 src/lua/callback_run.h create mode 100644 src/repentogon/options.cpp create mode 100644 src/repentogon/options.h create mode 100644 src/repentogon/repentogon.cpp create mode 100644 src/repentogon/repentogon.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f64225..5555b73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,10 @@ if(ISAAC_OVERLAY) target_compile_options(imgui PRIVATE -w) endif() +# REPENTOGON's modding API built in natively (src/repentogon/, its scripts in assets/repentogon/): inert without mods, +# with every change to the vanilla game behind its options and the vanilla parity switch. OFF builds the vanilla game. +option(ISAAC_REPENTOGON "Build REPENTOGON's modding API into the game" ON) + # The curated game: every .cpp under src/, sorted into subsystem folders and including each other by path from src/, # written on top of the declarations generated-src/classes.h holds for every class. # generated-src/'s own bodies stay out until they compile (scripts/source_tree.py --check reports how many do). @@ -88,6 +92,9 @@ file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS src/*.cpp) if(NOT ISAAC_OVERLAY) list(FILTER SOURCES EXCLUDE REGEX "/src/ui/overlay/") endif() +if(NOT ISAAC_REPENTOGON) + list(FILTER SOURCES EXCLUDE REGEX "/src/repentogon/") +endif() add_executable(isaac ${SOURCES} generated-src/stubs.cpp) target_include_directories(isaac PRIVATE src) target_include_directories(isaac SYSTEM PRIVATE generated-src external/stb) @@ -96,3 +103,6 @@ if(ISAAC_OVERLAY) target_compile_definitions(isaac PRIVATE ISAAC_OVERLAY) target_link_libraries(isaac PRIVATE imgui) endif() +if(ISAAC_REPENTOGON) + target_compile_definitions(isaac PRIVATE ISAAC_REPENTOGON) +endif() diff --git a/README.md b/README.md index e00ec22..bf2e0ac 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,8 @@ scripts/ decompile.sh (print decompiled C for a function, by name regex or and Python helpers they use tools/ gitignored local tools: the resource importer and the test harness (tools/harness/) external/ static submodules: SDL3, Lua 5.3, simdjson, Ogg, Vorbis, Theora, stb, Dear ImGui (docking) -assets/ files the repository ships itself (git-lfs): the overlay's fonts, with their licences +assets/ files the repository ships itself: the overlay's fonts (git-lfs), with their licences, and REPENTOGON's Lua + scripts (assets/repentogon/, GPL-2), adapted where they reach API not ported yet repentogon/ shallow clone of TeamREPENTOGON/REPENTOGON (libzhl/functions/*.zhl = sigs, structs, enums) bin/ private copy of the exe (analysis input; also used to read constants) jdk/ ghidra_12.2_PUBLIC/ Temurin 21 (system java is 8, too old) and Ghidra @@ -86,6 +87,8 @@ ui/ HUDs, popups, pause screen, cutscenes, console with the Console, Game Options, Mods and Debug windows on Dear ImGui lua/ the Lua engine, API bindings and callbacks online/ online-only code, kept as offline stubs +repentogon/ REPENTOGON's modding API built in (CMake option ISAAC_REPENTOGON, on by default, OFF builds the vanilla + game): its scripts' loading, its options store and the vanilla parity switch, inert without mods ``` ### Test harness diff --git a/analysis/repentogon_coverage.tsv b/analysis/repentogon_coverage.tsv new file mode 100644 index 0000000..03d872d --- /dev/null +++ b/analysis/repentogon_coverage.tsv @@ -0,0 +1,2835 @@ +kind class name location docs area status summary +function ASMPatchTest AddBytes repentogon/LuaInterfaces/LuaASM.cpp:172 misc todo debug builds only +function ASMPatchTest AddCJump repentogon/LuaInterfaces/LuaASM.cpp:174 misc todo debug builds only +function ASMPatchTest AddJump repentogon/LuaInterfaces/LuaASM.cpp:173 misc todo debug builds only +function ASMPatchTest ToASM repentogon/LuaInterfaces/LuaASM.cpp:175 misc todo debug builds only +function Ambush GetCurrentWave repentogon/LuaInterfaces/LuaAmbush.cpp:258 Ambush.md game todo +function Ambush GetMaxBossChallengeWaves repentogon/LuaInterfaces/LuaAmbush.cpp:256 Ambush.md game todo +function Ambush GetMaxBossrushWaves repentogon/LuaInterfaces/LuaAmbush.cpp:252 Ambush.md game todo +function Ambush GetMaxChallengeWaves repentogon/LuaInterfaces/LuaAmbush.cpp:254 Ambush.md game todo +function Ambush GetNextWave repentogon/LuaInterfaces/LuaAmbush.cpp:260 Ambush.md game todo +function Ambush GetNextWaves repentogon/LuaInterfaces/LuaAmbush.cpp:261 Ambush.md game todo +function Ambush SetMaxBossChallengeWaves repentogon/LuaInterfaces/LuaAmbush.cpp:257 Ambush.md game todo +function Ambush SetMaxBossrushWaves repentogon/LuaInterfaces/LuaAmbush.cpp:253 Ambush.md game todo +function Ambush SetMaxChallengeWaves repentogon/LuaInterfaces/LuaAmbush.cpp:255 Ambush.md game todo +function Ambush SpawnBossrushWave repentogon/LuaInterfaces/LuaAmbush.cpp:248 Ambush.md game todo +function Ambush SpawnWave repentogon/LuaInterfaces/LuaAmbush.cpp:249 Ambush.md game todo +function Ambush StartChallenge repentogon/LuaInterfaces/LuaAmbush.cpp:247 Ambush.md game todo +function AnimationData GetAllLayers repentogon/LuaInterfaces/LuaAnimationData.cpp:148 AnimationData.md render and sprites todo +function AnimationData GetLayer repentogon/LuaInterfaces/LuaAnimationData.cpp:149 AnimationData.md render and sprites todo +function AnimationData GetLength repentogon/LuaInterfaces/LuaAnimationData.cpp:151 AnimationData.md render and sprites todo +function AnimationData GetName repentogon/LuaInterfaces/LuaAnimationData.cpp:150 AnimationData.md render and sprites todo +function AnimationData IsLoopingAnimation repentogon/LuaInterfaces/LuaAnimationData.cpp:152 AnimationData.md render and sprites todo +function AnimationFrame GetColor repentogon/LuaInterfaces/LuaAnimationFrame.cpp:100 AnimationFrame.md render and sprites todo +function AnimationFrame GetCrop repentogon/LuaInterfaces/LuaAnimationFrame.cpp:91 AnimationFrame.md render and sprites todo +function AnimationFrame GetEndFrame repentogon/LuaInterfaces/LuaAnimationFrame.cpp:102 AnimationFrame.md render and sprites todo +function AnimationFrame GetHeight repentogon/LuaInterfaces/LuaAnimationFrame.cpp:93 AnimationFrame.md render and sprites todo +function AnimationFrame GetPivot repentogon/LuaInterfaces/LuaAnimationFrame.cpp:96 AnimationFrame.md render and sprites todo +function AnimationFrame GetPos repentogon/LuaInterfaces/LuaAnimationFrame.cpp:94 AnimationFrame.md render and sprites todo +function AnimationFrame GetRotation repentogon/LuaInterfaces/LuaAnimationFrame.cpp:98 AnimationFrame.md render and sprites todo +function AnimationFrame GetScale repentogon/LuaInterfaces/LuaAnimationFrame.cpp:95 AnimationFrame.md render and sprites todo +function AnimationFrame GetStartFrame repentogon/LuaInterfaces/LuaAnimationFrame.cpp:101 AnimationFrame.md render and sprites todo +function AnimationFrame GetWidth repentogon/LuaInterfaces/LuaAnimationFrame.cpp:92 AnimationFrame.md render and sprites todo +function AnimationFrame IsInterpolated repentogon/LuaInterfaces/LuaAnimationFrame.cpp:99 AnimationFrame.md render and sprites todo +function AnimationFrame IsVisible repentogon/LuaInterfaces/LuaAnimationFrame.cpp:97 AnimationFrame.md render and sprites todo +function AnimationLayer GetFrame repentogon/LuaInterfaces/LuaAnimationLayer.cpp:69 AnimationLayer.md render and sprites todo +function AnimationLayer GetLayerID repentogon/LuaInterfaces/LuaAnimationLayer.cpp:70 AnimationLayer.md render and sprites todo +function AnimationLayer IsVisible repentogon/LuaInterfaces/LuaAnimationLayer.cpp:71 AnimationLayer.md render and sprites todo +function Backdrop GetControlsANM2 repentogon/LuaInterfaces/LuaBackdrop.cpp:106 Backdrop.md level and room todo +function Backdrop GetControlsButtonsANM2 repentogon/LuaInterfaces/LuaBackdrop.cpp:107 Backdrop.md level and room todo +function Backdrop GetDetailANM2 repentogon/LuaInterfaces/LuaBackdrop.cpp:105 Backdrop.md level and room todo +function Backdrop GetFloorANM2 repentogon/LuaInterfaces/LuaBackdrop.cpp:104 Backdrop.md level and room todo +function Backdrop GetFloorImage repentogon/LuaInterfaces/LuaBackdrop.cpp:103 Backdrop.md level and room todo +function Backdrop GetWallImage repentogon/LuaInterfaces/LuaBackdrop.cpp:102 Backdrop.md level and room todo +function Beam Add repentogon/LuaInterfaces/LuaBeamRenderer.cpp:389 render and sprites todo +function Beam GetLayer repentogon/LuaInterfaces/LuaBeamRenderer.cpp:393 render and sprites todo +function Beam GetPoints repentogon/LuaInterfaces/LuaBeamRenderer.cpp:399 render and sprites todo +function Beam GetSprite repentogon/LuaInterfaces/LuaBeamRenderer.cpp:391 render and sprites todo +function Beam GetUnkBool repentogon/LuaInterfaces/LuaBeamRenderer.cpp:397 render and sprites todo +function Beam GetUseOverlay repentogon/LuaInterfaces/LuaBeamRenderer.cpp:395 render and sprites todo +function Beam Render repentogon/LuaInterfaces/LuaBeamRenderer.cpp:390 render and sprites todo +function Beam SetLayer repentogon/LuaInterfaces/LuaBeamRenderer.cpp:394 render and sprites todo +function Beam SetPoints repentogon/LuaInterfaces/LuaBeamRenderer.cpp:400 render and sprites todo +function Beam SetSprite repentogon/LuaInterfaces/LuaBeamRenderer.cpp:392 render and sprites todo +function Beam SetUnkBool repentogon/LuaInterfaces/LuaBeamRenderer.cpp:398 render and sprites todo +function Beam SetUseOverlay repentogon/LuaInterfaces/LuaBeamRenderer.cpp:396 render and sprites todo +function BestiaryMenu GetBestiaryMenuSprite repentogon/LuaInterfaces/Menus/LuaBestiaryMenu.cpp:104 hud and menus todo +function BestiaryMenu GetDeathScreenSprite repentogon/LuaInterfaces/Menus/LuaBestiaryMenu.cpp:105 hud and menus todo +function BestiaryMenu GetEnemySprite repentogon/LuaInterfaces/Menus/LuaBestiaryMenu.cpp:106 hud and menus todo +function BestiaryMenu GetNumBossPages repentogon/LuaInterfaces/Menus/LuaBestiaryMenu.cpp:112 hud and menus todo +function BestiaryMenu GetNumMonsterPages repentogon/LuaInterfaces/Menus/LuaBestiaryMenu.cpp:111 hud and menus todo +function BestiaryMenu GetNumPages repentogon/LuaInterfaces/Menus/LuaBestiaryMenu.cpp:113 hud and menus todo +function BestiaryMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaBestiaryMenu.cpp:109 hud and menus todo +function BestiaryMenu GetSelectedPage repentogon/LuaInterfaces/Menus/LuaBestiaryMenu.cpp:107 hud and menus todo +function BestiaryMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaBestiaryMenu.cpp:110 hud and menus todo +function BestiaryMenu SetSelectedPage repentogon/LuaInterfaces/Menus/LuaBestiaryMenu.cpp:108 hud and menus todo +function BlendMode New repentogon/LuaInterfaces/LuaBlendMode.cpp:321 render and sprites todo +function BlendMode NewFromType repentogon/LuaInterfaces/LuaBlendMode.cpp:324 render and sprites todo +function BlendMode SetMode repentogon/LuaInterfaces/LuaBlendMode.cpp:308 render and sprites todo +function BossPool GetDoubleTroubleRoomID repentogon/LuaInterfaces/LuaBossPool.cpp:90 BossPool.md npc todo +function BossPool GetDoubleTroubleRoomVariantStart repentogon/LuaInterfaces/LuaBossPool.cpp:89 npc todo +function BossPool GetEntries repentogon/LuaInterfaces/LuaBossPool.cpp:86 BossPool.md npc todo +function BossPool GetName repentogon/LuaInterfaces/LuaBossPool.cpp:85 BossPool.md npc todo +function BossPool GetRNG repentogon/LuaInterfaces/LuaBossPool.cpp:88 BossPool.md npc todo +function BossPool GetWeight repentogon/LuaInterfaces/LuaBossPool.cpp:87 BossPool.md npc todo +function BossPoolManager GetLevelBlacklist repentogon/LuaInterfaces/LuaBossPool.cpp:130 npc todo +function BossPoolManager GetPool repentogon/LuaInterfaces/LuaBossPool.cpp:128 BossPoolManager.md npc todo +function BossPoolManager GetRemovedBosses repentogon/LuaInterfaces/LuaBossPool.cpp:129 BossPoolManager.md npc todo +function BossPoolManager GetRemovedSpecialBosses repentogon/LuaInterfaces/LuaBossPool.cpp:131 BossPoolManager.md npc todo +function Camera IsClampEnabled repentogon/LuaInterfaces/LuaCamera.cpp:72 Camera.md level and room todo +function Camera IsPosVisible repentogon/LuaInterfaces/LuaCamera.cpp:70 Camera.md level and room todo +function Camera SetClampEnabled repentogon/LuaInterfaces/LuaCamera.cpp:73 Camera.md level and room todo +function Camera SetFocusPosition repentogon/LuaInterfaces/LuaCamera.cpp:68 Camera.md level and room todo +function Camera SnapToPosition repentogon/LuaInterfaces/LuaCamera.cpp:69 Camera.md level and room todo +function Camera Update repentogon/LuaInterfaces/LuaCamera.cpp:71 Camera.md level and room todo +function Capsule Collide repentogon/LuaInterfaces/LuaCapsule.cpp:127 Capsule.md entities todo +function Capsule GetDirection repentogon/LuaInterfaces/LuaCapsule.cpp:124 Capsule.md entities todo +function Capsule GetEndPoint repentogon/LuaInterfaces/LuaCapsule.cpp:123 entities todo +function Capsule GetF1 repentogon/LuaInterfaces/LuaCapsule.cpp:132 Capsule.md entities todo +function Capsule GetF2 repentogon/LuaInterfaces/LuaCapsule.cpp:133 Capsule.md entities todo +function Capsule GetPosition repentogon/LuaInterfaces/LuaCapsule.cpp:121 Capsule.md entities todo +function Capsule GetSize repentogon/LuaInterfaces/LuaCapsule.cpp:125 entities todo +function Capsule GetSizeDifference repentogon/LuaInterfaces/LuaCapsule.cpp:126 entities todo +function Capsule GetStartPoint repentogon/LuaInterfaces/LuaCapsule.cpp:122 entities todo +function Capsule GetVec2 repentogon/LuaInterfaces/LuaCapsule.cpp:130 Capsule.md entities todo +function Capsule GetVec3 repentogon/LuaInterfaces/LuaCapsule.cpp:131 Capsule.md entities todo +function Card ClearAvailabilityCondition repentogon/LuaInterfaces/LuaItemConfig.cpp:210 ItemConfig_Card.md items and pools todo +function Card GetAvailabilityCondition repentogon/LuaInterfaces/LuaItemConfig.cpp:205 ItemConfig_Card.md items and pools todo +function Card SetAvailabilityCondition repentogon/LuaInterfaces/LuaItemConfig.cpp:209 ItemConfig_Card.md items and pools todo +function ChallengeMenu GetSelectedChallengeID repentogon/LuaInterfaces/Menus/LuaChallengeMenu.cpp:37 hud and menus todo +function ChallengeMenu GetSprite repentogon/LuaInterfaces/Menus/LuaChallengeMenu.cpp:36 hud and menus todo +function ChallengeMenu SetSelectedChallengeID repentogon/LuaInterfaces/Menus/LuaChallengeMenu.cpp:38 hud and menus todo +function ChallengeParam CanShoot repentogon/LuaInterfaces/LuaChallengeParam.cpp:306 ChallengeParam.md game todo +function ChallengeParam GetAchievementList repentogon/LuaInterfaces/LuaChallengeParam.cpp:299 ChallengeParam.md game todo +function ChallengeParam GetAddDamage repentogon/LuaInterfaces/LuaChallengeParam.cpp:305 ChallengeParam.md game todo +function ChallengeParam GetBlackHearts repentogon/LuaInterfaces/LuaChallengeParam.cpp:301 ChallengeParam.md game todo +function ChallengeParam GetCoins repentogon/LuaInterfaces/LuaChallengeParam.cpp:304 ChallengeParam.md game todo +function ChallengeParam GetCollectibleList repentogon/LuaInterfaces/LuaChallengeParam.cpp:293 ChallengeParam.md game todo +function ChallengeParam GetCollectibleTwinList repentogon/LuaInterfaces/LuaChallengeParam.cpp:317 ChallengeParam.md game todo +function ChallengeParam GetCurse repentogon/LuaInterfaces/LuaChallengeParam.cpp:314 ChallengeParam.md game todo +function ChallengeParam GetCurseFilter repentogon/LuaInterfaces/LuaChallengeParam.cpp:315 ChallengeParam.md game todo +function ChallengeParam GetDifficulty repentogon/LuaInterfaces/LuaChallengeParam.cpp:308 ChallengeParam.md game todo +function ChallengeParam GetEndStage repentogon/LuaInterfaces/LuaChallengeParam.cpp:297 ChallengeParam.md game todo +function ChallengeParam GetHearts repentogon/LuaInterfaces/LuaChallengeParam.cpp:302 ChallengeParam.md game todo +function ChallengeParam GetMaxHearts repentogon/LuaInterfaces/LuaChallengeParam.cpp:303 ChallengeParam.md game todo +function ChallengeParam GetMinFireRate repentogon/LuaInterfaces/LuaChallengeParam.cpp:310 ChallengeParam.md game todo +function ChallengeParam GetName repentogon/LuaInterfaces/LuaChallengeParam.cpp:291 ChallengeParam.md game todo +function ChallengeParam GetPlayerType repentogon/LuaInterfaces/LuaChallengeParam.cpp:298 ChallengeParam.md game todo +function ChallengeParam GetRoomFilter repentogon/LuaInterfaces/LuaChallengeParam.cpp:292 ChallengeParam.md game todo +function ChallengeParam GetSoulHearts repentogon/LuaInterfaces/LuaChallengeParam.cpp:300 ChallengeParam.md game todo +function ChallengeParam GetStartingCard repentogon/LuaInterfaces/LuaChallengeParam.cpp:296 ChallengeParam.md game todo +function ChallengeParam GetStartingPill repentogon/LuaInterfaces/LuaChallengeParam.cpp:295 ChallengeParam.md game todo +function ChallengeParam GetTrinketList repentogon/LuaInterfaces/LuaChallengeParam.cpp:294 ChallengeParam.md game todo +function ChallengeParam IsAltPath repentogon/LuaInterfaces/LuaChallengeParam.cpp:307 ChallengeParam.md game todo +function ChallengeParam IsBeastPath repentogon/LuaInterfaces/LuaChallengeParam.cpp:318 ChallengeParam.md game todo +function ChallengeParam IsBigRangeEnabled repentogon/LuaInterfaces/LuaChallengeParam.cpp:313 ChallengeParam.md game todo +function ChallengeParam IsMaxDamageEnabled repentogon/LuaInterfaces/LuaChallengeParam.cpp:311 ChallengeParam.md game todo +function ChallengeParam IsMegaSatanRun repentogon/LuaInterfaces/LuaChallengeParam.cpp:309 ChallengeParam.md game todo +function ChallengeParam IsMinShotSpeedEnabled repentogon/LuaInterfaces/LuaChallengeParam.cpp:312 ChallengeParam.md game todo +function ChallengeParam IsSecretPath repentogon/LuaInterfaces/LuaChallengeParam.cpp:316 ChallengeParam.md game todo +function CharacterMenu GetActiveStatus repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:478 hud and menus todo +function CharacterMenu GetBGSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:446 hud and menus todo +function CharacterMenu GetBigCharPageSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:443 hud and menus todo +function CharacterMenu GetCharacterMenuIDFromPlayerType repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:471 hud and menus todo +function CharacterMenu GetCharacterPortraitSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:454 hud and menus todo +function CharacterMenu GetCharacterWheelDepth repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:472 hud and menus todo +function CharacterMenu GetCharacterWheelWidth repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:476 hud and menus todo +function CharacterMenu GetCompletionMarksSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:458 hud and menus todo +function CharacterMenu GetDifficulty repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:465 hud and menus todo +function CharacterMenu GetDifficultyOverlaySprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:444 hud and menus todo +function CharacterMenu GetDifficultyPageSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:447 hud and menus todo +function CharacterMenu GetEasterEggPageSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:450 hud and menus todo +function CharacterMenu GetEastereggPageSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:451 hud and menus todo +function CharacterMenu GetGreedDecoSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:445 hud and menus todo +function CharacterMenu GetIsCharacterUnlocked repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:463 hud and menus todo +function CharacterMenu GetNumCharacters repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:459 hud and menus todo +function CharacterMenu GetPageSwapWidgetSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:456 hud and menus todo +function CharacterMenu GetPlayerTypeFromCharacterMenuID repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:470 hud and menus todo +function CharacterMenu GetScrollSpeed repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:474 hud and menus todo +function CharacterMenu GetSeedEntrySprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:455 hud and menus todo +function CharacterMenu GetSeedPageSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:448 hud and menus todo +function CharacterMenu GetSeedUnlockPageSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:452 hud and menus todo +function CharacterMenu GetSelectedCharacterID repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:467 hud and menus todo +function CharacterMenu GetSelectedCharacterMenu repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:460 hud and menus todo +function CharacterMenu GetSelectedCharacterPlayerType repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:469 hud and menus todo +function CharacterMenu GetTaintedBGDecoSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:457 hud and menus todo +function CharacterMenu GetWinStreakPageSprite repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:449 hud and menus todo +function CharacterMenu SetActiveStatus repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:479 hud and menus todo +function CharacterMenu SetCharacterWheelDepth repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:473 hud and menus todo +function CharacterMenu SetCharacterWheelWidth repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:477 hud and menus todo +function CharacterMenu SetDifficulty repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:466 hud and menus todo +function CharacterMenu SetIsCharacterUnlocked repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:464 hud and menus todo +function CharacterMenu SetScrollSpeed repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:475 hud and menus todo +function CharacterMenu SetSelectedCharacterID repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:468 hud and menus todo +function CharacterMenu SetSelectedCharacterMenu repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:461 hud and menus todo +function CharacterMenu SwapCharacterMenu repentogon/LuaInterfaces/Menus/LuaCharacterMenu.cpp:462 hud and menus todo +function CollectionMenu GetCollectionMenuSprite repentogon/LuaInterfaces/Menus/LuaCollectionMenu.cpp:64 hud and menus todo +function CollectionMenu GetDeathScreenSprite repentogon/LuaInterfaces/Menus/LuaCollectionMenu.cpp:65 hud and menus todo +function CollectionMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaCollectionMenu.cpp:66 hud and menus todo +function CollectionMenu GetSelectedPage repentogon/LuaInterfaces/Menus/LuaCollectionMenu.cpp:68 hud and menus todo +function CollectionMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaCollectionMenu.cpp:67 hud and menus todo +function CollectionMenu SetSelectedPage repentogon/LuaInterfaces/Menus/LuaCollectionMenu.cpp:69 hud and menus todo +function Color GetColorize repentogon/LuaInterfaces/LuaColor.cpp:167 Color.md render and sprites todo +function Color GetOffset repentogon/LuaInterfaces/LuaColor.cpp:168 Color.md render and sprites todo +function Color GetTint repentogon/LuaInterfaces/LuaColor.cpp:166 Color.md render and sprites todo +function Color Print repentogon/LuaInterfaces/LuaColor.cpp:170 Color.md render and sprites todo +function Color __tostring repentogon/LuaInterfaces/LuaColor.cpp:169 Color.md render and sprites todo +function ColorModifier __add repentogon/LuaInterfaces/LuaColorModifier.cpp:291 ColorModifier.md render and sprites todo +function ColorModifier __div repentogon/LuaInterfaces/LuaColorModifier.cpp:294 ColorModifier.md render and sprites todo +function ColorModifier __eq repentogon/LuaInterfaces/LuaColorModifier.cpp:290 ColorModifier.md render and sprites todo +function ColorModifier __mul repentogon/LuaInterfaces/LuaColorModifier.cpp:293 ColorModifier.md render and sprites todo +function ColorModifier __sub repentogon/LuaInterfaces/LuaColorModifier.cpp:292 ColorModifier.md render and sprites todo +function ColorParams GetColor repentogon/LuaInterfaces/LuaColorParams.cpp:118 ColorParams.md render and sprites todo +function ColorParams GetDuration repentogon/LuaInterfaces/LuaColorParams.cpp:122 ColorParams.md render and sprites todo +function ColorParams GetFadeout repentogon/LuaInterfaces/LuaColorParams.cpp:126 ColorParams.md render and sprites todo +function ColorParams GetLifespan repentogon/LuaInterfaces/LuaColorParams.cpp:124 ColorParams.md render and sprites todo +function ColorParams GetPriority repentogon/LuaInterfaces/LuaColorParams.cpp:120 ColorParams.md render and sprites todo +function ColorParams GetShared repentogon/LuaInterfaces/LuaColorParams.cpp:128 ColorParams.md render and sprites todo +function ColorParams SetColor repentogon/LuaInterfaces/LuaColorParams.cpp:119 ColorParams.md render and sprites todo +function ColorParams SetDuration repentogon/LuaInterfaces/LuaColorParams.cpp:123 ColorParams.md render and sprites todo +function ColorParams SetFadeout repentogon/LuaInterfaces/LuaColorParams.cpp:127 ColorParams.md render and sprites todo +function ColorParams SetLifespan repentogon/LuaInterfaces/LuaColorParams.cpp:125 ColorParams.md render and sprites todo +function ColorParams SetPriority repentogon/LuaInterfaces/LuaColorParams.cpp:121 ColorParams.md render and sprites todo +function ColorParams SetShared repentogon/LuaInterfaces/LuaColorParams.cpp:129 ColorParams.md render and sprites todo +function Config CanRerollCollectible repentogon/LuaInterfaces/LuaItemConfig.cpp:317 ItemConfig.md items and pools todo +function Config GetItemsWithCustomTag repentogon/LuaInterfaces/LuaItemConfig.cpp:316 ItemConfig.md items and pools todo +function Config GetTaggedItems repentogon/LuaInterfaces/LuaItemConfig.cpp:315 ItemConfig.md items and pools todo +function Config IsValidTrinket ItemConfig.md items and pools todo docs only: no registration found +function Console GetCommandHistory repentogon/LuaInterfaces/LuaConsole.cpp:127 Console.md console and debug todo +function Console GetHistory repentogon/LuaInterfaces/LuaConsole.cpp:128 Console.md console and debug todo +function Console PopHistory repentogon/LuaInterfaces/LuaConsole.cpp:129 Console.md console and debug todo +function Console PrintError repentogon/LuaInterfaces/LuaConsole.cpp:126 Console.md console and debug todo +function Console PrintWarning repentogon/LuaInterfaces/LuaConsole.cpp:130 Console.md console and debug todo +function Console RegisterCommand repentogon/LuaInterfaces/LuaConsole.cpp:131 Console.md console and debug todo +function Console RegisterMacro repentogon/LuaInterfaces/LuaConsole.cpp:132 Console.md console and debug todo +function Context __pairs repentogon/LuaInterfaces/LuaRender.cpp:2402 misc todo +function ControllerSelectMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaControllerSelectMenu.cpp:37 hud and menus todo +function ControllerSelectMenu GetSprite repentogon/LuaInterfaces/Menus/LuaControllerSelectMenu.cpp:36 hud and menus todo +function ControllerSelectMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaControllerSelectMenu.cpp:38 hud and menus todo +function CostumeSpriteDesc CanOverwriteColor repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:110 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc GetBodyColor repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:109 player todo +function CostumeSpriteDesc GetDefaultSkinColor repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:106 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc GetHeadColor repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:108 player todo +function CostumeSpriteDesc GetItemConfig repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:100 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc GetPlayerType repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:112 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc GetPriority repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:101 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc GetSkinColor repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:107 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc GetSprite repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:99 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc HasOverlay repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:104 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc HasSkinAlt repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:105 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc IsFlying repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:103 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc IsItemAnimPlaying repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:102 CostumeSpriteDesc.md player todo +function CostumeSpriteDesc IsItemStateOnly repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:111 CostumeSpriteDesc.md player todo +function CustomChallengeMenu GetSelectedChallengeID repentogon/LuaInterfaces/Menus/LuaCustomChallengeMenu.cpp:37 hud and menus todo +function CustomChallengeMenu GetSprite repentogon/LuaInterfaces/Menus/LuaCustomChallengeMenu.cpp:36 hud and menus todo +function CustomChallengeMenu SetSelectedChallengeID repentogon/LuaInterfaces/Menus/LuaCustomChallengeMenu.cpp:38 hud and menus todo +function CutscenesMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaCutscenesMenu.cpp:37 hud and menus todo +function CutscenesMenu GetSprite repentogon/LuaInterfaces/Menus/LuaCutscenesMenu.cpp:36 hud and menus todo +function CutscenesMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaCutscenesMenu.cpp:38 hud and menus todo +function DailyChallenge GetChallengeParams repentogon/LuaInterfaces/LuaDailyChallenge.cpp:28 DailyChallenge.md game todo +function DailyChallengeMenu GetLeaderboardScoreMenuSprite repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:112 hud and menus todo +function DailyChallengeMenu GetLeaderboardSprite repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:111 hud and menus todo +function DailyChallengeMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:113 hud and menus todo +function DailyChallengeMenu GetSprite repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:110 hud and menus todo +function DailyChallengeMenu GetState repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:119 hud and menus todo +function DailyChallengeMenu GetTimeLeftHours repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:116 hud and menus todo +function DailyChallengeMenu GetTimeLeftMinutes repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:117 hud and menus todo +function DailyChallengeMenu GetTimeLeftSeconds repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:118 hud and menus todo +function DailyChallengeMenu IsLeaderboardVisible repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:115 hud and menus todo +function DailyChallengeMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:114 hud and menus todo +function DailyChallengeMenu SetState repentogon/LuaInterfaces/Menus/LuaDailyChallengeMenu.cpp:120 hud and menus todo +function Debug ForceUnload repentogon/LuaInterfaces/LuaDebug.cpp:106 Debug.md console and debug todo +function Debug GetSignature repentogon/LuaInterfaces/LuaDebug.cpp:104 Debug.md console and debug todo +function Debug ListLoadedFiles repentogon/LuaInterfaces/LuaDebug.cpp:105 Debug.md console and debug todo +function DebugRenderer Get repentogon/LuaInterfaces/LuaDebugRenderer.cpp:30 DebugRenderer.md render and sprites todo +function DestinationQuad ApplyMatrix repentogon/LuaInterfaces/LuaRender.cpp:772 render and sprites todo +function DestinationQuad Copy repentogon/LuaInterfaces/LuaRender.cpp:759 render and sprites todo +function DestinationQuad Flip repentogon/LuaInterfaces/LuaRender.cpp:773 render and sprites todo +function DestinationQuad GetBottomLeft repentogon/LuaInterfaces/LuaRender.cpp:762 render and sprites todo +function DestinationQuad GetBottomRight repentogon/LuaInterfaces/LuaRender.cpp:763 render and sprites todo +function DestinationQuad GetTopLeft repentogon/LuaInterfaces/LuaRender.cpp:760 render and sprites todo +function DestinationQuad GetTopRight repentogon/LuaInterfaces/LuaRender.cpp:761 render and sprites todo +function DestinationQuad NewFromBounds repentogon/LuaInterfaces/LuaRender.cpp:3236 render and sprites todo +function DestinationQuad NewFromRectangle repentogon/LuaInterfaces/LuaRender.cpp:3239 render and sprites todo +function DestinationQuad Rotate repentogon/LuaInterfaces/LuaRender.cpp:770 render and sprites todo +function DestinationQuad Scale repentogon/LuaInterfaces/LuaRender.cpp:769 render and sprites todo +function DestinationQuad SetBottomLeft repentogon/LuaInterfaces/LuaRender.cpp:766 render and sprites todo +function DestinationQuad SetBottomRight repentogon/LuaInterfaces/LuaRender.cpp:767 render and sprites todo +function DestinationQuad SetTopLeft repentogon/LuaInterfaces/LuaRender.cpp:764 render and sprites todo +function DestinationQuad SetTopRight repentogon/LuaInterfaces/LuaRender.cpp:765 render and sprites todo +function DestinationQuad Shear repentogon/LuaInterfaces/LuaRender.cpp:771 render and sprites todo +function DestinationQuad Translate repentogon/LuaInterfaces/LuaRender.cpp:768 render and sprites todo +function DestinationQuad __tostring repentogon/LuaInterfaces/LuaRender.cpp:774 render and sprites todo +function ElementsArray __len repentogon/LuaInterfaces/LuaRender.cpp:1807 misc todo +function EntitiesSaveStateVector Clear repentogon/LuaInterfaces/LuaEntitySaveState.cpp:480 EntitiesSaveStateVector.md entities todo +function EntitiesSaveStateVector Get repentogon/LuaInterfaces/LuaEntitySaveState.cpp:478 EntitiesSaveStateVector.md entities todo +function EntitiesSaveStateVector GetByType repentogon/LuaInterfaces/LuaEntitySaveState.cpp:479 EntitiesSaveStateVector.md entities todo +function EntitiesSaveStateVector __len repentogon/LuaInterfaces/LuaEntitySaveState.cpp:481 EntitiesSaveStateVector.md entities todo +function Entity AddBaited repentogon/LuaInterfaces/Entities/LuaEntity.cpp:873 Entity.md entities todo +function Entity AddBleeding repentogon/LuaInterfaces/Entities/LuaEntity.cpp:871 Entity.md entities todo +function Entity AddBrimstoneMark repentogon/LuaInterfaces/Entities/LuaEntity.cpp:875 Entity.md entities todo +function Entity AddIce repentogon/LuaInterfaces/Entities/LuaEntity.cpp:876 Entity.md entities todo +function Entity AddKnockback repentogon/LuaInterfaces/Entities/LuaEntity.cpp:877 Entity.md entities todo +function Entity AddMagnetized repentogon/LuaInterfaces/Entities/LuaEntity.cpp:872 Entity.md entities todo +function Entity AddWeakness repentogon/LuaInterfaces/Entities/LuaEntity.cpp:874 Entity.md entities todo +function Entity CanDevolve repentogon/LuaInterfaces/Entities/LuaEntity.cpp:957 Entity.md entities todo +function Entity ComputeStatusEffectDuration repentogon/LuaInterfaces/Entities/LuaEntity.cpp:881 Entity.md entities todo +function Entity CopyStatusEffects repentogon/LuaInterfaces/Entities/LuaEntity.cpp:882 Entity.md entities todo +function Entity ForceCollide repentogon/LuaInterfaces/Entities/LuaEntity.cpp:890 Entity.md entities todo +function Entity GetBaitedCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:934 Entity.md entities todo +function Entity GetBleedingCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:930 Entity.md entities todo +function Entity GetBossStatusEffectCooldown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:888 Entity.md entities todo +function Entity GetBrimstoneMarkCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:942 Entity.md entities todo +function Entity GetBurnCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:926 Entity.md entities todo +function Entity GetBurnDamage repentogon/LuaInterfaces/Entities/LuaEntity.cpp:950 entities todo +function Entity GetBurnDamageTimer repentogon/LuaInterfaces/Entities/LuaEntity.cpp:946 Entity.md entities todo +function Entity GetCharmedCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:918 Entity.md entities todo +function Entity GetCollisionCapsule repentogon/LuaInterfaces/LuaCapsule.cpp:118 Entity.md entities todo +function Entity GetColorParams repentogon/LuaInterfaces/Entities/LuaEntity.cpp:906 Entity.md entities todo +function Entity GetConfusionCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:920 Entity.md entities todo +function Entity GetDamageCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:908 Entity.md entities todo +function Entity GetDebugShape repentogon/LuaInterfaces/LuaShape.cpp:43 Entity.md entities todo +function Entity GetEntityConfigEntity repentogon/LuaInterfaces/LuaEntityConfig.cpp:920 Entity.md entities todo +function Entity GetFearCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:924 Entity.md entities todo +function Entity GetFireDamageCooldown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:910 Entity.md entities todo +function Entity GetFreezeCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:912 Entity.md entities todo +function Entity GetHitListIndex repentogon/LuaInterfaces/Entities/LuaEntity.cpp:897 Entity.md entities todo +function Entity GetIceCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:940 Entity.md entities todo +function Entity GetKnockbackCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:936 Entity.md entities todo +function Entity GetKnockbackDirection repentogon/LuaInterfaces/Entities/LuaEntity.cpp:952 Entity.md entities todo +function Entity GetMagnetizedCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:932 Entity.md entities todo +function Entity GetMidasFreezeCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:922 Entity.md entities todo +function Entity GetMinecart repentogon/LuaInterfaces/Entities/LuaEntity.cpp:894 Entity.md entities todo +function Entity GetNullCapsule repentogon/LuaInterfaces/LuaCapsule.cpp:117 Entity.md entities todo +function Entity GetNullOffset repentogon/LuaInterfaces/Entities/LuaEntity.cpp:884 Entity.md entities todo +function Entity GetPauseTime repentogon/LuaInterfaces/Entities/LuaEntity.cpp:898 Entity.md entities todo +function Entity GetPoisonCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:914 Entity.md entities todo +function Entity GetPoisonDamage repentogon/LuaInterfaces/Entities/LuaEntity.cpp:948 entities todo +function Entity GetPoisonDamageTimer repentogon/LuaInterfaces/Entities/LuaEntity.cpp:944 Entity.md entities todo +function Entity GetPosVel repentogon/LuaInterfaces/Entities/LuaEntity.cpp:887 Entity.md entities todo +function Entity GetPredictedTargetPosition repentogon/LuaInterfaces/Entities/LuaEntity.cpp:885 Entity.md entities todo +function Entity GetShadowSize repentogon/LuaInterfaces/Entities/LuaEntity.cpp:878 Entity.md entities todo +function Entity GetShrinkCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:928 Entity.md entities todo +function Entity GetSlowingCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:916 Entity.md entities todo +function Entity GetSpeedMultiplier repentogon/LuaInterfaces/Entities/LuaEntity.cpp:900 Entity.md entities todo +function Entity GetType repentogon/LuaInterfaces/Entities/LuaEntity.cpp:886 Entity.md entities todo +function Entity GetWaterClipFlags repentogon/LuaInterfaces/Entities/LuaEntity.cpp:954 Entity.md entities todo +function Entity GetWeaknessCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:938 Entity.md entities todo +function Entity GiveMinecart repentogon/LuaInterfaces/Entities/LuaEntity.cpp:893 Entity.md entities todo +function Entity IgnoreEffectFromFriendly repentogon/LuaInterfaces/Entities/LuaEntity.cpp:883 Entity.md entities todo +function Entity MakeBloodPoof repentogon/LuaInterfaces/Entities/LuaEntity.cpp:895 Entity.md entities todo +function Entity MakeGroundPoof repentogon/LuaInterfaces/Entities/LuaEntity.cpp:896 Entity.md entities todo +function Entity ResetWaterClipFlags repentogon/LuaInterfaces/Entities/LuaEntity.cpp:956 Entity.md entities todo +function Entity SetBaitedCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:935 Entity.md entities todo +function Entity SetBleedingCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:931 Entity.md entities todo +function Entity SetBossStatusEffectCooldown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:889 Entity.md entities todo +function Entity SetBrimstoneMarkCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:943 Entity.md entities todo +function Entity SetBurnCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:927 Entity.md entities todo +function Entity SetBurnDamage repentogon/LuaInterfaces/Entities/LuaEntity.cpp:951 entities todo +function Entity SetBurnDamageTimer repentogon/LuaInterfaces/Entities/LuaEntity.cpp:947 Entity.md entities todo +function Entity SetCharmedCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:919 Entity.md entities todo +function Entity SetColorParams repentogon/LuaInterfaces/Entities/LuaEntity.cpp:907 Entity.md entities todo +function Entity SetConfusionCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:921 Entity.md entities todo +function Entity SetDamageCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:909 Entity.md entities todo +function Entity SetDead repentogon/LuaInterfaces/Entities/LuaEntity.cpp:891 Entity.md entities todo +function Entity SetFearCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:925 Entity.md entities todo +function Entity SetFireDamageCooldown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:911 Entity.md entities todo +function Entity SetFreezeCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:913 Entity.md entities todo +function Entity SetIceCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:941 Entity.md entities todo +function Entity SetInvincible repentogon/LuaInterfaces/Entities/LuaEntity.cpp:892 Entity.md entities todo +function Entity SetKnockbackCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:937 Entity.md entities todo +function Entity SetKnockbackDirection repentogon/LuaInterfaces/Entities/LuaEntity.cpp:953 Entity.md entities todo +function Entity SetMagnetizedCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:933 Entity.md entities todo +function Entity SetMidasFreezeCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:923 Entity.md entities todo +function Entity SetPauseTime repentogon/LuaInterfaces/Entities/LuaEntity.cpp:899 Entity.md entities todo +function Entity SetPoisonCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:915 Entity.md entities todo +function Entity SetPoisonDamage repentogon/LuaInterfaces/Entities/LuaEntity.cpp:949 entities todo +function Entity SetPoisonDamageTimer repentogon/LuaInterfaces/Entities/LuaEntity.cpp:945 Entity.md entities todo +function Entity SetShadowSize repentogon/LuaInterfaces/Entities/LuaEntity.cpp:879 Entity.md entities todo +function Entity SetShrinkCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:929 Entity.md entities todo +function Entity SetSlowingCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:917 Entity.md entities todo +function Entity SetSpeedMultiplier repentogon/LuaInterfaces/Entities/LuaEntity.cpp:901 Entity.md entities todo +function Entity SetWaterClipFlags repentogon/LuaInterfaces/Entities/LuaEntity.cpp:955 Entity.md entities todo +function Entity SetWeaknessCountdown repentogon/LuaInterfaces/Entities/LuaEntity.cpp:939 Entity.md entities todo +function Entity SpawnBloodEffect repentogon/LuaInterfaces/Entities/LuaEntity.cpp:902 Entity.md entities todo +function Entity SpawnWaterImpactEffects repentogon/LuaInterfaces/Entities/LuaEntity.cpp:903 Entity.md entities todo +function Entity TeleportToRandomPosition repentogon/LuaInterfaces/Entities/LuaEntity.cpp:904 Entity.md entities todo +function Entity ToDelirium repentogon/LuaInterfaces/LuaDelirium.cpp:242 Entity.md entities todo +function Entity ToSlot repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:167 Entity.md entities todo +function Entity TryThrow repentogon/LuaInterfaces/Entities/LuaEntity.cpp:905 Entity.md entities todo +function EntityBomb GetCostumeLayerSprite repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:206 EntityBomb.md tear and weapons todo +function EntityBomb GetExplosionCountdown repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:199 EntityBomb.md tear and weapons todo +function EntityBomb GetFallAcceleration repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:202 EntityBomb.md tear and weapons todo +function EntityBomb GetFallSpeed repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:200 EntityBomb.md tear and weapons todo +function EntityBomb GetFallingSpeed repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:216 tear and weapons todo +function EntityBomb GetHeight repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:214 tear and weapons todo +function EntityBomb GetHitList repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:195 EntityBomb.md tear and weapons todo +function EntityBomb GetRocketAngle repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:207 EntityBomb.md tear and weapons todo +function EntityBomb GetRocketSpeed repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:209 EntityBomb.md tear and weapons todo +function EntityBomb GetScale repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:197 EntityBomb.md tear and weapons todo +function EntityBomb IsLoadingCostumes repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:204 EntityBomb.md tear and weapons todo +function EntityBomb IsPrismTouched repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:211 EntityBomb.md tear and weapons todo +function EntityBomb SetFallAcceleration repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:203 EntityBomb.md tear and weapons todo +function EntityBomb SetFallSpeed repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:201 EntityBomb.md tear and weapons todo +function EntityBomb SetFallingSpeed repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:217 tear and weapons todo +function EntityBomb SetHeight repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:215 tear and weapons todo +function EntityBomb SetLoadCostumes repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:205 EntityBomb.md tear and weapons todo +function EntityBomb SetPrismTouched repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:212 EntityBomb.md tear and weapons todo +function EntityBomb SetRocketAngle repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:208 EntityBomb.md tear and weapons todo +function EntityBomb SetRocketSpeed repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:210 EntityBomb.md tear and weapons todo +function EntityBomb SetScale repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:198 EntityBomb.md tear and weapons todo +function EntityBomb UpdateDirtColor repentogon/LuaInterfaces/Entities/LuaEntityBomb.cpp:196 EntityBomb.md tear and weapons todo +function EntityConfig GetBaby repentogon/LuaInterfaces/LuaEntityConfig.cpp:815 EntityConfig.md entities todo +function EntityConfig GetEntity repentogon/LuaInterfaces/LuaEntityConfig.cpp:812 EntityConfig.md entities todo +function EntityConfig GetMaxBabyID repentogon/LuaInterfaces/LuaEntityConfig.cpp:816 EntityConfig.md entities todo +function EntityConfig GetMaxPlayerType repentogon/LuaInterfaces/LuaEntityConfig.cpp:814 EntityConfig.md entities todo +function EntityConfig GetPlayer repentogon/LuaInterfaces/LuaEntityConfig.cpp:813 EntityConfig.md entities todo +function EntityConfigBaby GetAchievementID repentogon/LuaInterfaces/LuaEntityConfig.cpp:909 EntityConfigBaby.md player todo +function EntityConfigBaby GetID repentogon/LuaInterfaces/LuaEntityConfig.cpp:906 EntityConfigBaby.md player todo +function EntityConfigBaby GetName repentogon/LuaInterfaces/LuaEntityConfig.cpp:907 EntityConfigBaby.md player todo +function EntityConfigBaby GetSpritesheetPath repentogon/LuaInterfaces/LuaEntityConfig.cpp:908 EntityConfigBaby.md player todo +function EntityConfigEntity CanBeChampion repentogon/LuaInterfaces/LuaEntityConfig.cpp:841 EntityConfigEntity.md entities todo +function EntityConfigEntity CanBeRerolledInto repentogon/LuaInterfaces/LuaEntityConfig.cpp:847 EntityConfigEntity.md entities todo +function EntityConfigEntity CanShutDoors repentogon/LuaInterfaces/LuaEntityConfig.cpp:842 EntityConfigEntity.md entities todo +function EntityConfigEntity GetAnm2Path repentogon/LuaInterfaces/LuaEntityConfig.cpp:835 EntityConfigEntity.md entities todo +function EntityConfigEntity GetBaseHP repentogon/LuaInterfaces/LuaEntityConfig.cpp:833 EntityConfigEntity.md entities todo +function EntityConfigEntity GetBestiaryAnimation repentogon/LuaInterfaces/LuaEntityConfig.cpp:851 EntityConfigEntity.md entities todo +function EntityConfigEntity GetBestiaryAnm2Path repentogon/LuaInterfaces/LuaEntityConfig.cpp:850 EntityConfigEntity.md entities todo +function EntityConfigEntity GetBestiaryFloorAlt repentogon/LuaInterfaces/LuaEntityConfig.cpp:855 EntityConfigEntity.md entities todo +function EntityConfigEntity GetBestiaryOffset repentogon/LuaInterfaces/LuaEntityConfig.cpp:853 EntityConfigEntity.md entities todo +function EntityConfigEntity GetBestiaryOverlay repentogon/LuaInterfaces/LuaEntityConfig.cpp:852 EntityConfigEntity.md entities todo +function EntityConfigEntity GetBestiaryScale repentogon/LuaInterfaces/LuaEntityConfig.cpp:854 EntityConfigEntity.md entities todo +function EntityConfigEntity GetBossID repentogon/LuaInterfaces/LuaEntityConfig.cpp:827 EntityConfigEntity.md entities todo +function EntityConfigEntity GetCollisionDamage repentogon/LuaInterfaces/LuaEntityConfig.cpp:826 EntityConfigEntity.md entities todo +function EntityConfigEntity GetCollisionInterval repentogon/LuaInterfaces/LuaEntityConfig.cpp:848 EntityConfigEntity.md entities todo +function EntityConfigEntity GetCollisionRadius repentogon/LuaInterfaces/LuaEntityConfig.cpp:828 EntityConfigEntity.md entities todo +function EntityConfigEntity GetCollisionRadiusMultiplier repentogon/LuaInterfaces/LuaEntityConfig.cpp:829 EntityConfigEntity.md entities todo +function EntityConfigEntity GetCustomTags repentogon/LuaInterfaces/LuaEntityConfig.cpp:857 EntityConfigEntity.md entities todo +function EntityConfigEntity GetDevolvedEntity repentogon/LuaInterfaces/LuaEntityConfig.cpp:859 EntityConfigEntity.md entities todo +function EntityConfigEntity GetEntityTags repentogon/LuaInterfaces/LuaEntityConfig.cpp:837 EntityConfigEntity.md entities todo +function EntityConfigEntity GetFriction repentogon/LuaInterfaces/LuaEntityConfig.cpp:832 EntityConfigEntity.md entities todo +function EntityConfigEntity GetGibFlags repentogon/LuaInterfaces/LuaEntityConfig.cpp:844 EntityConfigEntity.md entities todo +function EntityConfigEntity GetGibsAmount repentogon/LuaInterfaces/LuaEntityConfig.cpp:843 EntityConfigEntity.md entities todo +function EntityConfigEntity GetGridCollisionPoints repentogon/LuaInterfaces/LuaEntityConfig.cpp:831 EntityConfigEntity.md entities todo +function EntityConfigEntity GetMass repentogon/LuaInterfaces/LuaEntityConfig.cpp:830 EntityConfigEntity.md entities todo +function EntityConfigEntity GetModName repentogon/LuaInterfaces/LuaEntityConfig.cpp:836 EntityConfigEntity.md entities todo +function EntityConfigEntity GetName repentogon/LuaInterfaces/LuaEntityConfig.cpp:825 EntityConfigEntity.md entities todo +function EntityConfigEntity GetPortraitID repentogon/LuaInterfaces/LuaEntityConfig.cpp:846 EntityConfigEntity.md entities todo +function EntityConfigEntity GetShadowSize repentogon/LuaInterfaces/LuaEntityConfig.cpp:839 EntityConfigEntity.md entities todo +function EntityConfigEntity GetShieldStrength repentogon/LuaInterfaces/LuaEntityConfig.cpp:849 EntityConfigEntity.md entities todo +function EntityConfigEntity GetStageHP repentogon/LuaInterfaces/LuaEntityConfig.cpp:834 EntityConfigEntity.md entities todo +function EntityConfigEntity GetSubType repentogon/LuaInterfaces/LuaEntityConfig.cpp:824 EntityConfigEntity.md entities todo +function EntityConfigEntity GetType repentogon/LuaInterfaces/LuaEntityConfig.cpp:822 EntityConfigEntity.md entities todo +function EntityConfigEntity GetVariant repentogon/LuaInterfaces/LuaEntityConfig.cpp:823 EntityConfigEntity.md entities todo +function EntityConfigEntity HasCustomTag repentogon/LuaInterfaces/LuaEntityConfig.cpp:858 EntityConfigEntity.md entities todo +function EntityConfigEntity HasEntityTags repentogon/LuaInterfaces/LuaEntityConfig.cpp:838 EntityConfigEntity.md entities todo +function EntityConfigEntity HasFloorAlts repentogon/LuaInterfaces/LuaEntityConfig.cpp:856 EntityConfigEntity.md entities todo +function EntityConfigEntity HasGibFlags repentogon/LuaInterfaces/LuaEntityConfig.cpp:845 EntityConfigEntity.md entities todo +function EntityConfigEntity IsBoss repentogon/LuaInterfaces/LuaEntityConfig.cpp:840 EntityConfigEntity.md entities todo +function EntityConfigPlayer CanShoot repentogon/LuaInterfaces/LuaEntityConfig.cpp:888 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetAchievementID repentogon/LuaInterfaces/LuaEntityConfig.cpp:889 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetBirthrightDescription repentogon/LuaInterfaces/LuaEntityConfig.cpp:890 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetBlackHearts repentogon/LuaInterfaces/LuaEntityConfig.cpp:878 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetBombs repentogon/LuaInterfaces/LuaEntityConfig.cpp:881 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetBrokenHearts repentogon/LuaInterfaces/LuaEntityConfig.cpp:879 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetCard repentogon/LuaInterfaces/LuaEntityConfig.cpp:883 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetCoins repentogon/LuaInterfaces/LuaEntityConfig.cpp:880 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetCollectibles repentogon/LuaInterfaces/LuaEntityConfig.cpp:886 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetCostumeID repentogon/LuaInterfaces/LuaEntityConfig.cpp:874 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetCostumeSuffix repentogon/LuaInterfaces/LuaEntityConfig.cpp:873 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetExtraPortraitPath repentogon/LuaInterfaces/LuaEntityConfig.cpp:872 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetKeys repentogon/LuaInterfaces/LuaEntityConfig.cpp:882 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetModdedControlsSprite repentogon/LuaInterfaces/LuaEntityConfig.cpp:895 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetModdedCoopMenuSprite repentogon/LuaInterfaces/LuaEntityConfig.cpp:894 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetModdedGameOverSprite repentogon/LuaInterfaces/LuaEntityConfig.cpp:893 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetModdedMenuBackgroundSprite repentogon/LuaInterfaces/LuaEntityConfig.cpp:891 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetModdedMenuPortraitSprite repentogon/LuaInterfaces/LuaEntityConfig.cpp:892 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetName repentogon/LuaInterfaces/LuaEntityConfig.cpp:868 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetNameImagePath repentogon/LuaInterfaces/LuaEntityConfig.cpp:870 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetPill repentogon/LuaInterfaces/LuaEntityConfig.cpp:884 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetPlayerType repentogon/LuaInterfaces/LuaEntityConfig.cpp:867 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetPocketActive repentogon/LuaInterfaces/LuaEntityConfig.cpp:887 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetPortraitPath repentogon/LuaInterfaces/LuaEntityConfig.cpp:871 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetRedHearts repentogon/LuaInterfaces/LuaEntityConfig.cpp:876 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetSkinColor repentogon/LuaInterfaces/LuaEntityConfig.cpp:875 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetSkinPath repentogon/LuaInterfaces/LuaEntityConfig.cpp:869 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetSoulHearts repentogon/LuaInterfaces/LuaEntityConfig.cpp:877 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetTaintedCounterpart repentogon/LuaInterfaces/LuaEntityConfig.cpp:897 EntityConfigPlayer.md player todo +function EntityConfigPlayer GetTrinket repentogon/LuaInterfaces/LuaEntityConfig.cpp:885 EntityConfigPlayer.md player todo +function EntityConfigPlayer IsHidden repentogon/LuaInterfaces/LuaEntityConfig.cpp:898 EntityConfigPlayer.md player todo +function EntityConfigPlayer IsTainted repentogon/LuaInterfaces/LuaEntityConfig.cpp:896 EntityConfigPlayer.md player todo +function EntityDelirium GetTeleportationTimer repentogon/LuaInterfaces/LuaDelirium.cpp:283 EntityDelirium.md npc todo +function EntityDelirium IsRedMode repentogon/LuaInterfaces/LuaDelirium.cpp:281 EntityDelirium.md npc todo +function EntityDelirium SetRedMode repentogon/LuaInterfaces/LuaDelirium.cpp:282 EntityDelirium.md npc todo +function EntityDelirium SetTeleportationTimer repentogon/LuaInterfaces/LuaDelirium.cpp:284 EntityDelirium.md npc todo +function EntityDelirium Transform repentogon/LuaInterfaces/LuaDelirium.cpp:280 EntityDelirium.md npc todo +function EntityDesc GetChampionId repentogon/LuaInterfaces/LuaEntityDesc.cpp:131 EntityDesc.md entities todo +function EntityDesc GetHealth repentogon/LuaInterfaces/LuaEntityDesc.cpp:133 EntityDesc.md entities todo +function EntityDesc GetMaxHealth repentogon/LuaInterfaces/LuaEntityDesc.cpp:135 EntityDesc.md entities todo +function EntityDesc GetSubtype repentogon/LuaInterfaces/LuaEntityDesc.cpp:129 EntityDesc.md entities todo +function EntityDesc GetType repentogon/LuaInterfaces/LuaEntityDesc.cpp:125 EntityDesc.md entities todo +function EntityDesc GetVariant repentogon/LuaInterfaces/LuaEntityDesc.cpp:127 EntityDesc.md entities todo +function EntityDesc IsPlayerControlled repentogon/LuaInterfaces/LuaEntityDesc.cpp:137 EntityDesc.md entities todo +function EntityDesc SetChampionId repentogon/LuaInterfaces/LuaEntityDesc.cpp:132 EntityDesc.md entities todo +function EntityDesc SetHealth repentogon/LuaInterfaces/LuaEntityDesc.cpp:134 EntityDesc.md entities todo +function EntityDesc SetMaxHealth repentogon/LuaInterfaces/LuaEntityDesc.cpp:136 EntityDesc.md entities todo +function EntityDesc SetPlayerControlled repentogon/LuaInterfaces/LuaEntityDesc.cpp:138 EntityDesc.md entities todo +function EntityDesc SetSubtype repentogon/LuaInterfaces/LuaEntityDesc.cpp:130 EntityDesc.md entities todo +function EntityDesc SetType repentogon/LuaInterfaces/LuaEntityDesc.cpp:126 EntityDesc.md entities todo +function EntityDesc SetVariant repentogon/LuaInterfaces/LuaEntityDesc.cpp:128 EntityDesc.md entities todo +function EntityEffect AddAquariusTearFlags repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:137 entities todo +function EntityEffect AddTearFlags repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:131 EntityEffect.md entities todo +function EntityEffect ClearAquariusTearFlags repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:138 entities todo +function EntityEffect ClearTearFlags repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:132 EntityEffect.md entities todo +function EntityEffect CreateLight repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:144 EntityEffect.md entities todo +function EntityEffect CreateLootPreview repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:145 EntityEffect.md entities todo +function EntityEffect GetAquariusTearFlags repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:135 entities todo +function EntityEffect GetGridEntityDesc repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:128 EntityEffect.md entities todo +function EntityEffect GetTearFlags repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:129 EntityEffect.md entities todo +function EntityEffect HasAquariusTearFlags repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:139 entities todo +function EntityEffect HasTearFlags repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:133 EntityEffect.md entities todo +function EntityEffect SetAquariusTearFlags repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:136 entities todo +function EntityEffect SetTearFlags repentogon/LuaInterfaces/Entities/LuaEntityEffect.cpp:130 EntityEffect.md entities todo +function EntityFamiliar CanBeDamagedByEnemies repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:281 EntityFamiliar.md familiar todo +function EntityFamiliar CanBeDamagedByLasers repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:283 EntityFamiliar.md familiar todo +function EntityFamiliar CanBeDamagedByProjectiles repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:282 EntityFamiliar.md familiar todo +function EntityFamiliar CanBlockProjectiles repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:284 EntityFamiliar.md familiar todo +function EntityFamiliar CanCharm repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:279 EntityFamiliar.md familiar todo +function EntityFamiliar GetActiveWeaponEntity repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:293 EntityFamiliar.md familiar todo +function EntityFamiliar GetActiveWeaponNumFired repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:294 EntityFamiliar.md familiar todo +function EntityFamiliar GetDirtColor repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:277 EntityFamiliar.md familiar todo +function EntityFamiliar GetFollowerPriority repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:271 EntityFamiliar.md familiar todo +function EntityFamiliar GetItemConfig repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:287 EntityFamiliar.md familiar todo +function EntityFamiliar GetMoveDelayNum repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:285 EntityFamiliar.md familiar todo +function EntityFamiliar GetMultiplier repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:289 EntityFamiliar.md familiar todo +function EntityFamiliar GetPathFinder repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:272 familiar todo +function EntityFamiliar GetPathfinder repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:273 EntityFamiliar.md familiar todo +function EntityFamiliar GetRandomWisp repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:292 EntityFamiliar.md familiar todo +function EntityFamiliar GetWeapon repentogon/LuaInterfaces/LuaWeapon.cpp:203 EntityFamiliar.md familiar todo +function EntityFamiliar InvalidateCachedMultiplier repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:288 EntityFamiliar.md familiar todo +function EntityFamiliar IsCharmed repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:280 EntityFamiliar.md familiar todo +function EntityFamiliar IsLilDelirium repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:290 EntityFamiliar.md familiar todo +function EntityFamiliar RemoveFromPlayer repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:278 EntityFamiliar.md familiar todo +function EntityFamiliar SetLilDelirium repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:291 EntityFamiliar.md familiar todo +function EntityFamiliar SetMoveDelayNum repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:286 EntityFamiliar.md familiar todo +function EntityFamiliar TriggerRoomClear repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:275 EntityFamiliar.md familiar todo +function EntityFamiliar TryAimAtMarkedTarget repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:274 EntityFamiliar.md familiar todo +function EntityFamiliar UpdateDirtColor repentogon/LuaInterfaces/Entities/LuaEntityFamiliar.cpp:276 EntityFamiliar.md familiar todo +function EntityKnife AddToHitList repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:180 tear and weapons todo +function EntityKnife FireSplitTear repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:176 EntityKnife.md tear and weapons todo +function EntityKnife GetHitList repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:167 EntityKnife.md tear and weapons todo +function EntityKnife GetHitboxParentKnife repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:177 EntityKnife.md tear and weapons todo +function EntityKnife GetIsSpinAttack repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:170 EntityKnife.md tear and weapons todo +function EntityKnife GetIsSwinging repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:168 EntityKnife.md tear and weapons todo +function EntityKnife InHitList repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:181 tear and weapons todo +function EntityKnife InitHomingPath repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:184 EntityKnife.md tear and weapons todo +function EntityKnife IsMultidimensionalTouched repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:172 EntityKnife.md tear and weapons todo +function EntityKnife IsPrismTouched repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:174 EntityKnife.md tear and weapons todo +function EntityKnife RemoveFromHitList repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:179 tear and weapons todo +function EntityKnife SetHitboxParentKnife repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:178 EntityKnife.md tear and weapons todo +function EntityKnife SetIsSpinAttack repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:171 EntityKnife.md tear and weapons todo +function EntityKnife SetIsSwinging repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:169 EntityKnife.md tear and weapons todo +function EntityKnife SetKnifeDistance repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:182 EntityKnife.md tear and weapons todo +function EntityKnife SetKnifeVelocity repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:183 EntityKnife.md tear and weapons todo +function EntityKnife SetMultidimensionalTouched repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:173 EntityKnife.md tear and weapons todo +function EntityKnife SetPrismTouched repentogon/LuaInterfaces/Entities/LuaEntityKnife.cpp:175 EntityKnife.md tear and weapons todo +function EntityLaser AddToHitList repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:262 tear and weapons todo +function EntityLaser FireSplitTear repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:260 EntityLaser.md tear and weapons todo +function EntityLaser GetDamageMultiplier repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:249 EntityLaser.md tear and weapons todo +function EntityLaser GetDisableFollowParent repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:243 EntityLaser.md tear and weapons todo +function EntityLaser GetHitList repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:245 EntityLaser.md tear and weapons todo +function EntityLaser GetNumChainedLasers repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:264 EntityLaser.md tear and weapons todo +function EntityLaser GetOneHit repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:246 EntityLaser.md tear and weapons todo +function EntityLaser GetScale repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:247 EntityLaser.md tear and weapons todo +function EntityLaser GetShrink repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:251 EntityLaser.md tear and weapons todo +function EntityLaser GetTimeout repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:253 EntityLaser.md tear and weapons todo +function EntityLaser InHitList repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:263 tear and weapons todo +function EntityLaser IsMultidimensionalTouched repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:257 EntityLaser.md tear and weapons todo +function EntityLaser IsPrismTouched repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:258 EntityLaser.md tear and weapons todo +function EntityLaser RecalculateSamplesNextUpdate repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:256 EntityLaser.md tear and weapons todo +function EntityLaser RemoveFromHitList repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:261 tear and weapons todo +function EntityLaser ResetSpriteScale repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:254 EntityLaser.md tear and weapons todo +function EntityLaser RotateToAngle repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:255 EntityLaser.md tear and weapons todo +function EntityLaser SetDamageMultiplier repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:250 EntityLaser.md tear and weapons todo +function EntityLaser SetDisableFollowParent repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:244 EntityLaser.md tear and weapons todo +function EntityLaser SetInitSound repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:266 EntityLaser.md tear and weapons todo +function EntityLaser SetNumChainedLasers repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:265 EntityLaser.md tear and weapons todo +function EntityLaser SetPrismTouched repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:259 EntityLaser.md tear and weapons todo +function EntityLaser SetScale repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:248 EntityLaser.md tear and weapons todo +function EntityLaser SetShrink repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:252 EntityLaser.md tear and weapons todo +function EntityLaser SetTimeout EntityLaser.md tear and weapons review docs only: no registration found +function EntityNPC ApplyTearflagEffects repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:458 EntityNPC.md npc todo +function EntityNPC ClearFlyingOverride repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:457 EntityNPC.md npc todo +function EntityNPC FireBossProjectilesEx repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:448 EntityNPC.md npc todo +function EntityNPC FireGridEntity repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:446 EntityNPC.md npc todo +function EntityNPC FireProjectilesEx repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:447 EntityNPC.md npc todo +function EntityNPC GetBossColorIdx EntityNPC.md npc review docs only: no registration found +function EntityNPC GetControllerId repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:443 EntityNPC.md npc todo +function EntityNPC GetDarkRedChampionRegenTimer repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:460 EntityNPC.md npc todo +function EntityNPC GetDirtColor repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:442 EntityNPC.md npc todo +function EntityNPC GetFireplaceLoot repentogon/LuaInterfaces/LuaLootList.cpp:111 EntityNPC.md npc todo +function EntityNPC GetFlyingOverride repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:455 EntityNPC.md npc todo +function EntityNPC GetHitList repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:449 EntityNPC.md npc todo +function EntityNPC GetLootList repentogon/LuaInterfaces/LuaLootList.cpp:108 npc todo +function EntityNPC GetPathfinder repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:464 EntityNPC.md npc todo +function EntityNPC GetShieldStrength repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:450 EntityNPC.md npc todo +function EntityNPC GetShopkeeperLoot repentogon/LuaInterfaces/LuaLootList.cpp:112 EntityNPC.md npc todo +function EntityNPC GetSirenPlayerEntity repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:461 EntityNPC.md npc todo +function EntityNPC IsBossColor repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:459 EntityNPC.md npc todo +function EntityNPC PlaySound repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:438 EntityNPC.md npc review +function EntityNPC ReplaceSpritesheet repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:463 EntityNPC.md npc todo +function EntityNPC SetControllerId repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:444 EntityNPC.md npc todo +function EntityNPC SetFlyingOverride repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:456 EntityNPC.md npc todo +function EntityNPC SetShieldStrength repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:451 EntityNPC.md npc todo +function EntityNPC ShootMaggotProjectile repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:482 EntityNPC.md npc todo +function EntityNPC SpawnBloodCloud repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:439 EntityNPC.md npc todo +function EntityNPC SpawnBloodSplash repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:440 EntityNPC.md npc todo +function EntityNPC ThrowLeech repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:485 EntityNPC.md npc todo +function EntityNPC ThrowMaggot repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:480 EntityNPC.md npc todo +function EntityNPC ThrowMaggotAtPos repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:481 EntityNPC.md npc todo +function EntityNPC ThrowRockSpider repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:484 EntityNPC.md npc todo +function EntityNPC ThrowStrider repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:483 EntityNPC.md npc todo +function EntityNPC TryForceTarget repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:445 EntityNPC.md npc todo +function EntityNPC TrySplit repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:462 EntityNPC.md npc todo +function EntityNPC TryThrow repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:454 EntityNPC.md npc todo +function EntityNPC UpdateDirtColor repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:441 EntityNPC.md npc todo +function EntityNPC UpdatePickupGhosts repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:465 npc todo +function EntityPickup AddCollectibleCycle repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:364 EntityPickup.md pickup todo +function EntityPickup CanJeraDuplicate repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:398 EntityPickup.md pickup todo +function EntityPickup CanReroll repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:365 EntityPickup.md pickup review +function EntityPickup ClearCanRerollOverride repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:397 EntityPickup.md pickup todo +function EntityPickup GetAlternatePedestal repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:381 EntityPickup.md pickup todo +function EntityPickup GetCanRerollOverride repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:395 EntityPickup.md pickup todo +function EntityPickup GetCollectibleCycle repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:382 EntityPickup.md pickup todo +function EntityPickup GetDropDelay repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:374 EntityPickup.md pickup todo +function EntityPickup GetFlipCollectible repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:391 EntityPickup.md pickup todo +function EntityPickup GetLootList repentogon/LuaInterfaces/LuaLootList.cpp:107 EntityPickup.md pickup todo +function EntityPickup GetMegaChestLeftCollectible repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:388 EntityPickup.md pickup todo +function EntityPickup GetMegaChestOtherCollectible repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:390 EntityPickup.md pickup todo +function EntityPickup GetMegaChestRightCollectible repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:389 EntityPickup.md pickup todo +function EntityPickup GetPickupGhost repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:385 EntityPickup.md pickup todo +function EntityPickup GetPriceSprite repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:380 EntityPickup.md pickup todo +function EntityPickup GetRandomPickupVelocity repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:376 EntityPickup.md pickup todo +function EntityPickup GetVarData repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:370 EntityPickup.md pickup todo +function EntityPickup HasFlipData repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:393 EntityPickup.md pickup todo +function EntityPickup InitFlipState repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:392 EntityPickup.md pickup todo +function EntityPickup IsBlind repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:366 EntityPickup.md pickup todo +function EntityPickup MakeShopItem repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:377 EntityPickup.md pickup todo +function EntityPickup ReloadGraphics repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:394 EntityPickup.md pickup todo +function EntityPickup RemoveCollectibleCycle repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:383 EntityPickup.md pickup todo +function EntityPickup SetAlternatePedestal repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:367 EntityPickup.md pickup todo +function EntityPickup SetCanRerollOverride repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:396 EntityPickup.md pickup todo +function EntityPickup SetDropDelay repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:375 EntityPickup.md pickup todo +function EntityPickup SetForceBlind repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:369 EntityPickup.md pickup todo +function EntityPickup SetNewOptionsPickupIndex repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:372 EntityPickup.md pickup todo +function EntityPickup SetVarData repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:371 EntityPickup.md pickup todo +function EntityPickup SetupCollectibleGraphics repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:405 EntityPickup.md pickup todo +function EntityPickup ShouldIgnoreModifiers repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:406 pickup todo +function EntityPickup TriggerTheresOptionsPickup repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:387 EntityPickup.md pickup todo +function EntityPickup TryFlip repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:379 EntityPickup.md pickup todo +function EntityPickup TryInitOptionCycle repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:373 EntityPickup.md pickup todo +function EntityPickup TryRemoveCollectible repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:368 EntityPickup.md pickup todo +function EntityPickup UpdatePickupGhosts repentogon/LuaInterfaces/Entities/LuaEntityPickup.cpp:386 EntityPickup.md pickup todo +function EntityPlayer AddActiveCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3572 EntityPlayer.md player todo +function EntityPlayer AddBoneOrbital repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3713 EntityPlayer.md player todo +function EntityPlayer AddCacheFlags repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3559 EntityPlayer.md player review +function EntityPlayer AddCandyHeartBonus repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3822 EntityPlayer.md player todo +function EntityPlayer AddCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3554 player review +function EntityPlayer AddCollectibleEffect repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3776 EntityPlayer.md player todo +function EntityPlayer AddCustomCacheTag repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3796 EntityPlayer.md player todo +function EntityPlayer AddInnateCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3651 EntityPlayer.md player todo +function EntityPlayer AddInnateTrinket repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3657 EntityPlayer.md player todo +function EntityPlayer AddLeprosy repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3715 EntityPlayer.md player todo +function EntityPlayer AddLocust repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3629 EntityPlayer.md player todo +function EntityPlayer AddNullCostume repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3794 player review +function EntityPlayer AddNullItemEffect repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3777 EntityPlayer.md player todo +function EntityPlayer AddSmeltedTrinket repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3697 EntityPlayer.md player todo +function EntityPlayer AddSoulLocketBonus repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3824 EntityPlayer.md player todo +function EntityPlayer AddTrinketEffect repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3784 EntityPlayer.md player todo +function EntityPlayer AddUrnSouls repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3717 EntityPlayer.md player todo +function EntityPlayer BlockCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3778 EntityPlayer.md player todo +function EntityPlayer BlockTrinket repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3781 EntityPlayer.md player todo +function EntityPlayer CalculateBagOfCraftingOutput repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3878 EntityPlayer.md player todo +function EntityPlayer CanAddCollectibleToInventory repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3718 EntityPlayer.md player todo +function EntityPlayer CanCrushRocks repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3719 EntityPlayer.md player todo +function EntityPlayer CanOverrideActiveItem repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3720 EntityPlayer.md player todo +function EntityPlayer CanUsePill repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3696 EntityPlayer.md player todo +function EntityPlayer CheckFamiliarEx repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3708 EntityPlayer.md player todo +function EntityPlayer ClearCollectibleAnim repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3706 EntityPlayer.md player todo +function EntityPlayer ClearDeadEyeCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3677 EntityPlayer.md player review +function EntityPlayer ClearInnateItemGroup repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3663 EntityPlayer.md player todo +function EntityPlayer ClearItemAnimCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3707 player todo +function EntityPlayer ClearQueueItem repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3772 EntityPlayer.md player todo +function EntityPlayer CreateAfterimage repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3834 EntityPlayer.md player todo +function EntityPlayer DischargeActiveItem repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3574 player review +function EntityPlayer DropCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3576 EntityPlayer.md player todo +function EntityPlayer DropCollectibleByHistoryIndex repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3577 EntityPlayer.md player todo +function EntityPlayer EnableWeaponType repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3611 EntityPlayer.md player todo +function EntityPlayer FireBrimstoneBall repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3722 EntityPlayer.md player todo +function EntityPlayer FullCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3573 player review +function EntityPlayer GetActionHoldDrop repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3805 EntityPlayer.md player todo +function EntityPlayer GetActiveCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3567 player review +function EntityPlayer GetActiveItem repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3566 player review +function EntityPlayer GetActiveItemDesc repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3586 EntityPlayer.md player todo +function EntityPlayer GetActiveItemSlot repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3587 EntityPlayer.md player todo +function EntityPlayer GetActiveMaxCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3563 EntityPlayer.md player todo +function EntityPlayer GetActiveMinUsableCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3564 EntityPlayer.md player todo +function EntityPlayer GetActiveSubCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3568 player review +function EntityPlayer GetActiveWeaponNumFired repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3685 EntityPlayer.md player todo +function EntityPlayer GetBagOfCraftingContent repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3589 EntityPlayer.md player todo +function EntityPlayer GetBagOfCraftingOutput repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3593 EntityPlayer.md player todo +function EntityPlayer GetBagOfCraftingOutputItemPool repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3594 player todo +function EntityPlayer GetBagOfCraftingSlot repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3592 EntityPlayer.md player todo +function EntityPlayer GetBatteryCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3569 player review +function EntityPlayer GetBladderCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3673 EntityPlayer.md player todo +function EntityPlayer GetBlinkLockTime repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3855 EntityPlayer.md player todo +function EntityPlayer GetBloodGushSprite repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3683 EntityPlayer.md player todo +function EntityPlayer GetBloodLustCounter repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3768 EntityPlayer.md player todo +function EntityPlayer GetBodyMoveDirection repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3723 EntityPlayer.md player todo +function EntityPlayer GetBodySprite repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3853 EntityPlayer.md player todo +function EntityPlayer GetBombPlaceDelay repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3770 EntityPlayer.md player todo +function EntityPlayer GetBombVariant repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3795 player review +function EntityPlayer GetCambionConceptionState repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3667 EntityPlayer.md player todo +function EntityPlayer GetCambionPregnancyLevel repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3670 EntityPlayer.md player todo +function EntityPlayer GetCandyHeartBonus repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3821 EntityPlayer.md player todo +function EntityPlayer GetCharmOfTheVampireKills repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3836 EntityPlayer.md player todo +function EntityPlayer GetCollectibleNum repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3553 EntityPlayer.md player review +function EntityPlayer GetCollectiblesList repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3645 EntityPlayer.md player todo +function EntityPlayer GetConceptionFamiliarFlags repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3671 EntityPlayer.md player todo +function EntityPlayer GetCostumeLayerMap repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3700 EntityPlayer.md player todo +function EntityPlayer GetCostumeSpriteDescs repentogon/LuaInterfaces/LuaCostumeSpriteDesc.cpp:96 EntityPlayer.md player todo +function EntityPlayer GetCustomCacheValue repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3797 EntityPlayer.md player todo +function EntityPlayer GetD8DamageModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3612 EntityPlayer.md player todo +function EntityPlayer GetD8FireDelayModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3618 EntityPlayer.md player todo +function EntityPlayer GetD8RangeModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3616 EntityPlayer.md player todo +function EntityPlayer GetD8SpeedModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3614 EntityPlayer.md player todo +function EntityPlayer GetDamageModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3601 EntityPlayer.md player todo +function EntityPlayer GetDeadEyeCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3581 EntityPlayer.md player todo +function EntityPlayer GetDeathAnimName repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3724 EntityPlayer.md player todo +function EntityPlayer GetDonateLuck repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3861 EntityPlayer.md player todo +function EntityPlayer GetEdenDamage repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3636 EntityPlayer.md player todo +function EntityPlayer GetEdenFireDelay repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3634 EntityPlayer.md player todo +function EntityPlayer GetEdenLuck repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3642 EntityPlayer.md player todo +function EntityPlayer GetEdenRange repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3638 EntityPlayer.md player todo +function EntityPlayer GetEdenShotSpeed repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3640 EntityPlayer.md player todo +function EntityPlayer GetEdenSpeed repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3632 EntityPlayer.md player todo +function EntityPlayer GetEnterPosition repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3725 EntityPlayer.md player todo +function EntityPlayer GetEntityConfigPlayer repentogon/LuaInterfaces/LuaEntityConfig.cpp:921 EntityPlayer.md player todo +function EntityPlayer GetEpiphoraCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3620 EntityPlayer.md player todo +function EntityPlayer GetErrorTrinketEffect repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3865 EntityPlayer.md player todo +function EntityPlayer GetEveSumptoriumCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3709 EntityPlayer.md player todo +function EntityPlayer GetFireDelayModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3599 EntityPlayer.md player todo +function EntityPlayer GetFlippedForm repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3688 EntityPlayer.md player todo +function EntityPlayer GetFocusEntity repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3727 EntityPlayer.md player todo +function EntityPlayer GetFootprintColor repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3728 EntityPlayer.md player todo +function EntityPlayer GetForgottenSwapFormCooldown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3807 EntityPlayer.md player todo +function EntityPlayer GetGlitchBabySubType repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3730 EntityPlayer.md player todo +function EntityPlayer GetGlyphOfBalanceDrop repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3731 EntityPlayer.md player todo +function EntityPlayer GetGnawedLeafTimer repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3766 EntityPlayer.md player todo +function EntityPlayer GetGreedsGulletHearts repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3732 EntityPlayer.md player todo +function EntityPlayer GetHallowedGroundCountdown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3790 EntityPlayer.md player todo +function EntityPlayer GetHeadDirectionLockTime repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3773 EntityPlayer.md player todo +function EntityPlayer GetHealthType repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3561 EntityPlayer.md player todo +function EntityPlayer GetHeldEntity repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3684 EntityPlayer.md player todo +function EntityPlayer GetHeldSprite repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3682 EntityPlayer.md player todo +function EntityPlayer GetHistory repentogon/LuaInterfaces/LuaHistory.cpp:89 EntityPlayer.md player todo +function EntityPlayer GetImExcitedSpeedupCountdown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3859 EntityPlayer.md player todo +function EntityPlayer GetImmaculateConceptionState repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3665 EntityPlayer.md player todo +function EntityPlayer GetInnateCollectibleCount repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3653 EntityPlayer.md player todo +function EntityPlayer GetInnateCollectibleGroup repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3655 EntityPlayer.md player todo +function EntityPlayer GetInnateTrinketCount repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3659 EntityPlayer.md player todo +function EntityPlayer GetInnateTrinketGroup repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3661 EntityPlayer.md player todo +function EntityPlayer GetInventoryCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3868 EntityPlayer.md player todo +function EntityPlayer GetInventoryHistoryIndex repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3867 EntityPlayer.md player todo +function EntityPlayer GetItemStateCooldown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3857 EntityPlayer.md player todo +function EntityPlayer GetKeepersSackBonus repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3764 EntityPlayer.md player todo +function EntityPlayer GetLaserColor repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3733 EntityPlayer.md player todo +function EntityPlayer GetLuckModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3606 EntityPlayer.md player todo +function EntityPlayer GetMaggyHealthDrainCooldown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3838 EntityPlayer.md player todo +function EntityPlayer GetMaggySwingCooldown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3693 EntityPlayer.md player todo +function EntityPlayer GetMarkedTarget repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3624 EntityPlayer.md player todo +function EntityPlayer GetMawOfTheVoidCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3849 EntityPlayer.md player todo +function EntityPlayer GetMaxBladderCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3675 EntityPlayer.md player todo +function EntityPlayer GetMaxBombs repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3802 EntityPlayer.md player todo +function EntityPlayer GetMaxCoins repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3800 EntityPlayer.md player todo +function EntityPlayer GetMaxInventorySize repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3866 EntityPlayer.md player todo +function EntityPlayer GetMaxKeys repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3801 EntityPlayer.md player todo +function EntityPlayer GetMaxPeeBurstCooldown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3622 EntityPlayer.md player todo +function EntityPlayer GetMaxPocketItems repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3712 EntityPlayer.md player review +function EntityPlayer GetMegaBlastDuration repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3584 EntityPlayer.md player todo +function EntityPlayer GetMetronomeCollectibleID repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3623 EntityPlayer.md player todo +function EntityPlayer GetMontezumaRevengeCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3851 EntityPlayer.md player todo +function EntityPlayer GetMovingBoxContents repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3596 EntityPlayer.md player todo +function EntityPlayer GetMultiShotParams repentogon/LuaInterfaces/LuaMultiShotParams.cpp:211 EntityPlayer.md player review +function EntityPlayer GetMultiShotPositionVelocity repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3555 EntityPlayer.md player review +function EntityPlayer GetNextUrethraBlockFrame repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3680 EntityPlayer.md player todo +function EntityPlayer GetPeeBurstCooldown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3621 EntityPlayer.md player todo +function EntityPlayer GetPlanCKillCountdown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3845 EntityPlayer.md player todo +function EntityPlayer GetPlayerFormCounter repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3711 EntityPlayer.md player todo +function EntityPlayer GetPlayerHUD repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3825 EntityPlayer.md player todo +function EntityPlayer GetPlayerIndex repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3785 EntityPlayer.md player todo +function EntityPlayer GetPocketItem repentogon/LuaInterfaces/LuaPocketItem.cpp:27 EntityPlayer.md player review +function EntityPlayer GetPonyCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3630 EntityPlayer.md player todo +function EntityPlayer GetPotatoPeelerUses repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3847 EntityPlayer.md player todo +function EntityPlayer GetPurityState repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3647 EntityPlayer.md player todo +function EntityPlayer GetRUAWizardTimer repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3863 EntityPlayer.md player todo +function EntityPlayer GetRedStewBonusDuration repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3608 EntityPlayer.md player todo +function EntityPlayer GetRevelationCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3691 EntityPlayer.md player todo +function EntityPlayer GetRockBottomDamage repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3813 EntityPlayer.md player todo +function EntityPlayer GetRockBottomLuck repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3819 EntityPlayer.md player todo +function EntityPlayer GetRockBottomMaxFireDelay repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3811 EntityPlayer.md player todo +function EntityPlayer GetRockBottomMoveSpeed repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3809 EntityPlayer.md player todo +function EntityPlayer GetRockBottomShotSpeed repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3817 EntityPlayer.md player todo +function EntityPlayer GetRockBottomTearRange repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3815 EntityPlayer.md player todo +function EntityPlayer GetShotSpeedModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3604 EntityPlayer.md player todo +function EntityPlayer GetSmeltedTrinketDesc repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3699 EntityPlayer.md player todo +function EntityPlayer GetSmeltedTrinkets repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3698 EntityPlayer.md player todo +function EntityPlayer GetSoulLocketBonus repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3823 EntityPlayer.md player todo +function EntityPlayer GetSpecialGridCollision repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3737 EntityPlayer.md player todo +function EntityPlayer GetSpeedModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3597 EntityPlayer.md player todo +function EntityPlayer GetSpoofedCollectiblesList repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3786 EntityPlayer.md player todo +function EntityPlayer GetStatMultiplier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3799 EntityPlayer.md player todo +function EntityPlayer GetSuplexAimCountdown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3828 EntityPlayer.md player todo +function EntityPlayer GetSuplexLandPosition repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3832 EntityPlayer.md player todo +function EntityPlayer GetSuplexState repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3826 EntityPlayer.md player todo +function EntityPlayer GetSuplexTargetPosition repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3830 EntityPlayer.md player todo +function EntityPlayer GetTearDisplacement repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3803 EntityPlayer.md player todo +function EntityPlayer GetTearRangeModifier EntityPlayer.md player review docs only: no registration found +function EntityPlayer GetTearsCap repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3798 EntityPlayer.md player todo +function EntityPlayer GetTotalActiveCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3562 EntityPlayer.md player todo +function EntityPlayer GetTrinketMultiplier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3789 player review +function EntityPlayer GetUrnSouls repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3716 EntityPlayer.md player todo +function EntityPlayer GetVoidedCollectiblesList repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3650 EntityPlayer.md player todo +function EntityPlayer GetWeapon repentogon/LuaInterfaces/LuaWeapon.cpp:202 EntityPlayer.md player todo +function EntityPlayer GetWeaponModifiers repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3610 EntityPlayer.md player todo +function EntityPlayer GetWildCardItem repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3626 EntityPlayer.md player todo +function EntityPlayer GetWildCardItemType repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3627 EntityPlayer.md player todo +function EntityPlayer GetWispCollectiblesList repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3664 EntityPlayer.md player todo +function EntityPlayer HasCamoEffect repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3844 EntityPlayer.md player todo +function EntityPlayer HasChanceRevive repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3792 EntityPlayer.md player todo +function EntityPlayer HasCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3552 EntityPlayer.md player review +function EntityPlayer HasForcedCamoEffect repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3842 EntityPlayer.md player todo +function EntityPlayer HasGoldenTrinket repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3787 EntityPlayer.md player todo +function EntityPlayer HasInstantDeathCurse repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3738 EntityPlayer.md player todo +function EntityPlayer HasInvincibility repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3835 player review +function EntityPlayer HasPoisonImmunity repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3739 EntityPlayer.md player todo +function EntityPlayer HasTrinket repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3788 player review +function EntityPlayer IncrementPlayerFormCounter repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3578 EntityPlayer.md player todo +function EntityPlayer InitPostLevelInitStats repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3557 EntityPlayer.md player todo +function EntityPlayer InitTwin repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3556 EntityPlayer.md player todo +function EntityPlayer IsCollectibleAnimFinished repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3705 EntityPlayer.md player todo +function EntityPlayer IsCollectibleBlocked repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3780 EntityPlayer.md player todo +function EntityPlayer IsCollectibleCostumeVisible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3702 EntityPlayer.md player todo +function EntityPlayer IsEntityValidTarget repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3740 EntityPlayer.md player todo +function EntityPlayer IsFootstepFrame repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3741 EntityPlayer.md player todo +function EntityPlayer IsHeadless repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3742 EntityPlayer.md player todo +function EntityPlayer IsHologram repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3743 EntityPlayer.md player todo +function EntityPlayer IsInvisible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3744 EntityPlayer.md player todo +function EntityPlayer IsItemCostumeVisible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3701 EntityPlayer.md player todo +function EntityPlayer IsLocalPlayer repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3625 EntityPlayer.md player todo +function EntityPlayer IsNullItemCostumeVisible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3703 EntityPlayer.md player todo +function EntityPlayer IsPacifist repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3745 player todo +function EntityPlayer IsPostLevelInitFinished repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3840 EntityPlayer.md player todo +function EntityPlayer IsTrinketBlocked repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3783 EntityPlayer.md player todo +function EntityPlayer IsUrethraBlocked repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3678 EntityPlayer.md player todo +function EntityPlayer MorphToCoopGhost repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3746 EntityPlayer.md player todo +function EntityPlayer NeedsCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3570 player review +function EntityPlayer PlayCollectibleAnim repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3704 EntityPlayer.md player todo +function EntityPlayer PlayDelayedSFX repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3695 EntityPlayer.md player todo +function EntityPlayer PlayItemNullAnimation repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3854 EntityPlayer.md player todo +function EntityPlayer RemoveCollectibleByHistoryIndex repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3582 EntityPlayer.md player todo +function EntityPlayer RemoveInnateCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3652 EntityPlayer.md player todo +function EntityPlayer RemoveInnateTrinket repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3658 EntityPlayer.md player todo +function EntityPlayer RemovePocketItem repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3747 EntityPlayer.md player todo +function EntityPlayer RemovePoopSpell repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3687 EntityPlayer.md player todo +function EntityPlayer RerollAllCollectibles repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3748 EntityPlayer.md player todo +function EntityPlayer ResetPlayer repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3749 EntityPlayer.md player todo +function EntityPlayer ReviveCoopGhost repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3750 EntityPlayer.md player todo +function EntityPlayer SalvageCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3751 EntityPlayer.md player todo +function EntityPlayer SetActionHoldDrop repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3806 EntityPlayer.md player todo +function EntityPlayer SetActiveCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3571 player review +function EntityPlayer SetActiveVarData repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3565 EntityPlayer.md player todo +function EntityPlayer SetBagOfCraftingContent repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3590 EntityPlayer.md player todo +function EntityPlayer SetBagOfCraftingOutput repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3595 EntityPlayer.md player todo +function EntityPlayer SetBagOfCraftingSlot repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3591 EntityPlayer.md player todo +function EntityPlayer SetBlackHeart repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3793 EntityPlayer.md player todo +function EntityPlayer SetBladderCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3674 EntityPlayer.md player todo +function EntityPlayer SetBlinkLockTime repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3856 EntityPlayer.md player todo +function EntityPlayer SetBloodLustCounter repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3769 EntityPlayer.md player todo +function EntityPlayer SetBombPlaceDelay repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3771 EntityPlayer.md player todo +function EntityPlayer SetCambionConceptionState repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3668 EntityPlayer.md player todo +function EntityPlayer SetCanShoot repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3580 EntityPlayer.md player todo +function EntityPlayer SetCharmOfTheVampireKills repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3837 EntityPlayer.md player todo +function EntityPlayer SetConceptionFamiliarFlags repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3672 EntityPlayer.md player todo +function EntityPlayer SetControllerIndex repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3752 EntityPlayer.md player todo +function EntityPlayer SetD8DamageModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3613 EntityPlayer.md player todo +function EntityPlayer SetD8FireDelayModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3619 EntityPlayer.md player todo +function EntityPlayer SetD8RangeModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3617 EntityPlayer.md player todo +function EntityPlayer SetD8SpeedModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3615 EntityPlayer.md player todo +function EntityPlayer SetDamageModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3602 EntityPlayer.md player todo +function EntityPlayer SetDonateLuck repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3862 EntityPlayer.md player todo +function EntityPlayer SetEdenDamage repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3637 EntityPlayer.md player todo +function EntityPlayer SetEdenFireDelay repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3635 EntityPlayer.md player todo +function EntityPlayer SetEdenLuck repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3643 EntityPlayer.md player todo +function EntityPlayer SetEdenRange repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3639 EntityPlayer.md player todo +function EntityPlayer SetEdenShotSpeed repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3641 EntityPlayer.md player todo +function EntityPlayer SetEdenSpeed repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3633 EntityPlayer.md player todo +function EntityPlayer SetEveSumptoriumCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3710 EntityPlayer.md player todo +function EntityPlayer SetFireDelayModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3600 EntityPlayer.md player todo +function EntityPlayer SetFootprintColor repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3729 EntityPlayer.md player todo +function EntityPlayer SetForceCamoEffect repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3843 EntityPlayer.md player todo +function EntityPlayer SetForgottenSwapFormCooldown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3808 EntityPlayer.md player todo +function EntityPlayer SetGnawedLeafTimer repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3767 EntityPlayer.md player todo +function EntityPlayer SetHallowedGroundCountdown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3791 EntityPlayer.md player todo +function EntityPlayer SetHeadDirection repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3775 EntityPlayer.md player todo +function EntityPlayer SetHeadDirectionLockTime repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3774 EntityPlayer.md player todo +function EntityPlayer SetImExcitedSpeedupCountdown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3860 EntityPlayer.md player todo +function EntityPlayer SetImmaculateConceptionState repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3666 EntityPlayer.md player todo +function EntityPlayer SetInnateCollectibleCount repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3654 EntityPlayer.md player todo +function EntityPlayer SetInnateCollectibleGroup repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3656 EntityPlayer.md player todo +function EntityPlayer SetInnateTrinketCount repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3660 EntityPlayer.md player todo +function EntityPlayer SetInnateTrinketGroup repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3662 EntityPlayer.md player todo +function EntityPlayer SetItemState repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3558 EntityPlayer.md player todo +function EntityPlayer SetItemStateCooldown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3858 EntityPlayer.md player todo +function EntityPlayer SetKeepersSackBonus repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3765 EntityPlayer.md player todo +function EntityPlayer SetLaserColor repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3734 EntityPlayer.md player todo +function EntityPlayer SetLuckModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3607 EntityPlayer.md player todo +function EntityPlayer SetMaggyHealthDrainCooldown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3839 EntityPlayer.md player todo +function EntityPlayer SetMaggySwingCooldown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3694 EntityPlayer.md player todo +function EntityPlayer SetMawOfTheVoidCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3850 EntityPlayer.md player todo +function EntityPlayer SetMaxBladderCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3676 EntityPlayer.md player todo +function EntityPlayer SetMegaBlastDuration repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3585 EntityPlayer.md player todo +function EntityPlayer SetMontezumaRevengeCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3852 EntityPlayer.md player todo +function EntityPlayer SetNextUrethraBlockFrame repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3681 EntityPlayer.md player todo +function EntityPlayer SetPlanCKillCountdown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3846 EntityPlayer.md player todo +function EntityPlayer SetPocketActiveItem repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3575 player review +function EntityPlayer SetPonyCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3631 EntityPlayer.md player todo +function EntityPlayer SetPoopSpell repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3686 EntityPlayer.md player todo +function EntityPlayer SetPotatoPeelerUses repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3848 EntityPlayer.md player todo +function EntityPlayer SetPurityState repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3648 EntityPlayer.md player todo +function EntityPlayer SetRUAWizardTimer repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3864 EntityPlayer.md player todo +function EntityPlayer SetRedStewBonusDuration repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3609 EntityPlayer.md player todo +function EntityPlayer SetRevelationCharge repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3692 EntityPlayer.md player todo +function EntityPlayer SetRockBottomDamage repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3814 EntityPlayer.md player todo +function EntityPlayer SetRockBottomLuck repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3820 EntityPlayer.md player todo +function EntityPlayer SetRockBottomMaxFireDelay repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3812 EntityPlayer.md player todo +function EntityPlayer SetRockBottomMoveSpeed repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3810 EntityPlayer.md player todo +function EntityPlayer SetRockBottomShotSpeed repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3818 EntityPlayer.md player todo +function EntityPlayer SetRockBottomTearRange repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3816 EntityPlayer.md player todo +function EntityPlayer SetShotSpeedModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3605 EntityPlayer.md player todo +function EntityPlayer SetSpeedModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3598 EntityPlayer.md player todo +function EntityPlayer SetSuplexAimCountdown repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3829 EntityPlayer.md player todo +function EntityPlayer SetSuplexLandPosition repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3833 EntityPlayer.md player todo +function EntityPlayer SetSuplexState repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3827 EntityPlayer.md player todo +function EntityPlayer SetSuplexTargetPosition repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3831 EntityPlayer.md player todo +function EntityPlayer SetTearDisplacement repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3804 EntityPlayer.md player todo +function EntityPlayer SetTearPoisonDamage repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3649 EntityPlayer.md player todo +function EntityPlayer SetTearRangeModifier repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3603 EntityPlayer.md player todo +function EntityPlayer SetUrethraBlock repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3679 EntityPlayer.md player todo +function EntityPlayer SetWeapon repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3628 EntityPlayer.md player todo +function EntityPlayer ShootBlueCandle repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3753 EntityPlayer.md player todo +function EntityPlayer ShootRedCandle repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3560 EntityPlayer.md player review +function EntityPlayer ShuffleCostumes repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3646 EntityPlayer.md player todo +function EntityPlayer SpawnAquariusCreep repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3690 EntityPlayer.md player todo +function EntityPlayer SpawnClot repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3754 EntityPlayer.md player todo +function EntityPlayer SpawnSaturnusTears repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3755 EntityPlayer.md player todo +function EntityPlayer SwapForgottenForm repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3689 EntityPlayer.md player todo +function EntityPlayer SyncConsumableCounts repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3756 EntityPlayer.md player todo +function EntityPlayer Teleport repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3583 EntityPlayer.md player todo +function EntityPlayer TriggerRoomClear repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3644 EntityPlayer.md player todo +function EntityPlayer TryAddToBagOfCrafting repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3757 EntityPlayer.md player todo +function EntityPlayer TryDecreaseGlowingHourglassUses repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3758 EntityPlayer.md player todo +function EntityPlayer TryFakeDeath repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3588 EntityPlayer.md player todo +function EntityPlayer TryForgottenThrow repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3759 EntityPlayer.md player todo +function EntityPlayer TryPreventDeath repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3579 EntityPlayer.md player todo +function EntityPlayer TryRemoveSmeltedTrinket repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3760 EntityPlayer.md player todo +function EntityPlayer UnblockCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3779 EntityPlayer.md player todo +function EntityPlayer UnblockTrinket repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3782 EntityPlayer.md player todo +function EntityPlayer UpdateIsaacPregnancy repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3669 EntityPlayer.md player todo +function EntityPlayer UseActiveItem repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3841 EntityPlayer.md player review +function EntityPlayer VoidHasCollectible repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3762 EntityPlayer.md player todo +function EntityProjectile Deflect repentogon/LuaInterfaces/Entities/LuaEntityProjectile.cpp:19 EntityProjectile.md tear and weapons todo +function EntitySaveState GetB1 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:389 EntitiesSaveState.md entities todo +function EntitySaveState GetB2 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:391 EntitiesSaveState.md entities todo +function EntitySaveState GetDropSeed repentogon/LuaInterfaces/LuaEntitySaveState.cpp:400 EntitiesSaveState.md entities todo +function EntitySaveState GetF1 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:403 EntitiesSaveState.md entities todo +function EntitySaveState GetF2 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:405 EntitiesSaveState.md entities todo +function EntitySaveState GetGridSpawnIdx repentogon/LuaInterfaces/LuaEntitySaveState.cpp:387 EntitiesSaveState.md entities todo +function EntitySaveState GetI1 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:377 EntitiesSaveState.md entities todo +function EntitySaveState GetI2 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:379 EntitiesSaveState.md entities todo +function EntitySaveState GetI3 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:381 EntitiesSaveState.md entities todo +function EntitySaveState GetI4 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:383 EntitiesSaveState.md entities todo +function EntitySaveState GetI5 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:385 EntitiesSaveState.md entities todo +function EntitySaveState GetI6 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:393 EntitiesSaveState.md entities todo +function EntitySaveState GetI7 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:397 EntitiesSaveState.md entities todo +function EntitySaveState GetI8 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:407 EntitiesSaveState.md entities todo +function EntitySaveState GetInitSeed repentogon/LuaInterfaces/LuaEntitySaveState.cpp:399 EntitiesSaveState.md entities todo +function EntitySaveState GetPos repentogon/LuaInterfaces/LuaEntitySaveState.cpp:395 EntitiesSaveState.md entities todo +function EntitySaveState GetSpawnerType repentogon/LuaInterfaces/LuaEntitySaveState.cpp:401 EntitiesSaveState.md entities todo +function EntitySaveState GetSpawnerVariant repentogon/LuaInterfaces/LuaEntitySaveState.cpp:402 EntitiesSaveState.md entities todo +function EntitySaveState GetSubType repentogon/LuaInterfaces/LuaEntitySaveState.cpp:375 EntitiesSaveState.md entities todo +function EntitySaveState GetType repentogon/LuaInterfaces/LuaEntitySaveState.cpp:371 EntitiesSaveState.md entities todo +function EntitySaveState GetU1 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:409 EntitiesSaveState.md entities todo +function EntitySaveState GetVariant repentogon/LuaInterfaces/LuaEntitySaveState.cpp:373 EntitiesSaveState.md entities todo +function EntitySaveState SetB1 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:390 EntitiesSaveState.md entities todo +function EntitySaveState SetB2 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:392 EntitiesSaveState.md entities todo +function EntitySaveState SetF1 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:404 EntitiesSaveState.md entities todo +function EntitySaveState SetF2 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:406 EntitiesSaveState.md entities todo +function EntitySaveState SetI1 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:378 EntitiesSaveState.md entities todo +function EntitySaveState SetI2 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:380 EntitiesSaveState.md entities todo +function EntitySaveState SetI3 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:382 EntitiesSaveState.md entities todo +function EntitySaveState SetI4 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:384 EntitiesSaveState.md entities todo +function EntitySaveState SetI5 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:386 EntitiesSaveState.md entities todo +function EntitySaveState SetI6 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:394 EntitiesSaveState.md entities todo +function EntitySaveState SetI7 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:398 EntitiesSaveState.md entities todo +function EntitySaveState SetI8 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:408 EntitiesSaveState.md entities todo +function EntitySaveState SetPos repentogon/LuaInterfaces/LuaEntitySaveState.cpp:396 EntitiesSaveState.md entities todo +function EntitySaveState SetSubType repentogon/LuaInterfaces/LuaEntitySaveState.cpp:376 EntitiesSaveState.md entities todo +function EntitySaveState SetType repentogon/LuaInterfaces/LuaEntitySaveState.cpp:372 EntitiesSaveState.md entities todo +function EntitySaveState SetU1 repentogon/LuaInterfaces/LuaEntitySaveState.cpp:410 EntitiesSaveState.md entities todo +function EntitySaveState SetVariant repentogon/LuaInterfaces/LuaEntitySaveState.cpp:374 EntitiesSaveState.md entities todo +function EntitySaveStateManagement DeleteData repentogon/SaveStateManagement/EntitySaveStateManagement.cpp:3479 misc todo +function EntitySaveStateManagement GetEntitySaveStateId repentogon/SaveStateManagement/EntitySaveStateManagement.cpp:3476 persistent data and saves todo +function EntitySaveStateManagement LoadData repentogon/SaveStateManagement/EntitySaveStateManagement.cpp:3478 misc todo +function EntitySaveStateManagement SaveData repentogon/SaveStateManagement/EntitySaveStateManagement.cpp:3477 persistent data and saves todo +function EntitySaveStateManager GetEntityData repentogon/resources/scripts/main_ex.lua:2344 EntitySaveStateManager.md entities done defined in Lua +function EntitySaveStateManager GetEntitySaveStateData repentogon/resources/scripts/main_ex.lua:2345 EntitySaveStateManager.md entities done defined in Lua +function EntitySaveStateManager TryGetEntityData repentogon/resources/scripts/main_ex.lua:2346 EntitySaveStateManager.md entities done defined in Lua +function EntitySaveStateManager TryGetEntitySaveStateData repentogon/resources/scripts/main_ex.lua:2347 EntitySaveStateManager.md entities done defined in Lua +function EntitySlot CreateDropsFromExplosion repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:207 EntitySlot.md pickup todo +function EntitySlot GetDonationValue repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:218 EntitySlot.md pickup todo +function EntitySlot GetPrizeCollectible repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:208 EntitySlot.md pickup todo +function EntitySlot GetPrizeSprite repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:226 EntitySlot.md pickup todo +function EntitySlot GetPrizeType repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:214 EntitySlot.md pickup todo +function EntitySlot GetShellGameAnimationIndex repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:216 EntitySlot.md pickup todo +function EntitySlot GetState repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:212 EntitySlot.md pickup todo +function EntitySlot GetTimeout repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:222 EntitySlot.md pickup todo +function EntitySlot GetTouch repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:224 EntitySlot.md pickup todo +function EntitySlot GetTriggerTimerNum repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:220 EntitySlot.md pickup todo +function EntitySlot RandomCoinJamAnim repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:210 EntitySlot.md pickup todo +function EntitySlot SetDonationValue repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:219 EntitySlot.md pickup todo +function EntitySlot SetPrizeCollectible repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:209 EntitySlot.md pickup todo +function EntitySlot SetPrizeType repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:215 EntitySlot.md pickup todo +function EntitySlot SetShellGameAnimationIndex repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:217 EntitySlot.md pickup todo +function EntitySlot SetState repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:213 EntitySlot.md pickup todo +function EntitySlot SetTimeout repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:223 EntitySlot.md pickup todo +function EntitySlot SetTouch repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:225 EntitySlot.md pickup todo +function EntitySlot SetTriggerTimerNum repentogon/LuaInterfaces/Entities/LuaEntitySlot.cpp:221 EntitySlot.md pickup todo +function EntityTear AddToHitList repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:176 tear and weapons todo +function EntityTear ClearHitList repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:173 EntityTear.md tear and weapons todo +function EntityTear FireSplitTear repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:174 EntityTear.md tear and weapons todo +function EntityTear GetDeadEyeIntensity repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:162 EntityTear.md tear and weapons todo +function EntityTear GetDeadEyeSprite repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:166 EntityTear.md tear and weapons todo +function EntityTear GetHitList repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:172 EntityTear.md tear and weapons todo +function EntityTear GetTearEffectSprite repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:165 EntityTear.md tear and weapons todo +function EntityTear GetTearHaloSprite repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:164 EntityTear.md tear and weapons todo +function EntityTear InHitList repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:177 tear and weapons todo +function EntityTear IsMultidimensionalTouched repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:168 EntityTear.md tear and weapons todo +function EntityTear IsPrismTouched repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:170 EntityTear.md tear and weapons todo +function EntityTear MakeMultidimensionalCopy repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:163 EntityTear.md tear and weapons todo +function EntityTear RemoveFromHitList repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:175 tear and weapons todo +function EntityTear ResetSpriteScale repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:167 EntityTear.md tear and weapons review +function EntityTear SetInitSound repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:178 EntityTear.md tear and weapons todo +function EntityTear SetMultidimensionalTouched repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:169 EntityTear.md tear and weapons todo +function EntityTear SetPrismTouched repentogon/LuaInterfaces/Entities/LuaEntityTear.cpp:171 EntityTear.md tear and weapons todo +function FXLayers AddPoopFx repentogon/LuaInterfaces/LuaFXLayers.cpp:28 FXLayers.md level and room todo +function Font DrawString Font.md render and sprites review docs only: vanilla changed through a hook +function Font DrawStringScaled Font.md render and sprites todo docs only: vanilla changed through a hook +function Font DrawStringScaledUTF8 Font.md render and sprites todo docs only: vanilla changed through a hook +function Font DrawStringUTF8 Font.md render and sprites todo docs only: vanilla changed through a hook +function Font GetStringWidth Font.md render and sprites review docs only: vanilla changed through a hook +function Font GetStringWidthUTF8 Font.md render and sprites todo docs only: vanilla changed through a hook +function GLShader BindFloat repentogon/LuaInterfaces/LuaRender.cpp:2141 misc todo +function GLShader BindMat2 repentogon/LuaInterfaces/LuaRender.cpp:2145 misc todo +function GLShader BindMat3 repentogon/LuaInterfaces/LuaRender.cpp:2146 misc todo +function GLShader BindMat4 repentogon/LuaInterfaces/LuaRender.cpp:2147 misc todo +function GLShader BindVec2 repentogon/LuaInterfaces/LuaRender.cpp:2142 misc todo +function GLShader BindVec3 repentogon/LuaInterfaces/LuaRender.cpp:2143 misc todo +function GLShader BindVec4 repentogon/LuaInterfaces/LuaRender.cpp:2144 misc todo +function Game AchievementUnlocksDisallowed repentogon/LuaInterfaces/LuaGame.cpp:410 Game.md game todo +function Game AddDebugFlags repentogon/LuaInterfaces/LuaGame.cpp:419 Game.md game todo +function Game AddErasedEnemy repentogon/LuaInterfaces/LuaGame.cpp:425 Game.md game todo +function Game AddShopVisits repentogon/LuaInterfaces/LuaGame.cpp:408 Game.md game todo +function Game ChainLightning repentogon/LuaInterfaces/LuaGame.cpp:443 Game.md game todo +function Game ClearErasedEnemies repentogon/LuaInterfaces/LuaGame.cpp:407 Game.md game todo +function Game DevolveEnemy repentogon/LuaInterfaces/LuaGame.cpp:421 Game.md game todo +function Game GetChallengeParams repentogon/LuaInterfaces/LuaChallengeParam.cpp:288 Game.md game todo +function Game GetCurrentColorModifier repentogon/LuaInterfaces/LuaGame.cpp:428 Game.md game todo +function Game GetDebugFlags repentogon/LuaInterfaces/LuaGame.cpp:418 Game.md game todo +function Game GetDizzyAmount repentogon/LuaInterfaces/LuaGame.cpp:439 Game.md game todo +function Game GetGenericPrompt repentogon/LuaInterfaces/LuaGame.cpp:442 Game.md game todo +function Game GetLastDevilRoomStage repentogon/LuaInterfaces/LuaGame.cpp:415 Game.md game review +function Game GetLastLevelWithDamage repentogon/LuaInterfaces/LuaGame.cpp:416 Game.md game review +function Game GetLastLevelWithoutHalfHp repentogon/LuaInterfaces/LuaGame.cpp:417 Game.md game review +function Game GetLerpColorModifier repentogon/LuaInterfaces/LuaGame.cpp:430 Game.md game todo +function Game GetPauseMenuState repentogon/LuaInterfaces/LuaGame.cpp:412 Game.md game todo +function Game GetPlanetariumsVisited repentogon/LuaInterfaces/LuaGame.cpp:413 Game.md game todo +function Game GetPlayer repentogon/LuaInterfaces/LuaGame.cpp:433 Game.md game review +function Game GetShopVisits repentogon/LuaInterfaces/LuaGame.cpp:409 Game.md game todo +function Game GetTargetColorModifier repentogon/LuaInterfaces/LuaGame.cpp:429 Game.md game todo +function Game IsErased repentogon/LuaInterfaces/LuaGame.cpp:427 Game.md game todo +function Game IsGreedBoss repentogon/LuaInterfaces/LuaGame.cpp:422 Game.md game todo +function Game IsGreedFinalBoss repentogon/LuaInterfaces/LuaGame.cpp:423 Game.md game todo +function Game IsHardMode repentogon/LuaInterfaces/LuaGame.cpp:414 Game.md game todo +function Game IsPauseMenuOpen repentogon/LuaInterfaces/LuaGame.cpp:411 Game.md game todo +function Game IsRerun repentogon/LuaInterfaces/LuaGame.cpp:432 Game.md game todo +function Game IsStartingFromState repentogon/LuaInterfaces/LuaGame.cpp:444 Game.md game todo +function Game Move Game.md game todo docs only: vanilla changed through a hook +function Game MoveToRandomRoom repentogon/LuaInterfaces/LuaGame.cpp:435 game review +function Game RecordPlayerCompletion repentogon/LuaInterfaces/LuaGame.cpp:441 Game.md game todo +function Game RemoveErasedEnemy repentogon/LuaInterfaces/LuaGame.cpp:426 Game.md game todo +function Game SetBloom repentogon/LuaInterfaces/LuaGame.cpp:438 Game.md game todo +function Game SetColorModifier repentogon/LuaInterfaces/LuaGame.cpp:431 Game.md game todo +function Game SetDizzyAmount repentogon/LuaInterfaces/LuaGame.cpp:440 Game.md game todo +function Game SetDonationModAngel repentogon/LuaInterfaces/LuaGame.cpp:436 Game.md game todo +function Game SetDonationModGreed repentogon/LuaInterfaces/LuaGame.cpp:437 Game.md game todo +function Game ShowGenericLeaderboard repentogon/LuaInterfaces/LuaGame.cpp:434 Game.md game todo +function Game SpawnBombCrater repentogon/LuaInterfaces/LuaGame.cpp:420 Game.md game todo +function Game StartStageTransition repentogon/LuaInterfaces/LuaGame.cpp:424 Game.md game review +function GenericPrompt GetCurrentSelection repentogon/LuaInterfaces/LuaGenericPrompt.cpp:97 GenericPrompt.md game todo +function GenericPrompt GetSprite repentogon/LuaInterfaces/LuaGenericPrompt.cpp:96 GenericPrompt.md game todo +function GenericPrompt GetSubmittedSelection repentogon/LuaInterfaces/LuaGenericPrompt.cpp:98 GenericPrompt.md game todo +function GenericPrompt Initialize repentogon/LuaInterfaces/LuaGenericPrompt.cpp:88 GenericPrompt.md game todo +function GenericPrompt IsActive repentogon/LuaInterfaces/LuaGenericPrompt.cpp:90 GenericPrompt.md game todo +function GenericPrompt Render repentogon/LuaInterfaces/LuaGenericPrompt.cpp:93 GenericPrompt.md game todo +function GenericPrompt SetImageToVictoryRun repentogon/LuaInterfaces/LuaGenericPrompt.cpp:91 GenericPrompt.md game todo +function GenericPrompt SetText repentogon/LuaInterfaces/LuaGenericPrompt.cpp:94 GenericPrompt.md game todo +function GenericPrompt Show repentogon/LuaInterfaces/LuaGenericPrompt.cpp:89 GenericPrompt.md game todo +function GenericPrompt Update repentogon/LuaInterfaces/LuaGenericPrompt.cpp:92 GenericPrompt.md game todo +function GridEntitiesSaveStateVector Clear repentogon/LuaInterfaces/LuaEntitySaveState.cpp:547 entities todo +function GridEntitiesSaveStateVector Get repentogon/LuaInterfaces/LuaEntitySaveState.cpp:545 GridEntitiesSaveStateVector.md entities todo +function GridEntitiesSaveStateVector GetByType repentogon/LuaInterfaces/LuaEntitySaveState.cpp:546 GridEntitiesSaveStateVector.md entities todo +function GridEntitiesSaveStateVector __len repentogon/LuaInterfaces/LuaEntitySaveState.cpp:548 GridEntitiesSaveStateVector.md entities todo +function GridEntity GetRenderPosition repentogon/LuaInterfaces/GridEntities/LuaGridEntity.cpp:86 GridEntity.md entities todo +function GridEntity GetWaterClipFlags repentogon/LuaInterfaces/GridEntities/LuaGridEntity.cpp:88 GridEntity.md entities todo +function GridEntity HurtDamage repentogon/LuaInterfaces/GridEntities/LuaGridEntity.cpp:84 GridEntity.md entities todo +function GridEntity HurtSurroundings repentogon/LuaInterfaces/GridEntities/LuaGridEntity.cpp:85 entities todo +function GridEntity IsBreakableRock repentogon/LuaInterfaces/GridEntities/LuaGridEntity.cpp:87 GridEntity.md entities todo +function GridEntity ResetWaterClipFlags repentogon/LuaInterfaces/GridEntities/LuaGridEntity.cpp:90 GridEntity.md entities todo +function GridEntity SetWaterClipFlags repentogon/LuaInterfaces/GridEntities/LuaGridEntity.cpp:89 GridEntity.md entities todo +function GridEntity ToDecoration repentogon/LuaInterfaces/GridEntities/LuaGridEntityDecoration.cpp:18 GridEntity.md entities todo +function GridEntity ToFire repentogon/LuaInterfaces/GridEntities/LuaGridEntityFire.cpp:18 GridEntity.md entities todo +function GridEntity ToGravity repentogon/LuaInterfaces/GridEntities/LuaGridEntityGravity.cpp:18 GridEntity.md entities todo +function GridEntity ToLock repentogon/LuaInterfaces/GridEntities/LuaGridEntityLock.cpp:27 GridEntity.md entities todo +function GridEntity ToStairs repentogon/LuaInterfaces/GridEntities/LuaGridEntityStairs.cpp:18 GridEntity.md entities todo +function GridEntity ToStatue repentogon/LuaInterfaces/GridEntities/LuaGridEntityStatue.cpp:18 GridEntity.md entities todo +function GridEntity ToTNT GridEntity.md entities todo docs only: vanilla changed through a hook +function GridEntity ToTeleporter repentogon/LuaInterfaces/GridEntities/LuaGridEntityTeleporter.cpp:18 GridEntity.md entities todo +function GridEntity ToTrapDoor repentogon/LuaInterfaces/GridEntities/LuaGridEntityTrapDoor.cpp:18 GridEntity.md entities todo +function GridEntity ToWall repentogon/LuaInterfaces/GridEntities/LuaGridEntityWall.cpp:18 GridEntity.md entities todo +function GridEntity ToWeb repentogon/LuaInterfaces/GridEntities/LuaGridEntityWeb.cpp:18 GridEntity.md entities todo +function GridEntityDoor GetExtraSprite repentogon/LuaInterfaces/GridEntities/LuaGridEntityDoor.cpp:52 GridEntityDoor.md level and room todo +function GridEntityDoor PlayAnimation repentogon/LuaInterfaces/GridEntities/LuaGridEntityDoor.cpp:53 GridEntityDoor.md level and room todo +function GridEntityLock TryUnlock repentogon/LuaInterfaces/GridEntities/LuaGridEntityLock.cpp:67 GridEntityLock.md level and room todo +function GridEntityRock GetAltRockType repentogon/LuaInterfaces/GridEntities/LuaGridEntityRock.cpp:94 GridEntityRock.md level and room todo +function GridEntityRock PlayBreakSound repentogon/LuaInterfaces/GridEntities/LuaGridEntityRock.cpp:93 GridEntityRock.md level and room todo +function GridEntityRock RegisterRockDestroyed repentogon/LuaInterfaces/GridEntities/LuaGridEntityRock.cpp:95 GridEntityRock.md level and room todo +function GridEntityRock RenderTop repentogon/LuaInterfaces/GridEntities/LuaGridEntityRock.cpp:89 GridEntityRock.md level and room todo +function GridEntityRock SpawnDrops repentogon/LuaInterfaces/GridEntities/LuaGridEntityRock.cpp:101 GridEntityRock.md level and room todo +function GridEntityRock TrySpawnLadder repentogon/LuaInterfaces/GridEntities/LuaGridEntityRock.cpp:91 GridEntityRock.md level and room todo +function GridEntityRock TrySpawnWorms repentogon/LuaInterfaces/GridEntities/LuaGridEntityRock.cpp:90 GridEntityRock.md level and room todo +function GridEntityRock UpdateCollision repentogon/LuaInterfaces/GridEntities/LuaGridEntityRock.cpp:96 GridEntityRock.md level and room todo +function GridEntityRock UpdateNeighbors repentogon/LuaInterfaces/GridEntities/LuaGridEntityRock.cpp:92 GridEntityRock.md level and room todo +function HUD FlashRedHearts repentogon/LuaInterfaces/HUD/LuaHUD.cpp:258 HUD.md hud and menus todo +function HUD GetBossHPBarFill repentogon/LuaInterfaces/HUD/LuaHUD.cpp:272 HUD.md hud and menus todo +function HUD GetCardsPillsSprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:262 HUD.md hud and menus todo +function HUD GetChargeBarSprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:259 HUD.md hud and menus todo +function HUD GetCoopMenuSprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:268 HUD.md hud and menus todo +function HUD GetCoopPlayerMessage repentogon/LuaInterfaces/HUD/LuaHUD.cpp:266 hud and menus todo +function HUD GetCraftingSprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:270 HUD.md hud and menus todo +function HUD GetFortuneSprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:267 HUD.md hud and menus todo +function HUD GetHeartsSprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:260 HUD.md hud and menus todo +function HUD GetHistoryHUD repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:195 HUD.md hud and menus todo +function HUD GetInventorySprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:269 HUD.md hud and menus todo +function HUD GetMainMessage repentogon/LuaInterfaces/HUD/LuaHUD.cpp:264 hud and menus todo +function HUD GetPickupsHUDSprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:261 HUD.md hud and menus todo +function HUD GetPlayerHUD repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:127 HUD.md hud and menus todo +function HUD GetPlayerStreakSprite HUD.md hud and menus todo docs only: no registration found +function HUD GetPoopSpellSprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:271 HUD.md hud and menus todo +function HUD GetStackedMessage repentogon/LuaInterfaces/HUD/LuaHUD.cpp:265 hud and menus todo +function HUD GetStackedStreakSprite HUD.md hud and menus todo docs only: no registration found +function HUD GetStreakSprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:263 HUD.md hud and menus todo +function HUD SetBossHPBarFill repentogon/LuaInterfaces/HUD/LuaHUD.cpp:273 HUD.md hud and menus todo +function HUDMessage GetMainText repentogon/LuaInterfaces/HUD/LuaHUD.cpp:243 hud and menus todo +function HUDMessage GetSprite repentogon/LuaInterfaces/HUD/LuaHUD.cpp:239 hud and menus todo +function HUDMessage GetSubText repentogon/LuaInterfaces/HUD/LuaHUD.cpp:245 hud and menus todo +function HUDMessage Hide repentogon/LuaInterfaces/HUD/LuaHUD.cpp:241 hud and menus todo +function HUDMessage IsShowing repentogon/LuaInterfaces/HUD/LuaHUD.cpp:240 hud and menus todo +function HUDMessage SetMainText repentogon/LuaInterfaces/HUD/LuaHUD.cpp:244 hud and menus todo +function HUDMessage SetSubText repentogon/LuaInterfaces/HUD/LuaHUD.cpp:246 hud and menus todo +function HUDMessage Show repentogon/LuaInterfaces/HUD/LuaHUD.cpp:242 hud and menus todo +function History GetCollectiblesHistory repentogon/LuaInterfaces/LuaHistory.cpp:93 History.md player todo +function History RemoveHistoryItemByIndex repentogon/LuaInterfaces/LuaHistory.cpp:92 History.md player todo +function History SearchCollectibles repentogon/LuaInterfaces/LuaHistory.cpp:94 History.md player todo +function History SearchTrinkets repentogon/LuaInterfaces/LuaHistory.cpp:95 History.md player todo +function HistoryHUD GetCollectibleOffsets repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:202 HistoryHUD.md hud and menus todo +function HistoryHUD GetCollectibles repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:201 HistoryHUD.md hud and menus todo +function HistoryHUD GetItems repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:200 HistoryHUD.md hud and menus todo +function HistoryHUD GetPlayer repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:198 HistoryHUD.md hud and menus todo +function HistoryHUD GetPosition repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:199 HistoryHUD.md hud and menus todo +function HistoryHUD GetTrinketOffsets repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:204 HistoryHUD.md hud and menus todo +function HistoryHUD GetTrinkets repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:203 HistoryHUD.md hud and menus todo +function HistoryHUDItem GetHistoryItem repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:215 HistoryHUDItem.md hud and menus todo +function HistoryHUDItem GetItemID repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:212 HistoryHUDItem.md hud and menus todo +function HistoryHUDItem GetRenderOffset repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:216 HistoryHUDItem.md hud and menus todo +function HistoryHUDItem GetTime repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:214 HistoryHUDItem.md hud and menus todo +function HistoryHUDItem IsTrinket repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:213 HistoryHUDItem.md hud and menus todo +function HistoryHUDItem IsVisible repentogon/LuaInterfaces/HUD/LuaHistoryHUD.cpp:217 HistoryHUDItem.md hud and menus todo +function HistoryItem GetItemID repentogon/LuaInterfaces/LuaHistoryItem.cpp:64 HistoryItem.md player todo +function HistoryItem GetItemPoolType repentogon/LuaInterfaces/LuaHistoryItem.cpp:68 HistoryItem.md player todo +function HistoryItem GetLevelStage repentogon/LuaInterfaces/LuaHistoryItem.cpp:65 HistoryItem.md player todo +function HistoryItem GetRoomType repentogon/LuaInterfaces/LuaHistoryItem.cpp:67 HistoryItem.md player todo +function HistoryItem GetStageType repentogon/LuaInterfaces/LuaHistoryItem.cpp:66 HistoryItem.md player todo +function HistoryItem GetTime repentogon/LuaInterfaces/LuaHistoryItem.cpp:63 HistoryItem.md player todo +function HistoryItem IsTrinket repentogon/LuaInterfaces/LuaHistoryItem.cpp:69 HistoryItem.md player todo +function ImGui AddButton repentogon/ImGuiFeatures/LuaImGui.cpp:1081 ImGui.md console and debug todo +function ImGui AddCallback repentogon/ImGuiFeatures/LuaImGui.cpp:1069 ImGui.md console and debug todo +function ImGui AddCheckbox repentogon/ImGuiFeatures/LuaImGui.cpp:1090 ImGui.md console and debug todo +function ImGui AddCombobox repentogon/ImGuiFeatures/LuaImGui.cpp:1092 ImGui.md console and debug todo +function ImGui AddDragFloat repentogon/ImGuiFeatures/LuaImGui.cpp:1086 ImGui.md console and debug todo +function ImGui AddDragInteger repentogon/ImGuiFeatures/LuaImGui.cpp:1085 ImGui.md console and debug todo +function ImGui AddElement repentogon/ImGuiFeatures/LuaImGui.cpp:1071 ImGui.md console and debug todo +function ImGui AddInputColor repentogon/ImGuiFeatures/LuaImGui.cpp:1089 ImGui.md console and debug todo +function ImGui AddInputController repentogon/ImGuiFeatures/LuaImGui.cpp:1097 ImGui.md console and debug todo +function ImGui AddInputFloat repentogon/ImGuiFeatures/LuaImGui.cpp:1084 ImGui.md console and debug todo +function ImGui AddInputInteger repentogon/ImGuiFeatures/LuaImGui.cpp:1083 ImGui.md console and debug todo +function ImGui AddInputKeyboard repentogon/ImGuiFeatures/LuaImGui.cpp:1098 ImGui.md console and debug todo +function ImGui AddInputText repentogon/ImGuiFeatures/LuaImGui.cpp:1093 ImGui.md console and debug todo +function ImGui AddInputTextMultiline repentogon/ImGuiFeatures/LuaImGui.cpp:1094 ImGui.md console and debug todo +function ImGui AddPlotHistogram repentogon/ImGuiFeatures/LuaImGui.cpp:1100 ImGui.md console and debug todo +function ImGui AddPlotLines repentogon/ImGuiFeatures/LuaImGui.cpp:1099 ImGui.md console and debug todo +function ImGui AddProgressBar repentogon/ImGuiFeatures/LuaImGui.cpp:1101 ImGui.md console and debug todo +function ImGui AddRadioButtons repentogon/ImGuiFeatures/LuaImGui.cpp:1091 ImGui.md console and debug todo +function ImGui AddSliderFloat repentogon/ImGuiFeatures/LuaImGui.cpp:1088 ImGui.md console and debug todo +function ImGui AddSliderInteger repentogon/ImGuiFeatures/LuaImGui.cpp:1087 ImGui.md console and debug todo +function ImGui AddTab repentogon/ImGuiFeatures/LuaImGui.cpp:1096 ImGui.md console and debug todo +function ImGui AddTabBar repentogon/ImGuiFeatures/LuaImGui.cpp:1095 ImGui.md console and debug todo +function ImGui AddText repentogon/ImGuiFeatures/LuaImGui.cpp:1082 ImGui.md console and debug todo +function ImGui CreateMenu repentogon/ImGuiFeatures/LuaImGui.cpp:1073 ImGui.md console and debug todo +function ImGui CreateWindow repentogon/ImGuiFeatures/LuaImGui.cpp:1075 ImGui.md console and debug todo +function ImGui ElementExists repentogon/ImGuiFeatures/LuaImGui.cpp:1078 ImGui.md console and debug todo +function ImGui GetGameWindowRect repentogon/ImGuiFeatures/LuaImGui.cpp:1114 ImGui.md console and debug todo +function ImGui GetMousePosition repentogon/ImGuiFeatures/LuaImGui.cpp:1115 ImGui.md console and debug todo +function ImGui GetVisible repentogon/ImGuiFeatures/LuaImGui.cpp:1116 ImGui.md console and debug todo +function ImGui GetWindowChildFlags repentogon/ImGuiFeatures/LuaImGui.cpp:1119 ImGui.md console and debug todo +function ImGui GetWindowFlags repentogon/ImGuiFeatures/LuaImGui.cpp:1118 ImGui.md console and debug todo +function ImGui GetWindowPinned repentogon/ImGuiFeatures/LuaImGui.cpp:1117 ImGui.md console and debug todo +function ImGui Hide repentogon/ImGuiFeatures/LuaImGui.cpp:1123 ImGui.md console and debug todo +function ImGui ImGuiToWorld repentogon/resources/scripts/main_ex.lua:2056 ImGui.md console and debug done defined in Lua +function ImGui IsVisible repentogon/ImGuiFeatures/LuaImGui.cpp:1124 ImGui.md console and debug todo +function ImGui LinkWindowToElement repentogon/ImGuiFeatures/LuaImGui.cpp:1077 ImGui.md console and debug todo +function ImGui PushNotification repentogon/ImGuiFeatures/LuaImGui.cpp:1120 ImGui.md console and debug todo +function ImGui RemoveCallback repentogon/ImGuiFeatures/LuaImGui.cpp:1070 ImGui.md console and debug todo +function ImGui RemoveColor repentogon/ImGuiFeatures/LuaImGui.cpp:1113 ImGui.md console and debug todo +function ImGui RemoveElement repentogon/ImGuiFeatures/LuaImGui.cpp:1072 ImGui.md console and debug todo +function ImGui RemoveMenu repentogon/ImGuiFeatures/LuaImGui.cpp:1074 ImGui.md console and debug todo +function ImGui RemoveWindow repentogon/ImGuiFeatures/LuaImGui.cpp:1076 ImGui.md console and debug todo +function ImGui Reset repentogon/ImGuiFeatures/LuaImGui.cpp:1121 ImGui.md console and debug todo +function ImGui SetColor repentogon/ImGuiFeatures/LuaImGui.cpp:1103 ImGui.md console and debug todo +function ImGui SetHelpmarker repentogon/ImGuiFeatures/LuaImGui.cpp:1102 ImGui.md console and debug todo +function ImGui SetSize repentogon/ImGuiFeatures/LuaImGui.cpp:1104 ImGui.md console and debug todo +function ImGui SetTextColor repentogon/ImGuiFeatures/LuaImGui.cpp:1105 ImGui.md console and debug todo +function ImGui SetTooltip repentogon/ImGuiFeatures/LuaImGui.cpp:1112 ImGui.md console and debug todo +function ImGui SetVisible repentogon/ImGuiFeatures/LuaImGui.cpp:1106 ImGui.md console and debug todo +function ImGui SetWindowChildFlags repentogon/ImGuiFeatures/LuaImGui.cpp:1109 ImGui.md console and debug todo +function ImGui SetWindowFlags repentogon/ImGuiFeatures/LuaImGui.cpp:1108 ImGui.md console and debug todo +function ImGui SetWindowPinned repentogon/ImGuiFeatures/LuaImGui.cpp:1107 ImGui.md console and debug todo +function ImGui SetWindowPosition repentogon/ImGuiFeatures/LuaImGui.cpp:1110 ImGui.md console and debug todo +function ImGui SetWindowSize repentogon/ImGuiFeatures/LuaImGui.cpp:1111 ImGui.md console and debug todo +function ImGui Show repentogon/ImGuiFeatures/LuaImGui.cpp:1122 ImGui.md console and debug todo +function ImGui UpdateData repentogon/ImGuiFeatures/LuaImGui.cpp:1080 ImGui.md console and debug todo +function ImGui UpdateText repentogon/ImGuiFeatures/LuaImGui.cpp:1079 ImGui.md console and debug todo +function ImGui WorldToImGui repentogon/resources/scripts/main_ex.lua:2050 ImGui.md console and debug done defined in Lua +function Image GetHeight repentogon/LuaInterfaces/LuaRender.cpp:363 render and sprites todo +function Image GetName repentogon/LuaInterfaces/LuaRender.cpp:366 render and sprites todo +function Image GetPaddedHeight repentogon/LuaInterfaces/LuaRender.cpp:365 render and sprites todo +function Image GetPaddedWidth repentogon/LuaInterfaces/LuaRender.cpp:364 render and sprites todo +function Image GetTexelRegion repentogon/LuaInterfaces/LuaRender.cpp:367 render and sprites todo +function Image GetWidth repentogon/LuaInterfaces/LuaRender.cpp:362 render and sprites todo +function Image Render repentogon/LuaInterfaces/LuaRender.cpp:368 render and sprites todo +function Image RenderWithShader repentogon/LuaInterfaces/LuaRender.cpp:369 render and sprites todo +function Input GetActionButtons repentogon/LuaInterfaces/LuaInput.cpp:57 input todo +function Input GetButtonFrame repentogon/LuaInterfaces/LuaInput.cpp:58 input todo +function Input GetDeviceNameByIdx repentogon/LuaInterfaces/LuaInput.cpp:55 Input.md input todo +function Input GetMouseWheel repentogon/LuaInterfaces/LuaInput.cpp:56 Input.md input todo +function Isaac AddCallback repentogon/resources/scripts/main_ex.lua:1238 misc done defined in Lua +function Isaac AddPriorityCallback repentogon/resources/scripts/main_ex.lua:1196 misc done defined in Lua +function Isaac AllMarksFilled repentogon/Patches/CompletionTracker.cpp:1381 Isaac.md persistent data and saves todo +function Isaac AllTaintedCompletion repentogon/Patches/CompletionTracker.cpp:1382 Isaac.md persistent data and saves todo +function Isaac CanStartTrueCoop repentogon/LuaInterfaces/LuaIsaac.cpp:1053 Isaac.md game todo +function Isaac CenterCursor repentogon/LuaInterfaces/LuaIsaac.cpp:1072 Isaac.md input todo +function Isaac ClearBossHazards repentogon/LuaInterfaces/LuaIsaac.cpp:1108 npc todo +function Isaac ClearChallenge repentogon/LuaInterfaces/LuaIsaac.cpp:1082 Isaac.md game todo +function Isaac ClearCompletionMarks repentogon/Patches/CompletionTracker.cpp:1384 Isaac.md persistent data and saves todo +function Isaac CreateTimer repentogon/LuaInterfaces/LuaIsaac.cpp:1054 Isaac.md misc todo +function Isaac CreateWeapon repentogon/LuaInterfaces/LuaWeapon.cpp:199 Isaac.md tear and weapons todo +function Isaac DestroyWeapon repentogon/LuaInterfaces/LuaWeapon.cpp:200 Isaac.md tear and weapons todo +function Isaac DrawLine repentogon/LuaInterfaces/LuaIsaac.cpp:1057 Isaac.md render and sprites todo +function Isaac DrawQuad repentogon/LuaInterfaces/LuaIsaac.cpp:1056 Isaac.md render and sprites todo +function Isaac FillCompletionMarks repentogon/Patches/CompletionTracker.cpp:1383 Isaac.md persistent data and saves todo +function Isaac FindByType repentogon/LuaInterfaces/LuaIsaac.cpp:1049 Isaac.md misc review +function Isaac FindInCapsule repentogon/LuaInterfaces/LuaIsaac.cpp:1070 Isaac.md misc todo +function Isaac FindInRadius repentogon/LuaInterfaces/LuaIsaac.cpp:1050 Isaac.md misc review +function Isaac FindTargetPit repentogon/LuaInterfaces/LuaIsaac.cpp:1093 Isaac.md misc todo +function Isaac GetAchievementIdByName repentogon/Patches/AchievementsStuff.cpp:319 Isaac.md persistent data and saves todo +function Isaac GetAllowedDoorsMaskForRoomShape repentogon/resources/scripts/main_ex.lua:2160 Isaac.md level and room done defined in Lua +function Isaac GetAxisAlignedUnitVectorFromDir repentogon/LuaInterfaces/LuaIsaac.cpp:1094 Isaac.md misc todo +function Isaac GetBabyIdByName repentogon/LuaInterfaces/LuaIsaac.cpp:1105 Isaac.md misc todo +function Isaac GetBackdropIdByName repentogon/LuaInterfaces/LuaIsaac.cpp:1090 Isaac.md level and room todo +function Isaac GetBossColorIdByName repentogon/LuaInterfaces/LuaIsaac.cpp:1089 npc todo +function Isaac GetBossColorIdxByName repentogon/LuaInterfaces/LuaIsaac.cpp:1088 Isaac.md npc todo +function Isaac GetButtonsSprite repentogon/LuaInterfaces/LuaIsaac.cpp:1103 Isaac.md render and sprites todo +function Isaac GetCallbackIterator repentogon/resources/scripts/main_ex.lua:1120 misc done defined in Lua +function Isaac GetCallbacks repentogon/resources/scripts/main_ex.lua:1126 misc done defined in Lua +function Isaac GetClipboard repentogon/LuaInterfaces/LuaIsaac.cpp:1058 Isaac.md misc todo +function Isaac GetCollectibleSpawnPosition repentogon/LuaInterfaces/LuaIsaac.cpp:1067 Isaac.md items and pools todo +function Isaac GetCompletionMark repentogon/Patches/CompletionTracker.cpp:1378 Isaac.md persistent data and saves todo +function Isaac GetCompletionMarkData repentogon/Patches/CompletionTracker.cpp:1377 Isaac.md persistent data and saves todo +function Isaac GetCompletionMarks repentogon/Patches/CompletionTracker.cpp:1376 Isaac.md persistent data and saves todo +function Isaac GetCurrentStageConfigId repentogon/Patches/StagesStuff.cpp:318 Isaac.md level and room todo +function Isaac GetCursorSprite repentogon/LuaInterfaces/LuaIsaac.cpp:1060 Isaac.md render and sprites todo +function Isaac GetCutsceneIdByName repentogon/LuaInterfaces/LuaIsaac.cpp:1063 Isaac.md hud and menus todo +function Isaac GetDwmWindowAttribute repentogon/LuaInterfaces/LuaIsaac.cpp:1074 Isaac.md misc todo +function Isaac GetEntityConfig repentogon/resources/scripts/main_ex.lua:2098 entities done defined in Lua +function Isaac GetEntitySubTypeByName repentogon/LuaInterfaces/LuaIsaac.cpp:1062 Isaac.md entities todo +function Isaac GetGiantBookIdByName repentogon/LuaInterfaces/LuaIsaac.cpp:1064 Isaac.md misc todo +function Isaac GetLoadedModules repentogon/LuaInterfaces/LuaIsaac.cpp:1061 Isaac.md misc todo +function Isaac GetLocalizedString repentogon/LuaInterfaces/LuaLocalizationStuff.cpp:78 Isaac.md misc todo +function Isaac GetModChallengeClearCount repentogon/LuaInterfaces/LuaIsaac.cpp:1085 Isaac.md game todo +function Isaac GetModChallengeCompletionData repentogon/LuaInterfaces/LuaIsaac.cpp:1087 Isaac.md persistent data and saves todo +function Isaac GetNanoTime repentogon/LuaInterfaces/LuaIsaac.cpp:1097 Isaac.md misc todo +function Isaac GetNullItemIdByName repentogon/LuaInterfaces/LuaIsaac.cpp:1065 Isaac.md items and pools todo +function Isaac GetPersistentGameData repentogon/LuaInterfaces/LuaPersistentGameData.cpp:185 Isaac.md persistent data and saves todo +function Isaac GetPoolIdByName repentogon/Patches/ItemPoolManager.cpp:2398 Isaac.md items and pools todo +function Isaac GetRenderPosition repentogon/LuaInterfaces/LuaIsaac.cpp:1066 Isaac.md render and sprites todo +function Isaac GetRoomEntities repentogon/LuaInterfaces/LuaIsaac.cpp:1048 Isaac.md level and room review +function Isaac GetString repentogon/LuaInterfaces/LuaLocalizationStuff.cpp:77 Isaac.md misc todo +function Isaac GetWindowTitle repentogon/LuaInterfaces/LuaIsaac.cpp:1076 Isaac.md misc todo +function Isaac HasModData repentogon/resources/scripts/main_ex.lua:2011 misc done defined in Lua +function Isaac IsChallengeDone repentogon/LuaInterfaces/LuaIsaac.cpp:1081 Isaac.md game todo +function Isaac IsInGame repentogon/LuaInterfaces/LuaIsaac.cpp:1078 Isaac.md game todo +function Isaac IsShuttingDown repentogon/LuaInterfaces/LuaIsaac.cpp:1096 misc todo +function Isaac LevelGeneratorEntry repentogon/LuaInterfaces/LuaLevelGeneratorEntry.cpp:53 Isaac.md level and room todo +function Isaac LoadModData repentogon/resources/scripts/main_ex.lua:2027 misc done defined in Lua +function Isaac LoadModDataFromFolder repentogon/LuaInterfaces/LuaIsaac.cpp:1101 Isaac.md misc todo +function Isaac MarkChallengeAsNotDone repentogon/LuaInterfaces/LuaIsaac.cpp:1084 persistent data and saves todo +function Isaac OpenConsole repentogon/ImGuiFeatures/LuaImGui.cpp:1129 Isaac.md console and debug todo +function Isaac PlayCutscene repentogon/LuaInterfaces/LuaIsaac.cpp:1068 Isaac.md hud and menus todo +function Isaac RGON_GetChangelog repentogon/LuaInterfaces/LuaIsaac.cpp:1092 console and debug todo +function Isaac RemoveCallback repentogon/resources/scripts/main_ex.lua:1288 misc done defined in Lua +function Isaac RemoveModData repentogon/resources/scripts/main_ex.lua:2035 misc done defined in Lua +function Isaac RenderCollectionItem repentogon/LuaInterfaces/LuaIsaac.cpp:1104 Isaac.md render and sprites todo +function Isaac RenderToWorld repentogon/LuaInterfaces/LuaIsaac.cpp:1055 Isaac.md render and sprites todo +function Isaac ReworkBirthright repentogon/LuaInterfaces/LuaIsaac.cpp:1099 Isaac.md player todo +function Isaac ReworkCollectible repentogon/LuaInterfaces/LuaIsaac.cpp:1098 Isaac.md items and pools todo +function Isaac ReworkTrinket repentogon/LuaInterfaces/LuaIsaac.cpp:1100 Isaac.md items and pools todo +function Isaac RunAdditiveCallback repentogon/resources/scripts/main_ex.lua:1888 misc done defined in Lua +function Isaac RunCallback repentogon/resources/scripts/main_ex.lua:1985 misc done defined in Lua +function Isaac RunCallbackOverIterator repentogon/resources/scripts/main_ex.lua:1976 misc done defined in Lua +function Isaac RunCallbackWithParam repentogon/resources/scripts/main_ex.lua:1983 misc done defined in Lua +function Isaac RunCallbackWithTwoParams repentogon/resources/scripts/main_ex.lua:1993 misc done defined in Lua +function Isaac RunEntityTakeDmgCallback repentogon/resources/scripts/main_ex.lua:1889 entities done defined in Lua +function Isaac RunPreRenderCallback repentogon/resources/scripts/main_ex.lua:1887 render and sprites done defined in Lua +function Isaac RunTriggerPlayerDeathCallback repentogon/resources/scripts/main_ex.lua:1890 player done defined in Lua +function Isaac SaveModData repentogon/resources/scripts/main_ex.lua:2019 persistent data and saves done defined in Lua +function Isaac SetCallbackTypeCheck repentogon/resources/scripts/main_ex.lua:728 misc done defined in Lua +function Isaac SetChallengeCompletion repentogon/LuaInterfaces/LuaIsaac.cpp:1086 Isaac.md persistent data and saves todo +function Isaac SetClipboard repentogon/LuaInterfaces/LuaIsaac.cpp:1059 Isaac.md misc todo +function Isaac SetCompletionMark repentogon/Patches/CompletionTracker.cpp:1380 Isaac.md persistent data and saves todo +function Isaac SetCompletionMarks repentogon/Patches/CompletionTracker.cpp:1379 Isaac.md persistent data and saves todo +function Isaac SetCurrentFloorBackdrop repentogon/Patches/StagesStuff.cpp:316 Isaac.md level and room todo +function Isaac SetCurrentFloorMusic repentogon/Patches/StagesStuff.cpp:315 Isaac.md level and room todo +function Isaac SetCurrentFloorName repentogon/Patches/StagesStuff.cpp:317 Isaac.md level and room todo +function Isaac SetDwmWindowAttribute repentogon/LuaInterfaces/LuaIsaac.cpp:1073 Isaac.md misc todo +function Isaac SetIcon repentogon/LuaInterfaces/LuaIsaac.cpp:1077 Isaac.md misc todo +function Isaac SetWindowTitle repentogon/LuaInterfaces/LuaIsaac.cpp:1075 Isaac.md misc todo +function Isaac ShowErrorDialog repentogon/LuaInterfaces/LuaIsaac.cpp:1069 Isaac.md console and debug todo +function Isaac SpawnBoss repentogon/LuaInterfaces/LuaIsaac.cpp:1102 Isaac.md npc todo +function Isaac StartDailyGame repentogon/LuaInterfaces/LuaIsaac.cpp:1095 game todo +function Isaac StartNewGame repentogon/LuaInterfaces/LuaIsaac.cpp:1091 Isaac.md game todo +function Isaac TriggerWindowResize repentogon/LuaInterfaces/LuaIsaac.cpp:1071 Isaac.md misc todo +function Isaac UnClearChallenge repentogon/LuaInterfaces/LuaIsaac.cpp:1083 game todo +function Isaac WorldToMenuPosition repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:242 Isaac.md hud and menus todo +function Item AddCustomCacheTag repentogon/LuaInterfaces/LuaItemConfig.cpp:112 ItemConfig_Item.md items and pools todo +function Item AddCustomTag repentogon/LuaInterfaces/LuaItemConfig.cpp:108 ItemConfig_Item.md items and pools todo +function Item GetCustomCacheTags repentogon/LuaInterfaces/LuaItemConfig.cpp:110 ItemConfig_Item.md items and pools todo +function Item GetCustomTags repentogon/LuaInterfaces/LuaItemConfig.cpp:106 ItemConfig_Item.md items and pools todo +function Item HasCustomCacheTag repentogon/LuaInterfaces/LuaItemConfig.cpp:111 ItemConfig_Item.md items and pools todo +function Item HasCustomTag repentogon/LuaInterfaces/LuaItemConfig.cpp:107 ItemConfig_Item.md items and pools todo +function Item RemoveCustomCacheTag repentogon/LuaInterfaces/LuaItemConfig.cpp:113 ItemConfig_Item.md items and pools todo +function Item RemoveCustomTag repentogon/LuaInterfaces/LuaItemConfig.cpp:109 ItemConfig_Item.md items and pools todo +function ItemOverlay GetDelay repentogon/LuaInterfaces/LuaItemOverlay.cpp:82 ItemOverlay.md hud and menus todo +function ItemOverlay GetMegaMushPlayerSprite repentogon/LuaInterfaces/LuaItemOverlay.cpp:84 ItemOverlay.md hud and menus todo +function ItemOverlay GetOverlayID repentogon/LuaInterfaces/LuaItemOverlay.cpp:79 ItemOverlay.md hud and menus todo +function ItemOverlay GetPlayer repentogon/LuaInterfaces/LuaItemOverlay.cpp:83 ItemOverlay.md hud and menus todo +function ItemOverlay GetSprite repentogon/LuaInterfaces/LuaItemOverlay.cpp:81 ItemOverlay.md hud and menus todo +function ItemOverlay Show repentogon/LuaInterfaces/LuaItemOverlay.cpp:80 ItemOverlay.md hud and menus todo +function ItemPool AddBibleUpgrade repentogon/LuaInterfaces/LuaItemPool.cpp:775 ItemPool.md items and pools review +function ItemPool AddCollectible repentogon/LuaInterfaces/LuaItemPool.cpp:799 ItemPool.md items and pools todo +function ItemPool AddRoomBlacklist repentogon/LuaInterfaces/LuaItemPool.cpp:776 items and pools review +function ItemPool AddTemporaryCollectible repentogon/LuaInterfaces/LuaItemPool.cpp:800 ItemPool.md items and pools todo +function ItemPool CanSpawnCollectible repentogon/LuaInterfaces/LuaItemPool.cpp:791 ItemPool.md items and pools todo +function ItemPool GetBibleUpgrades repentogon/LuaInterfaces/LuaItemPool.cpp:796 ItemPool.md items and pools todo +function ItemPool GetCardEx repentogon/LuaInterfaces/LuaItemPool.cpp:779 ItemPool.md items and pools todo +function ItemPool GetCollectible repentogon/LuaInterfaces/LuaItemPool.cpp:774 ItemPool.md items and pools review +function ItemPool GetCollectibleFromList repentogon/LuaInterfaces/LuaItemPool.cpp:782 ItemPool.md items and pools todo +function ItemPool GetCollectiblesFromPool repentogon/LuaInterfaces/LuaItemPool.cpp:789 ItemPool.md items and pools todo +function ItemPool GetNumAvailableTrinkets repentogon/LuaInterfaces/LuaItemPool.cpp:793 ItemPool.md items and pools todo +function ItemPool GetNumItemPools repentogon/LuaInterfaces/LuaItemPool.cpp:798 ItemPool.md items and pools todo +function ItemPool GetPillColor repentogon/LuaInterfaces/LuaItemPool.cpp:795 ItemPool.md items and pools todo +function ItemPool GetRandomPool repentogon/LuaInterfaces/LuaItemPool.cpp:780 ItemPool.md items and pools todo +function ItemPool GetRemovedCollectibles repentogon/LuaInterfaces/LuaItemPool.cpp:787 ItemPool.md items and pools todo +function ItemPool GetRoomBlacklistedCollectibles repentogon/LuaInterfaces/LuaItemPool.cpp:788 ItemPool.md items and pools todo +function ItemPool GetTrinket repentogon/LuaInterfaces/LuaItemPool.cpp:777 items and pools review +function ItemPool HasCollectible repentogon/LuaInterfaces/LuaItemPool.cpp:786 ItemPool.md items and pools todo +function ItemPool HasTrinket repentogon/LuaInterfaces/LuaItemPool.cpp:792 ItemPool.md items and pools todo +function ItemPool PickCollectible repentogon/LuaInterfaces/LuaItemPool.cpp:781 ItemPool.md items and pools todo +function ItemPool RemoveTemporaryCollectible repentogon/LuaInterfaces/LuaItemPool.cpp:801 ItemPool.md items and pools todo +function ItemPool ResetCollectible repentogon/LuaInterfaces/LuaItemPool.cpp:797 ItemPool.md items and pools todo +function ItemPool SetLastPool repentogon/LuaInterfaces/LuaItemPool.cpp:790 ItemPool.md items and pools todo +function ItemPool UnidentifyPill repentogon/LuaInterfaces/LuaItemPool.cpp:794 ItemPool.md items and pools todo +function KeyConfigMenu GetSelectedColumn repentogon/LuaInterfaces/Menus/LuaKeyConfigMenu.cpp:66 hud and menus todo +function KeyConfigMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaKeyConfigMenu.cpp:64 hud and menus todo +function KeyConfigMenu GetSprite repentogon/LuaInterfaces/Menus/LuaKeyConfigMenu.cpp:63 hud and menus todo +function KeyConfigMenu IsEditActive repentogon/LuaInterfaces/Menus/LuaKeyConfigMenu.cpp:68 hud and menus todo +function KeyConfigMenu SetSelectedColumn repentogon/LuaInterfaces/Menus/LuaKeyConfigMenu.cpp:67 hud and menus todo +function KeyConfigMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaKeyConfigMenu.cpp:65 hud and menus todo +function LRoomAreaDesc GetHighBottomRight repentogon/LuaInterfaces/Room/LuaLRoomAreaDesc.cpp:56 LRoomAreaDesc.md level and room todo +function LRoomAreaDesc GetHighTopLeft repentogon/LuaInterfaces/Room/LuaLRoomAreaDesc.cpp:55 LRoomAreaDesc.md level and room todo +function LRoomAreaDesc GetLowBottomRight repentogon/LuaInterfaces/Room/LuaLRoomAreaDesc.cpp:58 LRoomAreaDesc.md level and room todo +function LRoomAreaDesc GetLowTopLeft repentogon/LuaInterfaces/Room/LuaLRoomAreaDesc.cpp:57 LRoomAreaDesc.md level and room todo +function LRoomTileDesc GetHighBottomRight repentogon/LuaInterfaces/Room/LuaLRoomTileDesc.cpp:76 LRoomTileDesc.md level and room todo +function LRoomTileDesc GetHighTopLeft repentogon/LuaInterfaces/Room/LuaLRoomTileDesc.cpp:75 LRoomTileDesc.md level and room todo +function LRoomTileDesc GetLowBottomRight repentogon/LuaInterfaces/Room/LuaLRoomTileDesc.cpp:78 LRoomTileDesc.md level and room todo +function LRoomTileDesc GetLowTopLeft repentogon/LuaInterfaces/Room/LuaLRoomTileDesc.cpp:77 LRoomTileDesc.md level and room todo +function LRoomTileDesc GetRandomTile repentogon/LuaInterfaces/Room/LuaLRoomTileDesc.cpp:74 LRoomTileDesc.md level and room todo +function LayerState ClearCustomChampionShader repentogon/LuaInterfaces/LuaSprite.cpp:761 LayerState.md render and sprites todo +function LayerState ClearCustomShader repentogon/LuaInterfaces/LuaSprite.cpp:758 LayerState.md render and sprites todo +function LayerState GetBlendMode repentogon/LuaInterfaces/LuaSprite.cpp:748 LayerState.md render and sprites todo +function LayerState GetColor repentogon/LuaInterfaces/LuaSprite.cpp:742 LayerState.md render and sprites todo +function LayerState GetCropOffset repentogon/LuaInterfaces/LuaSprite.cpp:744 LayerState.md render and sprites todo +function LayerState GetDefaultSpritesheetPath repentogon/LuaInterfaces/LuaSprite.cpp:733 LayerState.md render and sprites todo +function LayerState GetFlipX repentogon/LuaInterfaces/LuaSprite.cpp:753 LayerState.md render and sprites todo +function LayerState GetFlipY repentogon/LuaInterfaces/LuaSprite.cpp:755 LayerState.md render and sprites todo +function LayerState GetLayerID repentogon/LuaInterfaces/LuaSprite.cpp:728 LayerState.md render and sprites todo +function LayerState GetName repentogon/LuaInterfaces/LuaSprite.cpp:729 LayerState.md render and sprites todo +function LayerState GetPos repentogon/LuaInterfaces/LuaSprite.cpp:740 LayerState.md render and sprites todo +function LayerState GetRenderFlags repentogon/LuaInterfaces/LuaSprite.cpp:746 LayerState.md render and sprites todo +function LayerState GetRotation repentogon/LuaInterfaces/LuaSprite.cpp:738 LayerState.md render and sprites todo +function LayerState GetSize repentogon/LuaInterfaces/LuaSprite.cpp:736 LayerState.md render and sprites todo +function LayerState GetSpritesheet repentogon/LuaInterfaces/LuaSprite.cpp:731 LayerState.md render and sprites todo +function LayerState GetSpritesheetPath repentogon/LuaInterfaces/LuaSprite.cpp:732 LayerState.md render and sprites todo +function LayerState GetWrapSMode repentogon/LuaInterfaces/LuaSprite.cpp:749 LayerState.md render and sprites todo +function LayerState GetWrapTMode repentogon/LuaInterfaces/LuaSprite.cpp:751 LayerState.md render and sprites todo +function LayerState HasCustomChampionShader repentogon/LuaInterfaces/LuaSprite.cpp:762 LayerState.md render and sprites todo +function LayerState HasCustomShader repentogon/LuaInterfaces/LuaSprite.cpp:759 LayerState.md render and sprites todo +function LayerState IsVisible repentogon/LuaInterfaces/LuaSprite.cpp:734 LayerState.md render and sprites todo +function LayerState SetColor repentogon/LuaInterfaces/LuaSprite.cpp:743 LayerState.md render and sprites todo +function LayerState SetCropOffset repentogon/LuaInterfaces/LuaSprite.cpp:745 LayerState.md render and sprites todo +function LayerState SetCustomChampionShader repentogon/LuaInterfaces/LuaSprite.cpp:760 LayerState.md render and sprites todo +function LayerState SetCustomShader repentogon/LuaInterfaces/LuaSprite.cpp:757 LayerState.md render and sprites todo +function LayerState SetFlipX repentogon/LuaInterfaces/LuaSprite.cpp:754 LayerState.md render and sprites todo +function LayerState SetFlipY repentogon/LuaInterfaces/LuaSprite.cpp:756 LayerState.md render and sprites todo +function LayerState SetPos repentogon/LuaInterfaces/LuaSprite.cpp:741 LayerState.md render and sprites todo +function LayerState SetRenderFlags repentogon/LuaInterfaces/LuaSprite.cpp:747 LayerState.md render and sprites todo +function LayerState SetRotation repentogon/LuaInterfaces/LuaSprite.cpp:739 LayerState.md render and sprites todo +function LayerState SetSize repentogon/LuaInterfaces/LuaSprite.cpp:737 LayerState.md render and sprites todo +function LayerState SetSpritesheet repentogon/LuaInterfaces/LuaSprite.cpp:730 LayerState.md render and sprites todo +function LayerState SetVisible repentogon/LuaInterfaces/LuaSprite.cpp:735 LayerState.md render and sprites todo +function LayerState SetWrapSMode repentogon/LuaInterfaces/LuaSprite.cpp:750 LayerState.md render and sprites todo +function LayerState SetWrapTMode repentogon/LuaInterfaces/LuaSprite.cpp:752 LayerState.md render and sprites todo +function Level CanPlaceRoom repentogon/LuaInterfaces/LuaLevel.cpp:362 Level.md level and room todo +function Level CanPlaceRoomAtDoor repentogon/LuaInterfaces/LuaLevel.cpp:364 Level.md level and room todo +function Level CanSpawnDoorOutline repentogon/LuaInterfaces/LuaLevel.cpp:348 Level.md level and room todo +function Level FindValidRoomPlacementLocations repentogon/LuaInterfaces/LuaLevel.cpp:366 Level.md level and room todo +function Level GetDimension repentogon/LuaInterfaces/LuaLevel.cpp:354 Level.md level and room todo +function Level GetForceSpecialQuest repentogon/LuaInterfaces/LuaLevel.cpp:355 Level.md level and room todo +function Level GetGenerationRNG repentogon/LuaInterfaces/LuaLevel.cpp:368 Level.md level and room todo +function Level GetGreedWavesClearedWithoutRedHeartDamage repentogon/LuaInterfaces/LuaLevel.cpp:360 Level.md level and room todo +function Level GetMyosotisPickups repentogon/LuaInterfaces/LuaLevel.cpp:357 Level.md level and room todo +function Level GetNeighboringRooms repentogon/LuaInterfaces/LuaLevel.cpp:367 Level.md level and room todo +function Level HasAbandonedMineshaft repentogon/LuaInterfaces/LuaLevel.cpp:349 Level.md level and room todo +function Level HasMirrorDimension repentogon/LuaInterfaces/LuaLevel.cpp:350 Level.md level and room todo +function Level HasPhotoDoor repentogon/LuaInterfaces/LuaLevel.cpp:351 Level.md level and room todo +function Level IsStageAvailable repentogon/LuaInterfaces/LuaLevel.cpp:353 Level.md level and room todo +function Level PlaceRoom repentogon/LuaInterfaces/LuaLevelGeneratorEntry.cpp:54 Level.md level and room todo +function Level SetForceSpecialQuest repentogon/LuaInterfaces/LuaLevel.cpp:356 Level.md level and room todo +function Level SetGreedWavesClearedWithoutRedHeartDamage repentogon/LuaInterfaces/LuaLevel.cpp:359 Level.md level and room todo +function Level SetName repentogon/LuaInterfaces/LuaLevel.cpp:352 Level.md level and room todo +function Level TryPlaceRoom repentogon/LuaInterfaces/LuaLevel.cpp:363 Level.md level and room todo +function Level TryPlaceRoomAtDoor repentogon/LuaInterfaces/LuaLevel.cpp:365 Level.md level and room todo +function LevelGenerator GetAllRooms repentogon/LuaInterfaces/LuaLevelGenerator.cpp:794 LevelGenerator.md level and room todo +function LevelGenerator GetDeadEnds repentogon/LuaInterfaces/LuaLevelGenerator.cpp:795 LevelGenerator.md level and room todo +function LevelGenerator GetNonDeadEnds repentogon/LuaInterfaces/LuaLevelGenerator.cpp:796 LevelGenerator.md level and room todo +function LevelGenerator PlaceRoom repentogon/LuaInterfaces/LuaLevelGenerator.cpp:797 LevelGenerator.md level and room todo +function LevelGeneratorEntry SetAllowedDoors repentogon/LuaInterfaces/LuaLevelGeneratorEntry.cpp:59 LevelGeneratorEntry.md level and room todo +function LevelGeneratorEntry SetColIdx repentogon/LuaInterfaces/LuaLevelGeneratorEntry.cpp:57 LevelGeneratorEntry.md level and room todo +function LevelGeneratorEntry SetLineIdx repentogon/LuaInterfaces/LuaLevelGeneratorEntry.cpp:58 LevelGeneratorEntry.md level and room todo +function LevelGeneratorRoom Column repentogon/LuaInterfaces/LuaLevelGenerator.cpp:808 LevelGeneratorRoom.md level and room todo +function LevelGeneratorRoom DoorMask repentogon/LuaInterfaces/LuaLevelGenerator.cpp:807 LevelGeneratorRoom.md level and room todo +function LevelGeneratorRoom GenerationIndex repentogon/LuaInterfaces/LuaLevelGenerator.cpp:806 LevelGeneratorRoom.md level and room todo +function LevelGeneratorRoom IsDeadEnd repentogon/LuaInterfaces/LuaLevelGenerator.cpp:812 LevelGeneratorRoom.md level and room todo +function LevelGeneratorRoom Neighbors repentogon/LuaInterfaces/LuaLevelGenerator.cpp:811 LevelGeneratorRoom.md level and room todo +function LevelGeneratorRoom Row repentogon/LuaInterfaces/LuaLevelGenerator.cpp:809 LevelGeneratorRoom.md level and room todo +function LevelGeneratorRoom Shape repentogon/LuaInterfaces/LuaLevelGenerator.cpp:810 LevelGeneratorRoom.md level and room todo +function LootList GetEntries repentogon/LuaInterfaces/LuaLootList.cpp:115 LootList.md items and pools todo +function LootList PushEntry repentogon/LuaInterfaces/LuaLootList.cpp:116 LootList.md items and pools todo +function LootListEntry GetRNG repentogon/LuaInterfaces/LuaLootListEntry.cpp:51 LootListEntry.md items and pools todo +function LootListEntry GetSeed repentogon/LuaInterfaces/LuaLootListEntry.cpp:50 LootListEntry.md items and pools todo +function LootListEntry GetSubType repentogon/LuaInterfaces/LuaLootListEntry.cpp:49 LootListEntry.md items and pools todo +function LootListEntry GetType repentogon/LuaInterfaces/LuaLootListEntry.cpp:47 LootListEntry.md items and pools todo +function LootListEntry GetVariant repentogon/LuaInterfaces/LuaLootListEntry.cpp:48 LootListEntry.md items and pools todo +function MainMenu GetContinueWidgetSprite repentogon/LuaInterfaces/Menus/LuaMainMenu.cpp:47 hud and menus todo +function MainMenu GetGameMenuSprite repentogon/LuaInterfaces/Menus/LuaMainMenu.cpp:46 hud and menus todo +function MainMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaMainMenu.cpp:48 hud and menus todo +function MainMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaMainMenu.cpp:49 hud and menus todo +function MenuManager GetActiveMenu repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:250 hud and menus todo +function MenuManager GetColorModifierLerpAmount repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:254 hud and menus todo +function MenuManager GetCurrentColorModifier repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:252 hud and menus todo +function MenuManager GetInputMask repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:259 hud and menus todo +function MenuManager GetSeeds repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:262 hud and menus todo +function MenuManager GetShadowSprite repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:245 hud and menus todo +function MenuManager GetTargetColorModifier repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:253 hud and menus todo +function MenuManager GetViewPosition repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:257 hud and menus todo +function MenuManager IsActive repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:261 hud and menus todo +function MenuManager SetActiveMenu repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:249 hud and menus todo +function MenuManager SetColorModifier repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:255 hud and menus todo +function MenuManager SetInputMask repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:260 hud and menus todo +function MenuManager SetViewPosition repentogon/LuaInterfaces/Menus/LuaMenuManager.cpp:258 hud and menus todo +function Minimap GetDisplayedSize repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:110 Minimap.md hud and menus todo +function Minimap GetHoldTime repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:108 Minimap.md hud and menus todo +function Minimap GetIconsSprite repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:112 Minimap.md hud and menus todo +function Minimap GetItemIconsSprite repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:111 Minimap.md hud and menus todo +function Minimap GetShakeDuration repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:113 Minimap.md hud and menus todo +function Minimap GetShakeOffset repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:115 Minimap.md hud and menus todo +function Minimap GetState repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:106 Minimap.md hud and menus todo +function Minimap Refresh repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:117 Minimap.md hud and menus todo +function Minimap SetHoldTime repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:109 Minimap.md hud and menus todo +function Minimap SetShakeDuration repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:114 Minimap.md hud and menus todo +function Minimap SetShakeOffset repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:116 Minimap.md hud and menus todo +function Minimap SetState repentogon/LuaInterfaces/HUD/LuaMinimap.cpp:107 Minimap.md hud and menus todo +function MinimapConfig GetBorderPadding repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:112 hud and menus todo +function MinimapConfig GetBorderScale repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:116 hud and menus todo +function MinimapConfig GetI1 repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:118 hud and menus todo +function MinimapConfig GetI2 repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:120 hud and menus todo +function MinimapConfig GetIconNum repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:122 hud and menus todo +function MinimapConfig GetPosOffsetX repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:114 hud and menus todo +function MinimapConfig GetSprite repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:109 hud and menus todo +function MinimapConfig GetVec1 repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:110 hud and menus todo +function MinimapConfig SetBorderPadding repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:113 hud and menus todo +function MinimapConfig SetBorderScale repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:117 hud and menus todo +function MinimapConfig SetI1 repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:119 hud and menus todo +function MinimapConfig SetI2 repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:121 hud and menus todo +function MinimapConfig SetIconNum repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:123 hud and menus todo +function MinimapConfig SetPosOffsetX repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:115 hud and menus todo +function MinimapConfig SetVec1 repentogon/LuaInterfaces/HUD/LuaMinimapConfig.cpp:111 hud and menus todo +function ModsMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaModsMenu.cpp:56 hud and menus todo +function ModsMenu GetSprite repentogon/LuaInterfaces/Menus/LuaModsMenu.cpp:55 hud and menus todo +function ModsMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaModsMenu.cpp:57 hud and menus todo +function ModsMenu WasListEdited repentogon/LuaInterfaces/Menus/LuaModsMenu.cpp:58 hud and menus todo +function MultiShotParams GetMultiEyeAngle repentogon/LuaInterfaces/LuaMultiShotParams.cpp:219 MultiShotParams.md tear and weapons todo +function MultiShotParams GetNumEyesActive repentogon/LuaInterfaces/LuaMultiShotParams.cpp:217 MultiShotParams.md tear and weapons todo +function MultiShotParams GetNumLanesPerEye repentogon/LuaInterfaces/LuaMultiShotParams.cpp:215 MultiShotParams.md tear and weapons todo +function MultiShotParams GetNumRandomDirTears repentogon/LuaInterfaces/LuaMultiShotParams.cpp:218 MultiShotParams.md tear and weapons todo +function MultiShotParams GetNumTears repentogon/LuaInterfaces/LuaMultiShotParams.cpp:214 MultiShotParams.md tear and weapons todo +function MultiShotParams GetSpreadAngle repentogon/LuaInterfaces/LuaMultiShotParams.cpp:216 MultiShotParams.md tear and weapons todo +function MultiShotParams IsCrossEyed repentogon/LuaInterfaces/LuaMultiShotParams.cpp:220 MultiShotParams.md tear and weapons todo +function MultiShotParams IsShootingBackwards repentogon/LuaInterfaces/LuaMultiShotParams.cpp:221 MultiShotParams.md tear and weapons todo +function MultiShotParams IsShootingSideways repentogon/LuaInterfaces/LuaMultiShotParams.cpp:222 MultiShotParams.md tear and weapons todo +function MultiShotParams SetIsCrossEyed repentogon/LuaInterfaces/LuaMultiShotParams.cpp:228 MultiShotParams.md tear and weapons todo +function MultiShotParams SetIsShootingBackwards repentogon/LuaInterfaces/LuaMultiShotParams.cpp:229 MultiShotParams.md tear and weapons todo +function MultiShotParams SetIsShootingSideways repentogon/LuaInterfaces/LuaMultiShotParams.cpp:230 MultiShotParams.md tear and weapons todo +function MultiShotParams SetMultiEyeAngle repentogon/LuaInterfaces/LuaMultiShotParams.cpp:227 MultiShotParams.md tear and weapons todo +function MultiShotParams SetNumEyesActive repentogon/LuaInterfaces/LuaMultiShotParams.cpp:226 MultiShotParams.md tear and weapons todo +function MultiShotParams SetNumLanesPerEye repentogon/LuaInterfaces/LuaMultiShotParams.cpp:224 MultiShotParams.md tear and weapons todo +function MultiShotParams SetNumRandomDirTears repentogon/LuaInterfaces/LuaMultiShotParams.cpp:231 MultiShotParams.md tear and weapons todo +function MultiShotParams SetNumTears repentogon/LuaInterfaces/LuaMultiShotParams.cpp:223 MultiShotParams.md tear and weapons todo +function MultiShotParams SetSpreadAngle repentogon/LuaInterfaces/LuaMultiShotParams.cpp:225 MultiShotParams.md tear and weapons todo +function MusicManager Crossfade repentogon/LuaInterfaces/LuaMusicManager.cpp:107 MusicManager.md audio review +function MusicManager Fadein repentogon/LuaInterfaces/LuaMusicManager.cpp:108 MusicManager.md audio review +function MusicManager GetCurrentJingleID repentogon/LuaInterfaces/LuaMusicManager.cpp:113 MusicManager.md audio todo +function MusicManager GetCurrentPitch repentogon/LuaInterfaces/LuaMusicManager.cpp:114 MusicManager.md audio todo +function MusicManager Play repentogon/LuaInterfaces/LuaMusicManager.cpp:106 MusicManager.md audio review +function MusicManager PlayJingle repentogon/LuaInterfaces/LuaMusicManager.cpp:111 MusicManager.md audio todo +function MusicManager SetCurrentPitch repentogon/LuaInterfaces/LuaMusicManager.cpp:115 MusicManager.md audio todo +function MusicManager StopJingle repentogon/LuaInterfaces/LuaMusicManager.cpp:112 MusicManager.md audio todo +function NightmareScene GetBackgroundSprite repentogon/LuaInterfaces/LuaNightmareScene.cpp:82 NightmareScene.md hud and menus todo +function NightmareScene GetBubbleSprite repentogon/LuaInterfaces/LuaNightmareScene.cpp:83 NightmareScene.md hud and menus todo +function NightmareScene GetPlayerExtraPortraitSprite repentogon/LuaInterfaces/LuaNightmareScene.cpp:87 NightmareScene.md hud and menus todo +function NightmareScene GetProgressBarMap repentogon/LuaInterfaces/LuaNightmareScene.cpp:85 NightmareScene.md hud and menus todo +function NightmareScene GetProgressBarSprite repentogon/LuaInterfaces/LuaNightmareScene.cpp:84 NightmareScene.md hud and menus todo +function NightmareScene IsDogmaNightmare repentogon/LuaInterfaces/LuaNightmareScene.cpp:86 NightmareScene.md hud and menus todo +function NullFrame GetColor repentogon/LuaInterfaces/LuaNullFrame.cpp:88 NullFrame.md render and sprites todo +function NullFrame GetPos repentogon/LuaInterfaces/LuaNullFrame.cpp:84 NullFrame.md render and sprites todo +function NullFrame GetRotation repentogon/LuaInterfaces/LuaNullFrame.cpp:85 NullFrame.md render and sprites todo +function NullFrame GetScale repentogon/LuaInterfaces/LuaNullFrame.cpp:87 NullFrame.md render and sprites todo +function NullFrame IsVisible repentogon/LuaInterfaces/LuaNullFrame.cpp:86 NullFrame.md render and sprites todo +function OptionsMenu GetGammaWidgetSprite repentogon/LuaInterfaces/Menus/LuaOptionsMenu.cpp:52 hud and menus todo +function OptionsMenu GetOptionsMenuSprite repentogon/LuaInterfaces/Menus/LuaOptionsMenu.cpp:51 hud and menus todo +function OptionsMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaOptionsMenu.cpp:53 hud and menus todo +function OptionsMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaOptionsMenu.cpp:54 hud and menus todo +function PathFinder Find Pathfinder.md npc todo docs only: vanilla changed through a hook +function PathFinder Move Pathfinder.md npc todo docs only: vanilla changed through a hook +function PauseMenu GetCompletionMarksSprite repentogon/LuaInterfaces/LuaPauseMenu.cpp:83 hud and menus todo +function PauseMenu GetMyStuffSprite repentogon/LuaInterfaces/LuaPauseMenu.cpp:82 hud and menus todo +function PauseMenu GetSelectedElement repentogon/LuaInterfaces/LuaPauseMenu.cpp:84 hud and menus todo +function PauseMenu GetSprite repentogon/LuaInterfaces/LuaPauseMenu.cpp:80 hud and menus todo +function PauseMenu GetState repentogon/LuaInterfaces/LuaPauseMenu.cpp:86 hud and menus todo +function PauseMenu GetStatsSprite repentogon/LuaInterfaces/LuaPauseMenu.cpp:81 hud and menus todo +function PauseMenu SetSelectedElement repentogon/LuaInterfaces/LuaPauseMenu.cpp:85 hud and menus todo +function PauseMenu SetState repentogon/LuaInterfaces/LuaPauseMenu.cpp:87 hud and menus todo +function PersistentGameData AddBestiaryKill repentogon/LuaInterfaces/LuaPersistentGameData.cpp:198 PersistentGameData.md persistent data and saves todo +function PersistentGameData AddBossKilled repentogon/LuaInterfaces/LuaPersistentGameData.cpp:199 PersistentGameData.md persistent data and saves todo +function PersistentGameData GetBestiaryDeathCount repentogon/LuaInterfaces/LuaPersistentGameData.cpp:196 PersistentGameData.md persistent data and saves todo +function PersistentGameData GetBestiaryEncounterCount repentogon/LuaInterfaces/LuaPersistentGameData.cpp:197 PersistentGameData.md persistent data and saves todo +function PersistentGameData GetBestiaryKillCount repentogon/LuaInterfaces/LuaPersistentGameData.cpp:195 PersistentGameData.md persistent data and saves todo +function PersistentGameData GetEventCounter repentogon/LuaInterfaces/LuaPersistentGameData.cpp:192 PersistentGameData.md persistent data and saves todo +function PersistentGameData IncreaseEventCounter repentogon/LuaInterfaces/LuaPersistentGameData.cpp:191 PersistentGameData.md persistent data and saves todo +function PersistentGameData IsBossKilled repentogon/LuaInterfaces/LuaPersistentGameData.cpp:200 PersistentGameData.md persistent data and saves todo +function PersistentGameData IsChallengeCompleted repentogon/LuaInterfaces/LuaPersistentGameData.cpp:194 PersistentGameData.md persistent data and saves todo +function PersistentGameData IsItemInCollection repentogon/LuaInterfaces/LuaPersistentGameData.cpp:193 PersistentGameData.md persistent data and saves todo +function PersistentGameData TryUnlock repentogon/LuaInterfaces/LuaPersistentGameData.cpp:189 PersistentGameData.md persistent data and saves todo +function PersistentGameData Unlock repentogon/LuaInterfaces/LuaPersistentGameData.cpp:188 PersistentGameData.md persistent data and saves todo +function PersistentGameData Unlocked repentogon/LuaInterfaces/LuaPersistentGameData.cpp:190 PersistentGameData.md persistent data and saves todo +function Pipeline NewPass repentogon/LuaInterfaces/LuaRender.cpp:2236 misc todo +function PlayerHUD GetFlashGoldHearts repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:142 PlayerHUD.md hud and menus todo +function PlayerHUD GetFlashRedHearts repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:138 PlayerHUD.md hud and menus todo +function PlayerHUD GetFlashSoulHearts repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:140 PlayerHUD.md hud and menus todo +function PlayerHUD GetHUD repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:131 PlayerHUD.md hud and menus todo +function PlayerHUD GetHeartByIndex repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:134 PlayerHUD.md hud and menus todo +function PlayerHUD GetHearts repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:133 PlayerHUD.md hud and menus todo +function PlayerHUD GetIndex repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:135 PlayerHUD.md hud and menus todo +function PlayerHUD GetLayout repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:136 PlayerHUD.md hud and menus todo +function PlayerHUD GetPlayer repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:130 PlayerHUD.md hud and menus todo +function PlayerHUD RenderActiveItem repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:132 PlayerHUD.md hud and menus todo +function PlayerHUD SetFlashGoldHearts repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:141 PlayerHUD.md hud and menus todo +function PlayerHUD SetFlashRedHearts repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:137 PlayerHUD.md hud and menus todo +function PlayerHUD SetFlashSoulHearts repentogon/LuaInterfaces/HUD/LuaPlayerHUD.cpp:139 PlayerHUD.md hud and menus todo +function PlayerHUDHeart GetFlashType repentogon/LuaInterfaces/HUD/LuaPlayerHUDHeart.cpp:53 PlayerHUDHeart.md hud and menus todo +function PlayerHUDHeart GetHeartAnim repentogon/LuaInterfaces/HUD/LuaPlayerHUDHeart.cpp:54 PlayerHUDHeart.md hud and menus todo +function PlayerHUDHeart GetHeartOverlayAnim repentogon/LuaInterfaces/HUD/LuaPlayerHUDHeart.cpp:55 PlayerHUDHeart.md hud and menus todo +function PlayerHUDHeart IsEternalHeartOverlayVisible repentogon/LuaInterfaces/HUD/LuaPlayerHUDHeart.cpp:50 PlayerHUDHeart.md hud and menus todo +function PlayerHUDHeart IsFadingHeart repentogon/LuaInterfaces/HUD/LuaPlayerHUDHeart.cpp:52 PlayerHUDHeart.md hud and menus todo +function PlayerHUDHeart IsGoldenHeartOverlayVisible repentogon/LuaInterfaces/HUD/LuaPlayerHUDHeart.cpp:51 PlayerHUDHeart.md hud and menus todo +function PlayerHUDHeart IsVisible repentogon/LuaInterfaces/HUD/LuaPlayerHUDHeart.cpp:49 PlayerHUDHeart.md hud and menus todo +function PlayerManager AnyPlayerTypeHasBirthright repentogon/LuaInterfaces/LuaPlayerManager.cpp:409 PlayerManager.md player todo +function PlayerManager AnyPlayerTypeHasCollectible repentogon/LuaInterfaces/LuaPlayerManager.cpp:411 PlayerManager.md player todo +function PlayerManager AnyPlayerTypeHasTrinket repentogon/LuaInterfaces/LuaPlayerManager.cpp:410 PlayerManager.md player todo +function PlayerManager AnyoneHasCollectible repentogon/LuaInterfaces/LuaPlayerManager.cpp:396 PlayerManager.md player todo +function PlayerManager AnyoneHasTrinket repentogon/LuaInterfaces/LuaPlayerManager.cpp:403 PlayerManager.md player todo +function PlayerManager AnyoneIsPlayerType repentogon/LuaInterfaces/LuaPlayerManager.cpp:407 PlayerManager.md player todo +function PlayerManager FirstBirthrightOwner repentogon/LuaInterfaces/LuaPlayerManager.cpp:408 PlayerManager.md player todo +function PlayerManager FirstCollectibleOwner repentogon/LuaInterfaces/LuaPlayerManager.cpp:395 PlayerManager.md player todo +function PlayerManager FirstPlayerByType repentogon/LuaInterfaces/LuaPlayerManager.cpp:406 PlayerManager.md player todo +function PlayerManager FirstTrinketOwner repentogon/LuaInterfaces/LuaPlayerManager.cpp:401 PlayerManager.md player todo +function PlayerManager GetEsauJrState repentogon/LuaInterfaces/LuaPlayerManager.cpp:405 PlayerManager.md player todo +function PlayerManager GetNumCollectibles repentogon/LuaInterfaces/LuaPlayerManager.cpp:399 PlayerManager.md player todo +function PlayerManager GetPlayers repentogon/LuaInterfaces/LuaPlayerManager.cpp:404 PlayerManager.md player todo +function PlayerManager GetRandomCollectibleOwner repentogon/LuaInterfaces/LuaPlayerManager.cpp:414 PlayerManager.md player todo +function PlayerManager GetRandomTrinketOwner repentogon/LuaInterfaces/LuaPlayerManager.cpp:415 PlayerManager.md player todo +function PlayerManager GetTotalTrinketMultiplier repentogon/LuaInterfaces/LuaPlayerManager.cpp:400 PlayerManager.md player todo +function PlayerManager IsCoopPlay repentogon/LuaInterfaces/LuaPlayerManager.cpp:398 PlayerManager.md player todo +function PlayerManager RemoveCoPlayer repentogon/LuaInterfaces/LuaPlayerManager.cpp:413 PlayerManager.md player todo +function PlayerManager SpawnCoPlayer2 repentogon/LuaInterfaces/LuaPlayerManager.cpp:397 PlayerManager.md player todo +function PlayerManager SpawnSelectedBaby repentogon/LuaInterfaces/LuaPlayerManager.cpp:412 PlayerManager.md player todo +function PlayerManager TriggerRoomClear repentogon/LuaInterfaces/LuaPlayerManager.cpp:402 PlayerManager.md player todo +function PocketItem GetSlot repentogon/LuaInterfaces/LuaPocketItem.cpp:30 PocketItem.md player todo +function PocketItem GetType repentogon/LuaInterfaces/LuaPocketItem.cpp:31 PocketItem.md player todo +function Point GetColor repentogon/LuaInterfaces/LuaBeamRenderer.cpp:415 render and sprites todo +function Point GetHeight repentogon/LuaInterfaces/LuaBeamRenderer.cpp:409 render and sprites todo +function Point GetIsWorldSpace repentogon/LuaInterfaces/LuaBeamRenderer.cpp:417 render and sprites todo +function Point GetPosition repentogon/LuaInterfaces/LuaBeamRenderer.cpp:413 render and sprites todo +function Point GetSpritesheetCoordinate repentogon/LuaInterfaces/LuaBeamRenderer.cpp:407 render and sprites todo +function Point GetWidth repentogon/LuaInterfaces/LuaBeamRenderer.cpp:411 render and sprites todo +function Point SetColor repentogon/LuaInterfaces/LuaBeamRenderer.cpp:416 render and sprites todo +function Point SetHeight repentogon/LuaInterfaces/LuaBeamRenderer.cpp:410 render and sprites todo +function Point SetIsWorldSpace repentogon/LuaInterfaces/LuaBeamRenderer.cpp:418 render and sprites todo +function Point SetPosition repentogon/LuaInterfaces/LuaBeamRenderer.cpp:414 render and sprites todo +function Point SetSpritesheetCoordinate repentogon/LuaInterfaces/LuaBeamRenderer.cpp:408 render and sprites todo +function Point SetWidth repentogon/LuaInterfaces/LuaBeamRenderer.cpp:412 render and sprites todo +function ProceduralEffect GetActionProperty repentogon/LuaInterfaces/ProcedualItems/LuaProceduralEffect.cpp:119 ProceduralEffect.md items and pools todo +function ProceduralEffect GetActionType repentogon/LuaInterfaces/ProcedualItems/LuaProceduralEffect.cpp:117 ProceduralEffect.md items and pools todo +function ProceduralEffect GetConditionProperty repentogon/LuaInterfaces/ProcedualItems/LuaProceduralEffect.cpp:118 ProceduralEffect.md items and pools todo +function ProceduralEffect GetConditionType repentogon/LuaInterfaces/ProcedualItems/LuaProceduralEffect.cpp:116 ProceduralEffect.md items and pools todo +function ProceduralEffect GetScore repentogon/LuaInterfaces/ProcedualItems/LuaProceduralEffect.cpp:122 ProceduralEffect.md items and pools todo +function ProceduralEffect GetTriggerChance repentogon/LuaInterfaces/ProcedualItems/LuaProceduralEffect.cpp:120 ProceduralEffect.md items and pools todo +function ProceduralEffect GetTriggerChanceScale repentogon/LuaInterfaces/ProcedualItems/LuaProceduralEffect.cpp:121 ProceduralEffect.md items and pools todo +function ProceduralItem GetDamage repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:88 ProceduralItem.md items and pools todo +function ProceduralItem GetEffect repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:86 ProceduralItem.md items and pools todo +function ProceduralItem GetEffectCount repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:85 ProceduralItem.md items and pools todo +function ProceduralItem GetFireDelay repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:89 ProceduralItem.md items and pools todo +function ProceduralItem GetID repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:87 ProceduralItem.md items and pools todo +function ProceduralItem GetItem repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:83 ProceduralItem.md items and pools todo +function ProceduralItem GetLuck repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:93 ProceduralItem.md items and pools todo +function ProceduralItem GetRange repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:91 ProceduralItem.md items and pools todo +function ProceduralItem GetShotSpeed repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:92 ProceduralItem.md items and pools todo +function ProceduralItem GetSpeed repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:90 ProceduralItem.md items and pools todo +function ProceduralItem GetTargetItem repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItem.cpp:84 ProceduralItem.md items and pools todo +function ProceduralItemManager CreateProceduralItem repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItemManager.cpp:50 ProceduralItemManager.md items and pools todo +function ProceduralItemManager GetProceduralItem repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItemManager.cpp:52 ProceduralItemManager.md items and pools todo +function ProceduralItemManager GetProceduralItemCount repentogon/LuaInterfaces/ProcedualItems/LuaProceduralItemManager.cpp:51 ProceduralItemManager.md items and pools todo +function REPENTOGON MeetsVersion repentogon/resources/scripts/main_ex.lua:107 Repentogon.md game done defined in Lua +function RNG GetShiftIdx repentogon/LuaInterfaces/LuaRNG.cpp:250 RNG.md misc todo +function RNG PhantomFloat repentogon/LuaInterfaces/LuaRNG.cpp:256 RNG.md misc todo +function RNG PhantomInt repentogon/LuaInterfaces/LuaRNG.cpp:255 RNG.md misc todo +function RNG PhantomNext repentogon/LuaInterfaces/LuaRNG.cpp:251 RNG.md misc todo +function RNG PhantomPrevious repentogon/LuaInterfaces/LuaRNG.cpp:253 RNG.md misc todo +function RNG PhantomVector repentogon/LuaInterfaces/LuaRNG.cpp:258 RNG.md misc todo +function RNG Previous repentogon/LuaInterfaces/LuaRNG.cpp:252 RNG.md misc todo +function RNG RandomInt repentogon/LuaInterfaces/LuaRNG.cpp:254 RNG.md misc review +function RNG RandomVector repentogon/LuaInterfaces/LuaRNG.cpp:257 RNG.md misc todo +function RNG SetSeed repentogon/LuaInterfaces/LuaRNG.cpp:249 RNG.md misc review +function RailManager GetRailsSprite repentogon/LuaInterfaces/Room/LuaRailManager.cpp:27 RailManager.md level and room todo +function RenderSet SlicePipeline repentogon/LuaInterfaces/LuaRender.cpp:2437 misc todo +function RenderSet SliceSingle repentogon/LuaInterfaces/LuaRender.cpp:2436 misc todo +function Renderer CreateImage repentogon/LuaInterfaces/LuaRender.cpp:3247 render and sprites todo +function Renderer GetClipPaneNormal repentogon/LuaInterfaces/LuaRender.cpp:3261 render and sprites todo +function Renderer GetClipPaneThreshold repentogon/LuaInterfaces/LuaRender.cpp:3262 render and sprites todo +function Renderer GetPixelationAmount repentogon/LuaInterfaces/LuaRender.cpp:3260 render and sprites todo +function Renderer GetShaderByType repentogon/LuaInterfaces/LuaRender.cpp:3251 render and sprites todo +function Renderer LoadImage repentogon/LuaInterfaces/LuaRender.cpp:3246 render and sprites todo +function Renderer LoadShader repentogon/LuaInterfaces/LuaRender.cpp:3252 render and sprites todo +function Renderer RenderToImage repentogon/LuaInterfaces/LuaRender.cpp:3248 render and sprites todo +function Renderer StartTransformation repentogon/LuaInterfaces/LuaRender.cpp:3249 render and sprites todo +function Room CanPickupGridEntity repentogon/LuaInterfaces/Room/LuaRoom.cpp:550 Room.md level and room todo +function Room CanSpawnObstacleAtPosition repentogon/LuaInterfaces/Room/LuaRoom.cpp:536 Room.md level and room todo +function Room ClearBossHazards repentogon/LuaInterfaces/Room/LuaRoom.cpp:577 Room.md level and room todo +function Room DoLightningStrike repentogon/LuaInterfaces/Room/LuaRoom.cpp:567 Room.md level and room todo +function Room GetBackdrop repentogon/LuaInterfaces/LuaBackdrop.cpp:99 Room.md level and room todo +function Room GetBackdropType repentogon/LuaInterfaces/Room/LuaRoom.cpp:571 Room.md level and room review +function Room GetBossVictoryJingle repentogon/LuaInterfaces/Room/LuaRoom.cpp:573 Room.md level and room todo +function Room GetCamera repentogon/LuaInterfaces/LuaCamera.cpp:65 Room.md level and room todo +function Room GetChampionBossChance repentogon/LuaInterfaces/Room/LuaRoom.cpp:554 Room.md level and room todo +function Room GetEffects repentogon/LuaInterfaces/Room/LuaRoom.cpp:547 Room.md level and room todo +function Room GetFXLayers repentogon/LuaInterfaces/LuaFXLayers.cpp:25 Room.md level and room todo +function Room GetFXParams repentogon/LuaInterfaces/LuaFXParams.cpp:161 Room.md level and room todo +function Room GetFloorColor repentogon/LuaInterfaces/Room/LuaRoom.cpp:539 Room.md level and room todo +function Room GetGreedWaveTimer repentogon/LuaInterfaces/Room/LuaRoom.cpp:560 Room.md level and room todo +function Room GetGridIndexByTile repentogon/LuaInterfaces/Room/LuaRoom.cpp:552 Room.md level and room todo +function Room GetItemPool repentogon/LuaInterfaces/Room/LuaRoom.cpp:575 Room.md level and room todo +function Room GetLRoomAreaDesc repentogon/LuaInterfaces/Room/LuaLRoomAreaDesc.cpp:52 Room.md level and room review +function Room GetLRoomTileDesc repentogon/LuaInterfaces/Room/LuaLRoomTileDesc.cpp:71 Room.md level and room review +function Room GetLightningIntensity repentogon/LuaInterfaces/Room/LuaRoom.cpp:565 Room.md level and room todo +function Room GetNumRainSpawners repentogon/LuaInterfaces/Room/LuaRoom.cpp:570 Room.md level and room todo +function Room GetRail repentogon/LuaInterfaces/Room/LuaRoom.cpp:548 Room.md level and room todo +function Room GetRailManager repentogon/LuaInterfaces/Room/LuaRailManager.cpp:24 Room.md level and room todo +function Room GetRainIntensity repentogon/LuaInterfaces/Room/LuaRoom.cpp:568 Room.md level and room todo +function Room GetRoomClearDelay repentogon/LuaInterfaces/Room/LuaRoom.cpp:558 Room.md level and room todo +function Room GetShopItemPrice repentogon/LuaInterfaces/Room/LuaRoom.cpp:533 Room.md level and room todo +function Room GetWallColor repentogon/LuaInterfaces/Room/LuaRoom.cpp:540 Room.md level and room todo +function Room GetWaterAmount repentogon/LuaInterfaces/Room/LuaRoom.cpp:537 Room.md level and room todo +function Room GetWaterColor repentogon/LuaInterfaces/Room/LuaRoom.cpp:541 Room.md level and room todo +function Room GetWaterColorMultiplier repentogon/LuaInterfaces/Room/LuaRoom.cpp:544 Room.md level and room todo +function Room IsChampionBossSeed repentogon/LuaInterfaces/Room/LuaRoom.cpp:555 Room.md level and room todo +function Room IsPersistentRoomEntity repentogon/LuaInterfaces/Room/LuaRoom.cpp:562 Room.md level and room todo +function Room PickupGridEntity repentogon/LuaInterfaces/Room/LuaRoom.cpp:551 Room.md level and room todo +function Room RemoveGridEntityImmediate repentogon/LuaInterfaces/Room/LuaRoom.cpp:535 Room.md level and room todo +function Room SaveState repentogon/LuaInterfaces/Room/LuaRoom.cpp:572 Room.md level and room todo +function Room SetBackdropType repentogon/LuaInterfaces/Room/LuaRoom.cpp:546 Room.md level and room todo +function Room SetGreedWaveTimer repentogon/LuaInterfaces/Room/LuaRoom.cpp:561 Room.md level and room todo +function Room SetItemPool repentogon/LuaInterfaces/Room/LuaRoom.cpp:574 Room.md level and room todo +function Room SetLavaIntensity repentogon/LuaInterfaces/Room/LuaRoom.cpp:564 Room.md level and room todo +function Room SetLightningIntensity repentogon/LuaInterfaces/Room/LuaRoom.cpp:566 Room.md level and room todo +function Room SetPauseTimer repentogon/LuaInterfaces/Room/LuaRoom.cpp:553 Room.md level and room todo +function Room SetRail repentogon/LuaInterfaces/Room/LuaRoom.cpp:549 Room.md level and room todo +function Room SetRainIntensity repentogon/LuaInterfaces/Room/LuaRoom.cpp:569 Room.md level and room todo +function Room SetRedHeartDamage repentogon/LuaInterfaces/Room/LuaRoom.cpp:531 Room.md level and room review +function Room SetRoomClearDelay repentogon/LuaInterfaces/Room/LuaRoom.cpp:559 Room.md level and room todo +function Room SetWaterAmount repentogon/LuaInterfaces/Room/LuaRoom.cpp:538 Room.md level and room todo +function Room SetWaterColor repentogon/LuaInterfaces/Room/LuaRoom.cpp:542 Room.md level and room todo +function Room SetWaterColorMultiplier repentogon/LuaInterfaces/Room/LuaRoom.cpp:545 Room.md level and room todo +function Room SetWaterCurrent repentogon/LuaInterfaces/Room/LuaRoom.cpp:543 Room.md level and room todo +function Room SpawnGridEntity repentogon/LuaInterfaces/Room/LuaRoom.cpp:534 Room.md level and room review +function Room TriggerOutput repentogon/LuaInterfaces/Room/LuaRoom.cpp:576 Room.md level and room todo +function Room TriggerRestock repentogon/LuaInterfaces/Room/LuaRoom.cpp:578 Room.md level and room todo +function Room TryGetShopDiscount repentogon/LuaInterfaces/Room/LuaRoom.cpp:557 Room.md level and room todo +function Room TrySpawnSpecialQuestDoor repentogon/LuaInterfaces/Room/LuaRoom.cpp:563 Room.md level and room review +function Room UpdateColorModifier repentogon/LuaInterfaces/Room/LuaRoom.cpp:556 Room.md level and room todo +function RoomConfig AddRooms repentogon/LuaInterfaces/Room/LuaRoomConfig.cpp:181 RoomConfig.md level and room todo +function RoomConfig GetRandomRoom repentogon/LuaInterfaces/Room/LuaRoomConfig.cpp:179 RoomConfig.md level and room todo +function RoomConfig GetRoomByStageTypeAndVariant repentogon/LuaInterfaces/Room/LuaRoomConfig.cpp:178 RoomConfig.md level and room todo +function RoomConfig GetStage repentogon/LuaInterfaces/Room/LuaRoomConfig.cpp:180 RoomConfig.md level and room todo +function RoomConfig LoadStb repentogon/LuaInterfaces/Room/LuaRoomConfig.cpp:182 RoomConfig.md level and room todo +function RoomConfigSet AddRooms repentogon/LuaInterfaces/Room/LuaRoomConfigSet.cpp:98 CcpContainer_RoomConfigSet.md level and room todo +function RoomConfigSet Get repentogon/LuaInterfaces/Room/LuaRoomConfigSet.cpp:96 CcpContainer_RoomConfigSet.md level and room todo +function RoomConfigSet LoadStb repentogon/LuaInterfaces/Room/LuaRoomConfigSet.cpp:99 CcpContainer_RoomConfigSet.md level and room todo +function RoomConfigSet __len repentogon/LuaInterfaces/Room/LuaRoomConfigSet.cpp:97 CcpContainer_RoomConfigSet.md level and room todo +function RoomConfigStage GetBackdrop repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:168 RoomConfigStage.md level and room todo +function RoomConfigStage GetBossSpot repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:177 RoomConfigStage.md level and room todo +function RoomConfigStage GetDisplayName repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:173 RoomConfigStage.md level and room todo +function RoomConfigStage GetID repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:172 RoomConfigStage.md level and room todo +function RoomConfigStage GetMusic repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:170 RoomConfigStage.md level and room todo +function RoomConfigStage GetPlayerSpot repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:175 RoomConfigStage.md level and room todo +function RoomConfigStage GetRoomSet repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:181 RoomConfigStage.md level and room todo +function RoomConfigStage GetSuffix repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:179 RoomConfigStage.md level and room todo +function RoomConfigStage GetXMLName repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:182 RoomConfigStage.md level and room todo +function RoomConfigStage IsLoaded repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:184 RoomConfigStage.md level and room todo +function RoomConfigStage SetBackdrop repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:169 RoomConfigStage.md level and room todo +function RoomConfigStage SetBossSpot repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:178 RoomConfigStage.md level and room todo +function RoomConfigStage SetDisplayName repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:174 RoomConfigStage.md level and room todo +function RoomConfigStage SetMusic repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:171 RoomConfigStage.md level and room todo +function RoomConfigStage SetPlayerSpot repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:176 RoomConfigStage.md level and room todo +function RoomConfigStage SetSuffix repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:180 RoomConfigStage.md level and room todo +function RoomConfigStage SetXMLName repentogon/LuaInterfaces/Room/LuaRoomConfigStage.cpp:183 RoomConfigStage.md level and room todo +function RoomDescriptor AddRestrictedGridIndex repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:325 RoomDescriptor.md level and room todo +function RoomDescriptor AllowedDoors repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:109 RoomDescriptor.md level and room review +function RoomDescriptor CreateGroup repentogon/resources/scripts/repentogon_api/room_descriptor.lua:48 RoomDescriptor.md level and room done defined in Lua +function RoomDescriptor Doors repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:113 RoomDescriptor.md level and room todo +function RoomDescriptor GetDecoSaveState repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:323 RoomDescriptor.md level and room todo +function RoomDescriptor GetDimension repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:328 RoomDescriptor.md level and room todo +function RoomDescriptor GetEntitiesSaveState repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:322 RoomDescriptor.md level and room todo +function RoomDescriptor GetErrorTrinketEffect repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:335 RoomDescriptor.md level and room todo +function RoomDescriptor GetGridEntitiesSaveState repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:326 RoomDescriptor.md level and room todo +function RoomDescriptor GetGroup repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:333 RoomDescriptor.md level and room todo +function RoomDescriptor GetGroupByName repentogon/resources/scripts/repentogon_api/room_descriptor.lua:49 RoomDescriptor.md level and room done defined in Lua +function RoomDescriptor GetNeighboringRooms repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:329 RoomDescriptor.md level and room todo +function RoomDescriptor GetRestrictedGridIndexes repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:324 RoomDescriptor.md level and room todo +function RoomDescriptor GetTaintedKeeperCoinSpawns repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:331 RoomDescriptor.md level and room todo +function RoomDescriptor GetValidNeighborPlacementLocations repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:330 RoomDescriptor.md level and room todo +function RoomDescriptor InitSeeds repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:327 RoomDescriptor.md level and room todo +function RoomDescriptor SetGroup repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:334 RoomDescriptor.md level and room todo +function RoomDescriptor SetTaintedKeeperCoinSpawns repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:332 RoomDescriptor.md level and room todo +function RoomTransition GetPlayerExtraPortraitSprite repentogon/LuaInterfaces/Room/LuaRoomTransition.cpp:88 RoomTransition.md level and room todo +function RoomTransition GetTransitionMode repentogon/LuaInterfaces/Room/LuaRoomTransition.cpp:86 RoomTransition.md level and room todo +function RoomTransition GetVersusScreenSprite repentogon/LuaInterfaces/Room/LuaRoomTransition.cpp:84 RoomTransition.md level and room todo +function RoomTransition IsRenderingBossIntro repentogon/LuaInterfaces/Room/LuaRoomTransition.cpp:87 RoomTransition.md level and room todo +function RoomTransition StartBossIntro repentogon/LuaInterfaces/Room/LuaRoomTransition.cpp:85 RoomTransition.md level and room todo +function SaveMenu GetDeleteButtonSprite repentogon/LuaInterfaces/Menus/LuaSaveMenu.cpp:154 hud and menus todo +function SaveMenu GetDeletePopupSprite repentogon/LuaInterfaces/Menus/LuaSaveMenu.cpp:155 hud and menus todo +function SaveMenu GetSave1DrawingSprite repentogon/LuaInterfaces/Menus/LuaSaveMenu.cpp:156 hud and menus todo +function SaveMenu GetSave2DrawingSprite repentogon/LuaInterfaces/Menus/LuaSaveMenu.cpp:157 hud and menus todo +function SaveMenu GetSave3DrawingSprite repentogon/LuaInterfaces/Menus/LuaSaveMenu.cpp:158 hud and menus todo +function SaveMenu GetSaveSelectMenuSprite repentogon/LuaInterfaces/Menus/LuaSaveMenu.cpp:153 hud and menus todo +function SaveMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaSaveMenu.cpp:159 hud and menus todo +function SaveMenu IsDeleteActive repentogon/LuaInterfaces/Menus/LuaSaveMenu.cpp:161 hud and menus todo +function SaveMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaSaveMenu.cpp:160 hud and menus todo +function SaveMenu SetSlotSpritesheet repentogon/LuaInterfaces/Menus/LuaSaveMenu.cpp:162 hud and menus todo +function SaveStateManager ClearGameData repentogon/resources/scripts/main_ex.lua:2335 game done defined in Lua +function SaveStateManager GetEntityData repentogon/resources/scripts/main_ex.lua:2336 entities done defined in Lua +function SaveStateManager GetEntitySaveStateData repentogon/resources/scripts/main_ex.lua:2337 persistent data and saves done defined in Lua +function SaveStateManager GetGameData repentogon/resources/scripts/main_ex.lua:2334 game done defined in Lua +function SaveStateManager TryGetEntityData repentogon/resources/scripts/main_ex.lua:2338 entities done defined in Lua +function SaveStateManager TryGetEntitySaveStateData repentogon/resources/scripts/main_ex.lua:2339 persistent data and saves done defined in Lua +function ScoreSheet AddFinishedStage repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:203 ScoreSheet.md hud and menus todo +function ScoreSheet Calculate repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:186 ScoreSheet.md hud and menus todo +function ScoreSheet GetBeastBonus repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:206 ScoreSheet.md hud and menus todo +function ScoreSheet GetBlueBabyBonus repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:189 ScoreSheet.md hud and menus todo +function ScoreSheet GetDamagePenalty repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:194 ScoreSheet.md hud and menus todo +function ScoreSheet GetDeliriumBonus repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:205 ScoreSheet.md hud and menus todo +function ScoreSheet GetExplorationBonus repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:193 ScoreSheet.md hud and menus todo +function ScoreSheet GetItemPenalty repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:196 ScoreSheet.md hud and menus todo +function ScoreSheet GetLambBonus repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:190 ScoreSheet.md hud and menus todo +function ScoreSheet GetMegaSatanBonus repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:191 ScoreSheet.md hud and menus todo +function ScoreSheet GetMotherBonus repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:204 ScoreSheet.md hud and menus todo +function ScoreSheet GetRunEnding repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:201 ScoreSheet.md hud and menus todo +function ScoreSheet GetRunTime repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:200 ScoreSheet.md hud and menus todo +function ScoreSheet GetRunTimeLevel repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:198 ScoreSheet.md hud and menus todo +function ScoreSheet GetRunTimeLevelType repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:199 ScoreSheet.md hud and menus todo +function ScoreSheet GetRushBonus repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:192 ScoreSheet.md hud and menus todo +function ScoreSheet GetSchwagBonus repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:188 ScoreSheet.md hud and menus todo +function ScoreSheet GetStageBonus repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:187 ScoreSheet.md hud and menus todo +function ScoreSheet GetTimePenalty repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:195 ScoreSheet.md hud and menus todo +function ScoreSheet GetTotalScore repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:197 ScoreSheet.md hud and menus todo +function ScoreSheet SetRunEnding repentogon/LuaInterfaces/HUD/LuaScoreSheet.cpp:202 ScoreSheet.md hud and menus todo +function Seeds SetStageSeed repentogon/LuaInterfaces/LuaSeeds.cpp:29 Seeds.md game todo +function Shader Clear repentogon/LuaInterfaces/LuaRender.cpp:426 render and sprites todo +function Shader SetBlendMode repentogon/LuaInterfaces/LuaRender.cpp:427 render and sprites todo +function Shape Capsule repentogon/LuaInterfaces/LuaShape.cpp:48 entities todo +function Shape Circle repentogon/LuaInterfaces/LuaShape.cpp:49 entities todo +function Shape GetTimeout repentogon/LuaInterfaces/LuaShape.cpp:46 entities todo +function Shape SetTimeout repentogon/LuaInterfaces/LuaShape.cpp:47 entities todo +function SourceQuad ConvertToPixelSpace repentogon/LuaInterfaces/LuaRender.cpp:781 render and sprites todo +function SourceQuad ConvertToUVSpace repentogon/LuaInterfaces/LuaRender.cpp:782 render and sprites todo +function SourceQuad Copy repentogon/LuaInterfaces/LuaRender.cpp:779 render and sprites todo +function SourceQuad IsUVSpace repentogon/LuaInterfaces/LuaRender.cpp:780 render and sprites todo +function SourceQuad NewFromBounds repentogon/LuaInterfaces/LuaRender.cpp:3218 render and sprites todo +function SourceQuad NewFromRectangle repentogon/LuaInterfaces/LuaRender.cpp:3221 render and sprites todo +function SourceQuad __tostring repentogon/LuaInterfaces/LuaRender.cpp:783 render and sprites todo +function SpecialSeedsMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaSpecialSeedsMenu.cpp:37 hud and menus todo +function SpecialSeedsMenu GetSprite repentogon/LuaInterfaces/Menus/LuaSpecialSeedsMenu.cpp:36 hud and menus todo +function SpecialSeedsMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaSpecialSeedsMenu.cpp:38 hud and menus todo +function Sprite ClearCustomChampionShader repentogon/LuaInterfaces/LuaSprite.cpp:718 Sprite.md render and sprites todo +function Sprite ClearCustomShader repentogon/LuaInterfaces/LuaSprite.cpp:715 Sprite.md render and sprites todo +function Sprite Continue repentogon/LuaInterfaces/LuaSprite.cpp:709 Sprite.md render and sprites todo +function Sprite ContinueOverlay repentogon/LuaInterfaces/LuaSprite.cpp:710 Sprite.md render and sprites todo +function Sprite Copy repentogon/LuaInterfaces/LuaSprite.cpp:695 Sprite.md render and sprites todo +function Sprite GetAllAnimationData repentogon/LuaInterfaces/LuaAnimationData.cpp:142 Sprite.md render and sprites todo +function Sprite GetAllLayers repentogon/LuaInterfaces/LuaSprite.cpp:697 Sprite.md render and sprites todo +function Sprite GetAnimationData repentogon/LuaInterfaces/LuaAnimationData.cpp:141 Sprite.md render and sprites todo +function Sprite GetCurrentAnimationData repentogon/LuaInterfaces/LuaAnimationData.cpp:139 Sprite.md render and sprites todo +function Sprite GetEventTriggerFrames repentogon/LuaInterfaces/LuaSprite.cpp:720 Sprite.md render and sprites todo +function Sprite GetLayer repentogon/LuaInterfaces/LuaSprite.cpp:696 Sprite.md render and sprites todo +function Sprite GetLayerFrameData repentogon/LuaInterfaces/LuaSprite.cpp:705 Sprite.md render and sprites todo +function Sprite GetNullFrame repentogon/LuaInterfaces/LuaNullFrame.cpp:80 Sprite.md render and sprites todo +function Sprite GetOverlayAnimationData repentogon/LuaInterfaces/LuaAnimationData.cpp:140 Sprite.md render and sprites todo +function Sprite GetOverlayLayerFrameData repentogon/LuaInterfaces/LuaSprite.cpp:706 Sprite.md render and sprites todo +function Sprite GetOverlayNullFrame repentogon/LuaInterfaces/LuaNullFrame.cpp:81 Sprite.md render and sprites todo +function Sprite GetRenderFlags repentogon/LuaInterfaces/LuaSprite.cpp:711 Sprite.md render and sprites todo +function Sprite GetSpritesheet repentogon/LuaInterfaces/LuaSprite.cpp:700 Sprite.md render and sprites todo +function Sprite HasCustomChampionShader repentogon/LuaInterfaces/LuaSprite.cpp:719 Sprite.md render and sprites todo +function Sprite HasCustomShader repentogon/LuaInterfaces/LuaSprite.cpp:716 Sprite.md render and sprites todo +function Sprite IsOverlayEventTriggered repentogon/LuaInterfaces/LuaSprite.cpp:701 Sprite.md render and sprites todo +function Sprite LoadRGON repentogon/LuaInterfaces/LuaSprite.cpp:713 render and sprites todo +function Sprite ReplaceSpritesheet repentogon/LuaInterfaces/LuaSprite.cpp:698 Sprite.md render and sprites review +function Sprite SetCustomChampionShader repentogon/LuaInterfaces/LuaSprite.cpp:717 Sprite.md render and sprites todo +function Sprite SetCustomShader repentogon/LuaInterfaces/LuaSprite.cpp:714 Sprite.md render and sprites todo +function Sprite SetOverlayFrame repentogon/LuaInterfaces/LuaSprite.cpp:703 Sprite.md render and sprites review +function Sprite SetOverlayLayerFrame repentogon/LuaInterfaces/LuaSprite.cpp:704 Sprite.md render and sprites todo +function Sprite SetRenderFlags repentogon/LuaInterfaces/LuaSprite.cpp:712 Sprite.md render and sprites todo +function Sprite SetSpritesheet repentogon/LuaInterfaces/LuaSprite.cpp:699 Sprite.md render and sprites todo +function Sprite Stop repentogon/LuaInterfaces/LuaSprite.cpp:707 Sprite.md render and sprites review +function Sprite StopOverlay repentogon/LuaInterfaces/LuaSprite.cpp:708 Sprite.md render and sprites todo +function Sprite WasOverlayEventTriggered repentogon/LuaInterfaces/LuaSprite.cpp:702 Sprite.md render and sprites todo +function StageTransition GetSameStage repentogon/LuaInterfaces/LuaStageTransition.cpp:35 StageTransition.md game todo +function StageTransition SetSameStage repentogon/LuaInterfaces/LuaStageTransition.cpp:34 StageTransition.md game todo +function StatsMenu GetSecretsMenuCursorLeftSprite repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:176 hud and menus todo +function StatsMenu GetSecretsMenuCursorRightSprite repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:177 hud and menus todo +function StatsMenu GetSecretsMenuMiniSprite1 repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:167 hud and menus todo +function StatsMenu GetSecretsMenuMiniSprite2 repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:168 hud and menus todo +function StatsMenu GetSecretsMenuMiniSprite3 repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:169 hud and menus todo +function StatsMenu GetSecretsMenuMiniSprite4 repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:170 hud and menus todo +function StatsMenu GetSecretsMenuMiniSprite5 repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:171 hud and menus todo +function StatsMenu GetSecretsMenuMiniSprite6 repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:172 hud and menus todo +function StatsMenu GetSecretsMenuMiniSprite7 repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:173 hud and menus todo +function StatsMenu GetSecretsMenuMiniSprite8 repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:174 hud and menus todo +function StatsMenu GetSecretsMenuMiniSprite9 repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:175 hud and menus todo +function StatsMenu GetSecretsMenuSprite repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:166 hud and menus todo +function StatsMenu GetSelectedElement repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:179 hud and menus todo +function StatsMenu GetStatsMenuSprite repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:165 hud and menus todo +function StatsMenu IsSecretsMenuVisible repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:178 hud and menus todo +function StatsMenu SetSelectedElement repentogon/LuaInterfaces/Menus/LuaStatsMenu.cpp:180 hud and menus todo +function TitleMenu GetSprite repentogon/LuaInterfaces/Menus/LuaTitleMenu.cpp:17 hud and menus todo +function Transformer Apply repentogon/LuaInterfaces/LuaRender.cpp:525 render and sprites todo +function Transformer IsValid repentogon/LuaInterfaces/LuaRender.cpp:526 render and sprites todo +function Transformer Render repentogon/LuaInterfaces/LuaRender.cpp:523 render and sprites todo +function Transformer RenderEx repentogon/LuaInterfaces/LuaRender.cpp:524 render and sprites todo +function UnitTests Build repentogon/RoomConfigUtility.cpp:1009 misc todo debug builds only +function UnitTests CompareSaves repentogon/SaveSyncing/SaveSyncing.cpp:865 persistent data and saves todo debug builds only +function UnitTests Deserialize repentogon/RoomConfigUtility.cpp:1011 misc todo debug builds only +function UnitTests GetTestRoom repentogon/RoomConfigUtility.cpp:1008 level and room todo debug builds only +function UnitTests Serialize repentogon/RoomConfigUtility.cpp:1010 misc todo debug builds only +function UnitTests TestSync repentogon/SaveSyncing/SaveSyncing.cpp:864 misc todo debug builds only +function UnitTests ValidateCloudSave repentogon/SaveSyncing/SaveSyncing.cpp:862 persistent data and saves todo debug builds only +function UnitTests ValidateLocalSave repentogon/SaveSyncing/SaveSyncing.cpp:861 persistent data and saves todo debug builds only +function Vector FromAngle repentogon/LuaInterfaces/LuaVector.cpp:159 Vector.md misc done +function Vector Lerp repentogon/LuaInterfaces/LuaVector.cpp:182 misc review +function Vector __add repentogon/LuaInterfaces/LuaVector.cpp:176 Vector.md misc review +function Vector __div repentogon/LuaInterfaces/LuaVector.cpp:173 Vector.md misc review +function Vector __mul repentogon/LuaInterfaces/LuaVector.cpp:170 Vector.md misc review +function Vector __sub repentogon/LuaInterfaces/LuaVector.cpp:179 Vector.md misc review +function Vertex Dump repentogon/LuaInterfaces/LuaRender.cpp:1941 misc todo +function VertexBuffer GetElements repentogon/LuaInterfaces/LuaRender.cpp:2029 misc todo +function VertexBuffer GetVertex repentogon/LuaInterfaces/LuaRender.cpp:2028 misc todo +function VertexBuffer __len repentogon/LuaInterfaces/LuaRender.cpp:2030 misc todo +function VertexDescriptor AddAttribute repentogon/LuaInterfaces/LuaRender.cpp:1670 misc todo +function Weapon ClearItemAnim repentogon/LuaInterfaces/LuaWeapon.cpp:220 Weapon.md tear and weapons todo +function Weapon GetCharge repentogon/LuaInterfaces/LuaWeapon.cpp:210 Weapon.md tear and weapons todo +function Weapon GetDirection repentogon/LuaInterfaces/LuaWeapon.cpp:212 Weapon.md tear and weapons todo +function Weapon GetFireDelay repentogon/LuaInterfaces/LuaWeapon.cpp:207 Weapon.md tear and weapons todo +function Weapon GetMainEntity repentogon/LuaInterfaces/LuaWeapon.cpp:222 Weapon.md tear and weapons todo +function Weapon GetMaxCharge repentogon/LuaInterfaces/LuaWeapon.cpp:223 Weapon.md tear and weapons todo +function Weapon GetMaxFireDelay repentogon/LuaInterfaces/LuaWeapon.cpp:209 Weapon.md tear and weapons todo +function Weapon GetModifiers repentogon/LuaInterfaces/LuaWeapon.cpp:214 Weapon.md tear and weapons todo +function Weapon GetNumFired repentogon/LuaInterfaces/LuaWeapon.cpp:216 Weapon.md tear and weapons todo +function Weapon GetOwner repentogon/LuaInterfaces/LuaWeapon.cpp:206 Weapon.md tear and weapons todo +function Weapon GetWeaponType repentogon/LuaInterfaces/LuaWeapon.cpp:213 Weapon.md tear and weapons todo +function Weapon IsAxisAligned repentogon/LuaInterfaces/LuaWeapon.cpp:218 Weapon.md tear and weapons todo +function Weapon IsItemAnimFinished repentogon/LuaInterfaces/LuaWeapon.cpp:219 Weapon.md tear and weapons todo +function Weapon PlayItemAnim repentogon/LuaInterfaces/LuaWeapon.cpp:217 Weapon.md tear and weapons todo +function Weapon SetCharge repentogon/LuaInterfaces/LuaWeapon.cpp:211 Weapon.md tear and weapons todo +function Weapon SetFireDelay repentogon/LuaInterfaces/LuaWeapon.cpp:208 Weapon.md tear and weapons todo +function Weapon SetHeadLockTime repentogon/LuaInterfaces/LuaWeapon.cpp:221 Weapon.md tear and weapons todo +function Weapon SetModifiers repentogon/LuaInterfaces/LuaWeapon.cpp:215 Weapon.md tear and weapons todo +function WeightedOutcomePicker AddOutcomeFloat repentogon/LuaInterfaces/LuaWeightedOutcomePicker.cpp:111 WeightedOutcomePicker.md items and pools todo +function WeightedOutcomePicker AddOutcomeWeight repentogon/LuaInterfaces/LuaWeightedOutcomePicker.cpp:112 WeightedOutcomePicker.md items and pools todo +function WeightedOutcomePicker ClearOutcomes repentogon/LuaInterfaces/LuaWeightedOutcomePicker.cpp:113 WeightedOutcomePicker.md items and pools todo +function WeightedOutcomePicker GetNumOutcomes repentogon/LuaInterfaces/LuaWeightedOutcomePicker.cpp:114 WeightedOutcomePicker.md items and pools todo +function WeightedOutcomePicker GetOutcomes repentogon/LuaInterfaces/LuaWeightedOutcomePicker.cpp:115 WeightedOutcomePicker.md items and pools todo +function WeightedOutcomePicker PickOutcome repentogon/LuaInterfaces/LuaWeightedOutcomePicker.cpp:116 WeightedOutcomePicker.md items and pools todo +function WeightedOutcomePicker RemoveOutcome repentogon/LuaInterfaces/LuaWeightedOutcomePicker.cpp:117 WeightedOutcomePicker.md items and pools todo +function XMLData GetBossColorByTypeVarSub repentogon/Patches/XMLData.cpp:2489 XMLData.md items and pools todo +function XMLData GetCurrentMod repentogon/Patches/XMLData.cpp:2492 XMLData.md items and pools todo +function XMLData GetEntityByTypeVarSub repentogon/Patches/XMLData.cpp:2488 XMLData.md items and pools todo +function XMLData GetEntryById repentogon/Patches/XMLData.cpp:2485 XMLData.md items and pools todo +function XMLData GetEntryByName repentogon/Patches/XMLData.cpp:2484 XMLData.md items and pools todo +function XMLData GetEntryByOrder repentogon/Patches/XMLData.cpp:2486 XMLData.md items and pools todo +function XMLData GetEntryFromEntity repentogon/Patches/XMLData.cpp:2490 XMLData.md items and pools todo +function XMLData GetModById repentogon/Patches/XMLData.cpp:2491 XMLData.md items and pools todo +function XMLData GetNumEntries repentogon/Patches/XMLData.cpp:2487 XMLData.md items and pools todo +function _G ASMPatch repentogon/LuaInterfaces/LuaASM.cpp:276 console and debug todo debug builds only +function _G Benchmark repentogon/LuaInit.cpp:366 persistent data and saves todo +function _G DumpRegistry repentogon/LuaInit.cpp:362 console and debug todo +function _G ExtractFunctions repentogon/LuaInit.cpp:365 console and debug todo +function _G RandomFloat repentogon/LuaInit.cpp:367 console and debug todo +function _G ToDegrees repentogon/LuaInit.cpp:369 console and debug todo +function _G ToRadians repentogon/LuaInit.cpp:368 console and debug todo +function _Internals GetModId repentogon/LuaInterfaces/_Internals.cpp:309 console and debug todo +function _Internals HasModData repentogon/LuaInterfaces/_Internals.cpp:310 console and debug todo +function _Internals LoadModData repentogon/LuaInterfaces/_Internals.cpp:312 console and debug todo +function _Internals ModReference_HasModFile repentogon/LuaInterfaces/_Internals.cpp:315 console and debug todo +function _Internals ModReference_LoadModFile repentogon/LuaInterfaces/_Internals.cpp:317 console and debug todo +function _Internals ModReference_RemoveModFile repentogon/LuaInterfaces/_Internals.cpp:318 console and debug todo +function _Internals ModReference_SaveModFile repentogon/LuaInterfaces/_Internals.cpp:316 console and debug todo +function _Internals RaiseModError repentogon/LuaInterfaces/_Internals.cpp:308 console and debug todo +function _Internals RemoveAllData repentogon/LuaInterfaces/_Internals.cpp:314 console and debug todo +function _Internals RemoveModData repentogon/LuaInterfaces/_Internals.cpp:313 console and debug todo +function _Internals SaveModData repentogon/LuaInterfaces/_Internals.cpp:311 console and debug todo +property BlendMode AlphaDestinationFactor repentogon/LuaInterfaces/LuaBlendMode.cpp:237 render and sprites todo +property BlendMode AlphaSourceFactor repentogon/LuaInterfaces/LuaBlendMode.cpp:233 render and sprites todo +property BlendMode Equation repentogon/LuaInterfaces/LuaBlendMode.cpp:241 render and sprites todo +property BlendMode Flag1 repentogon/LuaInterfaces/LuaBlendMode.cpp:246 render and sprites todo +property BlendMode Flag2 repentogon/LuaInterfaces/LuaBlendMode.cpp:250 render and sprites todo +property BlendMode Flag3 repentogon/LuaInterfaces/LuaBlendMode.cpp:254 render and sprites todo +property BlendMode Flag4 repentogon/LuaInterfaces/LuaBlendMode.cpp:258 render and sprites todo +property BlendMode RGBDestinationFactor repentogon/LuaInterfaces/LuaBlendMode.cpp:229 render and sprites todo +property BlendMode RGBSourceFactor repentogon/LuaInterfaces/LuaBlendMode.cpp:225 render and sprites todo +property Card Hidden repentogon/LuaInterfaces/LuaItemConfig.cpp:196 ItemConfig_Card.md items and pools todo +property Card InitialWeight repentogon/LuaInterfaces/LuaItemConfig.cpp:197 ItemConfig_Card.md items and pools todo +property Card ModdedCardFront repentogon/LuaInterfaces/LuaItemConfig.cpp:195 ItemConfig_Card.md items and pools todo +property Card Weight repentogon/LuaInterfaces/LuaItemConfig.cpp:198 ItemConfig_Card.md items and pools todo +property Color EmberFade repentogon/resources/scripts/main_ex.lua:128 Color.md render and sprites done defined in Lua +property Color LaserAlmond repentogon/resources/scripts/main_ex.lua:168 Color.md render and sprites done defined in Lua +property Color LaserChocolate repentogon/resources/scripts/main_ex.lua:167 Color.md render and sprites done defined in Lua +property Color LaserCoal repentogon/resources/scripts/main_ex.lua:170 Color.md render and sprites done defined in Lua +property Color LaserFireMind repentogon/resources/scripts/main_ex.lua:171 Color.md render and sprites done defined in Lua +property Color LaserHoming repentogon/resources/scripts/main_ex.lua:165 Color.md render and sprites done defined in Lua +property Color LaserIpecac repentogon/resources/scripts/main_ex.lua:164 Color.md render and sprites done defined in Lua +property Color LaserMother repentogon/resources/scripts/main_ex.lua:173 Color.md render and sprites done defined in Lua +property Color LaserNumberOne repentogon/resources/scripts/main_ex.lua:172 Color.md render and sprites done defined in Lua +property Color LaserPoison repentogon/resources/scripts/main_ex.lua:169 Color.md render and sprites done defined in Lua +property Color LaserSoy repentogon/resources/scripts/main_ex.lua:166 Color.md render and sprites done defined in Lua +property Color ProjectileCageBlue repentogon/resources/scripts/main_ex.lua:157 Color.md render and sprites done defined in Lua +property Color ProjectileCorpseClusterDark repentogon/resources/scripts/main_ex.lua:180 Color.md render and sprites done defined in Lua +property Color ProjectileCorpseClusterLight repentogon/resources/scripts/main_ex.lua:179 Color.md render and sprites done defined in Lua +property Color ProjectileCorpseGreen repentogon/resources/scripts/main_ex.lua:177 Color.md render and sprites done defined in Lua +property Color ProjectileCorpsePink repentogon/resources/scripts/main_ex.lua:175 Color.md render and sprites done defined in Lua +property Color ProjectileCorpseWhite repentogon/resources/scripts/main_ex.lua:176 Color.md render and sprites done defined in Lua +property Color ProjectileCorpseYellow repentogon/resources/scripts/main_ex.lua:178 Color.md render and sprites done defined in Lua +property Color ProjectileFireWave repentogon/resources/scripts/main_ex.lua:155 Color.md render and sprites done defined in Lua +property Color ProjectileHoming repentogon/resources/scripts/main_ex.lua:152 Color.md render and sprites done defined in Lua +property Color ProjectileHushBlue repentogon/resources/scripts/main_ex.lua:160 Color.md render and sprites done defined in Lua +property Color ProjectileHushGreen repentogon/resources/scripts/main_ex.lua:162 Color.md render and sprites done defined in Lua +property Color ProjectileHushYellow repentogon/resources/scripts/main_ex.lua:161 Color.md render and sprites done defined in Lua +property Color ProjectileIpecac repentogon/resources/scripts/main_ex.lua:151 Color.md render and sprites done defined in Lua +property Color ProjectileMegaSatanBlack repentogon/resources/scripts/main_ex.lua:158 Color.md render and sprites done defined in Lua +property Color ProjectileMegaSatanWhite repentogon/resources/scripts/main_ex.lua:159 Color.md render and sprites done defined in Lua +property Color ProjectileSoy repentogon/resources/scripts/main_ex.lua:154 Color.md render and sprites done defined in Lua +property Color ProjectileTar repentogon/resources/scripts/main_ex.lua:153 Color.md render and sprites done defined in Lua +property Color TearAlmond repentogon/resources/scripts/main_ex.lua:144 Color.md render and sprites done defined in Lua +property Color TearChocolate repentogon/resources/scripts/main_ex.lua:143 Color.md render and sprites done defined in Lua +property Color TearCoal repentogon/resources/scripts/main_ex.lua:148 Color.md render and sprites done defined in Lua +property Color TearCommonCold repentogon/resources/scripts/main_ex.lua:147 Color.md render and sprites done defined in Lua +property Color TearHoming repentogon/resources/scripts/main_ex.lua:140 Color.md render and sprites done defined in Lua +property Color TearIpecac repentogon/resources/scripts/main_ex.lua:139 Color.md render and sprites done defined in Lua +property Color TearNumberOne repentogon/resources/scripts/main_ex.lua:149 Color.md render and sprites done defined in Lua +property Color TearScorpio repentogon/resources/scripts/main_ex.lua:145 Color.md render and sprites done defined in Lua +property Color TearSerpentsKiss repentogon/resources/scripts/main_ex.lua:146 Color.md render and sprites done defined in Lua +property Color TearSoy repentogon/resources/scripts/main_ex.lua:142 Color.md render and sprites done defined in Lua +property Color TearTar repentogon/resources/scripts/main_ex.lua:141 Color.md render and sprites done defined in Lua +property ColorModifier A repentogon/LuaInterfaces/LuaColorModifier.cpp:243 ColorModifier.md render and sprites todo +property ColorModifier B repentogon/LuaInterfaces/LuaColorModifier.cpp:239 ColorModifier.md render and sprites todo +property ColorModifier Brightness repentogon/LuaInterfaces/LuaColorModifier.cpp:247 ColorModifier.md render and sprites todo +property ColorModifier Contrast repentogon/LuaInterfaces/LuaColorModifier.cpp:251 ColorModifier.md render and sprites todo +property ColorModifier G repentogon/LuaInterfaces/LuaColorModifier.cpp:235 ColorModifier.md render and sprites todo +property ColorModifier R repentogon/LuaInterfaces/LuaColorModifier.cpp:231 ColorModifier.md render and sprites todo +property Costume SkinColor repentogon/LuaInterfaces/LuaItemConfig.cpp:330 ItemConfig_Costume.md items and pools review +property Entity Variant repentogon/LuaInterfaces/Entities/LuaEntity.cpp:962 entities review +property EntityDelirium Angle repentogon/LuaInterfaces/LuaDelirium.cpp:145 EntityDelirium.md npc todo +property EntityDelirium AttackID repentogon/LuaInterfaces/LuaDelirium.cpp:142 EntityDelirium.md npc todo +property EntityDelirium BossType repentogon/LuaInterfaces/LuaDelirium.cpp:138 EntityDelirium.md npc todo +property EntityDelirium BossVariant repentogon/LuaInterfaces/LuaDelirium.cpp:139 EntityDelirium.md npc todo +property EntityDelirium Cycle repentogon/LuaInterfaces/LuaDelirium.cpp:143 EntityDelirium.md npc todo +property EntityDelirium RemainingAttacks repentogon/LuaInterfaces/LuaDelirium.cpp:141 EntityDelirium.md npc todo +property EntityDelirium StateD repentogon/LuaInterfaces/LuaDelirium.cpp:144 EntityDelirium.md npc todo +property EntityDelirium TransformationTimer repentogon/LuaInterfaces/LuaDelirium.cpp:140 EntityDelirium.md npc todo +property EntityLaser HomingType repentogon/LuaInterfaces/Entities/LuaEntityLaser.cpp:272 EntityLaser.md tear and weapons review +property EntityNPC V1 repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:473 EntityNPC.md npc review +property EntityNPC V2 repentogon/LuaInterfaces/Entities/LuaEntityNPC.cpp:474 EntityNPC.md npc review +property EntityPlayer BabySkin repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3875 EntityPlayer.md player review +property EntityPlayer FriendBallEnemy repentogon/LuaInterfaces/Entities/LuaEntityPlayer.cpp:3876 EntityPlayer.md player review +property FXParams ColorModifier repentogon/LuaInterfaces/LuaFXParams.cpp:176 FXParams.md level and room todo +property FXParams LightColor repentogon/LuaInterfaces/LuaFXParams.cpp:200 FXParams.md level and room todo +property FXParams ShadowAlpha repentogon/LuaInterfaces/LuaFXParams.cpp:192 FXParams.md level and room todo +property FXParams ShadowColor repentogon/LuaInterfaces/LuaFXParams.cpp:196 FXParams.md level and room todo +property FXParams UseWaterV2 repentogon/LuaInterfaces/LuaFXParams.cpp:180 FXParams.md level and room todo +property FXParams WaterColor repentogon/LuaInterfaces/LuaFXParams.cpp:184 FXParams.md level and room todo +property FXParams WaterColorMultiplier repentogon/LuaInterfaces/LuaFXParams.cpp:188 FXParams.md level and room todo +property FXParams WaterEffectColor repentogon/LuaInterfaces/LuaFXParams.cpp:204 FXParams.md level and room todo +property Game Difficulty repentogon/LuaInterfaces/LuaGame.cpp:449 game review +property GridEntityDoor PreviousState repentogon/LuaInterfaces/GridEntities/LuaGridEntityDoor.cpp:59 GridEntityDoor.md level and room review +property GridEntityDoor PreviousVariant repentogon/LuaInterfaces/GridEntities/LuaGridEntityDoor.cpp:60 GridEntityDoor.md level and room review +property Options AimLockEnabled repentogon/LuaInterfaces/LuaOptions.cpp:394 Options.md misc todo +property Options AscentVoiceOver repentogon/LuaInterfaces/LuaOptions.cpp:395 Options.md misc todo +property Options BetterVoidGeneration repentogon/LuaInterfaces/LuaOptions.cpp:405 Options.md misc todo +property Options BossHPOnBottom repentogon/LuaInterfaces/LuaOptions.cpp:391 Options.md misc todo +property Options Brightness repentogon/LuaInterfaces/LuaOptions.cpp:387 Options.md misc todo +property Options Contrast repentogon/LuaInterfaces/LuaOptions.cpp:388 Options.md misc todo +property Options Exposure repentogon/LuaInterfaces/LuaOptions.cpp:386 Options.md misc todo +property Options HushPanicStateFix repentogon/LuaInterfaces/LuaOptions.cpp:406 Options.md misc todo +property Options KeyMasterDealChance Options.md misc todo docs only: no registration found +property Options OnlineChatEnabled repentogon/LuaInterfaces/LuaOptions.cpp:381 Options.md misc todo +property Options OnlineChatFilterEnabled repentogon/LuaInterfaces/LuaOptions.cpp:396 Options.md misc todo +property Options OnlineColorSet repentogon/LuaInterfaces/LuaOptions.cpp:384 Options.md misc todo +property Options OnlineHUD repentogon/LuaInterfaces/LuaOptions.cpp:379 Options.md misc todo +property Options OnlineInputDelay repentogon/LuaInterfaces/LuaOptions.cpp:385 Options.md misc todo +property Options OnlinePlayerOpacity repentogon/LuaInterfaces/LuaOptions.cpp:383 Options.md misc todo +property Options OnlinePlayerVolume repentogon/LuaInterfaces/LuaOptions.cpp:382 Options.md misc todo +property Options PreventModUpdates repentogon/LuaInterfaces/LuaOptions.cpp:409 Options.md misc todo +property Options QuickRoomClear repentogon/LuaInterfaces/LuaOptions.cpp:408 Options.md misc todo +property Options SFXVolume repentogon/LuaInterfaces/LuaOptions.cpp:410 Options.md misc review +property Options StatHUDPlanetarium repentogon/LuaInterfaces/LuaOptions.cpp:407 Options.md misc todo +property Options StreamerMode repentogon/LuaInterfaces/LuaOptions.cpp:380 Options.md misc todo +property Options TouchMode repentogon/LuaInterfaces/LuaOptions.cpp:393 Options.md misc todo +property Options WindowHeight repentogon/LuaInterfaces/LuaOptions.cpp:402 Options.md misc todo +property Options WindowPosX repentogon/LuaInterfaces/LuaOptions.cpp:403 Options.md misc todo +property Options WindowPosY repentogon/LuaInterfaces/LuaOptions.cpp:404 Options.md misc todo +property Options WindowWidth repentogon/LuaInterfaces/LuaOptions.cpp:401 Options.md misc todo +property PillEffect EffectClass repentogon/LuaInterfaces/LuaItemConfig.cpp:288 ItemConfig_PillEffect.md items and pools review +property PillEffect EffectSubClass repentogon/LuaInterfaces/LuaItemConfig.cpp:289 ItemConfig_PillEffect.md items and pools review +property ProjectileParams Damage repentogon/LuaInterfaces/LuaProjectileParams.cpp:27 ProjectileParams.md tear and weapons todo +property RoomConfigSet Size repentogon/LuaInterfaces/Room/LuaRoomConfigSet.cpp:89 CcpContainer_RoomConfigSet.md level and room todo +property RoomConfig_Room Mode repentogon/LuaInterfaces/Room/LuaRoomConfigRoom.cpp:14 RoomConfigRoom.md level and room review +property RoomDescriptor BossDeathSeed repentogon/LuaInterfaces/Room/LuaRoomDescriptor.cpp:339 RoomDescriptor.md level and room todo +property TearParams KnockbackMultiplier repentogon/LuaInterfaces/LuaTearParams.cpp:74 TearParams.md tear and weapons todo +property TearParams MassMultiplier repentogon/LuaInterfaces/LuaTearParams.cpp:73 TearParams.md tear and weapons todo +property TearParams SpeedMultiplier repentogon/LuaInterfaces/LuaTearParams.cpp:75 TearParams.md tear and weapons todo +property TearParams TearDisplacement repentogon/LuaInterfaces/LuaTearParams.cpp:76 TearParams.md tear and weapons todo +constructor Beam Beam repentogon/LuaInterfaces/LuaBeamRenderer.cpp:404 render and sprites todo +constructor Capsule Capsule repentogon/LuaInterfaces/LuaCapsule.cpp:138 Capsule.md entities todo +constructor Color Color repentogon/LuaInterfaces/LuaColor.cpp:185 Color.md render and sprites review +constructor ColorModifier ColorModifier repentogon/LuaInterfaces/LuaColorModifier.cpp:287 ColorModifier.md render and sprites todo +constructor ColorParams ColorParams repentogon/LuaInterfaces/LuaColorParams.cpp:133 ColorParams.md render and sprites todo +constructor DestinationQuad DestinationQuad repentogon/LuaInterfaces/LuaRender.cpp:3231 render and sprites todo +constructor EntityDesc EntityDesc repentogon/LuaInterfaces/LuaEntityDesc.cpp:143 EntityDesc.md entities todo +constructor Font Font repentogon/resources/scripts/main_ex.lua:2184 Font.md render and sprites done defined in Lua +constructor GenericPrompt GenericPrompt repentogon/LuaInterfaces/LuaGenericPrompt.cpp:102 GenericPrompt.md game todo +constructor LootList LootList repentogon/LuaInterfaces/LuaLootList.cpp:120 LootList.md items and pools todo +constructor Point Point repentogon/LuaInterfaces/LuaBeamRenderer.cpp:422 render and sprites todo +constructor RNG RNG repentogon/LuaInterfaces/LuaRNG.cpp:238 RNG.md misc review +constructor SourceQuad SourceQuad repentogon/LuaInterfaces/LuaRender.cpp:3213 render and sprites todo +constructor Sprite Sprite repentogon/resources/scripts/main_ex.lua:2168 Sprite.md render and sprites done defined in Lua +constructor Vector Vector repentogon/LuaInterfaces/LuaVector.cpp:152 misc review +constructor WeightedOutcomePicker WeightedOutcomePicker repentogon/LuaInterfaces/LuaWeightedOutcomePicker.cpp:108 WeightedOutcomePicker.md items and pools todo +callback ModCallbacks MC_BOMB_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:170 enums/ModCallbacks.md tear and weapons todo id 1178 +callback ModCallbacks MC_CAN_SELECT_CHARACTER repentogon/resources/scripts/enums_ex.lua:291 enums/ModCallbacks.md misc todo id 1328 +callback ModCallbacks MC_COMPLETION_MARK_GET repentogon/resources/scripts/enums_ex.lua:49 enums/ModCallbacks.md persistent data and saves todo id 1047 +callback ModCallbacks MC_CONSOLE_AUTOCOMPLETE repentogon/resources/scripts/enums_ex.lua:122 enums/ModCallbacks.md console and debug todo id 1120 +callback ModCallbacks MC_ENTITY_RESTORE repentogon/resources/scripts/enums_ex.lua:289 entities todo id 1315 +callback ModCallbacks MC_ENTITY_SAVE repentogon/resources/scripts/enums_ex.lua:288 persistent data and saves todo id 1314 +callback ModCallbacks MC_ENTITY_TAKE_DMG enums/ModCallbacks.md entities review id 11, vanilla callback REPENTOGON changes +callback ModCallbacks MC_EVALUATE_CUSTOM_CACHE repentogon/resources/scripts/enums_ex.lua:199 enums/ModCallbacks.md items and pools todo id 1224 +callback ModCallbacks MC_EVALUATE_FAMILIAR_MULTIPLIER repentogon/resources/scripts/enums_ex.lua:200 enums/ModCallbacks.md familiar todo id 1225 +callback ModCallbacks MC_EVALUATE_MULTI_SHOT_PARAMS repentogon/resources/scripts/enums_ex.lua:263 enums/ModCallbacks.md misc todo id 1289 +callback ModCallbacks MC_EVALUATE_STAT repentogon/resources/scripts/enums_ex.lua:201 enums/ModCallbacks.md hud and menus todo id 1226 +callback ModCallbacks MC_EVALUATE_TEAR_HIT_PARAMS repentogon/resources/scripts/enums_ex.lua:404 enums/ModCallbacks.md tear and weapons todo id 1490 +callback ModCallbacks MC_FAMILIAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:168 enums/ModCallbacks.md familiar todo id 1176 +callback ModCallbacks MC_GET_BOSS_THEMATIC_ITEM repentogon/resources/scripts/enums_ex.lua:407 enums/ModCallbacks.md npc todo id 1493 +callback ModCallbacks MC_GET_FOLLOWER_PRIORITY repentogon/resources/scripts/enums_ex.lua:65 enums/ModCallbacks.md misc todo id 1063 +callback ModCallbacks MC_GET_PILL_EFFECT enums/ModCallbacks.md items and pools review id 65, vanilla callback REPENTOGON changes +callback ModCallbacks MC_GET_SHOP_ITEM_PRICE repentogon/resources/scripts/enums_ex.lua:68 enums/ModCallbacks.md items and pools todo id 1066 +callback ModCallbacks MC_GET_STATUS_EFFECT_TARGET repentogon/resources/scripts/enums_ex.lua:399 enums/ModCallbacks.md hud and menus todo id 1485 +callback ModCallbacks MC_GRID_HURT_DAMAGE repentogon/resources/scripts/enums_ex.lua:13 enums/ModCallbacks.md level and room todo id 1012 +callback ModCallbacks MC_HUD_POST_UPDATE repentogon/resources/scripts/enums_ex.lua:22 hud and menus todo id 1021 +callback ModCallbacks MC_HUD_RENDER repentogon/resources/scripts/enums_ex.lua:24 enums/ModCallbacks.md hud and menus todo id 1022 +callback ModCallbacks MC_HUD_UPDATE repentogon/resources/scripts/enums_ex.lua:21 enums/ModCallbacks.md hud and menus todo id 1020 +callback ModCallbacks MC_IS_PERSISTENT_ROOM_ENTITY repentogon/resources/scripts/enums_ex.lua:237 enums/ModCallbacks.md persistent data and saves todo id 1263 +callback ModCallbacks MC_MAIN_MENU_RENDER repentogon/resources/scripts/enums_ex.lua:25 enums/ModCallbacks.md hud and menus todo id 1023 +callback ModCallbacks MC_MENU_INPUT_ACTION repentogon/resources/scripts/enums_ex.lua:380 enums/ModCallbacks.md hud and menus todo id 1464 +callback ModCallbacks MC_NPC_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:176 enums/ModCallbacks.md npc todo id 1184 +callback ModCallbacks MC_NPC_PICK_TARGET repentogon/resources/scripts/enums_ex.lua:197 enums/ModCallbacks.md npc todo id 1222 +callback ModCallbacks MC_PICKUP_GET_COIN_VALUE repentogon/resources/scripts/enums_ex.lua:224 enums/ModCallbacks.md pickup todo id 1250 +callback ModCallbacks MC_PICKUP_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:172 enums/ModCallbacks.md pickup todo id 1180 +callback ModCallbacks MC_PLAYER_GET_ACTIVE_MAX_CHARGE repentogon/resources/scripts/enums_ex.lua:74 enums/ModCallbacks.md player todo id 1072 +callback ModCallbacks MC_PLAYER_GET_ACTIVE_MIN_USABLE_CHARGE repentogon/resources/scripts/enums_ex.lua:75 enums/ModCallbacks.md player todo id 1073 +callback ModCallbacks MC_PLAYER_GET_HEALTH_TYPE repentogon/resources/scripts/enums_ex.lua:69 enums/ModCallbacks.md player todo id 1067 +callback ModCallbacks MC_PLAYER_GET_HEART_LIMIT repentogon/resources/scripts/enums_ex.lua:76 enums/ModCallbacks.md player todo id 1074 +callback ModCallbacks MC_PLAYER_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:164 enums/ModCallbacks.md player todo id 1172 +callback ModCallbacks MC_PLAYER_HEALTH_TYPE_CHANGE repentogon/resources/scripts/enums_ex.lua:130 enums/ModCallbacks.md player todo id 1128 +callback ModCallbacks MC_PLAYER_INIT_POST_LEVEL_INIT_STATS repentogon/resources/scripts/enums_ex.lua:44 enums/ModCallbacks.md player todo id 1042 +callback ModCallbacks MC_PLAYER_INIT_PRE_LEVEL_INIT_STATS repentogon/resources/scripts/enums_ex.lua:129 enums/ModCallbacks.md player todo id 1127 +callback ModCallbacks MC_POST_ACHIEVEMENT_UNLOCK repentogon/resources/scripts/enums_ex.lua:390 enums/ModCallbacks.md persistent data and saves todo id 1476 +callback ModCallbacks MC_POST_ADD_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:5 enums/ModCallbacks.md items and pools todo id 1005 +callback ModCallbacks MC_POST_ADD_INNATE_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:56 enums/ModCallbacks.md items and pools todo id 1054 +callback ModCallbacks MC_POST_ADD_INNATE_TRINKET repentogon/resources/scripts/enums_ex.lua:57 enums/ModCallbacks.md items and pools todo id 1055 +callback ModCallbacks MC_POST_ADD_TO_BAG_OF_CRAFTING repentogon/resources/scripts/enums_ex.lua:17 enums/ModCallbacks.md items and pools todo id 1016 +callback ModCallbacks MC_POST_APPLY_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:252 enums/ModCallbacks.md tear and weapons todo id 1278 +callback ModCallbacks MC_POST_BACKDROP_CHANGE repentogon/resources/scripts/enums_ex.lua:144 enums/ModCallbacks.md level and room todo id 1142 +callback ModCallbacks MC_POST_BACKDROP_PRE_RENDER_WALLS repentogon/resources/scripts/enums_ex.lua:111 enums/ModCallbacks.md render and sprites todo id 1109 +callback ModCallbacks MC_POST_BACKWARDS_ROOM_RESTORE repentogon/resources/scripts/enums_ex.lua:282 enums/ModCallbacks.md level and room todo id 1308 +callback ModCallbacks MC_POST_BACKWARDS_ROOM_SAVE repentogon/resources/scripts/enums_ex.lua:281 enums/ModCallbacks.md persistent data and saves todo id 1307 +callback ModCallbacks MC_POST_BOMB_COLLISION repentogon/resources/scripts/enums_ex.lua:211 enums/ModCallbacks.md tear and weapons todo id 1237 +callback ModCallbacks MC_POST_BOMB_DAMAGE repentogon/resources/scripts/enums_ex.lua:249 enums/ModCallbacks.md tear and weapons todo id 1275 +callback ModCallbacks MC_POST_BOMB_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:250 enums/ModCallbacks.md tear and weapons todo id 1276 +callback ModCallbacks MC_POST_BOSS_INTRO_SHOW repentogon/resources/scripts/enums_ex.lua:244 enums/ModCallbacks.md npc todo id 1270 +callback ModCallbacks MC_POST_BRIMSTONE_SNEEZE repentogon/resources/scripts/enums_ex.lua:39 enums/ModCallbacks.md tear and weapons todo id 1037 +callback ModCallbacks MC_POST_CHALLENGE_DONE repentogon/resources/scripts/enums_ex.lua:386 enums/ModCallbacks.md game todo id 1472 +callback ModCallbacks MC_POST_COMPLETION_EVENT repentogon/resources/scripts/enums_ex.lua:54 enums/ModCallbacks.md persistent data and saves todo id 1052 +callback ModCallbacks MC_POST_COMPLETION_MARKS_RENDER repentogon/resources/scripts/enums_ex.lua:192 enums/ModCallbacks.md persistent data and saves todo id 1217 +callback ModCallbacks MC_POST_COMPLETION_MARK_GET repentogon/resources/scripts/enums_ex.lua:50 enums/ModCallbacks.md persistent data and saves todo id 1048 +callback ModCallbacks MC_POST_DEVIL_CALCULATE repentogon/resources/scripts/enums_ex.lua:135 enums/ModCallbacks.md items and pools todo id 1133 +callback ModCallbacks MC_POST_DISCHARGE_ACTIVE_ITEM repentogon/resources/scripts/enums_ex.lua:142 enums/ModCallbacks.md items and pools todo id 1140 +callback ModCallbacks MC_POST_ENTITY_KILL enums/ModCallbacks.md entities review id 68, vanilla callback REPENTOGON changes +callback ModCallbacks MC_POST_ENTITY_SET_COLOR repentogon/resources/scripts/enums_ex.lua:401 enums/ModCallbacks.md render and sprites todo id 1487 +callback ModCallbacks MC_POST_ENTITY_TAKE_DMG repentogon/resources/scripts/enums_ex.lua:7 enums/ModCallbacks.md entities todo id 1006 +callback ModCallbacks MC_POST_ENTITY_THROW repentogon/resources/scripts/enums_ex.lua:43 enums/ModCallbacks.md entities todo id 1041 +callback ModCallbacks MC_POST_FAMILIAR_COLLISION repentogon/resources/scripts/enums_ex.lua:209 enums/ModCallbacks.md familiar todo id 1235 +callback ModCallbacks MC_POST_FAMILIAR_FIRE_BRIMSTONE repentogon/resources/scripts/enums_ex.lua:235 enums/ModCallbacks.md familiar todo id 1261 +callback ModCallbacks MC_POST_FAMILIAR_FIRE_PROJECTILE repentogon/resources/scripts/enums_ex.lua:226 enums/ModCallbacks.md familiar todo id 1252 +callback ModCallbacks MC_POST_FAMILIAR_FIRE_TECH_LASER repentogon/resources/scripts/enums_ex.lua:236 enums/ModCallbacks.md familiar todo id 1262 +callback ModCallbacks MC_POST_FIRE_BOMB repentogon/resources/scripts/enums_ex.lua:227 enums/ModCallbacks.md tear and weapons todo id 1253 +callback ModCallbacks MC_POST_FIRE_BONE_CLUB repentogon/resources/scripts/enums_ex.lua:228 enums/ModCallbacks.md tear and weapons todo id 1254 +callback ModCallbacks MC_POST_FIRE_BRIMSTONE repentogon/resources/scripts/enums_ex.lua:229 enums/ModCallbacks.md tear and weapons todo id 1255 +callback ModCallbacks MC_POST_FIRE_BRIMSTONE_BALL repentogon/resources/scripts/enums_ex.lua:230 enums/ModCallbacks.md tear and weapons todo id 1256 +callback ModCallbacks MC_POST_FIRE_KNIFE repentogon/resources/scripts/enums_ex.lua:231 enums/ModCallbacks.md tear and weapons todo id 1257 +callback ModCallbacks MC_POST_FIRE_SPLIT_TEAR repentogon/resources/scripts/enums_ex.lua:27 enums/ModCallbacks.md tear and weapons todo id 1025 +callback ModCallbacks MC_POST_FIRE_SWORD repentogon/resources/scripts/enums_ex.lua:232 enums/ModCallbacks.md tear and weapons todo id 1258 +callback ModCallbacks MC_POST_FIRE_TECH_LASER repentogon/resources/scripts/enums_ex.lua:233 enums/ModCallbacks.md tear and weapons todo id 1259 +callback ModCallbacks MC_POST_FIRE_TECH_X_LASER repentogon/resources/scripts/enums_ex.lua:234 enums/ModCallbacks.md tear and weapons todo id 1260 +callback ModCallbacks MC_POST_FORCE_ADD_PILL_EFFECT repentogon/resources/scripts/enums_ex.lua:131 enums/ModCallbacks.md items and pools todo id 1129 +callback ModCallbacks MC_POST_GAME_STATE_RESTORE repentogon/resources/scripts/enums_ex.lua:286 hud and menus todo id 1312 +callback ModCallbacks MC_POST_GAME_STATE_SAVE repentogon/resources/scripts/enums_ex.lua:284 persistent data and saves todo id 1310 +callback ModCallbacks MC_POST_GLOWING_HOURGLASS_LOAD repentogon/resources/scripts/enums_ex.lua:275 enums/ModCallbacks.md misc todo id 1301 +callback ModCallbacks MC_POST_GLOWING_HOURGLASS_SAVE repentogon/resources/scripts/enums_ex.lua:274 enums/ModCallbacks.md persistent data and saves todo id 1300 +callback ModCallbacks MC_POST_GRID_ENTITY_DECORATION_RENDER repentogon/resources/scripts/enums_ex.lua:361 enums/ModCallbacks.md render and sprites todo id 1445 +callback ModCallbacks MC_POST_GRID_ENTITY_DECORATION_UPDATE repentogon/resources/scripts/enums_ex.lua:318 enums/ModCallbacks.md level and room todo id 1401 +callback ModCallbacks MC_POST_GRID_ENTITY_DOOR_RENDER repentogon/resources/scripts/enums_ex.lua:363 enums/ModCallbacks.md render and sprites todo id 1447 +callback ModCallbacks MC_POST_GRID_ENTITY_DOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:320 enums/ModCallbacks.md level and room todo id 1403 +callback ModCallbacks MC_POST_GRID_ENTITY_FIRE_RENDER repentogon/resources/scripts/enums_ex.lua:365 enums/ModCallbacks.md tear and weapons todo id 1449 +callback ModCallbacks MC_POST_GRID_ENTITY_FIRE_UPDATE repentogon/resources/scripts/enums_ex.lua:322 enums/ModCallbacks.md tear and weapons todo id 1405 +callback ModCallbacks MC_POST_GRID_ENTITY_GRAVITY_UPDATE repentogon/resources/scripts/enums_ex.lua:324 enums/ModCallbacks.md level and room todo id 1407 +callback ModCallbacks MC_POST_GRID_ENTITY_LOCK_RENDER repentogon/resources/scripts/enums_ex.lua:367 enums/ModCallbacks.md render and sprites todo id 1451 +callback ModCallbacks MC_POST_GRID_ENTITY_LOCK_UPDATE repentogon/resources/scripts/enums_ex.lua:326 enums/ModCallbacks.md level and room todo id 1409 +callback ModCallbacks MC_POST_GRID_ENTITY_PIT_RENDER repentogon/resources/scripts/enums_ex.lua:371 enums/ModCallbacks.md render and sprites todo id 1455 +callback ModCallbacks MC_POST_GRID_ENTITY_PIT_UPDATE repentogon/resources/scripts/enums_ex.lua:328 enums/ModCallbacks.md level and room todo id 1411 +callback ModCallbacks MC_POST_GRID_ENTITY_POOP_RENDER repentogon/resources/scripts/enums_ex.lua:373 enums/ModCallbacks.md render and sprites todo id 1457 +callback ModCallbacks MC_POST_GRID_ENTITY_POOP_UPDATE repentogon/resources/scripts/enums_ex.lua:330 enums/ModCallbacks.md level and room todo id 1413 +callback ModCallbacks MC_POST_GRID_ENTITY_PRESSUREPLATE_RENDER repentogon/resources/scripts/enums_ex.lua:377 enums/ModCallbacks.md render and sprites todo id 1461 +callback ModCallbacks MC_POST_GRID_ENTITY_PRESSUREPLATE_UPDATE repentogon/resources/scripts/enums_ex.lua:332 enums/ModCallbacks.md level and room todo id 1415 +callback ModCallbacks MC_POST_GRID_ENTITY_ROCK_RENDER repentogon/resources/scripts/enums_ex.lua:375 enums/ModCallbacks.md render and sprites todo id 1459 +callback ModCallbacks MC_POST_GRID_ENTITY_ROCK_UPDATE repentogon/resources/scripts/enums_ex.lua:334 enums/ModCallbacks.md level and room todo id 1417 +callback ModCallbacks MC_POST_GRID_ENTITY_SPAWN repentogon/resources/scripts/enums_ex.lua:103 enums/ModCallbacks.md level and room todo id 1101 +callback ModCallbacks MC_POST_GRID_ENTITY_SPIKES_RENDER repentogon/resources/scripts/enums_ex.lua:350 enums/ModCallbacks.md render and sprites todo id 1433 +callback ModCallbacks MC_POST_GRID_ENTITY_SPIKES_UPDATE repentogon/resources/scripts/enums_ex.lua:336 enums/ModCallbacks.md level and room todo id 1419 +callback ModCallbacks MC_POST_GRID_ENTITY_STAIRCASE_RENDER repentogon/resources/scripts/enums_ex.lua:358 enums/ModCallbacks.md render and sprites todo id 1441 +callback ModCallbacks MC_POST_GRID_ENTITY_STAIRCASE_UPDATE repentogon/resources/scripts/enums_ex.lua:338 enums/ModCallbacks.md level and room todo id 1421 +callback ModCallbacks MC_POST_GRID_ENTITY_STATUE_UPDATE repentogon/resources/scripts/enums_ex.lua:340 enums/ModCallbacks.md hud and menus todo id 1423 +callback ModCallbacks MC_POST_GRID_ENTITY_TELEPORTER_RENDER repentogon/resources/scripts/enums_ex.lua:369 enums/ModCallbacks.md render and sprites todo id 1453 +callback ModCallbacks MC_POST_GRID_ENTITY_TELEPORTER_UPDATE repentogon/resources/scripts/enums_ex.lua:342 enums/ModCallbacks.md level and room todo id 1425 +callback ModCallbacks MC_POST_GRID_ENTITY_TNT_RENDER repentogon/resources/scripts/enums_ex.lua:354 enums/ModCallbacks.md render and sprites todo id 1437 +callback ModCallbacks MC_POST_GRID_ENTITY_TNT_UPDATE repentogon/resources/scripts/enums_ex.lua:348 enums/ModCallbacks.md level and room todo id 1431 +callback ModCallbacks MC_POST_GRID_ENTITY_TRAPDOOR_RENDER repentogon/resources/scripts/enums_ex.lua:356 enums/ModCallbacks.md render and sprites todo id 1439 +callback ModCallbacks MC_POST_GRID_ENTITY_TRAPDOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:344 enums/ModCallbacks.md level and room todo id 1427 +callback ModCallbacks MC_POST_GRID_ENTITY_WALL_RENDER repentogon/resources/scripts/enums_ex.lua:379 enums/ModCallbacks.md render and sprites todo id 1463 +callback ModCallbacks MC_POST_GRID_ENTITY_WEB_RENDER repentogon/resources/scripts/enums_ex.lua:352 enums/ModCallbacks.md render and sprites todo id 1435 +callback ModCallbacks MC_POST_GRID_ENTITY_WEB_UPDATE repentogon/resources/scripts/enums_ex.lua:346 enums/ModCallbacks.md level and room todo id 1429 +callback ModCallbacks MC_POST_GRID_HURT repentogon/resources/scripts/enums_ex.lua:19 enums/ModCallbacks.md level and room todo id 1018 +callback ModCallbacks MC_POST_GRID_HURT_DAMAGE repentogon/resources/scripts/enums_ex.lua:14 enums/ModCallbacks.md level and room todo id 1013 +callback ModCallbacks MC_POST_GRID_ROCK_DESTROY repentogon/resources/scripts/enums_ex.lua:12 enums/ModCallbacks.md level and room todo id 1011 +callback ModCallbacks MC_POST_HISTORYHUD_RECOMPUTE repentogon/resources/scripts/enums_ex.lua:31 enums/ModCallbacks.md hud and menus todo id 1029 +callback ModCallbacks MC_POST_HISTORYHUD_RENDER repentogon/resources/scripts/enums_ex.lua:30 enums/ModCallbacks.md hud and menus todo id 1028 +callback ModCallbacks MC_POST_HUD_RENDER repentogon/resources/scripts/enums_ex.lua:26 enums/ModCallbacks.md hud and menus todo id 1024 +callback ModCallbacks MC_POST_HUD_UPDATE repentogon/resources/scripts/enums_ex.lua:23 enums/ModCallbacks.md hud and menus todo id 1021 +callback ModCallbacks MC_POST_ITEM_OVERLAY_RENDER repentogon/resources/scripts/enums_ex.lua:141 enums/ModCallbacks.md hud and menus todo id 1139 +callback ModCallbacks MC_POST_ITEM_OVERLAY_SHOW repentogon/resources/scripts/enums_ex.lua:136 enums/ModCallbacks.md hud and menus todo id 1134 +callback ModCallbacks MC_POST_ITEM_OVERLAY_UPDATE repentogon/resources/scripts/enums_ex.lua:77 enums/ModCallbacks.md hud and menus todo id 1075 +callback ModCallbacks MC_POST_KNIFE_COLLISION repentogon/resources/scripts/enums_ex.lua:217 enums/ModCallbacks.md tear and weapons todo id 1243 +callback ModCallbacks MC_POST_LASER_COLLISION repentogon/resources/scripts/enums_ex.lua:223 enums/ModCallbacks.md tear and weapons todo id 1249 +callback ModCallbacks MC_POST_LEVEL_LAYOUT_GENERATED repentogon/resources/scripts/enums_ex.lua:101 enums/ModCallbacks.md level and room todo id 1099 +callback ModCallbacks MC_POST_MINIMAP_RENDER repentogon/resources/scripts/enums_ex.lua:394 hud and menus todo id 1480 +callback ModCallbacks MC_POST_MINIMAP_UPDATE repentogon/resources/scripts/enums_ex.lua:392 hud and menus todo id 1478 +callback ModCallbacks MC_POST_MODS_LOADED repentogon/resources/scripts/enums_ex.lua:185 enums/ModCallbacks.md misc todo id 1210 +callback ModCallbacks MC_POST_NIGHTMARE_SCENE_RENDER repentogon/resources/scripts/enums_ex.lua:104 enums/ModCallbacks.md hud and menus todo id 1102 +callback ModCallbacks MC_POST_NIGHTMARE_SCENE_SHOW repentogon/resources/scripts/enums_ex.lua:105 enums/ModCallbacks.md hud and menus todo id 1103 +callback ModCallbacks MC_POST_NPC_COLLISION repentogon/resources/scripts/enums_ex.lua:221 enums/ModCallbacks.md npc todo id 1247 +callback ModCallbacks MC_POST_NPC_DARK_RED_CHAMPION_REGEN repentogon/resources/scripts/enums_ex.lua:198 enums/ModCallbacks.md npc todo id 1223 +callback ModCallbacks MC_POST_NPC_GET_LOOT_LIST repentogon/resources/scripts/enums_ex.lua:302 npc todo id 1339 +callback ModCallbacks MC_POST_NPC_MORPH repentogon/resources/scripts/enums_ex.lua:189 enums/ModCallbacks.md npc todo id 1214 +callback ModCallbacks MC_POST_OPEN_CHEST repentogon/resources/scripts/enums_ex.lua:406 enums/ModCallbacks.md misc todo id 1492 +callback ModCallbacks MC_POST_PAUSE_SCREEN_RENDER repentogon/resources/scripts/enums_ex.lua:194 enums/ModCallbacks.md hud and menus todo id 1219 +callback ModCallbacks MC_POST_PICKUP_COLLISION repentogon/resources/scripts/enums_ex.lua:213 enums/ModCallbacks.md pickup todo id 1239 +callback ModCallbacks MC_POST_PICKUP_GET_LOOT_LIST repentogon/resources/scripts/enums_ex.lua:299 enums/ModCallbacks.md pickup todo id 1336 +callback ModCallbacks MC_POST_PICKUP_MORPH repentogon/resources/scripts/enums_ex.lua:190 enums/ModCallbacks.md pickup todo id 1215 +callback ModCallbacks MC_POST_PICKUP_SELECTION enums/ModCallbacks.md pickup review id 37, vanilla callback REPENTOGON changes +callback ModCallbacks MC_POST_PICKUP_SHOP_PURCHASE repentogon/resources/scripts/enums_ex.lua:64 enums/ModCallbacks.md pickup todo id 1062 +callback ModCallbacks MC_POST_PLANETARIUM_CALCULATE repentogon/resources/scripts/enums_ex.lua:117 enums/ModCallbacks.md items and pools todo id 1115 +callback ModCallbacks MC_POST_PLAYERHUD_RENDER_ACTIVE_ITEM repentogon/resources/scripts/enums_ex.lua:81 enums/ModCallbacks.md player todo id 1079 +callback ModCallbacks MC_POST_PLAYERHUD_RENDER_CRAFTING_TABLE repentogon/resources/scripts/enums_ex.lua:272 enums/ModCallbacks.md player todo id 1298 +callback ModCallbacks MC_POST_PLAYERHUD_RENDER_HEARTS repentogon/resources/scripts/enums_ex.lua:93 enums/ModCallbacks.md player todo id 1091 +callback ModCallbacks MC_POST_PLAYERHUD_RENDER_INVENTORY repentogon/resources/scripts/enums_ex.lua:268 enums/ModCallbacks.md player todo id 1294 +callback ModCallbacks MC_POST_PLAYERHUD_RENDER_POOP_SPELL_QUEUE repentogon/resources/scripts/enums_ex.lua:270 enums/ModCallbacks.md player todo id 1296 +callback ModCallbacks MC_POST_PLAYER_ADD_CARD repentogon/resources/scripts/enums_ex.lua:305 enums/ModCallbacks.md player todo id 1351 +callback ModCallbacks MC_POST_PLAYER_ADD_COSTUME repentogon/resources/scripts/enums_ex.lua:257 enums/ModCallbacks.md player todo id 1283 +callback ModCallbacks MC_POST_PLAYER_ADD_EFFECT repentogon/resources/scripts/enums_ex.lua:247 enums/ModCallbacks.md player todo id 1273 +callback ModCallbacks MC_POST_PLAYER_ADD_HEARTS repentogon/resources/scripts/enums_ex.lua:11 enums/ModCallbacks.md player todo id 1010 +callback ModCallbacks MC_POST_PLAYER_ADD_PILL repentogon/resources/scripts/enums_ex.lua:307 enums/ModCallbacks.md player todo id 1353 +callback ModCallbacks MC_POST_PLAYER_COLLECT_CARD repentogon/resources/scripts/enums_ex.lua:311 enums/ModCallbacks.md player todo id 1357 +callback ModCallbacks MC_POST_PLAYER_COLLECT_PILL repentogon/resources/scripts/enums_ex.lua:313 enums/ModCallbacks.md player todo id 1359 +callback ModCallbacks MC_POST_PLAYER_COLLISION repentogon/resources/scripts/enums_ex.lua:205 enums/ModCallbacks.md player todo id 1231 +callback ModCallbacks MC_POST_PLAYER_DROP_CARD repentogon/resources/scripts/enums_ex.lua:314 enums/ModCallbacks.md player todo id 1360 +callback ModCallbacks MC_POST_PLAYER_DROP_PILL repentogon/resources/scripts/enums_ex.lua:315 enums/ModCallbacks.md player todo id 1361 +callback ModCallbacks MC_POST_PLAYER_DROP_TRINKET repentogon/resources/scripts/enums_ex.lua:146 enums/ModCallbacks.md player todo id 1144 +callback ModCallbacks MC_POST_PLAYER_GET_MULTI_SHOT_PARAMS repentogon/resources/scripts/enums_ex.lua:225 player todo id 1251 +callback ModCallbacks MC_POST_PLAYER_NEW_LEVEL repentogon/resources/scripts/enums_ex.lua:80 enums/ModCallbacks.md player todo id 1078 +callback ModCallbacks MC_POST_PLAYER_NEW_ROOM_TEMP_EFFECTS repentogon/resources/scripts/enums_ex.lua:79 enums/ModCallbacks.md player todo id 1077 +callback ModCallbacks MC_POST_PLAYER_REMOVE_CARD repentogon/resources/scripts/enums_ex.lua:308 enums/ModCallbacks.md player todo id 1354 +callback ModCallbacks MC_POST_PLAYER_REMOVE_COSTUME repentogon/resources/scripts/enums_ex.lua:258 enums/ModCallbacks.md player todo id 1284 +callback ModCallbacks MC_POST_PLAYER_REMOVE_PILL repentogon/resources/scripts/enums_ex.lua:309 enums/ModCallbacks.md player todo id 1355 +callback ModCallbacks MC_POST_PLAYER_REVIVE repentogon/resources/scripts/enums_ex.lua:396 enums/ModCallbacks.md player todo id 1482 +callback ModCallbacks MC_POST_PLAYER_TRIGGER_EFFECT_REMOVED repentogon/resources/scripts/enums_ex.lua:242 enums/ModCallbacks.md player todo id 1268 +callback ModCallbacks MC_POST_PLAYER_TRIGGER_ROOM_CLEAR repentogon/resources/scripts/enums_ex.lua:140 enums/ModCallbacks.md player todo id 1138 +callback ModCallbacks MC_POST_PLAYER_USE_BOMB repentogon/resources/scripts/enums_ex.lua:196 enums/ModCallbacks.md player todo id 1221 +callback ModCallbacks MC_POST_PROJECTILE_COLLISION repentogon/resources/scripts/enums_ex.lua:219 enums/ModCallbacks.md tear and weapons todo id 1245 +callback ModCallbacks MC_POST_PROJECTILE_DEATH repentogon/resources/scripts/enums_ex.lua:34 enums/ModCallbacks.md tear and weapons todo id 1032 +callback ModCallbacks MC_POST_REMOVE_INNATE_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:58 enums/ModCallbacks.md items and pools todo id 1056 +callback ModCallbacks MC_POST_REMOVE_INNATE_TRINKET repentogon/resources/scripts/enums_ex.lua:59 enums/ModCallbacks.md items and pools todo id 1057 +callback ModCallbacks MC_POST_RENDER_CHARACTER_SELECT_PAGE repentogon/resources/scripts/enums_ex.lua:293 enums/ModCallbacks.md render and sprites todo id 1330 +callback ModCallbacks MC_POST_RENDER_CHARACTER_SELECT_PORTRAIT repentogon/resources/scripts/enums_ex.lua:295 enums/ModCallbacks.md render and sprites todo id 1332 +callback ModCallbacks MC_POST_RENDER_PLAYER_BODY repentogon/resources/scripts/enums_ex.lua:48 player todo id 1046 +callback ModCallbacks MC_POST_RENDER_PLAYER_HEAD repentogon/resources/scripts/enums_ex.lua:47 player todo id 1045 +callback ModCallbacks MC_POST_REPLACE_SPRITESHEET repentogon/resources/scripts/enums_ex.lua:119 enums/ModCallbacks.md render and sprites todo id 1117 +callback ModCallbacks MC_POST_RESTOCK_SHOP repentogon/resources/scripts/enums_ex.lua:73 enums/ModCallbacks.md items and pools todo id 1071 +callback ModCallbacks MC_POST_ROOM_ADD_EFFECT repentogon/resources/scripts/enums_ex.lua:248 enums/ModCallbacks.md level and room todo id 1274 +callback ModCallbacks MC_POST_ROOM_RENDER_ENTITIES repentogon/resources/scripts/enums_ex.lua:46 enums/ModCallbacks.md render and sprites todo id 1044 +callback ModCallbacks MC_POST_ROOM_SAVE_STATE repentogon/resources/scripts/enums_ex.lua:278 enums/ModCallbacks.md persistent data and saves todo id 1304 +callback ModCallbacks MC_POST_ROOM_TRANSITION_RENDER repentogon/resources/scripts/enums_ex.lua:246 enums/ModCallbacks.md render and sprites todo id 1272 +callback ModCallbacks MC_POST_ROOM_TRANSITION_UPDATE repentogon/resources/scripts/enums_ex.lua:245 enums/ModCallbacks.md level and room todo id 1271 +callback ModCallbacks MC_POST_ROOM_TRIGGER_CLEAR repentogon/resources/scripts/enums_ex.lua:145 enums/ModCallbacks.md level and room todo id 1143 +callback ModCallbacks MC_POST_ROOM_TRIGGER_EFFECT_REMOVED repentogon/resources/scripts/enums_ex.lua:243 enums/ModCallbacks.md level and room todo id 1269 +callback ModCallbacks MC_POST_SAVESLOT_LOAD repentogon/resources/scripts/enums_ex.lua:384 enums/ModCallbacks.md persistent data and saves todo id 1470 +callback ModCallbacks MC_POST_SFX_PLAY repentogon/resources/scripts/enums_ex.lua:33 enums/ModCallbacks.md audio todo id 1031 +callback ModCallbacks MC_POST_SHUFFLE_COSTUMES repentogon/resources/scripts/enums_ex.lua:409 enums/ModCallbacks.md player todo id 1495 +callback ModCallbacks MC_POST_SLOT_COLLISION repentogon/resources/scripts/enums_ex.lua:215 enums/ModCallbacks.md pickup todo id 1241 +callback ModCallbacks MC_POST_SLOT_CREATE_EXPLOSION_DROPS repentogon/resources/scripts/enums_ex.lua:126 enums/ModCallbacks.md pickup todo id 1124 +callback ModCallbacks MC_POST_SLOT_INIT repentogon/resources/scripts/enums_ex.lua:123 enums/ModCallbacks.md pickup todo id 1121 +callback ModCallbacks MC_POST_SLOT_RENDER repentogon/resources/scripts/enums_ex.lua:92 enums/ModCallbacks.md pickup todo id 1090 +callback ModCallbacks MC_POST_SLOT_SET_PRIZE_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:128 enums/ModCallbacks.md pickup todo id 1126 +callback ModCallbacks MC_POST_SLOT_UPDATE repentogon/resources/scripts/enums_ex.lua:124 enums/ModCallbacks.md pickup todo id 1122 +callback ModCallbacks MC_POST_START_AMBUSH_WAVE repentogon/resources/scripts/enums_ex.lua:402 enums/ModCallbacks.md level and room todo id 1488 +callback ModCallbacks MC_POST_START_GREED_WAVE repentogon/resources/scripts/enums_ex.lua:403 enums/ModCallbacks.md level and room todo id 1489 +callback ModCallbacks MC_POST_STATUS_EFFECT_APPLY repentogon/resources/scripts/enums_ex.lua:382 enums/ModCallbacks.md hud and menus todo id 1466 +callback ModCallbacks MC_POST_SWAP_ROOMS repentogon/resources/scripts/enums_ex.lua:280 enums/ModCallbacks.md level and room todo id 1306 +callback ModCallbacks MC_POST_TAKE_DMG repentogon/resources/scripts/enums_ex.lua:6 entities todo id 1006 +callback ModCallbacks MC_POST_TEAR_COLLISION repentogon/resources/scripts/enums_ex.lua:207 enums/ModCallbacks.md tear and weapons todo id 1233 +callback ModCallbacks MC_POST_TEAR_DEATH repentogon/resources/scripts/enums_ex.lua:35 enums/ModCallbacks.md tear and weapons todo id 1033 +callback ModCallbacks MC_POST_TRIGGER_BED_SLEEP_EFFECT repentogon/resources/scripts/enums_ex.lua:260 enums/ModCallbacks.md misc todo id 1286 +callback ModCallbacks MC_POST_TRIGGER_COLLECTIBLE_ADDED repentogon/resources/scripts/enums_ex.lua:55 enums/ModCallbacks.md items and pools todo id 1053 +callback ModCallbacks MC_POST_TRIGGER_COLLECTIBLE_REMOVED repentogon/resources/scripts/enums_ex.lua:97 enums/ModCallbacks.md items and pools todo id 1095 +callback ModCallbacks MC_POST_TRIGGER_TRINKET_ADDED repentogon/resources/scripts/enums_ex.lua:98 enums/ModCallbacks.md items and pools todo id 1096 +callback ModCallbacks MC_POST_TRIGGER_TRINKET_REMOVED repentogon/resources/scripts/enums_ex.lua:99 enums/ModCallbacks.md items and pools todo id 1097 +callback ModCallbacks MC_POST_TRIGGER_WEAPON_FIRED repentogon/resources/scripts/enums_ex.lua:100 enums/ModCallbacks.md tear and weapons todo id 1098 +callback ModCallbacks MC_POST_USE_ITEM repentogon/resources/scripts/enums_ex.lua:3 enums/ModCallbacks.md items and pools todo id 1003 +callback ModCallbacks MC_POST_WEAPON_FIRE repentogon/resources/scripts/enums_ex.lua:107 enums/ModCallbacks.md tear and weapons todo id 1105 +callback ModCallbacks MC_PRE_ADD_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:4 enums/ModCallbacks.md items and pools todo id 1004 +callback ModCallbacks MC_PRE_ADD_TRINKET repentogon/resources/scripts/enums_ex.lua:15 enums/ModCallbacks.md items and pools todo id 1014 +callback ModCallbacks MC_PRE_APPLY_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:251 enums/ModCallbacks.md tear and weapons todo id 1277 +callback ModCallbacks MC_PRE_BACKDROP_CHANGE repentogon/resources/scripts/enums_ex.lua:143 enums/ModCallbacks.md level and room todo id 1141 +callback ModCallbacks MC_PRE_BACKDROP_RENDER_FLOOR repentogon/resources/scripts/enums_ex.lua:109 enums/ModCallbacks.md render and sprites todo id 1107 +callback ModCallbacks MC_PRE_BACKDROP_RENDER_WALLS repentogon/resources/scripts/enums_ex.lua:108 enums/ModCallbacks.md render and sprites todo id 1106 +callback ModCallbacks MC_PRE_BACKDROP_RENDER_WATER repentogon/resources/scripts/enums_ex.lua:110 enums/ModCallbacks.md render and sprites todo id 1108 +callback ModCallbacks MC_PRE_BED_SLEEP repentogon/resources/scripts/enums_ex.lua:262 enums/ModCallbacks.md misc todo id 1288 +callback ModCallbacks MC_PRE_BOMB_COLLISION enums/ModCallbacks.md tear and weapons review id 60, vanilla callback REPENTOGON changes +callback ModCallbacks MC_PRE_BOMB_DAMAGE repentogon/resources/scripts/enums_ex.lua:265 enums/ModCallbacks.md tear and weapons todo id 1291 +callback ModCallbacks MC_PRE_BOMB_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:169 enums/ModCallbacks.md tear and weapons todo id 1177 +callback ModCallbacks MC_PRE_BOMB_RENDER repentogon/resources/scripts/enums_ex.lua:90 enums/ModCallbacks.md tear and weapons todo id 1088 +callback ModCallbacks MC_PRE_BOMB_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:266 enums/ModCallbacks.md tear and weapons todo id 1292 +callback ModCallbacks MC_PRE_BOMB_UPDATE repentogon/resources/scripts/enums_ex.lua:155 enums/ModCallbacks.md tear and weapons todo id 1163 +callback ModCallbacks MC_PRE_BOSS_SELECT repentogon/resources/scripts/enums_ex.lua:254 enums/ModCallbacks.md npc todo id 1280 +callback ModCallbacks MC_PRE_BRIMSTONE_SNEEZE repentogon/resources/scripts/enums_ex.lua:38 enums/ModCallbacks.md tear and weapons todo id 1036 +callback ModCallbacks MC_PRE_CHALLENGE_DONE repentogon/resources/scripts/enums_ex.lua:385 enums/ModCallbacks.md game todo id 1471 +callback ModCallbacks MC_PRE_CHANGE_ROOM repentogon/resources/scripts/enums_ex.lua:63 enums/ModCallbacks.md level and room todo id 1061 +callback ModCallbacks MC_PRE_COMPLETION_EVENT repentogon/resources/scripts/enums_ex.lua:51 enums/ModCallbacks.md persistent data and saves todo id 1049 +callback ModCallbacks MC_PRE_COMPLETION_MARKS_RENDER repentogon/resources/scripts/enums_ex.lua:191 enums/ModCallbacks.md persistent data and saves todo id 1216 +callback ModCallbacks MC_PRE_DEVIL_APPLY_ITEMS repentogon/resources/scripts/enums_ex.lua:132 enums/ModCallbacks.md items and pools todo id 1130 +callback ModCallbacks MC_PRE_DEVIL_APPLY_SPECIAL_ITEMS repentogon/resources/scripts/enums_ex.lua:134 enums/ModCallbacks.md items and pools todo id 1132 +callback ModCallbacks MC_PRE_DEVIL_APPLY_STAGE_PENALTY repentogon/resources/scripts/enums_ex.lua:133 enums/ModCallbacks.md level and room todo id 1131 +callback ModCallbacks MC_PRE_EFFECT_RENDER repentogon/resources/scripts/enums_ex.lua:89 enums/ModCallbacks.md render and sprites todo id 1087 +callback ModCallbacks MC_PRE_EFFECT_UPDATE repentogon/resources/scripts/enums_ex.lua:160 enums/ModCallbacks.md game todo id 1168 +callback ModCallbacks MC_PRE_ENTITY_SET_COLOR repentogon/resources/scripts/enums_ex.lua:400 enums/ModCallbacks.md render and sprites todo id 1486 +callback ModCallbacks MC_PRE_ENTITY_THROW repentogon/resources/scripts/enums_ex.lua:42 enums/ModCallbacks.md entities todo id 1040 +callback ModCallbacks MC_PRE_FAMILIAR_CAN_CHARM repentogon/resources/scripts/enums_ex.lua:387 enums/ModCallbacks.md familiar todo id 1473 +callback ModCallbacks MC_PRE_FAMILIAR_COLLISION enums/ModCallbacks.md familiar review id 26, vanilla callback REPENTOGON changes +callback ModCallbacks MC_PRE_FAMILIAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:167 enums/ModCallbacks.md familiar todo id 1175 +callback ModCallbacks MC_PRE_FAMILIAR_RENDER repentogon/resources/scripts/enums_ex.lua:82 enums/ModCallbacks.md familiar todo id 1080 +callback ModCallbacks MC_PRE_FAMILIAR_UPDATE repentogon/resources/scripts/enums_ex.lua:154 enums/ModCallbacks.md familiar todo id 1162 +callback ModCallbacks MC_PRE_FORTUNE_DISPLAY repentogon/resources/scripts/enums_ex.lua:397 enums/ModCallbacks.md misc todo id 1483 +callback ModCallbacks MC_PRE_GAME_STATE_RESTORE repentogon/resources/scripts/enums_ex.lua:285 hud and menus todo id 1311 +callback ModCallbacks MC_PRE_GAME_STATE_SAVE repentogon/resources/scripts/enums_ex.lua:283 persistent data and saves todo id 1309 +callback ModCallbacks MC_PRE_GET_LIGHTING_ALPHA repentogon/resources/scripts/enums_ex.lua:148 enums/ModCallbacks.md render and sprites todo id 1150 +callback ModCallbacks MC_PRE_GET_RANDOM_ROOM_INDEX repentogon/resources/scripts/enums_ex.lua:264 enums/ModCallbacks.md level and room todo id 1290 +callback ModCallbacks MC_PRE_GLOWING_HOURGLASS_LOAD repentogon/resources/scripts/enums_ex.lua:277 enums/ModCallbacks.md misc todo id 1303 +callback ModCallbacks MC_PRE_GLOWING_HOURGLASS_SAVE repentogon/resources/scripts/enums_ex.lua:276 enums/ModCallbacks.md persistent data and saves todo id 1302 +callback ModCallbacks MC_PRE_GRID_ENTITY_DECORATION_RENDER repentogon/resources/scripts/enums_ex.lua:360 enums/ModCallbacks.md render and sprites todo id 1444 +callback ModCallbacks MC_PRE_GRID_ENTITY_DECORATION_UPDATE repentogon/resources/scripts/enums_ex.lua:317 enums/ModCallbacks.md level and room todo id 1400 +callback ModCallbacks MC_PRE_GRID_ENTITY_DOOR_RENDER repentogon/resources/scripts/enums_ex.lua:362 enums/ModCallbacks.md render and sprites todo id 1446 +callback ModCallbacks MC_PRE_GRID_ENTITY_DOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:319 enums/ModCallbacks.md level and room todo id 1402 +callback ModCallbacks MC_PRE_GRID_ENTITY_FIRE_RENDER repentogon/resources/scripts/enums_ex.lua:364 enums/ModCallbacks.md tear and weapons todo id 1448 +callback ModCallbacks MC_PRE_GRID_ENTITY_FIRE_UPDATE repentogon/resources/scripts/enums_ex.lua:321 enums/ModCallbacks.md tear and weapons todo id 1404 +callback ModCallbacks MC_PRE_GRID_ENTITY_GRAVITY_UPDATE repentogon/resources/scripts/enums_ex.lua:323 enums/ModCallbacks.md level and room todo id 1406 +callback ModCallbacks MC_PRE_GRID_ENTITY_LOCK_RENDER repentogon/resources/scripts/enums_ex.lua:366 enums/ModCallbacks.md render and sprites todo id 1450 +callback ModCallbacks MC_PRE_GRID_ENTITY_LOCK_UPDATE repentogon/resources/scripts/enums_ex.lua:325 enums/ModCallbacks.md level and room todo id 1408 +callback ModCallbacks MC_PRE_GRID_ENTITY_PIT_RENDER repentogon/resources/scripts/enums_ex.lua:370 enums/ModCallbacks.md render and sprites todo id 1454 +callback ModCallbacks MC_PRE_GRID_ENTITY_PIT_UPDATE repentogon/resources/scripts/enums_ex.lua:327 enums/ModCallbacks.md level and room todo id 1410 +callback ModCallbacks MC_PRE_GRID_ENTITY_POOP_RENDER repentogon/resources/scripts/enums_ex.lua:372 enums/ModCallbacks.md render and sprites todo id 1456 +callback ModCallbacks MC_PRE_GRID_ENTITY_POOP_UPDATE repentogon/resources/scripts/enums_ex.lua:329 enums/ModCallbacks.md level and room todo id 1412 +callback ModCallbacks MC_PRE_GRID_ENTITY_PRESSUREPLATE_RENDER repentogon/resources/scripts/enums_ex.lua:376 enums/ModCallbacks.md render and sprites todo id 1460 +callback ModCallbacks MC_PRE_GRID_ENTITY_PRESSUREPLATE_UPDATE repentogon/resources/scripts/enums_ex.lua:331 enums/ModCallbacks.md level and room todo id 1414 +callback ModCallbacks MC_PRE_GRID_ENTITY_ROCK_RENDER repentogon/resources/scripts/enums_ex.lua:374 enums/ModCallbacks.md render and sprites todo id 1458 +callback ModCallbacks MC_PRE_GRID_ENTITY_ROCK_UPDATE repentogon/resources/scripts/enums_ex.lua:333 enums/ModCallbacks.md level and room todo id 1416 +callback ModCallbacks MC_PRE_GRID_ENTITY_SPAWN repentogon/resources/scripts/enums_ex.lua:102 enums/ModCallbacks.md level and room todo id 1100 +callback ModCallbacks MC_PRE_GRID_ENTITY_SPIKES_RENDER repentogon/resources/scripts/enums_ex.lua:349 enums/ModCallbacks.md render and sprites todo id 1432 +callback ModCallbacks MC_PRE_GRID_ENTITY_SPIKES_UPDATE repentogon/resources/scripts/enums_ex.lua:335 enums/ModCallbacks.md level and room todo id 1418 +callback ModCallbacks MC_PRE_GRID_ENTITY_STAIRCASE_RENDER repentogon/resources/scripts/enums_ex.lua:357 enums/ModCallbacks.md render and sprites todo id 1440 +callback ModCallbacks MC_PRE_GRID_ENTITY_STAIRCASE_UPDATE repentogon/resources/scripts/enums_ex.lua:337 enums/ModCallbacks.md level and room todo id 1420 +callback ModCallbacks MC_PRE_GRID_ENTITY_STATUE_UPDATE repentogon/resources/scripts/enums_ex.lua:339 enums/ModCallbacks.md hud and menus todo id 1422 +callback ModCallbacks MC_PRE_GRID_ENTITY_TELEPORTER_RENDER repentogon/resources/scripts/enums_ex.lua:368 enums/ModCallbacks.md render and sprites todo id 1452 +callback ModCallbacks MC_PRE_GRID_ENTITY_TELEPORTER_UPDATE repentogon/resources/scripts/enums_ex.lua:341 enums/ModCallbacks.md level and room todo id 1424 +callback ModCallbacks MC_PRE_GRID_ENTITY_TNT_RENDER repentogon/resources/scripts/enums_ex.lua:353 enums/ModCallbacks.md render and sprites todo id 1436 +callback ModCallbacks MC_PRE_GRID_ENTITY_TNT_UPDATE repentogon/resources/scripts/enums_ex.lua:347 enums/ModCallbacks.md level and room todo id 1430 +callback ModCallbacks MC_PRE_GRID_ENTITY_TRAPDOOR_RENDER repentogon/resources/scripts/enums_ex.lua:355 enums/ModCallbacks.md render and sprites todo id 1438 +callback ModCallbacks MC_PRE_GRID_ENTITY_TRAPDOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:343 enums/ModCallbacks.md level and room todo id 1426 +callback ModCallbacks MC_PRE_GRID_ENTITY_WALL_RENDER repentogon/resources/scripts/enums_ex.lua:378 enums/ModCallbacks.md render and sprites todo id 1462 +callback ModCallbacks MC_PRE_GRID_ENTITY_WEB_RENDER repentogon/resources/scripts/enums_ex.lua:351 enums/ModCallbacks.md render and sprites todo id 1434 +callback ModCallbacks MC_PRE_GRID_ENTITY_WEB_UPDATE repentogon/resources/scripts/enums_ex.lua:345 enums/ModCallbacks.md level and room todo id 1428 +callback ModCallbacks MC_PRE_GRID_HURT repentogon/resources/scripts/enums_ex.lua:18 enums/ModCallbacks.md level and room todo id 1017 +callback ModCallbacks MC_PRE_HISTORYHUD_RENDER repentogon/resources/scripts/enums_ex.lua:29 enums/ModCallbacks.md hud and menus todo id 1027 +callback ModCallbacks MC_PRE_ITEM_OVERLAY_SHOW repentogon/resources/scripts/enums_ex.lua:78 enums/ModCallbacks.md hud and menus todo id 1076 +callback ModCallbacks MC_PRE_ITEM_TEXT_DISPLAY repentogon/resources/scripts/enums_ex.lua:398 enums/ModCallbacks.md items and pools todo id 1484 +callback ModCallbacks MC_PRE_KNIFE_COLLISION enums/ModCallbacks.md tear and weapons review id 53, vanilla callback REPENTOGON changes +callback ModCallbacks MC_PRE_KNIFE_RENDER repentogon/resources/scripts/enums_ex.lua:88 enums/ModCallbacks.md tear and weapons todo id 1086 +callback ModCallbacks MC_PRE_KNIFE_UPDATE repentogon/resources/scripts/enums_ex.lua:157 enums/ModCallbacks.md tear and weapons todo id 1165 +callback ModCallbacks MC_PRE_LASER_COLLISION repentogon/resources/scripts/enums_ex.lua:222 enums/ModCallbacks.md tear and weapons todo id 1248 +callback ModCallbacks MC_PRE_LASER_UPDATE repentogon/resources/scripts/enums_ex.lua:159 enums/ModCallbacks.md tear and weapons todo id 1167 +callback ModCallbacks MC_PRE_LEVEL_INIT repentogon/resources/scripts/enums_ex.lua:62 enums/ModCallbacks.md level and room todo id 1060 +callback ModCallbacks MC_PRE_LEVEL_PLACE_ROOM repentogon/resources/scripts/enums_ex.lua:139 enums/ModCallbacks.md level and room todo id 1137 +callback ModCallbacks MC_PRE_LEVEL_SELECT repentogon/resources/scripts/enums_ex.lua:106 enums/ModCallbacks.md level and room todo id 1104 +callback ModCallbacks MC_PRE_MEGA_SATAN_ENDING repentogon/resources/scripts/enums_ex.lua:183 enums/ModCallbacks.md misc todo id 1201 +callback ModCallbacks MC_PRE_MINIMAP_RENDER repentogon/resources/scripts/enums_ex.lua:393 hud and menus todo id 1479 +callback ModCallbacks MC_PRE_MINIMAP_UPDATE repentogon/resources/scripts/enums_ex.lua:391 hud and menus todo id 1477 +callback ModCallbacks MC_PRE_MOD_UNLOAD enums/ModCallbacks.md misc todo id 73, vanilla callback REPENTOGON changes +callback ModCallbacks MC_PRE_MUSIC_LAYER_TOGGLE repentogon/resources/scripts/enums_ex.lua:37 enums/ModCallbacks.md audio todo id 1035 +callback ModCallbacks MC_PRE_MUSIC_PLAY repentogon/resources/scripts/enums_ex.lua:36 enums/ModCallbacks.md audio todo id 1034 +callback ModCallbacks MC_PRE_MUSIC_PLAY_JINGLE repentogon/resources/scripts/enums_ex.lua:96 enums/ModCallbacks.md audio todo id 1094 +callback ModCallbacks MC_PRE_M_MORPH_ACTIVE repentogon/resources/scripts/enums_ex.lua:178 enums/ModCallbacks.md misc todo id 1190 +callback ModCallbacks MC_PRE_NEW_ROOM repentogon/resources/scripts/enums_ex.lua:182 enums/ModCallbacks.md level and room todo id 1200 +callback ModCallbacks MC_PRE_NPC_COLLISION enums/ModCallbacks.md npc review id 30, vanilla callback REPENTOGON changes +callback ModCallbacks MC_PRE_NPC_GET_LOOT_LIST repentogon/resources/scripts/enums_ex.lua:300 npc todo id 1337 +callback ModCallbacks MC_PRE_NPC_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:175 enums/ModCallbacks.md npc todo id 1183 +callback ModCallbacks MC_PRE_NPC_MORPH repentogon/resources/scripts/enums_ex.lua:187 enums/ModCallbacks.md npc todo id 1212 +callback ModCallbacks MC_PRE_NPC_RENDER repentogon/resources/scripts/enums_ex.lua:83 enums/ModCallbacks.md npc todo id 1081 +callback ModCallbacks MC_PRE_NPC_SPLIT repentogon/resources/scripts/enums_ex.lua:179 enums/ModCallbacks.md npc todo id 1191 +callback ModCallbacks MC_PRE_NPC_UPDATE_GHOST_PICKUPS repentogon/resources/scripts/enums_ex.lua:301 npc todo id 1338 +callback ModCallbacks MC_PRE_OPENGL_RENDER repentogon/resources/scripts/enums_ex.lua:138 render and sprites todo id 1136 +callback ModCallbacks MC_PRE_OPEN_CHEST repentogon/resources/scripts/enums_ex.lua:405 enums/ModCallbacks.md misc todo id 1491 +callback ModCallbacks MC_PRE_PAUSE_SCREEN_RENDER repentogon/resources/scripts/enums_ex.lua:193 enums/ModCallbacks.md hud and menus todo id 1218 +callback ModCallbacks MC_PRE_PICKUP_COLLISION enums/ModCallbacks.md pickup review id 38, vanilla callback REPENTOGON changes +callback ModCallbacks MC_PRE_PICKUP_COMPOSTED repentogon/resources/scripts/enums_ex.lua:241 enums/ModCallbacks.md pickup todo id 1267 +callback ModCallbacks MC_PRE_PICKUP_GET_LOOT_LIST repentogon/resources/scripts/enums_ex.lua:297 enums/ModCallbacks.md pickup todo id 1334 +callback ModCallbacks MC_PRE_PICKUP_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:171 enums/ModCallbacks.md pickup todo id 1179 +callback ModCallbacks MC_PRE_PICKUP_MORPH repentogon/resources/scripts/enums_ex.lua:188 enums/ModCallbacks.md pickup todo id 1213 +callback ModCallbacks MC_PRE_PICKUP_RENDER repentogon/resources/scripts/enums_ex.lua:85 enums/ModCallbacks.md pickup todo id 1083 +callback ModCallbacks MC_PRE_PICKUP_UPDATE repentogon/resources/scripts/enums_ex.lua:156 enums/ModCallbacks.md pickup todo id 1164 +callback ModCallbacks MC_PRE_PICKUP_UPDATE_GHOST_PICKUPS repentogon/resources/scripts/enums_ex.lua:298 enums/ModCallbacks.md pickup todo id 1335 +callback ModCallbacks MC_PRE_PICKUP_VOIDED repentogon/resources/scripts/enums_ex.lua:239 enums/ModCallbacks.md pickup todo id 1265 +callback ModCallbacks MC_PRE_PICKUP_VOIDED_ABYSS repentogon/resources/scripts/enums_ex.lua:240 enums/ModCallbacks.md pickup todo id 1266 +callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_ITEMS repentogon/resources/scripts/enums_ex.lua:115 enums/ModCallbacks.md items and pools todo id 1113 +callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_PLANETARIUM_PENALTY repentogon/resources/scripts/enums_ex.lua:113 enums/ModCallbacks.md items and pools todo id 1111 +callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_STAGE_PENALTY repentogon/resources/scripts/enums_ex.lua:112 enums/ModCallbacks.md level and room todo id 1110 +callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_TELESCOPE_LENS repentogon/resources/scripts/enums_ex.lua:116 enums/ModCallbacks.md items and pools todo id 1114 +callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_TREASURE_PENALTY repentogon/resources/scripts/enums_ex.lua:114 enums/ModCallbacks.md items and pools todo id 1112 +callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_ACTIVE_ITEM repentogon/resources/scripts/enums_ex.lua:121 enums/ModCallbacks.md player todo id 1119 +callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_CRAFTING_TABLE repentogon/resources/scripts/enums_ex.lua:271 enums/ModCallbacks.md player todo id 1297 +callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_HEARTS repentogon/resources/scripts/enums_ex.lua:120 enums/ModCallbacks.md player todo id 1118 +callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_INVENTORY repentogon/resources/scripts/enums_ex.lua:267 enums/ModCallbacks.md player todo id 1293 +callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_POOP_SPELL_QUEUE repentogon/resources/scripts/enums_ex.lua:269 enums/ModCallbacks.md player todo id 1295 +callback ModCallbacks MC_PRE_PLAYERHUD_TRINKET_RENDER repentogon/resources/scripts/enums_ex.lua:238 enums/ModCallbacks.md player todo id 1264 +callback ModCallbacks MC_PRE_PLAYER_ADD_CARD repentogon/resources/scripts/enums_ex.lua:304 enums/ModCallbacks.md player todo id 1350 +callback ModCallbacks MC_PRE_PLAYER_ADD_COSTUME repentogon/resources/scripts/enums_ex.lua:255 enums/ModCallbacks.md player todo id 1281 +callback ModCallbacks MC_PRE_PLAYER_ADD_HEARTS repentogon/resources/scripts/enums_ex.lua:10 enums/ModCallbacks.md player todo id 1009 +callback ModCallbacks MC_PRE_PLAYER_ADD_PILL repentogon/resources/scripts/enums_ex.lua:306 enums/ModCallbacks.md player todo id 1352 +callback ModCallbacks MC_PRE_PLAYER_APPLY_INNATE_COLLECTIBLE_NUM repentogon/resources/scripts/enums_ex.lua:94 player todo id 1092 +callback ModCallbacks MC_PRE_PLAYER_COLLECT_CARD repentogon/resources/scripts/enums_ex.lua:310 enums/ModCallbacks.md player todo id 1356 +callback ModCallbacks MC_PRE_PLAYER_COLLECT_PILL repentogon/resources/scripts/enums_ex.lua:312 enums/ModCallbacks.md player todo id 1358 +callback ModCallbacks MC_PRE_PLAYER_COLLISION enums/ModCallbacks.md player review id 33, vanilla callback REPENTOGON changes +callback ModCallbacks MC_PRE_PLAYER_GIVE_BIRTH_CAMBION repentogon/resources/scripts/enums_ex.lua:388 enums/ModCallbacks.md player todo id 1474 +callback ModCallbacks MC_PRE_PLAYER_GIVE_BIRTH_IMMACULATE repentogon/resources/scripts/enums_ex.lua:389 enums/ModCallbacks.md player todo id 1475 +callback ModCallbacks MC_PRE_PLAYER_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:163 enums/ModCallbacks.md player todo id 1171 +callback ModCallbacks MC_PRE_PLAYER_POCKET_ITEMS_SWAP repentogon/resources/scripts/enums_ex.lua:261 enums/ModCallbacks.md player todo id 1287 +callback ModCallbacks MC_PRE_PLAYER_REMOVE_COSTUME repentogon/resources/scripts/enums_ex.lua:256 enums/ModCallbacks.md player todo id 1282 +callback ModCallbacks MC_PRE_PLAYER_RENDER repentogon/resources/scripts/enums_ex.lua:84 enums/ModCallbacks.md player todo id 1082 +callback ModCallbacks MC_PRE_PLAYER_REVIVE repentogon/resources/scripts/enums_ex.lua:395 enums/ModCallbacks.md player todo id 1481 +callback ModCallbacks MC_PRE_PLAYER_TAKE_DMG repentogon/resources/scripts/enums_ex.lua:9 enums/ModCallbacks.md player todo id 1008 +callback ModCallbacks MC_PRE_PLAYER_TRIGGER_ROOM_CLEAR repentogon/resources/scripts/enums_ex.lua:71 enums/ModCallbacks.md player todo id 1069 +callback ModCallbacks MC_PRE_PLAYER_UPDATE repentogon/resources/scripts/enums_ex.lua:152 enums/ModCallbacks.md player todo id 1160 +callback ModCallbacks MC_PRE_PLAYER_USE_BOMB repentogon/resources/scripts/enums_ex.lua:195 enums/ModCallbacks.md player todo id 1220 +callback ModCallbacks MC_PRE_PROJECTILE_COLLISION enums/ModCallbacks.md tear and weapons review id 46, vanilla callback REPENTOGON changes +callback ModCallbacks MC_PRE_PROJECTILE_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:173 enums/ModCallbacks.md tear and weapons todo id 1181 +callback ModCallbacks MC_PRE_PROJECTILE_RENDER repentogon/resources/scripts/enums_ex.lua:87 enums/ModCallbacks.md tear and weapons todo id 1085 +callback ModCallbacks MC_PRE_PROJECTILE_UPDATE repentogon/resources/scripts/enums_ex.lua:158 enums/ModCallbacks.md tear and weapons todo id 1166 +callback ModCallbacks MC_PRE_RENDER repentogon/resources/scripts/enums_ex.lua:137 enums/ModCallbacks.md render and sprites todo id 1135 +callback ModCallbacks MC_PRE_RENDER_CHARACTER_SELECT_PAGE repentogon/resources/scripts/enums_ex.lua:292 enums/ModCallbacks.md render and sprites todo id 1329 +callback ModCallbacks MC_PRE_RENDER_CHARACTER_SELECT_PORTRAIT repentogon/resources/scripts/enums_ex.lua:294 enums/ModCallbacks.md render and sprites todo id 1331 +callback ModCallbacks MC_PRE_RENDER_CUSTOM_CHARACTER_MENU repentogon/resources/scripts/enums_ex.lua:296 hud and menus todo id 1333 +callback ModCallbacks MC_PRE_RENDER_ENTITY_LIGHTING repentogon/resources/scripts/enums_ex.lua:150 enums/ModCallbacks.md render and sprites todo id 1152 +callback ModCallbacks MC_PRE_RENDER_GRID_LIGHTING repentogon/resources/scripts/enums_ex.lua:149 enums/ModCallbacks.md render and sprites todo id 1151 +callback ModCallbacks MC_PRE_RENDER_PLAYER_BODY repentogon/resources/scripts/enums_ex.lua:41 enums/ModCallbacks.md player todo id 1039 +callback ModCallbacks MC_PRE_RENDER_PLAYER_HEAD repentogon/resources/scripts/enums_ex.lua:40 enums/ModCallbacks.md player todo id 1038 +callback ModCallbacks MC_PRE_REPLACE_SPRITESHEET repentogon/resources/scripts/enums_ex.lua:118 enums/ModCallbacks.md render and sprites todo id 1116 +callback ModCallbacks MC_PRE_RESTOCK_SHOP repentogon/resources/scripts/enums_ex.lua:72 enums/ModCallbacks.md items and pools todo id 1070 +callback ModCallbacks MC_PRE_ROOM_COLLISION_PASS repentogon/resources/scripts/enums_ex.lua:202 enums/ModCallbacks.md level and room todo id 1227 +callback ModCallbacks MC_PRE_ROOM_EXIT repentogon/resources/scripts/enums_ex.lua:45 enums/ModCallbacks.md level and room todo id 1043 +callback ModCallbacks MC_PRE_ROOM_GRID_ENTITY_SPAWN repentogon/resources/scripts/enums_ex.lua:180 enums/ModCallbacks.md level and room todo id 1192 +callback ModCallbacks MC_PRE_ROOM_RESTORE_STATE repentogon/resources/scripts/enums_ex.lua:279 enums/ModCallbacks.md hud and menus todo id 1305 +callback ModCallbacks MC_PRE_ROOM_TRIGGER_CLEAR repentogon/resources/scripts/enums_ex.lua:70 enums/ModCallbacks.md level and room todo id 1068 +callback ModCallbacks MC_PRE_SELECT_AMBUSH_WAVE repentogon/resources/scripts/enums_ex.lua:60 level and room todo id 1058 +callback ModCallbacks MC_PRE_SELECT_GREED_WAVE repentogon/resources/scripts/enums_ex.lua:61 level and room todo id 1059 +callback ModCallbacks MC_PRE_SFX_PLAY repentogon/resources/scripts/enums_ex.lua:32 enums/ModCallbacks.md audio todo id 1030 +callback ModCallbacks MC_PRE_SHUFFLE_COSTUMES repentogon/resources/scripts/enums_ex.lua:408 enums/ModCallbacks.md player todo id 1494 +callback ModCallbacks MC_PRE_SLOT_COLLISION repentogon/resources/scripts/enums_ex.lua:214 enums/ModCallbacks.md pickup todo id 1240 +callback ModCallbacks MC_PRE_SLOT_CREATE_EXPLOSION_DROPS repentogon/resources/scripts/enums_ex.lua:125 enums/ModCallbacks.md pickup todo id 1123 +callback ModCallbacks MC_PRE_SLOT_RENDER repentogon/resources/scripts/enums_ex.lua:91 enums/ModCallbacks.md pickup todo id 1089 +callback ModCallbacks MC_PRE_SLOT_SET_PRIZE_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:127 enums/ModCallbacks.md pickup todo id 1125 +callback ModCallbacks MC_PRE_SLOT_UPDATE repentogon/resources/scripts/enums_ex.lua:161 enums/ModCallbacks.md pickup todo id 1169 +callback ModCallbacks MC_PRE_STATUS_EFFECT_APPLY repentogon/resources/scripts/enums_ex.lua:381 enums/ModCallbacks.md hud and menus todo id 1465 +callback ModCallbacks MC_PRE_TEAR_COLLISION enums/ModCallbacks.md tear and weapons review id 42, vanilla callback REPENTOGON changes +callback ModCallbacks MC_PRE_TEAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:165 enums/ModCallbacks.md tear and weapons todo id 1173 +callback ModCallbacks MC_PRE_TEAR_RENDER repentogon/resources/scripts/enums_ex.lua:86 enums/ModCallbacks.md tear and weapons todo id 1084 +callback ModCallbacks MC_PRE_TEAR_UPDATE repentogon/resources/scripts/enums_ex.lua:153 enums/ModCallbacks.md tear and weapons todo id 1161 +callback ModCallbacks MC_PRE_TRIGGER_BED_SLEEP_EFFECT repentogon/resources/scripts/enums_ex.lua:259 enums/ModCallbacks.md misc todo id 1285 +callback ModCallbacks MC_PRE_TRIGGER_PLAYER_DEATH repentogon/resources/scripts/enums_ex.lua:52 enums/ModCallbacks.md player todo id 1050 +callback ModCallbacks MC_PRE_UPDATE repentogon/resources/scripts/enums_ex.lua:28 enums/ModCallbacks.md game todo id 1026 +callback ModCallbacks MC_PRE_USE_CARD repentogon/resources/scripts/enums_ex.lua:66 enums/ModCallbacks.md items and pools todo id 1064 +callback ModCallbacks MC_PRE_USE_ITEM enums/ModCallbacks.md items and pools review id 23, vanilla callback REPENTOGON changes +callback ModCallbacks MC_PRE_USE_PILL repentogon/resources/scripts/enums_ex.lua:67 enums/ModCallbacks.md items and pools todo id 1065 +callback ModCallbacks MC_PROJECTILE_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:174 enums/ModCallbacks.md tear and weapons todo id 1182 +callback ModCallbacks MC_SHOULD_SAVE_ENTITY repentogon/resources/scripts/enums_ex.lua:287 persistent data and saves todo id 1313 +callback ModCallbacks MC_TEAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:166 enums/ModCallbacks.md tear and weapons todo id 1174 +callback ModCallbacks MC_TRIGGER_PLAYER_DEATH_POST_CHECK_REVIVES repentogon/resources/scripts/enums_ex.lua:53 enums/ModCallbacks.md player todo id 1051 +callback ModCallbacks MC_TRY_ADD_TO_BAG_OF_CRAFTING repentogon/resources/scripts/enums_ex.lua:16 enums/ModCallbacks.md items and pools todo id 1015 +callback ModCallbacks MC_USE_PILL enums/ModCallbacks.md items and pools review id 10, vanilla callback REPENTOGON changes +xml_attribute achievements.xml gfxback repentogon/Patches/AchievementsStuff.cpp:184 xml/achievements.md persistent data and saves todo File "achievements.xml": path of the png sprite to use as a background paper for the achievement +xml_attribute achievements.xml hidden repentogon/Patches/XMLData.cpp:1479 xml/achievements.md persistent data and saves todo File "achievements.xml": any value other than 'false', preferably 'true', will make it not show the achievement popup on +xml_attribute achievements.xml name repentogon/Patches/XMLData.cpp:269 xml/achievements.md persistent data and saves todo File "achievements.xml": used for the GetXByName functions (when this is not present, text is used instead) +xml_attribute babies.xml achievement repentogon/Patches/XMLData.cpp:957 xml/babies.md player todo Babies: Optionally allows you to lock your baby behind an achievement (modded achievements must be specified by name). +xml_attribute babies.xml hidden repentogon/Patches/XMLData.cpp:1479 xml/babies.md player todo Babies: Prevents the baby from appearing naturally. +xml_attribute babies.xml name repentogon/Patches/XMLData.cpp:269 xml/babies.md player todo Babies: The name of the baby. +xml_attribute babies.xml skin xml/babies.md player todo Babies: Path to the baby's spritesheet, starting from the `root` (see example below). +xml_attribute backdrops.xml name repentogon/Patches/XMLData.cpp:269 xml/backdrops.md level and room todo File "backdrops.xml": The name of the custom backdrop, for use with Isaac.GetBackdropIdByName +xml_attribute backdrops.xml reftype repentogon/Patches/XMLData.cpp:615 xml/backdrops.md level and room todo File "backdrops.xml": Defines the id of the backdrop to use as a base for the custom backdrop. This is useful to grab el +xml_attribute bosscolors.xml name repentogon/Patches/XMLData.cpp:269 xml/bosscolors.md npc todo File "bosscolors.xml": used for the GetXByName functions, should be assigned to the color node +xml_attribute challenges.xml achievements repentogon/Patches/XMLData.cpp:3443 xml/challenges.md persistent data and saves todo File "challenges.xml": Same as vanilla, comma-separated list (without spaces) of achievements required to unlock the cha +xml_attribute challenges.xml hidden repentogon/Patches/XMLData.cpp:1479 xml/challenges.md persistent data and saves todo File "challenges.xml": Anything but "false" would result in a hidden challenge that wont show up in the menu +xml_attribute challenges.xml lockeddesc repentogon/Patches/XMLData.cpp:1153 xml/challenges.md persistent data and saves todo File "challenges.xml": Hint to display instead of the challenge name when its locked, the default phrase is "LOCKED :(" +xml_attribute challenges.xml playertype repentogon/Patches/XMLData.cpp:3438 xml/challenges.md persistent data and saves todo File "challenges.xml": This now supports modded characters by using the name of the character instead of an id. For a ta +xml_attribute challenges.xml startingcard repentogon/Patches/XMLData.cpp:3442 xml/challenges.md persistent data and saves todo File "challenges.xml": This now supports modded cards by using the names of the card instead of the id. +xml_attribute challenges.xml startingitems repentogon/Patches/XMLData.cpp:3439 xml/challenges.md persistent data and saves todo File "challenges.xml": This now supports modded items by using the names of the items instead of the ids. Same format as +xml_attribute challenges.xml startingitems2 repentogon/Patches/XMLData.cpp:3440 xml/challenges.md persistent data and saves todo File "challenges.xml": This now supports modded items by using the names of the items instead of the ids. Same format as +xml_attribute challenges.xml startingtrinkets repentogon/Patches/XMLData.cpp:3441 xml/challenges.md persistent data and saves todo File "challenges.xml": This now supports modded trinkets by using the names of the trinkets instead of the ids. Same for +xml_attribute challenges.xml unlockachievement repentogon/Patches/XMLData.cpp:3444 xml/challenges.md persistent data and saves todo File "challenges.xml": Sets the achievement(preferably a modded one using the name of the achievement) to unlock when th +xml_attribute costumes2.xml id repentogon/Patches/XMLData.cpp:250 xml/costumes.md player todo File "costumes2.xml": Assign the same "id" to a type="none" costume and a corresponding "null" item in [items.xml](items +xml_attribute costumes2.xml name repentogon/Patches/XMLData.cpp:269 xml/costumes.md player todo File "costumes2.xml": used as a general way to identify xml nodes (when this is not present, the filename of the anm2pat +xml_attribute cutscenes.xml music repentogon/Patches/XMLData.cpp:2578 xml/cutscenes.md hud and menus todo File "cutscenes.xml": used for the anm2 cutscenes, its available in vanilla but in rgon it now allows to set it to a mod +xml_attribute cutscenes.xml name repentogon/Patches/XMLData.cpp:269 xml/cutscenes.md hud and menus todo File "cutscenes.xml": used for the GetXByName functions (when this is not present, the filename of the gfx attribute is +xml_attribute edenhair.xml gfx repentogon/Patches/XMLData.cpp:450 xml/edenhair.md player todo Eden Hair: Path to the hair spritesheet, starting from the `root` (see example below). +xml_attribute entities2.xml bagofcrafting repentogon/Patches/EntityConfigEx.cpp:97 xml/entities.md entities todo File "entities2.xml": Pickups only. Space-separated list of ingredients to add to Bag of Crafting when collected, up to +xml_attribute entities2.xml boomerang repentogon/Patches/EntityConfigEx.cpp:112 xml/entities.md entities todo File "entities2.xml": Pickups only. Whether to allow this pickup to be "grabbed" by Boomerang and Jawbone. +xml_attribute entities2.xml coinvalue repentogon/Patches/EntityConfigEx.cpp:105 xml/entities.md entities todo File "entities2.xml": How much this coin pickup is worth when using GetCoinValue (either by the game or a lua call). +xml_attribute entities2.xml customtags repentogon/Patches/EntityConfigEx.cpp:89 xml/entities.md entities todo File "entities2.xml": Space-separated list of strings. See "CustomTags" section below. +xml_attribute entities2.xml isactiveenemy repentogon/Patches/EntityConfigEx.cpp:113 xml/entities.md entities todo File "entities2.xml": Whether this EntityNPC is treated as an "Active Enemy". +xml_attribute entities2.xml meleecollide repentogon/Patches/EntityConfigEx.cpp:111 xml/entities.md entities todo File "entities2.xml": Pickups only. Whether or not to trigger a collision with the player when hit with a Bone Club / Sp +xml_attribute entities2.xml nosplit repentogon/Patches/EntityConfigEx.cpp:114 xml/entities.md entities todo File "entities2.xml": Allows preventing this NPC from being split by Meat Cleaver. +xml_attribute giantbook.xml name repentogon/Patches/XMLData.cpp:269 xml/giantbook.md hud and menus todo File "giantbook.xml": used for the GetXByName functions (when this is not present, the filename of the gfx attribute is +xml_attribute items.xml achievement repentogon/Patches/XMLData.cpp:957 xml/items.md items and pools todo Items & Trinkets: Ties the item/trinket to be unlocked by an achievement. For modded achievements use the corresponding +xml_attribute items.xml activegfxpath xml/items.md items and pools todo Items & Trinkets: Path to spritesheet to use when item is in an active slot (vs as a collectible). +xml_attribute items.xml cache xml/items.md items and pools todo "Null" Items: Can be used to specify stats that should be re-evaluated when the effect of the null item is added or remo +xml_attribute items.xml cooldown xml/items.md items and pools todo "Null" Items: If set, defines how long the effect of the null item lasts, in update frames (30 frames ~= 1 second). Afte +xml_attribute items.xml damage repentogon/LuaInterfaces/ProcedualItems/LuaProceduralEffect.cpp:65 xml/items.md items and pools todo Item stats: stat attribute +xml_attribute items.xml damagemult xml/items.md items and pools todo Item stats: stat attribute +xml_attribute items.xml flatdamage xml/items.md items and pools todo Item stats: stat attribute +xml_attribute items.xml flattears xml/items.md items and pools todo Item stats: stat attribute +xml_attribute items.xml id repentogon/Patches/XMLData.cpp:250 xml/items.md items and pools todo "Null" Items: Assign the same "id" to a null item and a corresponding costume with type="none" costume in [costumes2.xml +xml_attribute items.xml luck xml/items.md items and pools todo Item stats: stat attribute +xml_attribute items.xml persistent xml/items.md items and pools todo "Null" Items: By default null item effects only last for the current room. Set persistent to true to have the effect per +xml_attribute items.xml range xml/items.md items and pools todo Item stats: stat attribute +xml_attribute items.xml shotspeed xml/items.md items and pools todo Item stats: stat attribute +xml_attribute items.xml speed xml/items.md items and pools todo Item stats: stat attribute +xml_attribute items.xml tears xml/items.md items and pools todo Item stats: stat attribute +xml_attribute items.xml tearsmult xml/items.md items and pools todo Item stats: stat attribute +xml_attribute players.xml achievement repentogon/Patches/XMLData.cpp:957 xml/players.md player todo File "players.xml": This is now respected on modded characters. For mods, it's best to define this as the *name* of the +xml_attribute players.xml blackhearts repentogon/Patches/XMLPlayerExtras.cpp:36 xml/players.md player todo File "players.xml": The amount of black hearts the character should start with. These do not replace soul hearts and are +xml_attribute players.xml bloodytears repentogon/Patches/EntityConfigEx.cpp:156 xml/players.md player todo File "players.xml": Set to true to give the player bloody tears by default, akin to Esau or Tainted Judas. +xml_attribute players.xml bonehearts repentogon/Patches/XMLPlayerExtras.cpp:23 xml/players.md player todo File "players.xml": The amount of empty bone hearts the character should start with. 1 unit = 1 bone heart +xml_attribute players.xml brokenhearts repentogon/Patches/XMLPlayerExtras.cpp:27 xml/players.md player todo File "players.xml": The amount of broken hearts the character should start with. 1 unit = 1 broken heart +xml_attribute players.xml card repentogon/Patches/XMLData.cpp:1354 xml/players.md player todo File "players.xml": This now supports a modded card by using the name of the card instead of the id. +xml_attribute players.xml completionparent repentogon/Patches/CompletionTracker.cpp:723 xml/players.md player todo File "players.xml": Used for characters that have shared completion marks with a preexistent character, like Dark Judas +xml_attribute players.xml damagemodifier xml/players.md player todo File "players.xml": An inherent offset to the damage stat the character should start with. Base this offset off of Isaac +xml_attribute players.xml damagemultiplier xml/players.md player todo File "players.xml": Assigns a character damage multiplier, akin to those of Judas (1.35), Azazel (1.5), or Eve (0.75). N +xml_attribute players.xml deathsound repentogon/Patches/ASMPatches/ASMPlayer.cpp:121 xml/players.md player todo File "players.xml": Set this to define a death sound for the character whenever they would die or touch a White Fireplac +xml_attribute players.xml eternalheart repentogon/Patches/XMLPlayerExtras.cpp:25 xml/players.md player todo File "players.xml": If a character should start with an eternal heart. 1 = yes +xml_attribute players.xml flying repentogon/Patches/EntityConfigEx.cpp:165 xml/players.md player todo File "players.xml": Set to true to grant the player "flying" by default, like Azazel. Note that this does not provide a +xml_attribute players.xml gigabombs repentogon/Patches/XMLPlayerExtras.cpp:45 xml/players.md player todo File "players.xml": The amount of giga bombs the character should start with. These do not replace normal bombs. +xml_attribute players.xml goldenhearts repentogon/Patches/XMLPlayerExtras.cpp:26 xml/players.md player todo File "players.xml": The amount of golden hearts the character should start with. 1 unit = 1 golden heart +xml_attribute players.xml healthlimit repentogon/Patches/XMLPlayerExtras.cpp:59 xml/players.md player todo File "players.xml": A maximum amount of HP the character should be able to have. 1 unit = 1/2 heart +xml_attribute players.xml healthtype repentogon/LuaInterfaces/CustomCallbacks.cpp:1579 xml/players.md player todo File "players.xml": The health type the player should start with. The int corresponds to the [HealthType](../enums/Healt +xml_attribute players.xml heartcontainers repentogon/Patches/XMLPlayerExtras.cpp:21 xml/players.md player todo File "players.xml": The amount of empty heart containers the character should start with. 1 unit = 1/2 a heart +xml_attribute players.xml hideachievement repentogon/Patches/XMLData.cpp:957 xml/players.md player todo File "players.xml": Hides the character from the menu until this achievement is earned. Must be used on the non-tainted +xml_attribute players.xml hurtsound repentogon/Patches/ASMPatches/ASMPlayer.cpp:84 xml/players.md player todo File "players.xml": Set this to define a hurt sound for the character whenever they would take damage. +xml_attribute players.xml innateitems repentogon/Patches/ItemSpoofSystem.cpp:143 xml/players.md player todo File "players.xml": Same as `items`, but innate to the character +xml_attribute players.xml innatetrinkets repentogon/Patches/ItemSpoofSystem.cpp:144 xml/players.md player todo File "players.xml": Trinket effects innate to the character. Comma separated list of ids or names +xml_attribute players.xml items repentogon/Patches/XMLData.cpp:3431 xml/players.md player todo File "players.xml": This now supports modded items by using the names of the items instead of the ids. Same format as in +xml_attribute players.xml luckmodifier xml/players.md player todo File "players.xml": An inherent offset to the luck stat the character should start with. Base this offset off of Isaac's +xml_attribute players.xml modcostume repentogon/Patches/NullItemsAndCostumes.cpp:13 xml/players.md player todo File "players.xml": Set this to match the "id" attribute of a costume with type="none" defined in the same mod (in [cost +xml_attribute players.xml nomarks repentogon/Patches/CompletionTracker.cpp:764 xml/players.md player todo File "players.xml": If it has any value other than 'false', it will hide the completion marks for the given character +xml_attribute players.xml noshake repentogon/Patches/EntityConfigEx.cpp:145 xml/players.md player todo File "players.xml": Will prevent character's shaking during stage/boss screen transition (similarly to Keeper) if set to +xml_attribute players.xml rangemodifier xml/players.md player todo File "players.xml": An inherent offset to the range stat the character should start with. Base this offset off of Isaac' +xml_attribute players.xml redhearts repentogon/Patches/XMLPlayerExtras.cpp:22 xml/players.md player todo File "players.xml": The amount of red hearts the character should start with. 1 unit = 1/2 a heart +xml_attribute players.xml rottenhearts repentogon/Patches/XMLPlayerExtras.cpp:40 xml/players.md player todo File "players.xml": The amount of rotten hearts the character should start with. 1 unit = 1 rotten heart +xml_attribute players.xml shotspeedmodifier xml/players.md player todo File "players.xml": An inherent offset to the shot speed stat the character should start with. Base this offset off of I +xml_attribute players.xml soulhearts repentogon/Patches/XMLPlayerExtras.cpp:24 xml/players.md player todo File "players.xml": The amount of soul hearts the character should start with. 1 unit = 1/2 a heart +xml_attribute players.xml speedmodifier xml/players.md player todo File "players.xml": An inherent offset to the speed stat the character should start with. Base this offset off of Isaac' +xml_attribute players.xml tearsmodifier repentogon/Patches/EntityConfigEx.cpp:119 xml/players.md player todo File "players.xml": An inherent offset to the tears stat the character should start with. Base this offset off of Isaac' +xml_attribute players.xml tearsmultiplier xml/players.md player todo File "players.xml": Assigns a character tears multiplier, akin to those of Azazel (0.267) or Tainted Eve (0.66). +xml_attribute players.xml trinket repentogon/Patches/XMLData.cpp:1085 xml/players.md player todo File "players.xml": This now supports a modded trinket by using the name of the trinket instead of the id. +xml_attribute pocketitems.xml achievement repentogon/Patches/XMLData.cpp:957 xml/pocketitems.md items and pools todo Cards & Pill Effects: Ties the card/pill-effect to be unlocked by an achievement. For modded ones, use the provided achi +xml_attribute pocketitems.xml announcer repentogon/Patches/ItemConfigEx.cpp:445 xml/pocketitems.md items and pools todo Cards: Now allows modded sounds to be specified using their name. +xml_attribute pocketitems.xml announcer2 repentogon/Patches/ItemConfigEx.cpp:465 xml/pocketitems.md items and pools todo Cards & Pill Effects: Now allows modded sounds to be specified using their name (for ref, this is the Horse Pills line). +xml_attribute pocketitems.xml hidden repentogon/Patches/XMLData.cpp:1479 xml/pocketitems.md items and pools todo Cards: `Optional` `Default = false` Prevents the card from being randomly chosen by the game or when using the [ItemPool +xml_attribute pocketitems.xml weight repentogon/LuaInterfaces/LuaBossPool.cpp:45 xml/pocketitems.md items and pools todo Cards: `Optional` `Default = 1.0` Relative "likelihood" for this card to be chosen over others of the same [card type](h +xml_tag achievements.xml achievements.xml xml/achievements.md persistent data and saves todo file: content and resources support +xml_tag ambush.xml ambush.xml xml/ambush.md level and room todo file: content and resources support +xml_tag babies.xml babies xml/babies.md player todo tag in the docs' examples +xml_tag babies.xml babies.xml xml/babies.md player todo file: content and resources support +xml_tag babies.xml baby xml/babies.md player todo tag in the docs' examples +xml_tag backdrops.xml backdrop repentogon/Patches/XMLData.cpp:1991 xml/backdrops.md level and room todo tag in the docs' examples +xml_tag backdrops.xml backdrops xml/backdrops.md level and room todo tag in the docs' examples +xml_tag backdrops.xml backdrops.xml xml/backdrops.md level and room todo file: content and resources support +xml_tag bosscolors.xml bosscolors.xml xml/bosscolors.md npc todo file: content and resources support +xml_tag challenges.xml challenges.xml xml/challenges.md persistent data and saves todo file: content and resources support +xml_tag costumes2.xml costumes2.xml xml/costumes.md player todo file: content and resources support +xml_tag cutscenes.xml cutscenes.xml xml/cutscenes.md hud and menus todo file: content and resources support +xml_tag edenhair.xml edenhair repentogon/Patches/EntityConfigEx.cpp:201 xml/edenhair.md player todo tag in the docs' examples +xml_tag edenhair.xml edenhair.xml xml/edenhair.md player todo file: content and resources support +xml_tag edenhair.xml hair repentogon/Patches/EntityConfigEx.cpp:201 xml/edenhair.md player todo tag in the docs' examples +xml_tag entities2.xml entities2.xml xml/entities.md entities todo file: content and resources support +xml_tag giantbook.xml giantbook.xml xml/giantbook.md hud and menus todo file: content and resources support +xml_tag itempools.xml itempools.xml xml/itempools.md items and pools todo file: content and resources support +xml_tag items.xml items.xml xml/items.md items and pools todo file: content and resources support +xml_tag items.xml null repentogon/Patches/XMLData.cpp:998 xml/items.md items and pools todo tag in the docs' examples +xml_tag items.xml passive repentogon/Patches/XMLData.cpp:1369 xml/items.md items and pools todo tag in the docs' examples +xml_tag items.xml trinket repentogon/Patches/XMLData.cpp:1085 xml/items.md items and pools todo tag in the docs' examples +xml_tag players.xml players.xml xml/players.md player todo file: content and resources support +xml_tag pocketitems.xml pocketitems.xml xml/pocketitems.md items and pools todo file: content and resources support +xml_tag stringtable.sta category repentogon/Patches/XMLData.cpp:2864 xml/stringtable.md hud and menus todo tag in the docs' examples +xml_tag stringtable.sta challenge repentogon/Patches/ConsoleHooks.cpp:174 xml/stringtable.md hud and menus todo tag in the docs' examples +xml_tag stringtable.sta info repentogon/Patches/XMLData.cpp:2975 xml/stringtable.md hud and menus todo tag in the docs' examples +xml_tag stringtable.sta key repentogon/Patches/XMLData.cpp:2873 xml/stringtable.md hud and menus todo tag in the docs' examples +xml_tag stringtable.sta language xml/stringtable.md hud and menus todo tag in the docs' examples +xml_tag stringtable.sta languages xml/stringtable.md hud and menus todo tag in the docs' examples +xml_tag stringtable.sta passive repentogon/Patches/XMLData.cpp:1369 xml/stringtable.md hud and menus todo tag in the docs' examples +xml_tag stringtable.sta string repentogon/Patches/XMLData.cpp:2885 xml/stringtable.md hud and menus todo tag in the docs' examples +xml_tag stringtable.sta stringtable repentogon/Patches/XMLData.cpp:2971 xml/stringtable.md hud and menus todo tag in the docs' examples +xml_tag stringtable.sta stringtable.sta xml/stringtable.md hud and menus todo file: content and resources support +enum enums_ex.lua Achievement repentogon/resources/scripts/enums_ex.lua:941 enums/Achievement.md persistent data and saves done new enum +enum enums_ex.lua AddHealthType repentogon/resources/scripts/enums_ex.lua:573 enums/AddHealthType.md misc done new enum +enum enums_ex.lua AltRockType repentogon/resources/scripts/enums_ex.lua:3254 enums/AltRockType.md misc done new enum +enum enums_ex.lua AnimRenderFlags repentogon/resources/scripts/enums_ex.lua:2856 enums/AnimRenderFlags.md render and sprites done new enum +enum enums_ex.lua AnnouncerVoiceMode repentogon/resources/scripts/enums_ex.lua:2385 enums/AnnouncerVoiceMode.md misc done new enum +enum enums_ex.lua AutocompleteType repentogon/resources/scripts/enums_ex.lua:2833 enums/AutocompleteType.md console and debug done new enum +enum enums_ex.lua BagOfCraftingPickup repentogon/resources/scripts/enums_ex.lua:2576 enums/BagOfCraftingPickup.md pickup done new enum +enum enums_ex.lua BlendEquation repentogon/resources/scripts/enums_ex.lua:3000 enums/BlendEquation.md misc done new enum +enum enums_ex.lua BlendFactor repentogon/resources/scripts/enums_ex.lua:2981 enums/BlendFactor.md misc done new enum +enum enums_ex.lua BlendType repentogon/resources/scripts/enums_ex.lua:3008 enums/BlendType.md misc done new enum +enum enums_ex.lua BloodClotSubtype repentogon/resources/scripts/enums_ex.lua:3203 enums/BloodClotSubtype.md misc done new enum +enum enums_ex.lua BombCostumeLayer repentogon/resources/scripts/enums_ex.lua:2951 enums/BombCostumeLayer.md player done new enum +enum enums_ex.lua BossType repentogon/resources/scripts/enums_ex.lua:626 enums/BossType.md npc done new enum +enum enums_ex.lua ButtonActionBitwise repentogon/resources/scripts/enums_ex.lua:732 enums/ButtonActionBitwise.md misc done new enum +enum enums_ex.lua CameraStyle repentogon/resources/scripts/enums_ex.lua:2391 enums/CameraStyle.md misc done new enum +enum enums_ex.lua CharacterMenuStatus repentogon/resources/scripts/enums_ex.lua:3085 enums/CharacterMenuStatus.md hud and menus done new enum +enum enums_ex.lua ChargeType repentogon/resources/scripts/enums_ex.lua:3233 enums/ChargeType.md misc done new enum +enum enums_ex.lua CompletionStatus repentogon/resources/scripts/enums_ex.lua:3227 enums/CompletionStatus.md persistent data and saves done new enum +enum enums_ex.lua CompletionType repentogon/resources/scripts/enums_ex.lua:2489 enums/CompletionType.md persistent data and saves done new enum +enum enums_ex.lua ConceptionFamiliarFlag repentogon/resources/scripts/enums_ex.lua:3050 enums/ConceptionFamiliarFlag.md familiar done new enum +enum enums_ex.lua ConsoleFont repentogon/resources/scripts/enums_ex.lua:2396 enums/ConsoleFont.md console and debug done new enum +enum enums_ex.lua CustomCacheTag repentogon/resources/scripts/enums_ex.lua:3139 enums/CustomCacheTag.md items and pools done new enum +enum enums_ex.lua DebugFlag repentogon/resources/scripts/enums_ex.lua:2533 enums/DebugFlag.md console and debug done new enum +enum enums_ex.lua DeliriumCallbacks repentogon/resources/scripts/enums_ex.lua:586 enums/DeliriumCallbacks.md npc done new enum +enum enums_ex.lua DialogButtons repentogon/resources/scripts/enums_ex.lua:2866 enums/DialogButtons.md console and debug done new enum +enum enums_ex.lua DialogIcons repentogon/resources/scripts/enums_ex.lua:2877 enums/DialogIcons.md console and debug done new enum +enum enums_ex.lua DialogReturn repentogon/resources/scripts/enums_ex.lua:2888 enums/DialogReturn.md console and debug done new enum +enum enums_ex.lua Dimension repentogon/resources/scripts/enums_ex.lua:1601 enums/Dimension.md misc done new enum +enum enums_ex.lua DipSubType repentogon/resources/scripts/enums_ex.lua:2550 enums/DipSubType.md misc done new enum +enum enums_ex.lua DoorMask repentogon/resources/scripts/enums_ex.lua:3094 enums/DoorMask.md level and room done new enum +enum enums_ex.lua DwmWindowAttribute repentogon/resources/scripts/enums_ex.lua:3022 enums/DwmWindowAttribute.md misc done new enum +enum enums_ex.lua EffectVariant repentogon/resources/scripts/enums_ex.lua:412 misc done extends the vanilla enum: 3 values +enum enums_ex.lua Ending repentogon/resources/scripts/enums_ex.lua:2408 enums/Ending.md misc done new enum +enum enums_ex.lua EnemyTargetFlags repentogon/resources/scripts/enums_ex.lua:3239 enums/EnemyTargetFlags.md misc done new enum +enum enums_ex.lua EntityPartition repentogon/resources/scripts/enums_ex.lua:592 entities done extends the vanilla enum: 1 values +enum enums_ex.lua EntityPoopVariant repentogon/resources/scripts/enums_ex.lua:1770 enums/EntityPoopVariant.md entities done new enum +enum enums_ex.lua EntityTag repentogon/resources/scripts/enums_ex.lua:2921 enums/EntityTag.md entities done new enum +enum enums_ex.lua EvaluateStatStage repentogon/resources/scripts/enums_ex.lua:3149 enums/EvaluateStatStage.md hud and menus done new enum +enum enums_ex.lua EventCounter repentogon/resources/scripts/enums_ex.lua:1821 enums/EventCounter.md misc done new enum +enum enums_ex.lua ExtraHudStyle repentogon/resources/scripts/enums_ex.lua:2402 enums/ExtraHudStyle.md hud and menus done new enum +enum enums_ex.lua FadeoutTarget repentogon/resources/scripts/enums_ex.lua:2425 enums/FadeoutTarget.md misc done new enum +enum enums_ex.lua FollowerPriority repentogon/resources/scripts/enums_ex.lua:1584 enums/FollowerPriority.md misc done new enum +enum enums_ex.lua GameStateFlag repentogon/resources/scripts/enums_ex.lua:567 hud and menus done extends the vanilla enum: 5 values +enum enums_ex.lua GetCollectibleFlag repentogon/resources/scripts/enums_ex.lua:776 enums/GetCollectibleFlag.md items and pools done new enum +enum enums_ex.lua Giantbook repentogon/resources/scripts/enums_ex.lua:2440 enums/Giantbook.md hud and menus done new enum +enum enums_ex.lua GibFlag repentogon/resources/scripts/enums_ex.lua:2934 enums/GibFlag.md misc done new enum +enum enums_ex.lua GridPoopVariant repentogon/resources/scripts/enums_ex.lua:1755 enums/GridPoopVariant.md level and room done new enum +enum enums_ex.lua GridRooms repentogon/resources/scripts/enums_ex.lua:563 level and room done extends the vanilla enum: 5 values +enum enums_ex.lua HealthType repentogon/resources/scripts/enums_ex.lua:1593 enums/HealthType.md misc done new enum +enum enums_ex.lua ImGuiCallback repentogon/resources/scripts/enums_ex.lua:2661 enums/ImGuiCallback.md misc done new enum +enum enums_ex.lua ImGuiChildFlags repentogon/resources/scripts/enums_ex.lua:2769 enums/ImGuiChildFlags.md misc done new enum +enum enums_ex.lua ImGuiColor repentogon/resources/scripts/enums_ex.lua:2685 enums/ImGuiColor.md render and sprites done new enum +enum enums_ex.lua ImGuiData repentogon/resources/scripts/enums_ex.lua:2675 enums/ImGuiData.md misc done new enum +enum enums_ex.lua ImGuiElement repentogon/resources/scripts/enums_ex.lua:2625 enums/ImGuiElement.md misc done new enum +enum enums_ex.lua ImGuiNotificationType repentogon/resources/scripts/enums_ex.lua:2967 enums/ImGuiNotificationType.md misc done new enum +enum enums_ex.lua ImGuiWindowFlags repentogon/resources/scripts/enums_ex.lua:2741 enums/ImGuiWindowFlags.md misc done new enum +enum enums_ex.lua ItemAnim repentogon/resources/scripts/enums_ex.lua:2787 enums/ItemAnim.md render and sprites done new enum +enum enums_ex.lua KnifeSubType repentogon/resources/scripts/enums_ex.lua:794 enums/KnifeSubType.md tear and weapons done new enum +enum enums_ex.lua KnifeVariant repentogon/resources/scripts/enums_ex.lua:782 enums/KnifeVariant.md tear and weapons done new enum +enum enums_ex.lua Language repentogon/resources/scripts/enums_ex.lua:2373 enums/Language.md misc done new enum +enum enums_ex.lua LineCheckMode repentogon/resources/scripts/enums_ex.lua:1608 enums/LineCheckMode.md misc done new enum +enum enums_ex.lua MainMenuType repentogon/resources/scripts/enums_ex.lua:1793 enums/MainMenuType.md hud and menus done new enum +enum enums_ex.lua MinimapState repentogon/resources/scripts/enums_ex.lua:3016 enums/MinimapState.md hud and menus done new enum +enum enums_ex.lua MouseButton repentogon/resources/scripts/enums_ex.lua:2432 enums/MouseButton.md input done new enum +enum enums_ex.lua Music repentogon/resources/scripts/enums_ex.lua:419 audio done extends the vanilla enum: 2 values +enum enums_ex.lua NullPickupSubType repentogon/resources/scripts/enums_ex.lua:768 enums/NullPickupSubType.md pickup done new enum +enum enums_ex.lua PauseMenuStates repentogon/resources/scripts/enums_ex.lua:2564 enums/PauseMenuStates.md hud and menus done new enum +enum enums_ex.lua PedestalType repentogon/resources/scripts/enums_ex.lua:2510 enums/PedestalType.md misc done new enum +enum enums_ex.lua PillCardSlot repentogon/resources/scripts/enums_ex.lua:1786 enums/PillCardSlot.md pickup done new enum +enum enums_ex.lua PillEffectSubClass repentogon/resources/scripts/enums_ex.lua:3221 enums/PillEffectSubClass.md items and pools done new enum +enum enums_ex.lua PlayerHUDLayout repentogon/resources/scripts/enums_ex.lua:3116 enums/PlayerHUDLayout.md player done new enum +enum enums_ex.lua PlayerVariant repentogon/resources/scripts/enums_ex.lua:1781 enums/PlayerVariant.md player done new enum +enum enums_ex.lua PocketItemType repentogon/resources/scripts/enums_ex.lua:2781 enums/PocketItemType.md player done new enum +enum enums_ex.lua PressurePlateVariant repentogon/resources/scripts/enums_ex.lua:1733 enums/PressurePlateVariant.md misc done new enum +enum enums_ex.lua ProceduralEffectActionType repentogon/resources/scripts/enums_ex.lua:2912 enums/ProceduralEffectActionType.md misc done new enum +enum enums_ex.lua ProceduralEffectConditionType repentogon/resources/scripts/enums_ex.lua:2900 enums/ProceduralEffectConditionType.md misc done new enum +enum enums_ex.lua ProjectileMode repentogon/resources/scripts/enums_ex.lua:1615 enums/ProjectileMode.md tear and weapons done new enum +enum enums_ex.lua PurityState repentogon/resources/scripts/enums_ex.lua:2959 enums/PurityState.md hud and menus done new enum +enum enums_ex.lua RetractingSpikesVariant repentogon/resources/scripts/enums_ex.lua:1719 enums/RetractingSpikesVariant.md misc done new enum +enum enums_ex.lua RoomDisplayFlags repentogon/resources/scripts/enums_ex.lua:3214 enums/RoomDisplayFlags.md level and room done new enum +enum enums_ex.lua RoomEventOutput repentogon/resources/scripts/enums_ex.lua:3123 enums/RoomEventOutput.md level and room done new enum +enum enums_ex.lua RoomGroup repentogon/resources/scripts/enums_ex.lua:936 level and room done new enum +enum enums_ex.lua RoomSubType repentogon/resources/scripts/enums_ex.lua:822 enums/RoomSubType.md level and room done new enum +enum enums_ex.lua RoomType repentogon/resources/scripts/enums_ex.lua:416 level and room done extends the vanilla enum: 2 values +enum enums_ex.lua SlotState repentogon/resources/scripts/enums_ex.lua:3193 enums/SlotState.md pickup done new enum +enum enums_ex.lua SlotVariant repentogon/resources/scripts/enums_ex.lua:801 enums/SlotVariant.md pickup done new enum +enum enums_ex.lua SoundEffect repentogon/resources/scripts/enums_ex.lua:422 audio done extends the vanilla enum: 134 values +enum enums_ex.lua SpecialQuest repentogon/resources/scripts/enums_ex.lua:2974 enums/SpecialQuest.md misc done new enum +enum enums_ex.lua SplitTearType repentogon/resources/scripts/enums_ex.lua:3173 enums/SplitTearType.md tear and weapons done new enum +enum enums_ex.lua StatusEffect repentogon/resources/scripts/enums_ex.lua:3066 enums/StatusEffect.md hud and menus done new enum +enum enums_ex.lua StbGridType repentogon/resources/scripts/enums_ex.lua:1628 enums/StbGridType.md level and room done new enum +enum enums_ex.lua StbPoopSubType repentogon/resources/scripts/enums_ex.lua:1674 enums/StbPoopSubType.md misc done new enum +enum enums_ex.lua StbRailVariant repentogon/resources/scripts/enums_ex.lua:1684 enums/StbRailVariant.md misc done new enum +enum enums_ex.lua StbRockSubType repentogon/resources/scripts/enums_ex.lua:1669 enums/StbRockSubType.md misc done new enum +enum enums_ex.lua StbTeleporterSubType repentogon/resources/scripts/enums_ex.lua:1679 enums/StbTeleporterSubType.md misc done new enum +enum enums_ex.lua StbType repentogon/resources/scripts/enums_ex.lua:594 enums/StbType.md misc done new enum +enum enums_ex.lua StringTableCategory repentogon/resources/scripts/enums_ex.lua:3157 misc done new enum +enum enums_ex.lua SuplexState repentogon/resources/scripts/enums_ex.lua:3131 enums/SuplexState.md hud and menus done new enum +enum enums_ex.lua TaintedMarksGroup repentogon/resources/scripts/enums_ex.lua:2570 enums/TaintedMarksGroup.md persistent data and saves done new enum +enum enums_ex.lua TeleporterVariant repentogon/resources/scripts/enums_ex.lua:1745 enums/TeleporterVariant.md misc done new enum +enum enums_ex.lua TrinketSlot repentogon/resources/scripts/enums_ex.lua:3247 enums/TrinketSlot.md pickup done new enum +enum enums_ex.lua UseActiveItemResultFlag repentogon/resources/scripts/enums_ex.lua:3188 enums/UseActiveItemResultFlag.md items and pools done new enum +enum enums_ex.lua WaterClipFlag repentogon/resources/scripts/enums_ex.lua:3105 enums/WaterClipFlag.md misc done new enum +enum enums_ex.lua WeaponModifier repentogon/resources/scripts/enums_ex.lua:2609 enums/WeaponModifier.md tear and weapons done new enum +enum enums_ex.lua WispSubType repentogon/resources/scripts/enums_ex.lua:2349 enums/WispSubType.md familiar done new enum +enum enums_ex.lua XMLNode repentogon/resources/scripts/enums_ex.lua:2794 enums/XMLNode.md misc done new enum +option OptionsSyncing SyncModsEnabled repentogon/REPENTOGONOptions.h:44 misc done options.ini +option OptionsSyncing SyncVanillaOptions repentogon/REPENTOGONOptions.h:43 misc done options.ini +option VanillaTweaks BetterVoidGeneration repentogon/REPENTOGONOptions.h:45 misc done options.ini +option VanillaTweaks BlockUnknownDevices repentogon/REPENTOGONOptions.h:60 misc done options.ini +option VanillaTweaks ConsoleAutofillLimit repentogon/REPENTOGONOptions.h:54 console and debug done options.ini +option VanillaTweaks ConsoleKeyMode repentogon/REPENTOGONOptions.h:55 console and debug done options.ini +option VanillaTweaks ConsoleKeyScancode repentogon/REPENTOGONOptions.h:57 console and debug done options.ini +option VanillaTweaks ConsoleKeyVK repentogon/REPENTOGONOptions.h:56 console and debug done options.ini +option VanillaTweaks DisableExitPrompt repentogon/REPENTOGONOptions.h:59 misc done options.ini +option VanillaTweaks EcoMode repentogon/REPENTOGONOptions.h:58 misc done options.ini +option VanillaTweaks FastLasers repentogon/REPENTOGONOptions.h:51 misc done options.ini +option VanillaTweaks HushLaserSpeedFix repentogon/REPENTOGONOptions.h:46 misc done options.ini +option VanillaTweaks InterpolV2 repentogon/REPENTOGONOptions.h:52 misc done options.ini +option VanillaTweaks MarsDoubleTapWindow repentogon/REPENTOGONOptions.h:53 misc done options.ini +option VanillaTweaks PreventModUpdates repentogon/REPENTOGONOptions.h:50 misc done options.ini +option VanillaTweaks QuickRoomClear repentogon/REPENTOGONOptions.h:47 misc done options.ini +option VanillaTweaks SkipIntro repentogon/REPENTOGONOptions.h:49 misc done options.ini +option VanillaTweaks StatHUDPlanetarium repentogon/REPENTOGONOptions.h:48 misc done options.ini +option internal DidInputConfigsImport repentogon/REPENTOGONOptions.h:69 misc done options.ini +option internal DidModReset repentogon/REPENTOGONOptions.h:61 misc done options.ini +option internal EnableDocking repentogon/REPENTOGONOptions.h:113 misc done options.ini +option internal EnableImGuiMultiView repentogon/REPENTOGONOptions.h:112 console and debug done options.ini +option internal EnableUnifont repentogon/REPENTOGONOptions.h:62 console and debug done options.ini +option internal FileMap repentogon/REPENTOGONOptions.h:65 misc done options.ini +option internal FontRenderStyle repentogon/REPENTOGONOptions.h:111 console and debug done options.ini +option internal FontSize repentogon/REPENTOGONOptions.h:109 console and debug done options.ini +option internal ImGuiScale repentogon/REPENTOGONOptions.h:66 console and debug done options.ini +option internal LastSaveFile repentogon/REPENTOGONOptions.h:64 misc done options.ini +option internal RenderDebugFindInRadius repentogon/REPENTOGONOptions.h:68 console and debug done options.ini +option internal SkipArchiveChecks repentogon/REPENTOGONOptions.h:67 misc done options.ini +option internal UnifontRenderMode repentogon/REPENTOGONOptions.h:63 console and debug done options.ini +behaviour_patch Patches ASMPatches.cpp repentogon/Patches/ASMPatches.cpp:1 console and debug todo Applies every byte patch at startup: log and console routing, mod and save folders moved to REPENTOGON's data folder +behaviour_patch Patches ASMPatches/ASMBagOfCrafting.cpp repentogon/Patches/ASMPatches/ASMBagOfCrafting.cpp:1 items and pools todo Bag of Crafting pickup adds: MC_TRY_ADD_TO_BAG_OF_CRAFTING and modded pickups +behaviour_patch Patches ASMPatches/ASMCallbacks.cpp repentogon/Patches/ASMPatches/ASMCallbacks.cpp:1 misc todo Inline patches firing the callbacks a hook cannot reach (pause, HUD messages, room placement, NPC removal and many more) +behaviour_patch Patches ASMPatches/ASMCamera.cpp repentogon/Patches/ASMPatches/ASMCamera.cpp:1 level and room todo Keeps the room's single Camera alive for Lua and restores it on destruction +behaviour_patch Patches ASMPatches/ASMDelirium.cpp repentogon/Patches/ASMPatches/ASMDelirium.cpp:1 npc todo Delirium transformation callbacks (pre, transform, post) +behaviour_patch Patches ASMPatches/ASMEntityKnife.cpp repentogon/Patches/ASMPatches/ASMEntityKnife.cpp:1 tear and weapons todo Melee knife hitbox initialisation +behaviour_patch Patches ASMPatches/ASMEntityNPC.cpp repentogon/Patches/ASMPatches/ASMEntityNPC.cpp:1 npc todo NPC speed and active enemy checks driven by entity config +behaviour_patch Patches ASMPatches/ASMFixes.cpp repentogon/Patches/ASMPatches/ASMFixes.cpp:1 misc todo Vanilla bug fixes: modded crafting quality, smelted trinkets, pill identification and effects, game state load, render target overflow, familiar pathing +behaviour_patch Patches ASMPatches/ASMGridEntityCollision.cpp repentogon/Patches/ASMPatches/ASMGridEntityCollision.cpp:1 level and room todo Grid collision callbacks, deduplicated per frame and grid index +behaviour_patch Patches ASMPatches/ASMGridEntitySpawn.cpp repentogon/Patches/ASMPatches/ASMGridEntitySpawn.cpp:1 level and room todo Routes inlined grid spawns through MC_PRE/POST_GRID_ENTITY_SPAWN +behaviour_patch Patches ASMPatches/ASMGridEntitySpawn_Definitions.cpp repentogon/Patches/ASMPatches/ASMGridEntitySpawn_Definitions.cpp:1 level and room todo Signature table of the inlined grid spawn sites +behaviour_patch Patches ASMPatches/ASMHud.cpp repentogon/Patches/ASMPatches/ASMHud.cpp:1 hud and menus todo HistoryHUD render and recompute callbacks, smelted item images +behaviour_patch Patches ASMPatches/ASMLevel.cpp repentogon/Patches/ASMPatches/ASMLevel.cpp:1 level and room todo Custom stage ids, level generation and room placement callbacks, stage binaries +behaviour_patch Patches ASMPatches/ASMLocalization.cpp repentogon/Patches/ASMPatches/ASMLocalization.cpp:1 hud and menus todo Localised resource lookup in archives with an English fallback +behaviour_patch Patches ASMPatches/ASMMenu.cpp repentogon/Patches/ASMPatches/ASMMenu.cpp:1 hud and menus todo Mods menu font, language change from options, online and daily menu selection +behaviour_patch Patches ASMPatches/ASMPlayer.cpp repentogon/Patches/ASMPatches/ASMPlayer.cpp:1 player todo Familiar checks, Mars double tap window, active charge, custom hurt and death sounds, Lost Soul puddle +behaviour_patch Patches ASMPatches/ASMPlayerManager.cpp repentogon/Patches/ASMPatches/ASMPlayerManager.cpp:1 player todo Controller reassignment on restore and disconnect +behaviour_patch Patches ASMPatches/ASMRender.cpp repentogon/Patches/ASMPatches/ASMRender.cpp:1 hud and menus todo Planetarium chance on the stat HUD (option) +behaviour_patch Patches ASMPatches/ASMRoom.cpp repentogon/Patches/ASMPatches/ASMRoom.cpp:1 level and room todo Ambush wave count, boss wave difficulty, Mega Satan ending, water, room save state, clear delay, Blue Womb door +behaviour_patch Patches ASMPatches/ASMSplitTears.cpp repentogon/Patches/ASMPatches/ASMSplitTears.cpp:1 tear and weapons todo MC_POST_FIRE_SPLIT_TEAR for every tear split +behaviour_patch Patches ASMPatches/ASMStatusEffects.cpp repentogon/Patches/ASMPatches/ASMStatusEffects.cpp:1 entities todo Status effect targets and Weakness for custom status effects +behaviour_patch Patches ASMPatches/ASMTweaks.cpp repentogon/Patches/ASMPatches/ASMTweaks.cpp:1 misc todo Small tweaks: Godhead partition, Tear Detonator, Hush veins, archive checksums, console online, resource paths, exit prompt, music bound, language +behaviour_patch Patches AchievementsStuff.cpp repentogon/Patches/AchievementsStuff.cpp:1 persistent data and saves todo Modded achievements: XML, saving, popups, lockachievement, Isaac.GetAchievementIdByName +behaviour_patch Patches Anm2Extras.cpp repentogon/Patches/Anm2Extras.cpp:1 render and sprites todo Per ANM2 and per layer extras: shaders and render flags +behaviour_patch Patches CardsExtras.cpp repentogon/Patches/CardsExtras.cpp:1 items and pools todo Card XML extras: availability conditions, hidden cards, weights in GetCard +behaviour_patch Patches ChallengesStuff.cpp repentogon/Patches/ChallengesStuff.cpp:1 persistent data and saves todo Modded challenge completion, saving and menus +behaviour_patch Patches CompletionTracker.cpp repentogon/Patches/CompletionTracker.cpp:1 persistent data and saves todo Completion marks for modded characters: saving, the character menu and Isaac's completion functions +behaviour_patch Patches ConsoleHooks.cpp repentogon/Patches/ConsoleHooks.cpp:1 console and debug todo Console: REPENTOGON branding, command history kept on crash, new commands, autocomplete +behaviour_patch Patches CustomCache.cpp repentogon/Patches/CustomCache.cpp:1 items and pools todo Custom cache flags (customcache XML) evaluated on item, trinket and effect changes +behaviour_patch Patches CustomDevilPlanetariumChance.cpp repentogon/Patches/CustomDevilPlanetariumChance.cpp:1 items and pools todo Devil and planetarium chance split into callback steps +behaviour_patch Patches CustomModManager.cpp repentogon/Patches/CustomModManager.cpp:1 misc todo Per mod curses and mod entry extras +behaviour_patch Patches CutsceneSkip.cpp repentogon/Patches/CutsceneSkip.cpp:1 hud and menus todo Cutscenes skippable with input +behaviour_patch Patches EntityConfigEx.cpp repentogon/Patches/EntityConfigEx.cpp:1 entities todo entities2.xml extras: tags, erased enemies, Jera and reroll flags, familiar buddies +behaviour_patch Patches EntityManager.cpp repentogon/Patches/EntityManager.cpp:1 entities todo Entity lifetime tracking: factory, list reset, removal +behaviour_patch Patches EntityPlus.cpp repentogon/Patches/EntityPlus.cpp:1 entities todo Extra per entity data: water clip, flying override, init and remove +behaviour_patch Patches EvaluateStats.cpp repentogon/Patches/EvaluateStats.cpp:1 items and pools todo XML item stats (tears, damage, range ...) applied at the vanilla steps of EvaluateItems +behaviour_patch Patches ExtraDebugRender.cpp repentogon/Patches/ExtraDebugRender.cpp:1 console and debug todo Draws FindInRadius and capsule queries (debug option) +behaviour_patch Patches ExtraLives.cpp repentogon/Patches/ExtraLives.cpp:1 player todo Custom extra lives and revives, MC_PRE_TRIGGER_PLAYER_DEATH +behaviour_patch Patches ExtraRenderSteps.cpp repentogon/Patches/ExtraRenderSteps.cpp:1 render and sprites todo Cursor initialised and rendered for the mouse control option +behaviour_patch Patches FamiliarTags.cpp repentogon/Patches/FamiliarTags.cpp:1 familiar todo Familiar XML tags: damageable, blocks projectiles, charmable +behaviour_patch Patches GetCoinValue.cpp repentogon/Patches/GetCoinValue.cpp:1 pickup todo Custom coin values, MC_PICKUP_GET_COIN_VALUE +behaviour_patch Patches GridEntityPlus.cpp repentogon/Patches/GridEntityPlus.cpp:1 level and room todo Extra per grid entity data and water clip +behaviour_patch Patches ImagePatches.cpp repentogon/Patches/ImagePatches.cpp:1 render and sprites todo Transparent render batch reuse fixes +behaviour_patch Patches Init.cpp repentogon/Patches/Init.cpp:1 misc todo Starts REPENTOGON's systems in Manager::Init +behaviour_patch Patches InterpolV2.cpp repentogon/Patches/InterpolV2.cpp:1 render and sprites todo Interpolated rendering between updates (option) +behaviour_patch Patches ItemConfigEx.cpp repentogon/Patches/ItemConfigEx.cpp:1 items and pools todo items.xml extras and custom item sounds +behaviour_patch Patches ItemPoolManager.cpp repentogon/Patches/ItemPoolManager.cpp:1 items and pools todo Custom item pools from XML, pool queries, Isaac.GetPoolIdByName +behaviour_patch Patches ItemSpoofSystem.cpp repentogon/Patches/ItemSpoofSystem.cpp:1 player todo Innate collectibles and trinkets counted by HasCollectible and friends +behaviour_patch Patches JsonSavedata.h repentogon/Patches/JsonSavedata.h:1 persistent data and saves todo JSON helpers for REPENTOGON's own save data +behaviour_patch Patches LagMetric.cpp repentogon/Patches/LagMetric.cpp:1 render and sprites todo Lag metric and laser sample caching +behaviour_patch Patches MainMenuBlock.cpp repentogon/Patches/MainMenuBlock.cpp:1 hud and menus todo Main menu input mask (MenuManager.SetInputMask) +behaviour_patch Patches MesaShaderFix.cpp repentogon/Patches/MesaShaderFix.cpp:1 render and sprites todo Shader loading fix for Mesa drivers +behaviour_patch Patches MinimapPatches.cpp repentogon/Patches/MinimapPatches.cpp:1 hud and menus todo Minimap shader before its image renders +behaviour_patch Patches MiscFixes.cpp repentogon/Patches/MiscFixes.cpp:1 misc todo Fixes: null frames, missing entity configs, familiar followers, innate collectibles, font drawing +behaviour_patch Patches ModReloading.cpp repentogon/Patches/ModReloading.cpp:1 misc todo Mod reloading and workshop updates +behaviour_patch Patches ModsMenuStuff.cpp repentogon/Patches/ModsMenuStuff.cpp:1 hud and menus todo Mods menu search bar and input +behaviour_patch Patches NullItemsAndCostumes.cpp repentogon/Patches/NullItemsAndCostumes.cpp:1 player todo Custom null items and their costumes +behaviour_patch Patches PlayerFeatures.cpp repentogon/Patches/PlayerFeatures.cpp:1 player todo Modded character trinket handling, Greed donations, per save state +behaviour_patch Patches PlayerTags.cpp repentogon/Patches/PlayerTags.cpp:1 player todo players.xml tags: no shake, no Metronome, no expansion pack, nightmare portraits +behaviour_patch Patches PocketItems.cpp repentogon/Patches/PocketItems.cpp:1 player todo Pocket item adds and removals with callbacks +behaviour_patch Patches Quickstart.cpp repentogon/Patches/Quickstart.cpp:1 hud and menus todo Quickstart into the last save slot +behaviour_patch Patches RoomConfigExtras.h repentogon/Patches/RoomConfigExtras.h:1 level and room todo Stage id mapping for Greed and alternate stages +behaviour_patch Patches SaveImport.cpp repentogon/Patches/SaveImport.cpp:1 persistent data and saves todo Imports vanilla saves into REPENTOGON's save folder +behaviour_patch Patches StagesStuff.cpp repentogon/Patches/StagesStuff.cpp:1 level and room todo Custom floor music, backdrop and name, stage config ids, stage command +behaviour_patch Patches VanillaTweaks.cpp repentogon/Patches/VanillaTweaks.cpp:1 misc todo Option tweaks: better Void generation, Hush laser speed, quick room clear, Hornfel, archive checks +behaviour_patch Patches XMLData.cpp repentogon/Patches/XMLData.cpp:1 misc todo Loads every content XML into XMLData, merges content and resources, custom backdrops, cutscenes and stages +behaviour_patch Patches XMLPlayerExtras.cpp repentogon/Patches/XMLPlayerExtras.cpp:1 player todo players.xml extras: starting health and stats, health limit, custom character menu +behaviour_patch Patches Xml/XmlBossPools.cpp repentogon/Patches/Xml/XmlBossPools.cpp:1 npc todo bosspools.xml parsing for custom boss pools diff --git a/assets/repentogon/LICENSE b/assets/repentogon/LICENSE new file mode 100644 index 0000000..7e14f38 --- /dev/null +++ b/assets/repentogon/LICENSE @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. \ No newline at end of file diff --git a/assets/repentogon/scripts/enums_ex.lua b/assets/repentogon/scripts/enums_ex.lua new file mode 100644 index 0000000..c5e3577 --- /dev/null +++ b/assets/repentogon/scripts/enums_ex.lua @@ -0,0 +1,3271 @@ +--ModCallbacks.DEPRECATED_MC_USE_PILL = 1001 -- Re-implementation of this callback used to use a different ID, now it uses the original callback ID + +ModCallbacks.MC_POST_USE_ITEM = 1003 +ModCallbacks.MC_PRE_ADD_COLLECTIBLE = 1004 +ModCallbacks.MC_POST_ADD_COLLECTIBLE = 1005 +ModCallbacks.MC_POST_TAKE_DMG = 1006 -- deprecated but still in here for backwards compatibility +ModCallbacks.MC_POST_ENTITY_TAKE_DMG = 1006 +--ModCallbacks.DEPRECATED_MC_ENTITY_TAKE_DMG = 1007 -- Re-implementation of this callback used to use a different ID, now it uses the original callback ID +ModCallbacks.MC_PRE_PLAYER_TAKE_DMG = 1008 +ModCallbacks.MC_PRE_PLAYER_ADD_HEARTS = 1009 +ModCallbacks.MC_POST_PLAYER_ADD_HEARTS = 1010 +ModCallbacks.MC_POST_GRID_ROCK_DESTROY = 1011 +ModCallbacks.MC_GRID_HURT_DAMAGE = 1012 +ModCallbacks.MC_POST_GRID_HURT_DAMAGE = 1013 +ModCallbacks.MC_PRE_ADD_TRINKET = 1014 +ModCallbacks.MC_TRY_ADD_TO_BAG_OF_CRAFTING = 1015 +ModCallbacks.MC_POST_ADD_TO_BAG_OF_CRAFTING = 1016 +ModCallbacks.MC_PRE_GRID_HURT = 1017 +ModCallbacks.MC_POST_GRID_HURT = 1018 + +ModCallbacks.MC_HUD_UPDATE = 1020 +ModCallbacks.MC_HUD_POST_UPDATE = 1021 -- deprecated but still in here for backwards compatibility +ModCallbacks.MC_POST_HUD_UPDATE = 1021 +ModCallbacks.MC_HUD_RENDER = 1022 +ModCallbacks.MC_MAIN_MENU_RENDER = 1023 +ModCallbacks.MC_POST_HUD_RENDER = 1024 +ModCallbacks.MC_POST_FIRE_SPLIT_TEAR = 1025 +ModCallbacks.MC_PRE_UPDATE = 1026 +ModCallbacks.MC_PRE_HISTORYHUD_RENDER = 1027 +ModCallbacks.MC_POST_HISTORYHUD_RENDER = 1028 +ModCallbacks.MC_POST_HISTORYHUD_RECOMPUTE = 1029 +ModCallbacks.MC_PRE_SFX_PLAY = 1030 +ModCallbacks.MC_POST_SFX_PLAY = 1031 +ModCallbacks.MC_POST_PROJECTILE_DEATH = 1032 +ModCallbacks.MC_POST_TEAR_DEATH = 1033 +ModCallbacks.MC_PRE_MUSIC_PLAY = 1034 +ModCallbacks.MC_PRE_MUSIC_LAYER_TOGGLE = 1035 +ModCallbacks.MC_PRE_BRIMSTONE_SNEEZE = 1036 +ModCallbacks.MC_POST_BRIMSTONE_SNEEZE = 1037 +ModCallbacks.MC_PRE_RENDER_PLAYER_HEAD = 1038 +ModCallbacks.MC_PRE_RENDER_PLAYER_BODY = 1039 +ModCallbacks.MC_PRE_ENTITY_THROW = 1040 +ModCallbacks.MC_POST_ENTITY_THROW = 1041 +ModCallbacks.MC_PLAYER_INIT_POST_LEVEL_INIT_STATS = 1042 +ModCallbacks.MC_PRE_ROOM_EXIT = 1043 +ModCallbacks.MC_POST_ROOM_RENDER_ENTITIES = 1044 +ModCallbacks.MC_POST_RENDER_PLAYER_HEAD = 1045 +ModCallbacks.MC_POST_RENDER_PLAYER_BODY = 1046 +ModCallbacks.MC_COMPLETION_MARK_GET = 1047 +ModCallbacks.MC_POST_COMPLETION_MARK_GET = 1048 +ModCallbacks.MC_PRE_COMPLETION_EVENT = 1049 +ModCallbacks.MC_PRE_TRIGGER_PLAYER_DEATH = 1050 +ModCallbacks.MC_TRIGGER_PLAYER_DEATH_POST_CHECK_REVIVES = 1051 +ModCallbacks.MC_POST_COMPLETION_EVENT = 1052 -- groan +ModCallbacks.MC_POST_TRIGGER_COLLECTIBLE_ADDED = 1053 +ModCallbacks.MC_POST_ADD_INNATE_COLLECTIBLE = 1054 +ModCallbacks.MC_POST_ADD_INNATE_TRINKET = 1055 +ModCallbacks.MC_POST_REMOVE_INNATE_COLLECTIBLE = 1056 +ModCallbacks.MC_POST_REMOVE_INNATE_TRINKET = 1057 +ModCallbacks.MC_PRE_SELECT_AMBUSH_WAVE = 1058 +ModCallbacks.MC_PRE_SELECT_GREED_WAVE = 1059 +ModCallbacks.MC_PRE_LEVEL_INIT = 1060 +ModCallbacks.MC_PRE_CHANGE_ROOM = 1061 +ModCallbacks.MC_POST_PICKUP_SHOP_PURCHASE = 1062 +ModCallbacks.MC_GET_FOLLOWER_PRIORITY = 1063 +ModCallbacks.MC_PRE_USE_CARD = 1064 +ModCallbacks.MC_PRE_USE_PILL = 1065 +ModCallbacks.MC_GET_SHOP_ITEM_PRICE = 1066 +ModCallbacks.MC_PLAYER_GET_HEALTH_TYPE = 1067 +ModCallbacks.MC_PRE_ROOM_TRIGGER_CLEAR = 1068 +ModCallbacks.MC_PRE_PLAYER_TRIGGER_ROOM_CLEAR = 1069 +ModCallbacks.MC_PRE_RESTOCK_SHOP = 1070 +ModCallbacks.MC_POST_RESTOCK_SHOP = 1071 +ModCallbacks.MC_PLAYER_GET_ACTIVE_MAX_CHARGE = 1072 +ModCallbacks.MC_PLAYER_GET_ACTIVE_MIN_USABLE_CHARGE = 1073 +ModCallbacks.MC_PLAYER_GET_HEART_LIMIT = 1074 +ModCallbacks.MC_POST_ITEM_OVERLAY_UPDATE = 1075 +ModCallbacks.MC_PRE_ITEM_OVERLAY_SHOW = 1076 +ModCallbacks.MC_POST_PLAYER_NEW_ROOM_TEMP_EFFECTS = 1077 +ModCallbacks.MC_POST_PLAYER_NEW_LEVEL = 1078 +ModCallbacks.MC_POST_PLAYERHUD_RENDER_ACTIVE_ITEM = 1079 +ModCallbacks.MC_PRE_FAMILIAR_RENDER = 1080 +ModCallbacks.MC_PRE_NPC_RENDER = 1081 +ModCallbacks.MC_PRE_PLAYER_RENDER = 1082 +ModCallbacks.MC_PRE_PICKUP_RENDER = 1083 +ModCallbacks.MC_PRE_TEAR_RENDER = 1084 +ModCallbacks.MC_PRE_PROJECTILE_RENDER = 1085 +ModCallbacks.MC_PRE_KNIFE_RENDER = 1086 +ModCallbacks.MC_PRE_EFFECT_RENDER = 1087 +ModCallbacks.MC_PRE_BOMB_RENDER = 1088 +ModCallbacks.MC_PRE_SLOT_RENDER = 1089 +ModCallbacks.MC_POST_SLOT_RENDER = 1090 +ModCallbacks.MC_POST_PLAYERHUD_RENDER_HEARTS = 1091 +ModCallbacks.MC_PRE_PLAYER_APPLY_INNATE_COLLECTIBLE_NUM = 1092 +--ModCallbacks.MC_PRE_PLAYER_HAS_COLLECTIBLE = 1093 (unusable) +ModCallbacks.MC_PRE_MUSIC_PLAY_JINGLE = 1094 +ModCallbacks.MC_POST_TRIGGER_COLLECTIBLE_REMOVED = 1095 +ModCallbacks.MC_POST_TRIGGER_TRINKET_ADDED = 1096 +ModCallbacks.MC_POST_TRIGGER_TRINKET_REMOVED = 1097 +ModCallbacks.MC_POST_TRIGGER_WEAPON_FIRED = 1098 +ModCallbacks.MC_POST_LEVEL_LAYOUT_GENERATED = 1099 +ModCallbacks.MC_PRE_GRID_ENTITY_SPAWN = 1100 +ModCallbacks.MC_POST_GRID_ENTITY_SPAWN = 1101 +ModCallbacks.MC_POST_NIGHTMARE_SCENE_RENDER = 1102 +ModCallbacks.MC_POST_NIGHTMARE_SCENE_SHOW = 1103 +ModCallbacks.MC_PRE_LEVEL_SELECT = 1104 +ModCallbacks.MC_POST_WEAPON_FIRE = 1105 +ModCallbacks.MC_PRE_BACKDROP_RENDER_WALLS = 1106 +ModCallbacks.MC_PRE_BACKDROP_RENDER_FLOOR = 1107 +ModCallbacks.MC_PRE_BACKDROP_RENDER_WATER = 1108 +ModCallbacks.MC_POST_BACKDROP_PRE_RENDER_WALLS = 1109 +ModCallbacks.MC_PRE_PLANETARIUM_APPLY_STAGE_PENALTY = 1110 +ModCallbacks.MC_PRE_PLANETARIUM_APPLY_PLANETARIUM_PENALTY = 1111 +ModCallbacks.MC_PRE_PLANETARIUM_APPLY_TREASURE_PENALTY = 1112 +ModCallbacks.MC_PRE_PLANETARIUM_APPLY_ITEMS = 1113 +ModCallbacks.MC_PRE_PLANETARIUM_APPLY_TELESCOPE_LENS = 1114 +ModCallbacks.MC_POST_PLANETARIUM_CALCULATE = 1115 +ModCallbacks.MC_PRE_REPLACE_SPRITESHEET = 1116 +ModCallbacks.MC_POST_REPLACE_SPRITESHEET = 1117 +ModCallbacks.MC_PRE_PLAYERHUD_RENDER_HEARTS = 1118 +ModCallbacks.MC_PRE_PLAYERHUD_RENDER_ACTIVE_ITEM = 1119 +ModCallbacks.MC_CONSOLE_AUTOCOMPLETE = 1120 +ModCallbacks.MC_POST_SLOT_INIT = 1121 +ModCallbacks.MC_POST_SLOT_UPDATE = 1122 +ModCallbacks.MC_PRE_SLOT_CREATE_EXPLOSION_DROPS = 1123 +ModCallbacks.MC_POST_SLOT_CREATE_EXPLOSION_DROPS = 1124 +ModCallbacks.MC_PRE_SLOT_SET_PRIZE_COLLECTIBLE = 1125 +ModCallbacks.MC_POST_SLOT_SET_PRIZE_COLLECTIBLE = 1126 +ModCallbacks.MC_PLAYER_INIT_PRE_LEVEL_INIT_STATS = 1127 +ModCallbacks.MC_PLAYER_HEALTH_TYPE_CHANGE = 1128 +ModCallbacks.MC_POST_FORCE_ADD_PILL_EFFECT = 1129 +ModCallbacks.MC_PRE_DEVIL_APPLY_ITEMS = 1130 +ModCallbacks.MC_PRE_DEVIL_APPLY_STAGE_PENALTY = 1131 +ModCallbacks.MC_PRE_DEVIL_APPLY_SPECIAL_ITEMS = 1132 +ModCallbacks.MC_POST_DEVIL_CALCULATE = 1133 +ModCallbacks.MC_POST_ITEM_OVERLAY_SHOW = 1134 +ModCallbacks.MC_PRE_RENDER = 1135 +ModCallbacks.MC_PRE_OPENGL_RENDER = 1136 +ModCallbacks.MC_PRE_LEVEL_PLACE_ROOM = 1137 +ModCallbacks.MC_POST_PLAYER_TRIGGER_ROOM_CLEAR = 1138 +ModCallbacks.MC_POST_ITEM_OVERLAY_RENDER = 1139 +ModCallbacks.MC_POST_DISCHARGE_ACTIVE_ITEM = 1140 +ModCallbacks.MC_PRE_BACKDROP_CHANGE = 1141 +ModCallbacks.MC_POST_BACKDROP_CHANGE = 1142 +ModCallbacks.MC_POST_ROOM_TRIGGER_CLEAR = 1143 +ModCallbacks.MC_POST_PLAYER_DROP_TRINKET = 1144 + +ModCallbacks.MC_PRE_GET_LIGHTING_ALPHA = 1150 +ModCallbacks.MC_PRE_RENDER_GRID_LIGHTING = 1151 +ModCallbacks.MC_PRE_RENDER_ENTITY_LIGHTING = 1152 + +ModCallbacks.MC_PRE_PLAYER_UPDATE = 1160 +ModCallbacks.MC_PRE_TEAR_UPDATE = 1161 +ModCallbacks.MC_PRE_FAMILIAR_UPDATE = 1162 +ModCallbacks.MC_PRE_BOMB_UPDATE = 1163 +ModCallbacks.MC_PRE_PICKUP_UPDATE = 1164 +ModCallbacks.MC_PRE_KNIFE_UPDATE = 1165 +ModCallbacks.MC_PRE_PROJECTILE_UPDATE = 1166 +ModCallbacks.MC_PRE_LASER_UPDATE = 1167 +ModCallbacks.MC_PRE_EFFECT_UPDATE = 1168 +ModCallbacks.MC_PRE_SLOT_UPDATE = 1169 + +ModCallbacks.MC_PRE_PLAYER_GRID_COLLISION = 1171 +ModCallbacks.MC_PLAYER_GRID_COLLISION = 1172 +ModCallbacks.MC_PRE_TEAR_GRID_COLLISION = 1173 +ModCallbacks.MC_TEAR_GRID_COLLISION = 1174 +ModCallbacks.MC_PRE_FAMILIAR_GRID_COLLISION = 1175 +ModCallbacks.MC_FAMILIAR_GRID_COLLISION = 1176 +ModCallbacks.MC_PRE_BOMB_GRID_COLLISION = 1177 +ModCallbacks.MC_BOMB_GRID_COLLISION = 1178 +ModCallbacks.MC_PRE_PICKUP_GRID_COLLISION = 1179 +ModCallbacks.MC_PICKUP_GRID_COLLISION = 1180 +ModCallbacks.MC_PRE_PROJECTILE_GRID_COLLISION = 1181 +ModCallbacks.MC_PROJECTILE_GRID_COLLISION = 1182 +ModCallbacks.MC_PRE_NPC_GRID_COLLISION = 1183 +ModCallbacks.MC_NPC_GRID_COLLISION = 1184 + +ModCallbacks.MC_PRE_M_MORPH_ACTIVE = 1190 +ModCallbacks.MC_PRE_NPC_SPLIT = 1191 +ModCallbacks.MC_PRE_ROOM_GRID_ENTITY_SPAWN = 1192 + +ModCallbacks.MC_PRE_NEW_ROOM = 1200 +ModCallbacks.MC_PRE_MEGA_SATAN_ENDING = 1201 + +ModCallbacks.MC_POST_MODS_LOADED = 1210 + +ModCallbacks.MC_PRE_NPC_MORPH = 1212 +ModCallbacks.MC_PRE_PICKUP_MORPH = 1213 +ModCallbacks.MC_POST_NPC_MORPH = 1214 +ModCallbacks.MC_POST_PICKUP_MORPH = 1215 +ModCallbacks.MC_PRE_COMPLETION_MARKS_RENDER = 1216 +ModCallbacks.MC_POST_COMPLETION_MARKS_RENDER = 1217 +ModCallbacks.MC_PRE_PAUSE_SCREEN_RENDER = 1218 +ModCallbacks.MC_POST_PAUSE_SCREEN_RENDER = 1219 +ModCallbacks.MC_PRE_PLAYER_USE_BOMB = 1220 +ModCallbacks.MC_POST_PLAYER_USE_BOMB = 1221 +ModCallbacks.MC_NPC_PICK_TARGET = 1222 +ModCallbacks.MC_POST_NPC_DARK_RED_CHAMPION_REGEN = 1223 +ModCallbacks.MC_EVALUATE_CUSTOM_CACHE = 1224 +ModCallbacks.MC_EVALUATE_FAMILIAR_MULTIPLIER = 1225 +ModCallbacks.MC_EVALUATE_STAT = 1226 +ModCallbacks.MC_PRE_ROOM_COLLISION_PASS = 1227 + +--ModCallbacks.DEPRECATED_MC_PRE_PLAYER_COLLISION = 1230 -- Re-implementation of this callback used to use a different ID, now it uses the original callback ID +ModCallbacks.MC_POST_PLAYER_COLLISION = 1231 +--ModCallbacks.DEPRECATED_MC_PRE_TEAR_COLLISION = 1232 -- Re-implementation of this callback used to use a different ID, now it uses the original callback ID +ModCallbacks.MC_POST_TEAR_COLLISION = 1233 +--ModCallbacks.DEPRECATED_MC_PRE_FAMILIAR_COLLISION = 1234 -- Re-implementation of this callback used to use a different ID, now it uses the original callback ID +ModCallbacks.MC_POST_FAMILIAR_COLLISION = 1235 +--ModCallbacks.DEPRECATED_MC_PRE_BOMB_COLLISION = 1236 -- Re-implementation of this callback used to use a different ID, now it uses the original callback ID +ModCallbacks.MC_POST_BOMB_COLLISION = 1237 +--ModCallbacks.DEPRECATED_MC_PRE_PICKUP_COLLISION = 1238 -- Re-implementation of this callback used to use a different ID, now it uses the original callback ID +ModCallbacks.MC_POST_PICKUP_COLLISION = 1239 +ModCallbacks.MC_PRE_SLOT_COLLISION = 1240 +ModCallbacks.MC_POST_SLOT_COLLISION = 1241 +--ModCallbacks.DEPRECATED_MC_PRE_KNIFE_COLLISION = 1242 -- Re-implementation of this callback used to use a different ID, now it uses the original callback ID +ModCallbacks.MC_POST_KNIFE_COLLISION = 1243 +--ModCallbacks.DEPRECATED_MC_PRE_PROJECTILE_COLLISION = 1244 -- Re-implementation of this callback used to use a different ID, now it uses the original callback ID +ModCallbacks.MC_POST_PROJECTILE_COLLISION = 1245 +--ModCallbacks.DEPRECATED_MC_PRE_NPC_COLLISION = 1246 -- Re-implementation of this callback used to use a different ID, now it uses the original callback ID +ModCallbacks.MC_POST_NPC_COLLISION = 1247 +ModCallbacks.MC_PRE_LASER_COLLISION = 1248 +ModCallbacks.MC_POST_LASER_COLLISION = 1249 +ModCallbacks.MC_PICKUP_GET_COIN_VALUE = 1250 +ModCallbacks.MC_POST_PLAYER_GET_MULTI_SHOT_PARAMS = 1251 -- Legacy callback. Keep but do not document. Use MC_EVALUATE_MULTI_SHOT_PARAMS instead. +ModCallbacks.MC_POST_FAMILIAR_FIRE_PROJECTILE = 1252 +ModCallbacks.MC_POST_FIRE_BOMB = 1253 +ModCallbacks.MC_POST_FIRE_BONE_CLUB = 1254 +ModCallbacks.MC_POST_FIRE_BRIMSTONE = 1255 +ModCallbacks.MC_POST_FIRE_BRIMSTONE_BALL = 1256 +ModCallbacks.MC_POST_FIRE_KNIFE = 1257 +ModCallbacks.MC_POST_FIRE_SWORD = 1258 +ModCallbacks.MC_POST_FIRE_TECH_LASER = 1259 +ModCallbacks.MC_POST_FIRE_TECH_X_LASER = 1260 +ModCallbacks.MC_POST_FAMILIAR_FIRE_BRIMSTONE = 1261 +ModCallbacks.MC_POST_FAMILIAR_FIRE_TECH_LASER = 1262 +ModCallbacks.MC_IS_PERSISTENT_ROOM_ENTITY = 1263 +ModCallbacks.MC_PRE_PLAYERHUD_TRINKET_RENDER = 1264 +ModCallbacks.MC_PRE_PICKUP_VOIDED = 1265 +ModCallbacks.MC_PRE_PICKUP_VOIDED_ABYSS = 1266 +ModCallbacks.MC_PRE_PICKUP_COMPOSTED = 1267 +ModCallbacks.MC_POST_PLAYER_TRIGGER_EFFECT_REMOVED = 1268 +ModCallbacks.MC_POST_ROOM_TRIGGER_EFFECT_REMOVED = 1269 +ModCallbacks.MC_POST_BOSS_INTRO_SHOW = 1270 +ModCallbacks.MC_POST_ROOM_TRANSITION_UPDATE = 1271 +ModCallbacks.MC_POST_ROOM_TRANSITION_RENDER = 1272 +ModCallbacks.MC_POST_PLAYER_ADD_EFFECT = 1273 +ModCallbacks.MC_POST_ROOM_ADD_EFFECT = 1274 +ModCallbacks.MC_POST_BOMB_DAMAGE = 1275 +ModCallbacks.MC_POST_BOMB_TEARFLAG_EFFECTS = 1276 +ModCallbacks.MC_PRE_APPLY_TEARFLAG_EFFECTS = 1277 +ModCallbacks.MC_POST_APPLY_TEARFLAG_EFFECTS = 1278 + +ModCallbacks.MC_PRE_BOSS_SELECT = 1280 +ModCallbacks.MC_PRE_PLAYER_ADD_COSTUME = 1281 +ModCallbacks.MC_PRE_PLAYER_REMOVE_COSTUME = 1282 +ModCallbacks.MC_POST_PLAYER_ADD_COSTUME = 1283 +ModCallbacks.MC_POST_PLAYER_REMOVE_COSTUME = 1284 +ModCallbacks.MC_PRE_TRIGGER_BED_SLEEP_EFFECT = 1285 +ModCallbacks.MC_POST_TRIGGER_BED_SLEEP_EFFECT = 1286 +ModCallbacks.MC_PRE_PLAYER_POCKET_ITEMS_SWAP = 1287 +ModCallbacks.MC_PRE_BED_SLEEP = 1288 +ModCallbacks.MC_EVALUATE_MULTI_SHOT_PARAMS = 1289 +ModCallbacks.MC_PRE_GET_RANDOM_ROOM_INDEX = 1290 +ModCallbacks.MC_PRE_BOMB_DAMAGE = 1291 +ModCallbacks.MC_PRE_BOMB_TEARFLAG_EFFECTS = 1292 +ModCallbacks.MC_PRE_PLAYERHUD_RENDER_INVENTORY = 1293 +ModCallbacks.MC_POST_PLAYERHUD_RENDER_INVENTORY = 1294 +ModCallbacks.MC_PRE_PLAYERHUD_RENDER_POOP_SPELL_QUEUE = 1295 +ModCallbacks.MC_POST_PLAYERHUD_RENDER_POOP_SPELL_QUEUE = 1296 +ModCallbacks.MC_PRE_PLAYERHUD_RENDER_CRAFTING_TABLE = 1297 +ModCallbacks.MC_POST_PLAYERHUD_RENDER_CRAFTING_TABLE = 1298 + +ModCallbacks.MC_POST_GLOWING_HOURGLASS_SAVE = 1300 +ModCallbacks.MC_POST_GLOWING_HOURGLASS_LOAD = 1301 +ModCallbacks.MC_PRE_GLOWING_HOURGLASS_SAVE = 1302 +ModCallbacks.MC_PRE_GLOWING_HOURGLASS_LOAD = 1303 +ModCallbacks.MC_POST_ROOM_SAVE_STATE = 1304 +ModCallbacks.MC_PRE_ROOM_RESTORE_STATE = 1305 +ModCallbacks.MC_POST_SWAP_ROOMS = 1306 +ModCallbacks.MC_POST_BACKWARDS_ROOM_SAVE = 1307 +ModCallbacks.MC_POST_BACKWARDS_ROOM_RESTORE = 1308 +ModCallbacks.MC_PRE_GAME_STATE_SAVE = 1309 +ModCallbacks.MC_POST_GAME_STATE_SAVE = 1310 +ModCallbacks.MC_PRE_GAME_STATE_RESTORE = 1311 +ModCallbacks.MC_POST_GAME_STATE_RESTORE = 1312 +ModCallbacks.MC_SHOULD_SAVE_ENTITY = 1313 +ModCallbacks.MC_ENTITY_SAVE = 1314 +ModCallbacks.MC_ENTITY_RESTORE = 1315 + +ModCallbacks.MC_CAN_SELECT_CHARACTER = 1328 +ModCallbacks.MC_PRE_RENDER_CHARACTER_SELECT_PAGE = 1329 +ModCallbacks.MC_POST_RENDER_CHARACTER_SELECT_PAGE = 1330 +ModCallbacks.MC_PRE_RENDER_CHARACTER_SELECT_PORTRAIT = 1331 +ModCallbacks.MC_POST_RENDER_CHARACTER_SELECT_PORTRAIT = 1332 +ModCallbacks.MC_PRE_RENDER_CUSTOM_CHARACTER_MENU = 1333 +ModCallbacks.MC_PRE_PICKUP_GET_LOOT_LIST = 1334 +ModCallbacks.MC_PRE_PICKUP_UPDATE_GHOST_PICKUPS = 1335 +ModCallbacks.MC_POST_PICKUP_GET_LOOT_LIST = 1336 +ModCallbacks.MC_PRE_NPC_GET_LOOT_LIST = 1337 +ModCallbacks.MC_PRE_NPC_UPDATE_GHOST_PICKUPS = 1338 +ModCallbacks.MC_POST_NPC_GET_LOOT_LIST = 1339 + +ModCallbacks.MC_PRE_PLAYER_ADD_CARD = 1350 +ModCallbacks.MC_POST_PLAYER_ADD_CARD = 1351 +ModCallbacks.MC_PRE_PLAYER_ADD_PILL = 1352 +ModCallbacks.MC_POST_PLAYER_ADD_PILL = 1353 +ModCallbacks.MC_POST_PLAYER_REMOVE_CARD = 1354 +ModCallbacks.MC_POST_PLAYER_REMOVE_PILL = 1355 +ModCallbacks.MC_PRE_PLAYER_COLLECT_CARD = 1356 +ModCallbacks.MC_POST_PLAYER_COLLECT_CARD = 1357 +ModCallbacks.MC_PRE_PLAYER_COLLECT_PILL = 1358 +ModCallbacks.MC_POST_PLAYER_COLLECT_PILL = 1359 +ModCallbacks.MC_POST_PLAYER_DROP_CARD = 1360 +ModCallbacks.MC_POST_PLAYER_DROP_PILL = 1361 + +ModCallbacks.MC_PRE_GRID_ENTITY_DECORATION_UPDATE = 1400 +ModCallbacks.MC_POST_GRID_ENTITY_DECORATION_UPDATE = 1401 +ModCallbacks.MC_PRE_GRID_ENTITY_DOOR_UPDATE = 1402 +ModCallbacks.MC_POST_GRID_ENTITY_DOOR_UPDATE = 1403 +ModCallbacks.MC_PRE_GRID_ENTITY_FIRE_UPDATE = 1404 +ModCallbacks.MC_POST_GRID_ENTITY_FIRE_UPDATE = 1405 +ModCallbacks.MC_PRE_GRID_ENTITY_GRAVITY_UPDATE = 1406 +ModCallbacks.MC_POST_GRID_ENTITY_GRAVITY_UPDATE = 1407 +ModCallbacks.MC_PRE_GRID_ENTITY_LOCK_UPDATE = 1408 +ModCallbacks.MC_POST_GRID_ENTITY_LOCK_UPDATE = 1409 +ModCallbacks.MC_PRE_GRID_ENTITY_PIT_UPDATE = 1410 +ModCallbacks.MC_POST_GRID_ENTITY_PIT_UPDATE = 1411 +ModCallbacks.MC_PRE_GRID_ENTITY_POOP_UPDATE = 1412 +ModCallbacks.MC_POST_GRID_ENTITY_POOP_UPDATE = 1413 +ModCallbacks.MC_PRE_GRID_ENTITY_PRESSUREPLATE_UPDATE = 1414 +ModCallbacks.MC_POST_GRID_ENTITY_PRESSUREPLATE_UPDATE = 1415 +ModCallbacks.MC_PRE_GRID_ENTITY_ROCK_UPDATE = 1416 +ModCallbacks.MC_POST_GRID_ENTITY_ROCK_UPDATE = 1417 +ModCallbacks.MC_PRE_GRID_ENTITY_SPIKES_UPDATE = 1418 +ModCallbacks.MC_POST_GRID_ENTITY_SPIKES_UPDATE = 1419 +ModCallbacks.MC_PRE_GRID_ENTITY_STAIRCASE_UPDATE = 1420 +ModCallbacks.MC_POST_GRID_ENTITY_STAIRCASE_UPDATE = 1421 +ModCallbacks.MC_PRE_GRID_ENTITY_STATUE_UPDATE = 1422 +ModCallbacks.MC_POST_GRID_ENTITY_STATUE_UPDATE = 1423 +ModCallbacks.MC_PRE_GRID_ENTITY_TELEPORTER_UPDATE = 1424 +ModCallbacks.MC_POST_GRID_ENTITY_TELEPORTER_UPDATE = 1425 +ModCallbacks.MC_PRE_GRID_ENTITY_TRAPDOOR_UPDATE = 1426 +ModCallbacks.MC_POST_GRID_ENTITY_TRAPDOOR_UPDATE = 1427 +ModCallbacks.MC_PRE_GRID_ENTITY_WEB_UPDATE = 1428 +ModCallbacks.MC_POST_GRID_ENTITY_WEB_UPDATE = 1429 +ModCallbacks.MC_PRE_GRID_ENTITY_TNT_UPDATE = 1430 +ModCallbacks.MC_POST_GRID_ENTITY_TNT_UPDATE = 1431 +ModCallbacks.MC_PRE_GRID_ENTITY_SPIKES_RENDER = 1432 +ModCallbacks.MC_POST_GRID_ENTITY_SPIKES_RENDER = 1433 +ModCallbacks.MC_PRE_GRID_ENTITY_WEB_RENDER = 1434 +ModCallbacks.MC_POST_GRID_ENTITY_WEB_RENDER = 1435 +ModCallbacks.MC_PRE_GRID_ENTITY_TNT_RENDER = 1436 +ModCallbacks.MC_POST_GRID_ENTITY_TNT_RENDER = 1437 +ModCallbacks.MC_PRE_GRID_ENTITY_TRAPDOOR_RENDER = 1438 +ModCallbacks.MC_POST_GRID_ENTITY_TRAPDOOR_RENDER = 1439 +ModCallbacks.MC_PRE_GRID_ENTITY_STAIRCASE_RENDER = 1440 +ModCallbacks.MC_POST_GRID_ENTITY_STAIRCASE_RENDER = 1441 + +ModCallbacks.MC_PRE_GRID_ENTITY_DECORATION_RENDER = 1444 +ModCallbacks.MC_POST_GRID_ENTITY_DECORATION_RENDER = 1445 +ModCallbacks.MC_PRE_GRID_ENTITY_DOOR_RENDER = 1446 +ModCallbacks.MC_POST_GRID_ENTITY_DOOR_RENDER = 1447 +ModCallbacks.MC_PRE_GRID_ENTITY_FIRE_RENDER = 1448 +ModCallbacks.MC_POST_GRID_ENTITY_FIRE_RENDER = 1449 +ModCallbacks.MC_PRE_GRID_ENTITY_LOCK_RENDER = 1450 +ModCallbacks.MC_POST_GRID_ENTITY_LOCK_RENDER = 1451 +ModCallbacks.MC_PRE_GRID_ENTITY_TELEPORTER_RENDER = 1452 +ModCallbacks.MC_POST_GRID_ENTITY_TELEPORTER_RENDER = 1453 +ModCallbacks.MC_PRE_GRID_ENTITY_PIT_RENDER = 1454 +ModCallbacks.MC_POST_GRID_ENTITY_PIT_RENDER = 1455 +ModCallbacks.MC_PRE_GRID_ENTITY_POOP_RENDER = 1456 +ModCallbacks.MC_POST_GRID_ENTITY_POOP_RENDER = 1457 +ModCallbacks.MC_PRE_GRID_ENTITY_ROCK_RENDER = 1458 +ModCallbacks.MC_POST_GRID_ENTITY_ROCK_RENDER = 1459 +ModCallbacks.MC_PRE_GRID_ENTITY_PRESSUREPLATE_RENDER = 1460 +ModCallbacks.MC_POST_GRID_ENTITY_PRESSUREPLATE_RENDER = 1461 +ModCallbacks.MC_PRE_GRID_ENTITY_WALL_RENDER = 1462 +ModCallbacks.MC_POST_GRID_ENTITY_WALL_RENDER = 1463 +ModCallbacks.MC_MENU_INPUT_ACTION = 1464 +ModCallbacks.MC_PRE_STATUS_EFFECT_APPLY = 1465 +ModCallbacks.MC_POST_STATUS_EFFECT_APPLY = 1466 + +ModCallbacks.MC_POST_SAVESLOT_LOAD = 1470 +ModCallbacks.MC_PRE_CHALLENGE_DONE = 1471 +ModCallbacks.MC_POST_CHALLENGE_DONE = 1472 +ModCallbacks.MC_PRE_FAMILIAR_CAN_CHARM = 1473 +ModCallbacks.MC_PRE_PLAYER_GIVE_BIRTH_CAMBION = 1474 +ModCallbacks.MC_PRE_PLAYER_GIVE_BIRTH_IMMACULATE = 1475 +ModCallbacks.MC_POST_ACHIEVEMENT_UNLOCK = 1476 +ModCallbacks.MC_PRE_MINIMAP_UPDATE = 1477 +ModCallbacks.MC_POST_MINIMAP_UPDATE = 1478 +ModCallbacks.MC_PRE_MINIMAP_RENDER = 1479 +ModCallbacks.MC_POST_MINIMAP_RENDER = 1480 +ModCallbacks.MC_PRE_PLAYER_REVIVE = 1481 +ModCallbacks.MC_POST_PLAYER_REVIVE = 1482 +ModCallbacks.MC_PRE_FORTUNE_DISPLAY = 1483 +ModCallbacks.MC_PRE_ITEM_TEXT_DISPLAY = 1484 +ModCallbacks.MC_GET_STATUS_EFFECT_TARGET = 1485 +ModCallbacks.MC_PRE_ENTITY_SET_COLOR = 1486 +ModCallbacks.MC_POST_ENTITY_SET_COLOR = 1487 +ModCallbacks.MC_POST_START_AMBUSH_WAVE = 1488 +ModCallbacks.MC_POST_START_GREED_WAVE = 1489 +ModCallbacks.MC_EVALUATE_TEAR_HIT_PARAMS = 1490 +ModCallbacks.MC_PRE_OPEN_CHEST = 1491 +ModCallbacks.MC_POST_OPEN_CHEST = 1492 +ModCallbacks.MC_GET_BOSS_THEMATIC_ITEM = 1493 +ModCallbacks.MC_PRE_SHUFFLE_COSTUMES = 1494 +ModCallbacks.MC_POST_SHUFFLE_COSTUMES = 1495 + +--Repentance+ Enums (🐱 catin: https://github.com/epfly6/RepentanceAPIIssueTracker/issues/597) +EffectVariant.MEGA_BEAN_EXPLOSION = 202 +EffectVariant.SPAWN_PENTAGRAM = 203 +EffectVariant.PLAYER_CREEP_YELLOW = 204 + +RoomType.ROOM_DEATHMATCH = 30 +RoomType.NUM_ROOMTYPES = 31 + +Music.DEATHMATCH = 119 +Music.NUM_MUSIC = 120 + +SoundEffect.SOUND_DEATHMATCH_INTRO = 833 + +-- v1.9.7.11 +-- These were initially added here before Rep+ officially added them to the vanilla enums, so for some we have two different names. +SoundEffect.SOUND_ABYSS = 834 +SoundEffect.SOUND_BIGCHUBBY_ATTACK = 835 +SoundEffect.SOUND_BIG_CHUBBY_ATTACK = 835 +SoundEffect.SOUND_BOOMERANG_THROW = 836 +SoundEffect.SOUND_BOOMERANG_LOOP = 837 +SoundEffect.SOUND_BOOMERANG_CATCH = 838 +SoundEffect.SOUND_BOOMERANG_HIT = 839 +SoundEffect.SOUND_BOX_OF_FRIENDS = 840 +SoundEffect.SOUND_BROWN_NUGGET_SPAWN = 841 +SoundEffect.SOUND_BROWN_NUGGET = 841 +SoundEffect.SOUND_BUMBO_LEVELUP_1 = 842 +SoundEffect.SOUND_BUMBO_1 = 842 +SoundEffect.SOUND_BUMBO_LEVELUP_2 = 843 +SoundEffect.SOUND_BUMBO_2 = 843 +SoundEffect.SOUND_BUMBO_LEVELUP_3 = 844 +SoundEffect.SOUND_BUMBO_3 = 844 +SoundEffect.SOUND_BUMBO_LEVELUP_4 = 845 +SoundEffect.SOUND_BUMBO_4 = 845 +SoundEffect.SOUND_PORTAL_ENTITY_LOOP = 846 +SoundEffect.SOUND_PORTAL_ENTITY_ENTER = 847 +SoundEffect.SOUND_CONVERTER = 848 +SoundEffect.SOUND_LITTLECHUBBY_ATTACK = 849 +SoundEffect.SOUND_LITTLE_CHUBBY_ATTACK = 849 +SoundEffect.SOUND_CRACKEDORB = 850 +SoundEffect.SOUND_CRACKED_ORB = 850 +SoundEffect.SOUND_CROOKEDPENNY = 851 +SoundEffect.SOUND_CROOKED_PENNY = 851 +SoundEffect.SOUND_CUBEBABY_KICK = 852 +SoundEffect.SOUND_CUBE_BABY_KICK = 852 +SoundEffect.SOUND_DARKBUM_PAYOUT = 853 +SoundEffect.SOUND_DATAMINER = 854 +SoundEffect.SOUND_DRSREMOTE_WARNING = 855 +SoundEffect.SOUND_DR_REMOTE_WARNING = 855 +SoundEffect.SOUND_FLIP_POOF = 856 +SoundEffect.SOUND_ERASER_HITENEMY = 857 +SoundEffect.SOUND_ERASER_HIT = 857 +SoundEffect.SOUND_GNAWEDLEAF_STONE = 858 +SoundEffect.SOUND_GNAWED_LEAF = 858 +SoundEffect.SOUND_LILHAUNT_CHASE = 859 +SoundEffect.SOUND_LIL_HAUNT_CHASE = 859 +SoundEffect.SOUND_LINGERBEAN_FART = 860 +SoundEffect.SOUND_LINGER_BEAN = 860 +SoundEffect.SOUND_GLOWINGHOURGLASS_ACTIVATE = 861 +SoundEffect.SOUND_GLOWING_HOURGLASS_ACTIVATE = 861 +SoundEffect.SOUND_GLOWINGHOURGLASS_FIZZLE = 862 +SoundEffect.SOUND_GLOWING_HOURGLASS_FIZZLE = 862 +SoundEffect.SOUND_INFAMY_DEFLECT = 863 +SoundEffect.SOUND_IBS_GURGLE = 864 +SoundEffect.SOUND_IBS_POOP_THROW = 865 +SoundEffect.SOUND_POOP_THROW = 865 +SoundEffect.SOUND_GLITTERBOMB_BOOM = 866 +SoundEffect.SOUND_GLITTER_BOOM = 866 +SoundEffect.SOUND_GLITTERBOMB_FUSE = 867 +SoundEffect.SOUND_GLITTER_FUSE = 867 +SoundEffect.SOUND_LITTLEHORN_SHOT = 868 +SoundEffect.SOUND_LITTLEHORN_SHOOT = 868 +SoundEffect.SOUND_MEGABEAN_BLAST = 869 +SoundEffect.SOUND_MOMS_RANDOM_PILL = 870 +SoundEffect.SOUND_MOM_BOTTLE = 870 +SoundEffect.SOUND_SUMMONPENTA_WAVE = 871 +SoundEffect.SOUND_SUMMON_PENTA = 871 +SoundEffect.SOUND_ENEMYAPPEAR_WAVE = 872 +SoundEffect.SOUND_SUMMON_WAVE = 872 + +-- v1.9.7.12 +-- These were initially added here before Rep+ officially added them to the vanilla enums, so for some we have two different names. +SoundEffect.SOUND_BIGHORN_APPEAR = 873 +SoundEffect.SOUND_BIGHORN_BIGHOLE_CLOSE = 874 +SoundEffect.SOUND_BIGHORN_CLOSE_BIG = 874 +SoundEffect.SOUND_BIGHORN_BIGHOLE_CRACK = 875 +SoundEffect.SOUND_BIGHORN_CRACK_BIG = 875 +SoundEffect.SOUND_BIGHORN_BIGHOLE_OPEN = 876 +SoundEffect.SOUND_BIGHORN_OPEN_BIG = 876 +SoundEffect.SOUND_BIGHORN_BIGHOLE_SHAKE = 877 +SoundEffect.SOUND_BIGHORN_SHAKE_BIG = 877 +SoundEffect.SOUND_BIGHORN_DEATH = 878 +SoundEffect.SOUND_BIGHORN_DIZZY_SHAKE = 879 +SoundEffect.SOUND_BIGHORN_HAND_APPEAR = 880 +SoundEffect.SOUND_BIGHORN_HAND_HIDE = 881 +SoundEffect.SOUND_BIGHORN_HIDE = 882 +SoundEffect.SOUND_BIGHORN_HURT_REACT = 883 +SoundEffect.SOUND_BIGHORN_HURT = 883 +SoundEffect.SOUND_BIGHORN_PREP_SPIT = 884 +SoundEffect.SOUND_BIGHORN_PRE_SPIT = 884 +SoundEffect.SOUND_BIGHORN_SMALLHOLE_CLOSE = 885 +SoundEffect.SOUND_BIGHORN_CLOSE_SMALL = 885 +SoundEffect.SOUND_BIGHORN_SMALLHOLE_CRACK = 886 +SoundEffect.SOUND_BIGHORN_CRACK_SMALL = 886 +SoundEffect.SOUND_BIGHORN_SMALLHOLE_OPEN = 887 +SoundEffect.SOUND_BIGHORN_OPEN_SMALL = 887 +SoundEffect.SOUND_BIGHORN_SMALLHOLE_SHAKE = 888 +SoundEffect.SOUND_BIGHORN_SHAKE_SMALL = 888 +SoundEffect.SOUND_BIGHORN_SPIT = 889 +SoundEffect.SOUND_MOMS_BOX = 890 +SoundEffect.SOUND_MONSTROS_LUNG_BARF = 891 +SoundEffect.SOUND_MONSTRO_LUNG_BARF = 891 +SoundEffect.SOUND_MOVINGBOX_PACK = 892 +SoundEffect.SOUND_MOVING_BOX_PACK = 892 +SoundEffect.SOUND_MOVINGBOX_UNPACK = 893 +SoundEffect.SOUND_MOVING_BOX_UNPACK = 893 +SoundEffect.SOUND_PANDORAS_BOX = 894 +SoundEffect.SOUND_PAUSE_FREEZE = 895 +SoundEffect.SOUND_MONSTROS_LUG_CHARGE = 896 +SoundEffect.SOUND_MONSTRO_LUNG_CHARGE = 896 +SoundEffect.SOUND_PLAN_C = 897 +SoundEffect.SOUND_PORTABLESLOT_COIN = 898 +SoundEffect.SOUND_PORTABLE_SLOT_USE = 898 +SoundEffect.SOUND_PORTABLESLOT_PRIZE = 899 +SoundEffect.SOUND_PORTABLE_SLOT_WIN = 899 +SoundEffect.SOUND_BOMB_FUSE_FIZZLE = 900 +SoundEffect.SOUND_SAFETY_SCISSORS = 900 +SoundEffect.SOUND_BUTTER_DROP = 901 +SoundEffect.SOUND_BUTTER_LAND = 902 +SoundEffect.SOUND_PRIDE_ZAP = 903 +SoundEffect.SOUND_RKEY = 904 +SoundEffect.SOUND_R_KEY = 904 +SoundEffect.SOUND_RUBBER_CEMENT = 905 +SoundEffect.SOUND_TEAR_BOUNCE = 905 +SoundEffect.SOUND_SHARP_PLUG = 906 +SoundEffect.SOUND_SLIPPED_RIB_DEFLECT = 907 +SoundEffect.SOUND_RIB_DEFLECT = 907 +SoundEffect.SOUND_SMELTER_SWALLOW = 908 +SoundEffect.SOUND_SMELTER = 908 +SoundEffect.SOUND_TELEKENESIS = 909 -- Faithful to file name +SoundEffect.SOUND_TELEKINESIS = 909 -- Duplicate enum to fix typo in file name +SoundEffect.SOUND_THE_D6_ROLL = 910 +SoundEffect.SOUND_D6_ROLL = 910 +SoundEffect.SOUND_THETICK_BURN = 911 +SoundEffect.SOUND_TICK_BURN = 911 +SoundEffect.SOUND_UNDEFINED_TELEPORT = 912 +SoundEffect.SOUND_TELEPORT_UNDEFINED = 912 +SoundEffect.SOUND_VOID_CONSUMED = 913 +SoundEffect.SOUND_VOID_CONSUME = 913 +SoundEffect.SOUND_YOLISTEN_CHIME = 914 +SoundEffect.SOUND_YO_LISTEN = 914 +SoundEffect.NUM_SOUND_EFFECTS = 915 + +GridRooms.ROOM_DEATHMATCH_IDX = -19 +GridRooms.ROOM_LIL_PORTAL_IDX = -20 +GridRooms.NUM_OFF_GRID_ROOMS = 20 + +GameStateFlag.STATE_MEGA_SATAN_DOOR_OPENED = 49 +GameStateFlag.STATE_URIEL_KILLED = 50 +GameStateFlag.STATE_GABRIEL_KILLED = 51 +GameStateFlag.STATE_MOTHER_HEART_DOOR_OPENED = 52 +GameStateFlag.NUM_STATE_FLAGS = 53 + +AddHealthType = { + NONE = 0, + RED = 1<<0, + MAX = 1<<1, + SOUL = 1<<2, + BLACK = 1<<3, + ETERNAL = 1<<4, + GOLDEN = 1<<5, + BONE = 1<<6, + ROTTEN = 1<<7, + BROKEN = 1<<8 +} + +DeliriumCallbacks = { + PRE_TRANSFORMATION = "DeliriumPreTransformation", + TRANSFORMATION = "DeliriumTransformation", + POST_TRANSFORMATION = "DeliriumPostTransformation" +} + +EntityPartition.ALL = 0xffffffff + +StbType = { + SPECIAL_ROOMS = 0, + BASEMENT = 1, + CELLAR = 2, + BURNING_BASEMENT = 3, + CAVES = 4, + CATACOMBS = 5, + FLOODED_CAVES = 6, + DEPTHS = 7, + NECROPOLIS = 8, + DANK_DEPTHS = 9, + WOMB = 10, + UTERO = 11, + SCARRED_WOMB = 12, + BLUE_WOMB = 13, + SHEOL = 14, + CATHEDRAL = 15, + DARK_ROOM = 16, + CHEST = 17, + THE_VOID = 26, VOID = 26, + DOWNPOUR = 27, + DROSS = 28, + MINES = 29, + ASHPIT = 30, + MAUSOLEUM = 31, + GEHENNA = 32, + CORPSE = 33, + MORTIS = 34, + HOME = 35, + ASCENT = 36, +} + +BossType = { + MONSTRO = 1, + LARRY_JR = 2, + CHUB = 3, + GURDY = 4, + MONSTRO_2 = 5, MONSTRO_II = 5, + MOM = 6, + SCOLEX = 7, + MOMS_HEART = 8, + FAMINE = 9, + PESTILENCE = 10, + WAR = 11, + DEATH = 12, + DUKE_OF_FLIES = 13, + PEEP = 14, + LOKI = 15, + BLASTOCYST = 16, + GEMINI = 17, + FISTULA = 18, + GISH = 19, + STEVEN = 20, + CHAD = 21, + HEADLESS_HORSEMAN = 22, + THE_FALLEN = 23, FALLEN = 23, + SATAN = 24, + IT_LIVES = 25, + THE_HOLLOW = 26, HOLLOW = 26, + THE_CARRION_QUEEN = 27, CARRION_QUEEN = 27, + GURDY_JR = 28, + THE_HUSK = 29, HUSK = 29, + THE_BLOAT = 30, BLOAT = 30, + LOKII = 31, + THE_BLIGHTED_OVUM = 32, BLIGHTED_OVUM = 32, + TERATOMA = 33, + THE_WIDOW = 34, WIDOW = 34, + MASK_OF_INFAMY = 35, + THE_WRETCHED = 36, WRETCHED = 36, + PIN = 37, + CONQUEST = 38, + ISAAC = 39, + BLUE_BABY = 40, QQQ = 40, + DADDY_LONG_LEGS = 41, + TRIACHNID = 42, + THE_HAUNT = 43, HAUNT = 43, + DINGLE = 44, + MEGA_MAW = 45, + THE_GATE = 46, GATE = 46, + MEGA_FATTY = 47, + THE_CAGE = 48, CAGE = 48, + MEGA_GURDY = 49, + DARK_ONE = 50, + THE_ADVERSARY = 51, ADVERSARY = 51, + POLYCEPHALUS = 52, + MR_FRED = 53, + THE_LAMB = 54, LAMB = 54, + MEGA_SATAN = 55, + GURGLINGS = 56, + THE_STAIN = 57, STAIN = 57, + BROWNIE = 58, + THE_FORSAKEN = 59, FORSAKEN = 59, + LITTLE_HORN = 60, + RAG_MAN = 61, + ULTRA_GREED = 62, + HUSH = 63, + DANGLE = 64, + TURDLINGS = 65, + THE_FRAIL = 66, FRAIL = 66, + RAG_MEGA = 67, + SISTERS_VIS = 68, + BIG_HORN = 69, + DELIRIUM = 70, + ULTRA_GREEDIER = 71, + THE_MATRIACH = 72, MATRIARCH = 72, + THE_PILE = 73, PILE = 73, + REAP_CREEP = 74, + LIL_BLUB = 75, BEELZEBLUB = 75, + WORMWOOD = 76, + THE_RAINMAKER = 77, RAINMAKER = 77, + THE_VISAGE = 78, VISAGE = 78, + THE_SIREN = 79, SIREN = 79, + TUFF_TWINS = 80, + THE_HERETIC = 81, HERETIC = 81, + HORNFEL = 82, + GREAT_GIDEON = 83, + BABY_PLUM = 84, + THE_SCOURGE = 85, SCOURGE = 85, + CHIMERA = 86, + ROTGUT = 87, + MOTHER = 88, + MOM_MAUSOLEUM = 89, MAUS_MOM = 89, + MOMS_HEART_MAUSOLEUM = 90, MAUS_HEART = 90, + MIN_MIN = 91, + CLOG = 92, + SINGE = 93, + BUMBINO = 94, + COLOSTOMIA = 95, + THE_SHELL = 96, SHELL = 96, + TURDLET = 97, + RAGLICH = 98, + DOGMA = 99, + THE_BEAST = 100, BEAST = 100, + HORNY_BOYS = 101, + CLUTCH = 102, + CADAVRA = 103, +} + +ButtonActionBitwise = { + ACTION_LEFT = 1<<0, + ACTION_RIGHT = 1<<1, + ACTION_UP = 1<<2, + ACTION_DOWN = 1<<3, + ACTION_SHOOTLEFT = 1<<4, + ACTION_SHOOTRIGHT = 1<<5, + ACTION_SHOOTUP = 1<<6, + ACTION_SHOOTDOWN = 1<<7, + ACTION_BOMB = 1<<8, + ACTION_ITEM = 1<<9, + ACTION_PILLCARD = 1<<10, + ACTION_DROP = 1<<11, + ACTION_PAUSE = 1<<12, + ACTION_MAP = 1<<13, + ACTION_MENUCONFIRM = 1<<14, + ACTION_MENUBACK = 1<<15, + ACTION_FULLSCREEN = 1<<16, + ACTION_MUTE = 1<<17, + ACTION_RESTART = 1<<18, + ACTION_JOINMULTIPLAYER = 1<<19, + ACTION_MENULEFT = 1<<20, + ACTION_MENURIGHT = 1<<21, + ACTION_MENUUP = 1<<22, + ACTION_MENUDOWN = 1<<23, + ACTION_MENULB = 1<<24, + ACTION_MENURB = 1<<25, + ACTION_MENULT = 1<<26, + ACTION_MENURT = 1<<27, + ACTION_MENUTAB = 1<<28, + ACTION_MENUEX = 1<<29, + ACTION_EMOTES = 1<<30, + + ACTION_CONSOLE = 1<<32 +} + +NullPickupSubType = { + ANY = 0, + NO_COLLECTIBLE_CHEST = 1, + NO_COLLECTIBLE = 2, + NO_COLLECTIBLE_CHEST_COIN = 3, GREED_MODE_ANY = 3, + NO_COLLECTIBLE_TRINKET_CHEST = 4, +} + +GetCollectibleFlag = { + BAN_ACTIVES = 1 << 0, + IGNORE_MODIFIERS = 1 << 1, + BAN_PASSIVES = 1 << 2 +} + +KnifeVariant = { + MOMS_KNIFE = 0, + BONE_CLUB = 1, + BONE_SCYTHE = 2, + DONKEY_JAWBONE = 3, BERSERK_CLUB = 3, + BAG_OF_CRAFTING = 4, + SUMPTORIUM = 5, + NOTCHED_AXE = 9, + SPIRIT_SWORD = 10, + TECH_SWORD = 11, +} + +KnifeSubType = { + DEFAULT = 0, + PROJECTILE = 1, + YES_MOTHER = 3, + CLUB_HITBOX = 4, +} + +SlotVariant = { + SLOT_MACHINE = 1, + BLOOD_DONATION_MACHINE = 2, TEMPERANCE_MACHINE = 2, + FORTUNE_TELLING_MACHINE = 3, + BEGGAR = 4, + DEVIL_BEGGAR = 5, + SHELL_GAME = 6, + KEY_MASTER = 7, + DONATION_MACHINE = 8, + BOMB_BUM = 9, + SHOP_RESTOCK_MACHINE = 10, + GREED_DONATION_MACHINE = 11, + MOMS_DRESSING_TABLE = 12, + BATTERY_BUM = 13, + HOME_CLOSET_PLAYER = 14, + HELL_GAME = 15, + CRANE_GAME = 16, + CONFESSIONAL = 17, + ROTTEN_BEGGAR = 18, +} + +RoomSubType = { + NULL = 0, + + -- Shop + SHOP_LEVEL_1 = 0, + SHOP_LEVEL_2 = 1, + SHOP_LEVEL_3 = 2, + SHOP_LEVEL_4 = 3, + SHOP_LEVEL_5 = 4, + SHOP_RARE_GOOD = 10, + SHOP_RARE_BAD = 11, + SHOP_KEEPER_LEVEL_1 = 100, + SHOP_KEEPER_LEVEL_2 = 101, + SHOP_KEEPER_LEVEL_3 = 102, + SHOP_KEEPER_LEVEL_4 = 103, + SHOP_KEEPER_LEVEL_5 = 104, + SHOP_KEEPER_RARE_GOOD = 110, + SHOP_KEEPER_RARE_BAD = 111, + + -- Treasure + TREASURE_NORMAL = 0, + TREASURE_OPTIONS = 1, + TREASURE_PAY_TO_PLAY = 2, + TREASURE_PAY_TO_PLAY_OPTIONS = 3, + TREASURE_KNIFE_PIECE = 34, + + -- Miniboss + MINIBOSS_SLOTH = 0, + MINIBOSS_LUST = 1, + MINIBOSS_WRATH = 2, + MINIBOSS_GLUTTONY = 3, + MINIBOSS_GREED = 4, + MINIBOSS_ENVY = 5, + MINIBOSS_PRIDE = 6, + MINIBOSS_SUPER_SLOTH = 7, + MINIBOSS_SUPER_LUST = 8, + MINIBOSS_SUPER_WRATH = 9, + MINIBOSS_SUPER_GLUTTONY = 10, + MINIBOSS_SUPER_GREED = 11, + MINIBOSS_SUPER_ENVY = 12, + MINIBOSS_SUPER_PRIDE = 13, + MINIBOSS_ULTRA_PRIDE = 14, + MINIBOSS_KRAMPUS = 15, + + -- Challenge + CHALLENGE_NORMAL = 0, + CHALLENGE_BOSS = 1, + CHALLENGE_WAVE = 10, + CHALLENGE_WAVE_BOSS = 11, + CHALLENGE_WAVE_GIDEON = 12, + + -- Library + LIBRARY_LEVEL_1 = 0, + LIBRARY_LEVEL_2 = 1, + LIBRARY_LEVEL_3 = 2, + LIBRARY_LEVEL_4 = 3, + LIBRARY_LEVEL_5 = 4, + + -- Crawlspace + CRAWLSPACE_NORMAL = 0, + CRAWLSPACE_GIDEON = 1, + CRAWLSPACE_ROTGUT = 2, CRAWLSPACE_GUS = 2, + CRAWLSPACE_ROTGUT_2 = 3, CRAWLSPACE_ROTGUT_HEART = 3, + CRAWLSPACE_BEAST = 4, + + -- Antibirth Path Entrances + SECRET_EXIT_DOWNPOUR = 1, + SECRET_EXIT_MINES = 2, + SECRET_EXIT_MAUSOLEUM = 3, + + -- Knife Puzzles + DOWNPOUR_WHITE_FIRE = 1, + DOWNPOUR_MIRROR = 34, + MINES_YELLOW_BUTTON = 1, + MINES_MINESHAFT_ENTRANCE = 10, + MINESHAFT_LOBBY = 11, + MINESHAFT_KNIFE_PIECE = 20, + MINESHAFT_ROOM = 30, + MINESHAFT_ROOM_BACKWARDS = 31, + + -- Ascent + ASCENT_EXIT = 0, + ASCENT_BASEMENT = 1, + ASCENT_CAVES = 4, + ASCENT_DEPTHS = 7, + ASCENT_DOWNPOUR = 27, + ASCENT_MINES = 29, + ASCENT_MAUSOLEUM = 31, + + -- Home + HOME_ISAACS_BEDROOM = 0, + HOME_HALLWAY = 1, + HOME_MOMS_BEDROOM = 2, + HOME_LIVING_ROOM = 3, + HOME_CLOSET_PICKUPS = 10, + HOME_CLOSET_TAINTED = 11, + DEATH_CERTIFICATE_ENTRANCE = 33, + DEATH_CERTIFICATE_NORMAL = 34, + + -- Other + ARCADE_NORMAL = 0, + ARCADE_CAIN = 1, + CURSE_NORMAL = 0, + CURSE_VOODOO_HEAD = 1, + DEVIL_NORMAL = 0, + DEVIL_NUMBER_MAGNET = 1, + ANGEL_NORMAL = 0, + ANGEL_STAIRWAY = 1, + ISAACS_BEDROOM_NORMAL = 0, + ISAACS_BEDROOM_GENESIS = 99, + DEPTHS_NORMAL = 0, + DEPTHS_FOOL_ROOM = 1, DEPTHS_MARKED_SKULL = 1, +} + +RoomGroup = { + GROUP_NONE = -1, + GROUP_ULTRA_SECRET = 99, +} + +Achievement = { + MAGDALENE = 1, + CAIN = 2, + JUDAS = 3, + THE_WOMB = 4, WOMB = 4, + THE_HARBINGERS = 5, HARBINGERS = 5, HORSEMEN = 5, + A_CUBE_OF_MEAT = 6, CUBE_OF_MEAT = 6, + THE_BOOK_OF_REVELATIONS = 7, BOOK_OF_REVELATIONS = 7, + A_NOOSE = 8, TRANSENDENCE = 8, + THE_NAIL = 9, NAIL = 9, + A_QUARTER = 10, QUARTER = 10, + A_FETUS_IN_A_JAR = 11, DR_FETUS = 11, + A_SMALL_ROCK = 12, SMALL_ROCK = 12, + MONSTROS_LUNG = 13, + LIL_CHUBBY = 14, + LOKIS_HORNS = 15, + SOMETHING_FROM_THE_FUTURE = 16, STEVEN = 16, + SOMETHING_CUTE = 17, CHAD = 17, + SOMETHING_STICKY = 18, GISH = 18, + A_BANDAGE = 19, SUPER_BANDAGE = 19, + A_CROSS = 20, THE_RELIC = 20, RELIC = 20, + A_BAG_OF_PENNIES = 21, BAG_OF_PENNIES = 21, + THE_BOOK_OF_SIN = 22, BOOK_OF_SIN = 23, + LITTLE_GISH = 23, + LITTLE_STEVEN = 24, + LITTLE_CHAD = 25, + A_GAMEKID = 26, GAMEKID = 26, + A_HALO = 27, HALO = 27, + MR_MEGA = 28, + ISAAC_HOLDS_THE_D6 = 29, + THE_SCISSORS = 30, SCISSORS = 30, + THE_PARASITE = 31, PARASITE = 31, + BLUE_BABY = 32, QQQ = 32, + EVERYTHING_IS_TERRIBLE = 33, + IT_LIVES = 34, + MOMS_CONTACT = 35, + THE_NECRONOMICON = 36, NECRONOMICON = 36, + BASEMENT_BOY = 37, + SPELUNKER_BOY = 38, + DARK_BOY = 39, + MAMAS_BOY = 40, + GOLDEN_GOD = 41, + EVE = 42, + MOMS_KNIFE = 43, + THE_RAZOR = 44, RAZOR = 44, + GUARDIAN_ANGEL = 45, + A_BAG_OF_BOMBS = 46, BAG_OF_BOMBS = 46, + A_DEMON_BABY = 47, DEMON_BABY = 47, + A_FORGET_ME_NOW = 48, FORGET_ME_NOW = 48, + THE_D20 = 49, D20 = 49, + THE_CRUCIFIX = 50, CELTIC_CROSS = 50, + ABEL = 51, + CURVED_HORN = 52, + SACRIFICIAL_DAGGER = 53, + BLOOD_LUST = 54, BLOODY_LUST = 54, + BLOOD_PENNY = 55, BLOODY_PENNY = 55, + BLOOD_RIGHTS = 56, + THE_POLAROID = 57, POLAROID = 57, + DADS_KEY = 58, + THE_BLUE_CANDLE = 59, BLUE_CANDLE = 59, + BURNT_PENNY = 60, + LUCKY_TOE = 61, + EPIC_FETUS = 62, + SMB_SUPER_FAN = 63, + COUNTERFEIT_COIN = 64, COUNTERFEIT_PENNY = 64, + GUPPYS_HAIRBALL = 65, + A_FORGOTTEN_HORSEMAN = 66, CONQUEST = 66, + SAMSON = 67, + SOMETHING_ICKY = 68, TRIACHNID = 68, + PLATINUM_GOD = 69, + ISAACS_HEAD = 70, + MAGGYS_FAITH = 71, + JUDAS_TONGUE = 72, + BLUE_BABYS_SOUL = 73, QQQS_SOUL = 73, + SAMSONS_LOCK = 74, + CAINS_EYE = 75, + EVES_BIRD_FOOT = 76, + THE_LEFT_HAND = 77, LEFT_HAND = 77, + THE_NEGATIVE = 78, NEGATIVE = 78, + DEMON_ISAAC = 79, AZAZEL = 79, + LAZARUS = 80, + EDEN = 81, + THE_SOUL = 82, THE_LOST = 82, LOST = 82, + DEAD_BOY = 83, + THE_REAL_PLATINUM_GOD = 84, REAL_PLATINUM_GOD = 84, + LUCKY_ROCK = 85, + THE_CELLAR = 86, CELLAR = 86, + THE_CATACOMBS = 87, CATACOMBS = 87, + THE_NECROPOLIS = 88, NECROPOLIS = 88, + RUNE_OF_HAGALAZ = 89, HAGALAZ = 89, + RUNE_OF_JERA = 90, JERA = 90, + RUNE_OF_EHWAZ = 91, EHWAZ = 91, + RUNE_OF_DAGAZ = 92, DAGAZ = 92, + RUNE_OF_ANSUZ = 93, ANSUZ = 93, + RUNE_OF_PERTHRO = 94, PERTHRO = 94, + RUNE_OF_BERKANO = 95, BERKANO = 95, + RUNE_OF_ALGIZ = 96, ALGIZ = 96, + CHAOS_CARD = 97, + CREDIT_CARD = 98, + RULES_CARD = 99, + CARD_AGAINST_HUMANITY = 100, + SWALLOWED_PENNY = 101, + ROBO_BABY_2 = 102, + DEATHS_TOUCH = 103, + TECHNOLOGY_5 = 104, + MISSING_NO = 105, + ISAACS_TEARS = 106, + GUILLOTINE = 107, + JUDAS_SHADOW = 108, + MAGGYS_BOW = 109, + CAINS_OTHER_EYE = 110, + BLACK_LIPSTICK = 111, + EVES_MASCARA = 112, + FATE = 113, + BLUE_BABYS_ONLY_FRIEND = 114, QQQS_ONLY_FRIEND = 114, + SAMSONS_CHAINS = 115, + LAZARUS_RAGS = 116, + BROKEN_ANKH = 117, + STORE_CREDIT = 118, + PANDORAS_BOX = 119, + SUICIDE_KING = 120, + BLANK_CARD = 121, + BOOK_OF_SECRETS = 122, + MYSTERIOUS_PAPER = 123, + MYSTERY_SACK = 124, + UNDEFINED = 125, + SATANIC_BIBLE = 126, + DAEMONS_TAIL = 127, + ABADDON = 128, + ISAACS_HEART = 129, + THE_MIND_ITEM = 130, MIND = 130, + THE_BODY_ITEM = 131, BODY = 131, + THE_SOUL_ITEM = 132, SOUL = 132, + A_D100 = 133, D100 = 133, + BLUE_MAP = 134, + THERES_OPTIONS = 135, + BLACK_CANDLE = 136, + RED_CANDLE = 137, + STOP_WATCH = 138, + WIRE_COAT_HANGER = 139, + IPECAC = 140, + EXPERIMENTAL_TREATMENT = 141, + KRAMPUS_UNLOCKED = 142, KRAMPUS = 142, + HEAD_OF_KRAMPUS = 143, + SUPER_MEAT_BOY = 144, + BUTTER_BEAN = 145, + LITTLE_BAGGY = 146, + BLOOD_BAG = 147, + A_D4 = 148, D4 = 148, + THE_LOST_POSTER = 149, LOST_POSTER = 149, MISSING_POSTER = 149, + RUBBER_CEMENT = 150, + STORE_UPGRADE_LV1 = 151, + STORE_UPGRADE_LV2 = 152, + STORE_UPGRADE_LV3 = 153, + STORE_UPGRADE_LV4 = 154, + UNLOCKED_ANGEL_BOSSES = 155, ANGELS = 155, + GODHEAD = 156, + CHALLENGE_4_DARKNESS_FALLS = 157, DARKNESS_FALLS = 157, + CHALLENGE_5_THE_TANK = 158, THE_TANK = 158, + CHALLENGE_6_SOLAR_SYSTEM = 159, SOLAR_SYSTEM = 159, + CHALLENGE_7_SUICIDE_KING = 160, SUICIDE_KING_CHALLENGE = 160, + CHALLENGE_8_CAT_GOT_YOUR_TONGUE = 161, CAT_GOT_YOUR_TONGUE = 161, + CHALLENGE_9_DEMO_MAN = 162, DEMO_MAN = 162, + CHALLENGE_10_CURSED = 163, CURSED = 163, + CHALLENGE_11_GLASS_CANNON = 164, GLASS_CANNON = 164, + CHALLENGE_19_THE_FAMILY_MAN = 165, THE_FAMILY_MAN = 165, FAMILY_MAN = 165, + CHALLENGE_20_PURIST = 166, PURIST = 166, + LOST_BABY = 167, + CUTE_BABY = 168, + CROW_BABY = 169, + SHADOW_BABY = 170, + GLASS_BABY = 171, + WRAPPED_BABY = 172, + BEGOTTEN_BABY = 173, + DEAD_BABY = 174, + O_BABY = 175, ZERO_BABY = 175, + GLITCH_BABY = 176, + FIGHTING_BABY = 177, + BECAME_LORD_OF_THE_FLIES = 178, + FART_BABY = 179, FARTING_BABY = 179, + PURITY = 180, + D12 = 181, + BETRAYAL = 182, + FATES_REWARD = 183, + ATHAME = 184, + BLIND_RAGE = 185, + MAW_OF_THE_VOID = 186, + EMPTY_VESSEL = 187, + EDENS_BLESSING = 188, + SWORN_PROTECTOR = 189, + INCUBUS = 190, + KEEPER_HOLDS_A_PENNY = 191, + LIL_CHEST = 192, + CENSER = 193, + EVIL_EYE = 194, + MY_SHADOW = 195, + CRACKED_DICE = 196, + BLACK_FEATHER = 197, + LUSTY_BLOOD = 198, + LILITH = 199, + KEY_BUM = 200, + GB_BUG = 201, + ZODIAC = 202, + BOX_OF_FRIENDS = 203, + RIB_OF_GREED = 204, + CRY_BABY = 205, + RED_BABY = 206, + GREEN_BABY = 207, + BROWN_BABY = 208, + BLUE_COOP_BABY= 209, + LIL_BABY = 210, + RAGE_BABY = 211, + BLACK_BABY = 212, + LONG_BABY = 213, + YELLOW_BABY = 214, + WHITE_BABY = 215, + BIG_BABY = 216, + NOOSE_BABY = 217, + RUNE_BAG = 218, + CAMBION_CONCEPTION = 219, + SERPENTS_KISS = 220, + SUCCUBUS = 221, + IMMACULATE_CONCEPTION = 222, + GOAT_HEAD_BABY = 223, + GOLD_HEART = 224, GOLDEN_HEARTS = 224, + GET_OUT_OF_JAIL_FREE_CARD = 225, GET_OUT_OF_JAIL_FREE = 225, + GOLD_BOMB = 226, GOLDEN_BOMBS = 226, + TWO_NEW_PILLS = 227, + TWO_NEW_PILLS_2 = 228, + POKER_CHIP = 229, + STUD_FINDER = 230, + D8 = 231, + KIDNEY_STONE = 232, + BLANK_RUNE = 233, + BLUE_WOMB = 234, + ONE_THOUSAND_AND_ONE_PERCENT = 235, NERD_1_MILLION = 235, + KEEPER_HOLDS_WOODEN_NICKEL = 236, + KEEPER_HOLDS_STORE_KEY = 237, + DEEP_POCKETS = 238, + KARMA = 239, + STICKY_NICKELS = 240, + SUPER_GREED_BABY = 241, + LUCKY_PENNIES = 242, + SPECIAL_HANGING_SHOPKEEPERS = 243, + WOODEN_NICKEL = 244, + CAIN_HOLDS_PAPERCLIP = 245, + EVERYTHING_IS_TERRIBLE_2 = 246, + SPECIAL_SHOPKEEPERS = 247, + EVE_HOLDS_RAZOR_BLADE = 248, + STORE_KEY = 249, + THE_LOST_HOLDS_HOLY_MANTLE = 250, LOST_HOLDS_HOLY_MANTLE = 250, + KEEPER = 251, + HIVE_BABY = 252, + BUDDY_BABY = 253, + COLORFUL_BABY = 254, + WHORE_BABY = 255, + CRACKED_BABY = 256, + DRIPPING_BABY = 257, + BLINDING_BABY = 258, + SUCKY_BABY = 259, + DARK_BABY = 260, + PICKY_BABY = 261, + REVENGE_BABY = 262, + BELIAL_BABY = 263, + SALE_BABY = 264, + CHALLENGE_21_XXXXXXXXL = 265, XXXXXXXXL = 265, + CHALLENGE_22_SPEED = 266, SPEED = 266, + CHALLENGE_23_BLUE_BOMBER = 267, BLUE_BOMBER = 267, + CHALLENGE_24_PAY_TO_PLAY = 268, PAY_TO_PLAY = 268, + CHALLENGE_25_HAVE_A_HEART = 269, HAVE_A_HEART = 269, + CHALLENGE_26_I_RULE = 270, I_RULE = 270, + CHALLENGE_27_BRAINS = 271, BRAINS = 271, + CHALLENGE_28_PRIDE_DAY = 272, PRIDE_DAY = 272, + CHALLENGE_29_ONANS_STREAK = 273, ONANS_STREAK = 273, + CHALLENGE_30_THE_GUARDIAN = 274, THE_GUARDIAN = 274, + GENEROSITY = 275, + MEGA_BLAST = 276, + CHALLENGE_31_BACKASSWARDS = 277, BACKASSWARDS = 277, + CHALLENGE_32_APRILS_FOOL = 278, APRILS_FOOL = 278, + CHALLENGE_33_POKEY_MANS = 279, POKEY_MANS = 279, + CHALLENGE_34_ULTRA_HARD = 280, ULTRA_HARD = 280, + CHALLENGE_35_PONG = 281, PONG = 281, + D_INFINITY = 282, + EUCHARIST = 283, + SILVER_DOLLAR = 284, + SHADE = 285, + KING_BABY = 286, + BLOODY_CROWN = 287, + DULL_RAZOR = 288, + EDENS_SOUL = 289, + DARK_PRINCES_CROWN = 290, + COMPOUND_FRACTURE = 291, + EUTHANASIA = 292, + HOLY_CARD = 293, + CROOKED_PENNY = 294, + VOID = 295, + D1 = 296, + GLYPH_OF_BALANCE = 297, + SACK_OF_SACKS = 298, + EYE_OF_BELIAL = 299, + MECONIUM = 300, + STEM_CELL = 301, + CROW_HEART = 302, + METRONOME = 303, + BAT_WING = 304, + PLAN_C = 305, + DUALITY = 306, + DADS_LOST_COIN = 307, + EYE_OF_GREED = 308, + BLACK_RUNE = 309, + LOCUST_OF_WRATH = 310, + LOCUST_OF_PESTILENCE = 311, + LOCUST_OF_FAMINE = 312, + LOCUST_OF_DEATH = 313, + LOCUST_OF_CONQUEST = 314, + HUSHY = 315, + BROWN_NUGGET = 316, + MORT_BABY = 317, + SMELTER = 318, + APOLLYON_BABY = 319, + UNLOCKED_A_NEW_AREA = 320, THE_VOID = 320, VOID_FLOOR = 320, + ONCE_MORE_WITH_FEELING = 321, GULP_PILL = 321, + HAT_TRICK = 322, ACE_OF_CLUBS = 322, + FIVE_NIGHTS_AT_MOMS = 323, SUPER_SPECIAL_ROCKS = 323, + SIN_COLLECTOR = 324, FEELS_LIKE_IM_WALKING_ON_SUNSHINE = 324, SUNSHINE_PILL = 324, + DEDICATION = 325, HORF = 325, + ZIP = 326, ACE_OF_DIAMONDS = 326, + ITS_THE_KEY = 327, ACE_OF_SPADES = 327, + MR_RESETTER = 328, SCARED_HEART = 328, + LIVING_ON_THE_EDGE = 329, ACE_OF_HEARTS = 329, + U_BROKE_IT = 330, VURP = 330, + LAZARUS_BLEEDS_MORE = 331, LAZARUS_HOLDS_ANEMIA = 331, + MAGGY_HOLDS_A_PILL = 332, MAGDALENE_HOLDS_A_PILL = 332, + CHARGED_KEY = 333, + SAMMSON_FEELS_HEALTHY = 334, SAMSON_HOLDS_CHILDS_HEART = 334, + GREEDS_GULLET = 335, + CRACKED_CROWN = 336, + UNLOCKED_RERUNS = 337, RERUNS = 337, + DELIRIOUS = 338, + ONE_MILLION_PERCENT_JUST_STOP = 339, ONE_MILLION_PERCENT = 339, JUST_STOP = 339, + THE_DESTROYER = 340, APOLLYON = 340, + GREEDIER = 341, + BURNING_BASEMENT = 342, + FLOODED_CAVES = 343, + DANK_DEPTHS = 344, + SCARRED_WOMB = 345, + SOMETHING_WICKED = 346, + SOMETHING_WICKED_PLUS = 347, SOMETHING_WICKED_2 = 347, + THE_GATE_IS_OPEN = 348, + BLACK_HOLE = 349, + MYSTERY_GIFT = 350, + SPRINKLER = 351, + ANGRY_FLY = 352, + BOZO = 353, + BROKEN_MODEM = 354, + BUDDY_IN_A_BOX = 355, + FAST_BOMBS = 356, + LIL_DELIRIUM = 357, + HAIRPIN = 358, + WOODEN_CROSS = 359, + BUTTER = 360, + HUGE_GROWTH = 361, + ANCIENT_RECALL = 362, + ERA_WALK = 363, + COUPON = 364, + TELEKINESIS = 365, + MOVING_BOX = 366, + JUMPER_CABLES = 367, + LEPROSY = 368, + TECHNOLOGY_ZERO = 369, + FILIGREE_FEATHER = 370, + MR_ME = 371, + SEVEN_SEALS = 372, + ANGELIC_PRISM = 373, + POP = 374, + DOOR_STOP = 375, + DEATHS_LIST = 376, + HAEMOLACRIA = 377, + LACHRYPHAGY = 378, + SCHOOLBAG = 379, + TRISAGION = 380, + EXTENSION_CORD = 381, + FLAT_STONE = 382, + SACRIFICAL_ALTAR = 383, + LIL_SPEWER = 384, + BLANKET = 385, + MARBLES = 386, + MYSTERY_EGG = 387, + ROTTEN_PENNY = 388, + BABY_BENDER = 389, + THE_FORGOTTEN = 390, FORGOTTEN = 390, + BONE_HEARTS = 391, + MARROW = 392, + SLIPPED_RIB = 393, + POINTY_RIB = 394, + JAW_BONE = 395, + BRITTLE_BONES = 396, + DIVORCE_PAPERS = 397, + HALLOWED_GROUND = 398, + FINGER_BONE = 399, + DADS_RING = 400, + BOOK_OF_THE_DEAD = 401, + BONE_BABY = 402, + BOUND_BABY = 403, + BETHANY = 404, + JACOB_AND_ESAU = 405, + THE_STARS_ARE_CALLING = 406, PLANETARIUMS = 406, + UNLOCKED_A_SECRET_EXIT = 407, SECRET_EXIT = 407, ALT_PATH = 407, ANTIBIRTH_PATH = 407, + FORGOTTEN_LULLABY = 408, + FRUITY_PLUM = 409, + PLUM_FLUTE = 410, + ROTTEN_HEARTS = 411, + DROSS = 412, + ASHPIT = 413, + GEHENNA = 414, + RED_KEY = 415, + WISP_BABY = 416, + BOOK_OF_VIRTUES = 417, + URN_OF_SOULS = 418, + BLESSED_PENNY = 419, + ALABASTER_BOX = 420, + BETHS_FAITH = 421, + SOUL_LOCKET = 422, + DIVINE_INTERVENTION = 423, + VADE_RETRO = 424, + STAR_OF_BETHLEHEM = 425, + HOPE_BABY = 426, + GLOWING_BABY = 427, + DOUBLE_BABY = 428, + THE_STAIRWAY = 429, STAIRWAY = 429, + RED_STEW = 430, + BIRTHRIGHT = 431, + DAMOCLES = 432, + ROCK_BOTTOM = 433, + INNER_CHILD = 434, + VANISHING_TWIN = 435, + GENESIS = 436, + SUPLEX = 437, + SOLOMONS_BABY = 438, + ILLUSION_BABY = 439, + MEAT_CLEAVER = 440, + OPTIONS = 441, OPTIONS_Q = 441, + YUCK_HEART = 442, + CANDY_HEART = 443, + GUPPYS_EYE = 444, + A_POUND_OF_FLESH = 445, POUND_OF_FLESH = 445, + AKELDAMA = 446, + REDEMPTION = 447, + ETERNAL_D6 = 448, + MONTEZUMAS_REVENGE = 449, + BIRD_CAGE = 450, + CRACKED_ORB = 451, + BLOODY_GUST = 452, + EMPTY_HEART = 453, + DEVILS_CROWN = 454, + LIL_ABADDON = 455, + TINYTOMA = 456, + ASTRAL_PROJECTION = 457, + M = 458, APOSTROPHE_M = 458, + EVERYTHING_JAR = 459, + LOST_SOUL = 460, + HUNGRY_SOUL = 461, + BLOOD_PUPPY = 462, + C_SECTION = 463, + KEEPERS_SACK = 464, + KEEPERS_BOX = 465, + LIL_PORTAL = 466, + WORM_FRIEND = 467, + BONE_SPURS = 468, + SPIRIT_SHACKLES = 469, + REVELATION = 470, + JAR_OF_WISPS = 471, + MAGIC_SKIN = 472, + FRIEND_FINDER = 473, + TAINTED_ISAAC = 474, + TAINTED_MAGGY = 475, TAINTED_MAGDALENE = 475, + TAINTED_CAIN = 476, + TAINTED_JUDAS = 477, + TAINTED_BLUE_BABY = 478, TAINTED_QQQ = 478, + TAINTED_EVE = 479, + TAINTED_SAMSON = 480, + TAINTED_AZAZEL = 481, + TAINTED_LAZARUS = 482, + TAINTED_EDEN = 483, + TAINTED_THE_LOST = 484, TAINTED_LOST = 484, + TAINTED_LILITH = 485, + TAINTED_KEEPER = 486, + TAINTED_APOLLYON = 487, + TAINTED_THE_FORGOTTEN = 488, TAINTED_FORGOTTEN = 488, + TAINTED_BETHANY = 489, + TAINTED_JACOB = 490, TAINTED_JACOB_AND_ESAU = 490, + GLITCHED_CROWN = 491, + BELLY_JELLY = 492, + BLUE_KEY = 493, + SANGUINE_BOND = 494, + THE_SWARM = 495, SWARM = 495, + HEARTBREAK = 496, + LARYNX = 497, + AZAZELS_RAGE = 498, + SALVATION = 499, + TMTRAINER = 500, + SACRED_ORB = 501, + TWISTED_PAIR = 502, + STRAWMAN = 503, + ECHO_CHAMBER = 504, + ISAACS_TOMB = 505, + VENGEFUL_SPIRIT = 506, + ESAU_JR = 507, + CHALLENGE_37_BLOODY_MARY = 508, BLOODY_MARY = 508, + CHALLENGE_38_BAPTISM_BY_FIRE = 509, BAPTISM_BY_FIRE = 509, + CHALLENGE_39_ISAACS_AWAKENING = 510, ISAACS_AWAKENING = 510, + CHALLENGE_40_SEEING_DOUBLE = 511, SEEING_DOUBLE = 511, + CHALLENGE_41_PICA_RUN = 512, PICA_RUN = 512, + CHALLENGE_42_HOT_POTATO = 513, HOT_POTATO = 513, + CHALLENGE_43_CANTRIPPED = 514, CANTRIPPED = 514, + CHALLENGE_44_RED_REDEMPTION = 515, RED_REDEMPTION = 515, + CHALLENGE_45_DELETE_THIS = 516, DELETE_THIS = 516, + DIRTY_MIND = 517, + SIGIL_OF_BAPHOMET = 518, + PURGATORY = 519, + SPIRIT_SWORD = 520, + BROKEN_GLASSES = 521, + ICE_CUBE = 522, + CHARGED_PENNY = 523, + REVERSED_THE_FOOL = 524, REVERSED_FOOL = 524, + REVERSED_THE_MAGICIAN = 525, REVERSED_MAGICIAN = 525, + REVERSED_THE_HIGH_PRIESTESS = 526, REVERSED_HIGH_PRIESTESS = 526, + REVERSED_THE_EMPRESS = 527, REVERSED_EMPRESS = 527, + REVERSED_THE_EMPEROR = 528, REVERSED_EMPEROR = 528, + REVERSED_THE_HIEROPHANT = 529, REVERSED_HIEROPHANT = 529, + REVERSED_THE_LOVERS = 530, REVERSED_LOVERS = 530, + REVERSED_THE_CHARIOT = 531, REVERSED_CHARIOT = 531, + REVERSED_JUSTICE = 532, + REVERSED_THE_HERMIT = 533, REVERSED_HERMIT = 533, + REVERSED_WHEEL_OF_FORTUNE = 534, + REVERSED_STRENGTH = 535, + REVERSED_THE_HANGED_MAN = 536, REVERSED_HANGED_MAN = 536, + REVERSED_DEATH = 537, + REVERSED_TEMPERANCE = 538, + REVERSED_THE_DEVIL = 539, REVERSED_DEVIL = 539, + REVERSED_THE_TOWER = 540, REVERSED_TOWER = 540, + REVERSED_THE_STARS = 541, REVERSED_STARS = 541, + REVERSED_THE_SUN_AND_THE_MOON = 542, REVERSED_SUN_AND_MOON = 542, + REVERSED_JUDGEMENT = 543, + REVERSED_THE_WORLD = 544, REVERSED_WORLD = 544, + OLD_CAPACITOR = 545, + BRIMSTONE_BOMBS = 546, + MEGA_MUSH = 547, + MOMS_LOCK = 548, + DICE_BAG = 549, + HOLY_CROWN = 550, + MOTHERS_KISS = 551, + GILDED_KEY = 552, + LUCKY_SACK = 553, + YOUR_SOUL = 554, + NUMBER_MAGNET = 555, + DINGLE_BERRY = 556, + RING_CAP = 557, + STRANGE_KEY = 558, + LIL_CLOT = 559, + TEMPORARY_TATTOO = 560, + SWALLOWED_M80 = 561, + WICKED_CROWN = 562, + AZAZELS_STUMP = 563, + TORN_POCKET = 564, + TORN_CARD = 565, + NUH_UH = 566, + MODELING_CLAY = 567, + KIDS_DRAWING = 568, + CRYSTAL_KEY = 569, + THE_TWINS = 570, + ADOPTION_PAPERS = 571, + KEEPERS_BARGAIN = 572, + CURSED_PENNY = 573, + CRICKET_LEG = 574, + APOLLYONS_BEST_FRIEND = 575, + POLISHED_BONE = 576, + HOLLOW_HEART = 577, + EXPANSION_PACK = 578, + BETHS_ESSENCE = 579, + RC_REMOTE = 580, + FOUND_SOUL = 581, + MEMBER_CARD = 582, + GOLDEN_RAZOR = 583, + SPINDOWN_DICE = 584, + HYPERCOAGULATION = 585, + BAG_OF_CRAFTING = 586, + DARK_ARTS = 587, + IBS = 588, + SUMPTORIUM = 589, + BERSERK = 590, + HEMOPTYSIS = 591, + FLIP = 592, + CORRUPTED_DATA = 593, + GHOST_BOMBS = 594, + GELLO = 595, + KEEPERS_KIN = 596, + ABYSS = 597, + DECAP_ATTACK = 598, + LEMEGETON = 599, + ANIMA_SOLA = 600, + MEGA_CHEST = 601, + QUEEN_OF_HEARTS = 602, + GOLD_PILL = 603, GOLDEN_PILLS = 603, + BLACK_SACK = 604, + CHARMING_POOP = 605, + HORSE_PILLS = 606, + CRANE_GAME = 607, + HELL_GAME = 608, + WOODEN_CHEST = 609, + WILD_CARD = 610, + HAUNTED_CHEST = 611, + FOOLS_GOLD = 612, + GOLDEN_PENNY = 613, GOLDEN_PENNIES = 613, + ROTTEN_BEGGAR = 614, + GOLDEN_BATTERY = 615, GOLDEN_BATTERIES = 615, + CONFESSIONAL = 616, + GOLDEN_TRINKET = 617, GOLDEN_TRINKETS = 617, + SOUL_OF_ISAAC = 618, + SOUL_OF_MAGDALENE = 619, SOUL_OF_MAGGY = 619, + SOUL_OF_CAIN = 620, + SOUL_OF_JUDAS = 621, + SOUL_OF_BLUE_BABY = 622, SOUL_OF_QQQ = 622, + SOUL_OF_EVE = 623, + SOUL_OF_SAMSON = 624, + SOUL_OF_AZAZEL = 625, + SOUL_OF_LAZARUS = 626, + SOUL_OF_EDEN = 627, + SOUL_OF_THE_LOST = 628, SOUL_OF_LOST = 628, + SOUL_OF_LILITH = 629, + SOUL_OF_THE_KEEPER = 630, SOUL_OF_KEEPER = 630, + SOUL_OF_APOLLYON = 631, + SOUL_OF_THE_FORGOTTEN = 632, SOUL_OF_FORGOTTEN = 632, + SOUL_OF_BETHANY = 633, + SOUL_OF_JACOB = 634, SOUL_OF_JACOB_AND_ESAU = 634, + A_STRANGE_DOOR = 635, STRANGE_DOOR = 635, ASCENT_DOOR = 635, + DEATH_CERTIFICATE = 636, + DEAD_GOD = 637, + PLAYED_ONLINE = 638, + WON_ONLINE = 639, ONLINE_WON = 639, + WON_ONLINE_DAILY = 640, DAILY_ONLINE_WON = 640, +} + +FollowerPriority = { + DEFAULT = 0, + SHOOTER = 1, + DEFENSIVE = 2, -- Dry Baby, Mongo Baby, Cencer, Lil Abaddon + SHOOTER_SPECIAL = 3, -- Lil Brim, Lil Monstro + INCUBUS = 10, + KING_BABY = 9999, +} + +HealthType = { + DEFAULT = 0, RED = 0, + SOUL = 1, + LOST = 2, NO_HEALTH = 2, + COIN = 3, KEEPER = 3, + BONE = 4, +} + +Dimension = { + CURRENT = -1, + NORMAL = 0, + KNIFE_PUZZLE = 1, MIRROR = 1, MINESHAFT = 1, + DEATH_CERTIFICATE = 2, +} + +LineCheckMode = { + ENTITY = 0, + RAYCAST = 1, -- Similar to ENTITY, and cheaper, but can pass between diagonally adjacent GridEntities + EXPLOSION = 2, + PROJECTILE = 3, +} + +ProjectileMode = { + SINGLE = 0, + SPREAD_TWO = 1, + SPREAD_THREE = 2, + SPREAD_THREE_NO_INHERITANCE = 3, + SPREAD_FOUR = 4, + SPREAD_FIVE = 5, + PLUS = 6, + CROSS = 7, + CIRCLE_EIGHT = 8, + CIRCLE_CUSTOM = 9, +} + +StbGridType = { + DECORATION = 0, + ROCK = 1000, + BOMB_ROCK = 1001, + ALT_ROCK = 1002, + MARKED_ROCK = 1003, TINTED_ROCK = 1003, + ALT_ROCK_MARKED = 1008, MARKED_SKULL = 1008, + EVENT_ROCK = 1009, + SPIKE_ROCK = 1010, + FOOLS_GOLD_ROCK = 1011, + TNT = 1300, + RED_POOP = 1490, + RAINBOW_POOP = 1494, + CHUNKY_POOP = 1495, CORN_POOP = 1495, + GOLDEN_POOP = 1496, + BLACK_POOP = 1497, + HOLY_POOP = 1498, WHITE_POOP = 1498, + GIANT_POOP = 1499, + POOP = 1500, + CHARMING_POOP = 1501, + BLOCK = 1900, + PILLAR = 1901, TALL_BLOCK = 1901, + SPIKES = 1930, + RETRACTING_SPIKES = 1931, + COBWEB = 1940, + INVISIBLE_BLOCK = 1999, + PIT = 3000, + BUTTON_RAIL = 3002, EVENT_RAIL = 3002, + EVENT_PIT = 3009, + KEY_BLOCK = 4000, LOCK = 4000, + PRESSURE_PLATE = 4500, BUTTON = 4500, + DEVIL_STATUE = 5000, + ANGEL_STATUE = 5001, + RAIL = 6000, + RAIL_PIT = 6001, + TELEPORTER = 6100, + TRAP_DOOR = 9000, LEVEL_EXIT = 9000, + CRAWLSPACE = 9100, STAIRCASE = 9100, + GRAVITY = 10000, +} + +StbRockSubType = { + NORMAL = 0, + NON_REPLACEABLE = 1, +} + +StbPoopSubType = { + NORMAL = 0, + NON_REPLACEABLE = 1, +} + +StbTeleporterSubType = { + ACTIVE = 0, + INNACTIVE = 1, +} + +StbRailVariant = { + HORIZONTAL = 0, + VERTICAL = 1, + DOWN_TO_RIGHT = 2, + DOWN_TO_LEFT = 3, + UP_TO_RIGHT = 4, + UP_TO_LEFT = 5, + CROSSROAD = 6, JUNCTION = 6, + END_LEFT = 7, + END_RIGHT = 8, + END_UP = 9, + END_DOWN = 10, + + HORIZONTAL_CART_LEFT = 16, + HORIZONTAL_CART_RIGHT = 32, + VERTICAL_CART_UP = 17, + VERTICAL_CART_DOWN = 33, + + MINESHAFT_HORIZONTAL_1 = 80, + MINESHAFT_HORIZONTAL_2 = 96, + MINESHAFT_HORIZONTAL_3 = 112, + MINESHAFT_VERTICAL_1 = 81, + MINESHAFT_VERTICAL_2 = 97, + MINESHAFT_VERTICAL_3 = 113, + + MINESHAFT_DOWN_TO_RIGHT_1 = 82, + MINESHAFT_DOWN_TO_RIGHT_2 = 98, + MINESHAFT_DOWN_TO_LEFT_1 = 83, + MINESHAFT_DOWN_TO_LEFT_2 = 99, + MINESHAFT_UP_TO_RIGHT_1 = 84, + MINESHAFT_UP_TO_RIGHT_2 = 100, + MINESHAFT_UP_TO_LEFT_1 = 85, + MINESHAFT_UP_TO_LEFT_2 = 101, +} + +RetractingSpikesVariant = { + NORMAL = 0, + DOWN_1 = 1, + DOWN_2 = 2, + DOWN_3 = 3, + DOWN_4 = 4, + DOWN_5 = 5, + UP_1 = 6, + UP_2 = 7, + UP_3 = 8, + UP_4 = 9, + UP_5 = 10, +} + +PressurePlateVariant = { + ROOM_CLEAR = 0, + REWARD = 1, + GREED_MODE = 2, + MINES_PUZZLE = 3, RAIL_PLATE = 3, + KILL_SWITCH = 9, + EVENT_GROUP_0 = 10, EVENT_0 = 10, + EVENT_GROUP_1 = 11, EVENT_1 = 11, + EVENT_GROUP_2 = 12, EVENT_2 = 12, + EVENT_GROUP_3 = 13, EVENT_3 = 13, +} + +TeleporterVariant = { + SQUARE = 0, + MOON = 1, + RHOMBUS = 2, DIAMOND = 2, + M = 3, HAGALAZ = 3, + PENTAGRAM = 4, + CROSS = 5, + TRIANGLE = 6, +} + +GridPoopVariant = { + NORMAL = 0, + RED = 1, + CHUNKY = 2, CORN = 2, + GOLDEN = 3, + RAINBOW = 4, + BLACK = 5, + HOLY = 6, WHITE = 6, + GIANT_TL = 7, + GIANT_TR = 8, + GIANT_BL = 9, + GIANT_BR = 10, + CHARMING = 11, +} + +EntityPoopVariant = { + NORMAL = 0, + GOLDEN = 1, + STONE = 11, PETRIFIED = 11, + CHUNKY = 12, CORN = 12, + FLAMING = 13, + STINKY = 14, POISON = 14, + BLACK = 15, + HOLY = 16, WHITE = 16, +} + +PlayerVariant = { + PLAYER = 0, + FOUND_SOUL = 1, CO_OP_BABY = 1, +} + +PillCardSlot = { + PRIMARY = 0, + SECONDARY = 1, + TERTIARY = 2, -- Offset by 2 of: Pocket Item, Dice Bag Item, Pillcard (Otherwise unused) + QUATERNARY = 3, -- Offset by Pocket Item and Dice Bag Item and Pillcard (Otherwise unused) +} + +MainMenuType = { + TITLE = 1, --0 exists but its unusable + SAVES = 2, + GAME = 3, --the actual menu where all the menus are + DAILYRUN = 4, + CHARACTER = 5, + SPECIALSEEDS = 6, + CHALLENGE = 7, + COLLECTION = 8, + STATS = 9, + OPTIONS = 10, + CONTROLS = 11, + KEYCONFIG = 12, + ENDINGS = 13, + BESTIARY = 14, + MODCHALLENGES = 15, + MODS = 16, + ONLINELOBBY = 17, + FRIENDLOBBIES = 18, + MULTIPLAYER = 19, + OPTIONSONLINE = 20, + CREATELOBBY = 21, + ONLINEAWARDS = 22 --sins list +} + +--to-do-- +-- helper script to print every change of an event counter: +-- l local mod = RegisterMod("test", 1); local data = {}; for i=0,495 do data[i] = 0 end function mod:myFunction() for k,v in pairs(data) do local t = Isaac.GetPersistentGameData():GetEventCounter(k) if v~=t then print(k,v,"->",t) data[k] = t end end end mod:AddCallback(ModCallbacks.MC_POST_UPDATE, mod.myFunction) +EventCounter = { + NULL = 0, -- Seems unused + MOM_KILLS = 1, -- Stat from the stat screen. Counts kills of Moms heart (Does only count instances where the kill is combined with run "progression". aka in final room and spawning a trapdoor/chest/trophy) + ROCKS_DESTROYED = 2, -- Includes all rock types including tinted rocks + TINTED_ROCKS_DESTROYED = 3, + SUPER_SPECIAL_ROCKS_DESTROYED = 4, -- Super Special Rocks are Tinted Rock variants with smaller marks and lack of discoloration + POOP_DESTROYED = 5, -- Includes all poop types. Red poop counts everytime it gets destroyed + PILLS_EATEN = 6, -- Includes all pills including horse pills + XIII_DEATH_CARD_USED = 7, + UNKNOWN_EVENT_8 = 8, + ARCADES_ENTERED = 9, -- Also includes teleports with goto. + DEATHS = 10, -- does not increase when revived + ISAAC_KILLS = 11, -- How often was the final boss of cathedral killed. (Isaac) (Does only count instances where the kill is combined with run "progression". aka in final room and spawning a trapdoor/chest/trophy) + SHOPKEEPER_KILLED = 12, + SATAN_KILLS = 13, -- How often was the final boss of sheol killed. (Satan) (Does only count instances where the kill is combined with run "progression". aka in final room and spawning a trapdoor/chest/trophy) + SHELLGAMES_PLAYED = 14, -- How often the shellgame was played + ANGEL_DEALS_TAKEN = 15, + DEVIL_DEALS_TAKEN = 16, + BLOOD_DONATION_MACHINE_USED = 17, + SLOT_MACHINES_BROKEN = 18, + UNKNOWN_EVENT_19 = 19, + DONATE_MACHINE_COUNTER = 20, + DONATION_MACHINE_COUNTER = 20, + EDEN_TOKENS = 21, + STREAK_COUNTER = 22, -- counts your current streak. + BEST_STREAK = 23, + BLUE_BABY_KILLS = 24, -- How often was the final boss of chest killed. (??? - Blue Baby) (Does only count instances where the kill is combined with run "progression". aka in final room and spawning a trapdoor/chest/trophy) + LAMB_KILLS = 25, -- How often was the final boss of dark room killed. (The lamb) (Does only count instances where the kill is combined with run "progression". aka in final room and spawning a trapdoor/chest/trophy) + MEGA_SATAN_KILLS = 26, + PROGRESSION_KILL_MOMS_HEART_WITH_ISAAC = 27, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_MAGDALENE = 28, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_CAIN = 29, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_JUDAS = 30, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_BLUE_BABY = 31, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_EVE = 32, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_SAMSON = 33, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_AZAZEL = 34, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_LAZARUS = 35, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_EDEN = 36, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_THE_LOST = 37, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_LILITH = 38, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_KEEPER = 39, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_APOLLYON = 40, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_ISAAC = 41, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_MAGDALENE = 42, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_CAIN = 43, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_JUDAS = 44, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_BLUE_BABY = 45, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_EVE = 46, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_SAMSON = 47, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_AZAZEL = 48, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_LAZARUS = 49, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_EDEN = 50, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_THE_LOST = 51, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_LILITH = 52, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_KEEPER = 53, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_APOLLYON = 54, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_ISAAC = 55, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_MAGDALENE = 56, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_CAIN = 57, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_JUDAS = 58, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_BLUE_BABY = 59, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_EVE = 60, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_SAMSON = 61, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_AZAZEL = 62, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_LAZARUS = 63, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_EDEN = 64, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_THE_LOST = 65, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_LILITH = 66, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_KEEPER = 67, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_APOLLYON = 68, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_ISAAC = 69, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_MAGDALENE = 70, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_CAIN = 71, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_JUDAS = 72, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_BLUE_BABY = 73, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_EVE = 74, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_SAMSON = 75, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_AZAZEL = 76, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_LAZARUS = 77, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_EDEN = 78, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_THE_LOST = 79, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_LILITH = 80, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_KEEPER = 81, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_APOLLYON = 82, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_ISAAC = 83, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_MAGDALENE = 84, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_CAIN = 85, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_JUDAS = 86, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_BLUE_BABY = 87, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_EVE = 88, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_SAMSON = 89, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_AZAZEL = 90, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_LAZARUS = 91, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_EDEN = 92, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_THE_LOST = 93, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_LILITH = 94, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_KEEPER = 95, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_APOLLYON = 96, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_ISAAC = 97, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_MAGDALENE = 98, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_CAIN = 99, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_JUDAS = 100, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_BLUE_BABY = 101, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_EVE = 102, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_SAMSON = 103, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_AZAZEL = 104, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_LAZARUS = 105, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_EDEN = 106, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_THE_LOST = 107, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_LILITH = 108, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_KEEPER = 109, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_APOLLYON = 110, -- (0 for not done. 1 for normal difficulty, 2 for hard) + BOSSRUSHS_CLEARED = 111, + UNKNOWN_EVENT_112 = 112,-- seems to only be at 1 for a dead god file + NEGATIVE_STREAK_COUNTER = 113, -- counts your current negative streak. aka consecutive runs ending with death. + EDENS_BLESSINGS_NEXT_RUN = 114, -- number of edens blessing items added to the player in next run + GREED_DONATION_MACHINE_COUNTER = 115, + PROGRESSION_KILL_MEGA_SATAN_WITH_ISAAC = 116, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_MAGDALENE = 117, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_CAIN = 118, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_JUDAS = 119, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_BLUE_BABY = 120, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_EVE = 121, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_SAMSON = 122, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_AZAZEL = 123, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_LAZARUS = 124, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_EDEN = 125, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_THE_LOST = 126, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_LILITH = 127, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_KEEPER = 128, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_APOLLYON = 129, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_ISAAC = 130, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_MAGDALENE = 131, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_CAIN = 132, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_JUDAS = 133, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_BLUE_BABY = 134, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_EVE = 135, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_SAMSON = 136, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_AZAZEL = 137, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_LAZARUS = 138, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_EDEN = 139, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_THE_LOST = 140, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_LILITH = 141, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_KEEPER = 142, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_GREED_MODE_CLEARED_WITH_APOLLYON = 143, -- (value = 0, 1 for greed mode, 2 for greedier) + PROGRESSION_KILL_HUSH_WITH_ISAAC = 144, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_MAGDALENE = 145, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_CAIN = 146, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_JUDAS = 147, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_BLUE_BABY = 148, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_EVE = 149, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_SAMSON = 150, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_AZAZEL = 151, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_LAZARUS = 152, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_EDEN = 153, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_THE_LOST = 154, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_LILITH = 155, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_KEEPER = 156, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_APOLLYON = 157, -- (0 for not done. 1 for normal difficulty, 2 for hard) + HUSH_KILLS = 158, -- How often Hush was killed. (Does only count instances where the kill is combined with run "progression". aka in final room and spawning a trapdoor/chest/trophy) + GREED_MODE_COINS_DONATED_WITH_ISAAC = 159, + GREED_MODE_COINS_DONATED_WITH_MAGDALENE = 160, + GREED_MODE_COINS_DONATED_WITH_CAIN = 161, + GREED_MODE_COINS_DONATED_WITH_JUDAS = 162, + GREED_MODE_COINS_DONATED_WITH_BLUE = 163, + GREED_MODE_COINS_DONATED_WITH_EVE = 164, + GREED_MODE_COINS_DONATED_WITH_SAMSON = 165, + GREED_MODE_COINS_DONATED_WITH_AZAZEL = 166, + GREED_MODE_COINS_DONATED_WITH_LAZARUS = 167, + GREED_MODE_COINS_DONATED_WITH_EDEN = 168, + GREED_MODE_COINS_DONATED_WITH_THE_LOST = 169, + GREED_MODE_COINS_DONATED_WITH_LILITH = 170, + GREED_MODE_COINS_DONATED_WITH_KEEPER = 171, + GREED_MODE_COINS_DONATED_WITH_APOLLYON = 172, + PROGRESSION_KILL_DELIRIUM_WITH_ISAAC = 173, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_MAGDALENE = 174, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_CAIN = 175, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_JUDAS = 176, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_BLUE_BABY = 177, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_EVE = 178, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_SAMSON = 179, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_AZAZEL = 180, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_LAZARUS = 181, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_EDEN = 182, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_THE_LOST = 183, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_LILITH = 184, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_KEEPER = 185, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_APOLLYON = 186, -- (0 for not done. 1 for normal difficulty, 2 for hard) + DELIRIUM_KILLS = 187, -- How often was the final boss of the void was killed. (Delirium) (Does only count instances where the kill is combined with run "progression". aka in final room and spawning a trapdoor/chest/trophy) + CHARACTER_LAST_RUN_WIN = 188, -- Potential Bitmask containing the ids of the characters that won the last run, including coop. gets cleared on run restart. TODO: Usage and pattern still unknown!!! + UNKNOWN_EVENT_189 = 189, -- really big counter + DAILYS_PLAYED = 190, -- counts dailies played + DAILY_RUN_IS_ACTIVE = 191, -- Set to 1 when daily is currently played. Set to 0 when trophy was collected + DAILYS_STREAK = 192, -- Numbers of dailies won in a row + DAILYS_WON = 193, -- Number of dailies won + RAINBOW_POOP_DESTROYED = 194, + BATTERIES_COLLECTED = 195, -- Sum of all batteries collected + CARDS_USED = 196, -- Sum of cards used + SHOP_ITEMS_BOUGHT = 197, -- Sum of shop items bought. this includes devil deals, dark room red chest deals, and black market deals + CHESTS_OPENED_WITH_KEY = 198, -- Sum of all golden and Eternal Chests opened. Mega chests dont count + SECRET_ROOMS_WALLS_OPENED = 199, -- Includes super secret rooms and counts walls that lead to secret rooms already entered or discovered. Also counts the door towards the mines. Does not count X-Ray Vision effect + BLOOD_CLOT_ITEM_AQUIRED = 200, + RUBBER_CEMENT_ITEM_AQUIRED = 201, + BEDS_USED = 202, -- Sleeping in a bed + PROGRESSION_KILL_MOMS_HEART_WITH_THE_FORGOTTEN = 203, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_THE_FORGOTTEN = 204, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_THE_FORGOTTEN = 205, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_THE_FORGOTTEN = 206, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_THE_FORGOTTEN = 207, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_THE_FORGOTTEN = 208, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_THE_FORGOTTEN = 209, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_THE_FORGOTTEN = 210, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_THE_FORGOTTEN = 211, -- (0 for not done. 1 for normal difficulty, 2 for hard) + GREED_MODE_COINS_DONATED_WITH_FORGOTTEN = 212, + PROGRESSION_KILL_DELIRIUM_WITH_THE_FORGOTTEN = 213, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_BETHANY = 214, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_JACOB_AND_ESAU = 215, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_ISAAC = 216, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_MAGDALENE = 217, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_CAIN = 218, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_JUDAS = 219, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_BLUE_BABY = 220, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_EVE = 221, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_SAMSON = 222, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_AZAZEL = 223, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_LAZARUS = 224, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_EDEN = 225, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_THE_LOST = 226, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_LILITH = 227, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_KEEPER = 228, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_APOLLYON = 229, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_THE_FORGOTTEN = 230, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_BETHANY = 231, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOMS_HEART_WITH_T_JACOB_AND_ESAU = 232, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_BETHANY = 233, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_JACOB_AND_ESAU = 234, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_ISAAC = 235, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_MAGDALENE = 236, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_CAIN = 237, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_JUDAS = 238, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_BLUE_BABY = 239, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_EVE = 240, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_SAMSON = 241, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_AZAZEL = 242, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_LAZARUS = 243, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_EDEN = 244, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_THE_LOST = 245, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_LILITH = 246, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_KEEPER = 247, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_APOLLYON = 248, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_THE_FORGOTTEN = 249, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_BETHANY = 250, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_ISAAC_WITH_T_JACOB_AND_ESAU = 251, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_BETHANY = 252, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_JACOB_AND_ESAU = 253, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_ISAAC = 254, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_MAGDALENE = 255, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_CAIN = 256, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_JUDAS = 257, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_BLUE_BABY = 258, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_EVE = 259, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_SAMSON = 260, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_AZAZEL = 261, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_LAZARUS = 262, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_EDEN = 263, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_THE_LOST = 264, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_LILITH = 265, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_KEEPER = 266, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_APOLLYON = 267, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_THE_FORGOTTEN = 268, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_BETHANY = 269, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_SATAN_WITH_T_JACOB_AND_ESAU = 270, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_BETHANY = 271, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_JACOB_AND_ESAU = 272, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_ISAAC = 273, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_MAGDALENE = 274, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_CAIN = 275, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_JUDAS = 276, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_BLUE_BABY = 277, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_EVE = 278, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_SAMSON = 279, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_AZAZEL = 280, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_LAZARUS = 281, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_EDEN = 282, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_THE_LOST = 283, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_LILITH = 284, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_KEEPER = 285, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_APOLLYON = 286, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_THE_FORGOTTEN = 287, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_BETHANY = 288, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_BOSSRUSH_CLEARED_WITH_T_JACOB_AND_ESAU = 289, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_BETHANY = 290, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_JACOB_AND_ESAU = 291, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_ISAAC = 292, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_MAGDALENE = 293, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_CAIN = 294, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_JUDAS = 295, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_BLUE_BABY = 296, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_EVE = 297, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_SAMSON = 298, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_AZAZEL = 299, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_LAZARUS = 300, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_EDEN = 301, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_THE_LOST = 302, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_LILITH = 303, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_KEEPER = 304, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_APOLLYON = 305, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_THE_FORGOTTEN = 306, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_BETHANY = 307, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BLUE_BABY_WITH_T_JACOB_AND_ESAU = 308, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_BETHANY = 309, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_JACOB_AND_ESAU = 310, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_ISAAC = 311, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_MAGDALENE = 312, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_CAIN = 313, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_JUDAS = 314, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_BLUE_BABY = 315, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_EVE = 316, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_SAMSON = 317, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_AZAZEL = 318, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_LAZARUS = 319, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_EDEN = 320, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_THE_LOST = 321, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_LILITH = 322, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_KEEPER = 323, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_APOLLYON = 324, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_THE_FORGOTTEN = 325, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_BETHANY = 326, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_THE_LAMB_WITH_T_JACOB_AND_ESAU = 327, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_BETHANY = 328, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_JACOB_AND_ESAU = 329, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_ISAAC = 330, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_MAGDALENE = 331, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_CAIN = 332, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_JUDAS = 333, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_BLUE_BABY = 334, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_EVE = 335, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_SAMSON = 336, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_AZAZEL = 337, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_LAZARUS = 338, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_EDEN = 339, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_THE_LOST = 340, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_LILITH = 341, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_KEEPER = 342, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_APOLLYON = 343, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_THE_FORGOTTEN = 344, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_BETHANY = 345, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MEGA_SATAN_WITH_T_JACOB_AND_ESAU = 346, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_BETHANY = 347, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_JACOB_AND_ESAU = 348, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_ISAAC = 349, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_MAGDALENE = 350, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_CAIN = 351, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_JUDAS = 352, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_BLUE_BABY = 353, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_EVE = 354, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_SAMSON = 355, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_AZAZEL = 356, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_LAZARUS = 357, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_EDEN = 358, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_THE_LOST = 359, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_LILITH = 360, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_KEEPER = 361, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_APOLLYON = 362, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_THE_FORGOTTEN = 363, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_BETHANY = 364, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_GREED_MODE_CLEARED_WITH_T_JACOB_AND_ESAU = 365, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_BETHANY = 366, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_JACOB_AND_ESAU = 367, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_ISAAC = 368, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_MAGDALENE = 369, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_CAIN = 370, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_JUDAS = 371, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_BLUE_BABY = 372, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_EVE = 373, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_SAMSON = 374, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_AZAZEL = 375, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_LAZARUS = 376, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_EDEN = 377, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_THE_LOST = 378, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_LILITH = 379, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_KEEPER = 380, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_APOLLYON = 381, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_THE_FORGOTTEN = 382, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_BETHANY = 383, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_HUSH_WITH_T_JACOB_AND_ESAU = 384, -- (0 for not done. 1 for normal difficulty, 2 for hard) + GREED_MODE_COINS_DONATED_WITH_BETHANY = 385, + GREED_MODE_COINS_DONATED_WITH_JACOB_AND_ESAU = 386, + GREED_MODE_COINS_DONATED_WITH_T_ISAAC = 387, + GREED_MODE_COINS_DONATED_WITH_T_MAGDALENE = 388, + GREED_MODE_COINS_DONATED_WITH_T_CAIN = 389, + GREED_MODE_COINS_DONATED_WITH_T_JUDAS = 390, + GREED_MODE_COINS_DONATED_WITH_T_BLUE_BABY = 391, + GREED_MODE_COINS_DONATED_WITH_T_EVE = 392, + GREED_MODE_COINS_DONATED_WITH_T_SAMSON = 393, + GREED_MODE_COINS_DONATED_WITH_T_AZAZEL = 394, + GREED_MODE_COINS_DONATED_WITH_T_LAZARUS = 395, + GREED_MODE_COINS_DONATED_WITH_T_EDEN = 396, + GREED_MODE_COINS_DONATED_WITH_T_THE_LOST = 397, + GREED_MODE_COINS_DONATED_WITH_T_LILITH = 398, + GREED_MODE_COINS_DONATED_WITH_T_KEEPER = 399, + GREED_MODE_COINS_DONATED_WITH_T_APOLLYON = 400, + GREED_MODE_COINS_DONATED_WITH_T_THE_FORGOTTEN = 401, + GREED_MODE_COINS_DONATED_WITH_T_BETHANY = 402, + GREED_MODE_COINS_DONATED_WITH_T_JACOB_AND_ESAU = 403, + PROGRESSION_KILL_DELIRIUM_WITH_BETHANY = 404, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_JACOB_AND_ESAU = 405, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_ISAAC = 406, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_MAGDALENE = 407, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_CAIN = 408, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_JUDAS = 409, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_BLUE_BABY = 410, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_EVE = 411, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_SAMSON = 412, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_AZAZEL = 413, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_LAZARUS = 414, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_EDEN = 415, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_THE_LOST = 416, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_LILITH = 417, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_KEEPER = 418, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_APOLLYON = 419, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_THE_FORGOTTEN = 420, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_BETHANY = 421, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_DELIRIUM_WITH_T_JACOB_AND_ESAU = 422, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_ISAAC = 423, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_MAGDALENE = 424, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_CAIN = 425, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_JUDAS = 426, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_BLUE_BABY = 427, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_EVE = 428, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_SAMSON = 429, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_AZAZEL = 430, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_LAZARUS = 431, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_EDEN = 432, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_THE_LOST = 433, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_LILITH = 434, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_KEEPER = 435, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_APOLLYON = 436, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_THE_FORGOTTEN = 437, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_BETHANY = 438, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_JACOB_AND_ESAU = 439, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_ISAAC = 440, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_MAGDALENE = 441, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_CAIN = 442, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_JUDAS = 443, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_BLUE_BABY = 444, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_EVE = 445, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_SAMSON = 446, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_AZAZEL = 447, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_LAZARUS = 448, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_EDEN = 449, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_THE_LOST = 450, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_LILITH = 451, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_KEEPER = 452, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_APOLLYON = 453, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_THE_FORGOTTEN = 454, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_BETHANY = 455, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_MOTHER_WITH_T_JACOB_AND_ESAU = 456, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_ISAAC = 457, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_MAGDALENE = 458, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_CAIN = 459, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_JUDAS = 460, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_BLUE_BABY = 461, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_EVE = 462, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_SAMSON = 463, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_AZAZEL = 464, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_LAZARUS = 465, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_EDEN = 466, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_THE_LOST = 467, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_LILITH = 468, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_KEEPER = 469, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_APOLLYON = 470, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_THE_FORGOTTEN = 471, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_BETHANY = 472, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_JACOB_AND_ESAU = 473, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_ISAAC = 474, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_MAGDALENE = 475, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_CAIN = 476, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_JUDAS = 477, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_BLUE_BABY = 478, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_EVE = 479, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_SAMSON = 480, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_AZAZEL = 481, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_LAZARUS = 482, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_EDEN = 483, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_THE_LOST = 484, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_LILITH = 485, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_KEEPER = 486, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_APOLLYON = 487, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_THE_FORGOTTEN = 488, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_BETHANY = 489, -- (0 for not done. 1 for normal difficulty, 2 for hard) + PROGRESSION_KILL_BEAST_WITH_T_JACOB_AND_ESAU = 490, -- (0 for not done. 1 for normal difficulty, 2 for hard) + MOTHER_KILLS = 491, -- Killing endboss of Corpse 2 (Does only count instances where the kill is combined with run "progression". aka in final room and spawning a trapdoor/chest/trophy) + BEAST_KILLS = 492, -- Killing the endboss of Home + BABY_PLUM_KILLS = 493, + BATTERY_BUMS_KILLED = 494, + BATTERY_BUM_COLLECTIBLE_PAYOUTS = 495, -- counts how often the battery bum paid out with a collectible item + UNKNOWN_EVENT_496 = 496, -- TODO: Currently Unknown. Maybe Daily Multiplayer run Streak? + ONLINE_CURRENT_STREAK = 497, -- Current Online Mode streak + ONLINE_BEST_STREAK = 498, -- Best streak in Online Gameplay + ONLINE_NEGATIVE_STREAK = 499, + ONLINE_SIN_ETERNAL = 500, + ONLINE_SIN_HEARTLESS = 501, + ONLINE_SIN_ENVIOUS = 502, + ONLINE_SIN_DRESSED_UP = 503, + ONLINE_SIN_PRIDEFUL = 504, + ONLINE_SIN_SAVIOR = 505, + ONLINE_SIN_WRATHFUL = 506, + ONLINE_SIN_BIG_BOSS = 507, + ONLINE_SIN_EXPLORER = 508, + ONLINE_SIN_EXPRESSIVE = 509, + ONLINE_SIN_GLUTTONOUS = 510, + ONLINE_SIN_RECKLESS = 511, + ONLINE_SIN_ESCAPE_ARTIST = 512, + ONLINE_SIN_GAMBLER = 513, + ONLINE_SIN_GREEDY = 514, + ONLINE_SIN_MYSTIC = 515, + ONLINE_SIN_PILL_POPPER = 516, + ONLINE_SIN_BIG_SPENDER = 517, + ONLINE_SIN_JANITOR = 518, + ONLINE_SIN_LUSTFUL = 519, + ONLINE_SIN_SLOTHFUL = 520, + DAILYS_BEST_STREAK = 521, + DAILYS_NEGATIVE_STREAK = 522, NEGATIVE_DAILYS_STREAK_COUNTER = 522, + NUM_EVENT_COUNTERS = 523, +} + +WispSubType = { + -- Unless specified, use CollectibleType + SPECIAL_FLAG = 65536, + NOTCHED_AXE_COAL = 65536, -- 0 | SPECIAL_FLAG + NOTCHED_AXE_IRON = 65537, -- 1 | SPECIAL_FLAG + NOTCHED_AXE_GOLD = 65538, -- etc + NOTCHED_AXE_DIAMON = 65539, + NOTCHED_AXE_REDSTONE = 65540, + JAR_OF_FLIES_1 = 65541, + JAR_OF_FLIES_2 = 65542, + JAR_OF_FLIES_3 = 65543, + JAR_OF_FLIES_4 = 65544, + JAR_OF_FLIES_5 = 65545, + FRIENDLY_BALL_NORMAL = 65546, + FRIENDLY_BALL_EXPLOSIVE = 65547, + FRIENDLY_BALL_HOMING = 65548, + FRIENDLY_BALL_BRIMSTONE = 65549, + DELIRIOUS_MONSTRO = 65550, + DELIRIOUS_DUKE = 65551, + DELIRIOUS_LOKI = 65552, + DELIRIOUS_HAUNT = 65553, + LEMEGETON_VIRTUE = 65554, +} + +Language = { + ENGLISH = 0, + JAPANESE = 2, + FRENCH = 3, + SPANISH = 4, + GERMAN = 5, + RUSSIAN = 10, + KOREAN = 11, + CHINESE = 13, + KEY = 21, +} + +AnnouncerVoiceMode = { + RANDOM = 0, + NEVER = 1, OFF = 1, + ALWAYS = 2, +} + +CameraStyle = { + ACTIVE_CAM_ON = 1, + ACTIVE_CAM_OFF = 2, +} + +ConsoleFont = { + DEFAULT = 0, + SMALL = 1, + TINY = 2, +} + +ExtraHudStyle = { + OFF = 0, + ON = 1, + ON_MINI = 2, +} + +Ending = { + DIE = 1, + EPILOGUE = 2, + CREDITS = 3, + SATAN = 4, ENDING_12 = 4, + ISAAC = 5, ENDING_13 = 5, + LAMB = 6, ENDING_15 = 6, + BLUE_BABY = 7, ENDING_14 = 7, + MEGA_SATAN = 8, ENDING_16 = 8, + ULTRA_GREED = 9, ENDING_18 = 9, + HUSH = 10, ENDING_17 = 10, + DELIRIUM = 11, ENDING_20 = 11, + ULTRA_GREEDIER = 12, ENDING_19 = 12, + MOTHER = 13, ENDING_21 = 13, + BEAST = 14, FINAL_ENDING = 14, +} + +FadeoutTarget = { + FILE_SELECT_MENU = 1, + SAVEFILE_MENU = 2, + TITLE_SCREEN = 3, + NEW_RUN = 4, +} + +MouseButton = { + LEFT = 0, + RIGHT = 1, + SCROLLWHEEL = 2, + BACK = 3, -- Located on the side of some mice + FORWARD = 4, -- Located on the side of some mice +} + +Giantbook = { + NECRONOMICON = 1, + MONSTER_MANUAL = 2, + WHORE_OF_BABYLON = 3, HORRIBLE_NIGHT = 3, + DEAD_SEA_SCROLLS = 4, + THE_SUN = 5, + ETERNAL_HEART_SOUL = 6, + MOMS_BRA = 7, + MOMS_PAD = 8, + ANARCHIST_COOKBOOK = 9, + BIBLE = 10, + BOOK_OF_REVELATIONS = 11, + DEATH = 12, + ETERNAL_HEART = 13, + HOURGLASS = 14, + SATANIC_BIBLE = 15, + BLACK_HEART = 16, + D4 = 17, + D10 = 18, + FLUSH = 19, + HAGALAZ = 20, + JERA = 21, + EHWAZ = 22, + DAGAZ = 23, + ANSUZ = 24, + PERTHRO = 25, + BERKANO = 26, BERKAND = 26, + ALGIZ = 27, + D100 = 28, + RAINBOW = 29, RAINBOW_POOP = 29, + MISSING_PAGE = 30, + MISSING_PAGE_2 = 31, + SPIDER_BUTT = 32, + SLEEP = 33, + BOOK_OF_BELIAL = 34, BOOK_OF_BEAST = 34, + BETRAYAL = 35, + D8 = 36, + D12 = 37, + SUPER_BUM = 38, + CLICKER = 39, + MAMA_MEGA = 40, + ETERNAL_HEART_EMPTY = 41, + REVERSE_EMPRESS = 42, MORNING_SUN = 42, + REVERSE_THE_SUN = 43, REVERSE_SUN = 43, + SLEEP_NIGHTMARE = 44, DOGMA = 44, + MEGA_MUSH = 45, + ETERNAL_HEART_BLACK = 46, +} + +CompletionType = { + MOMS_HEART = 0, + ISAAC = 1, + SATAN = 2, + BOSS_RUSH = 3, + BLUE_BABY = 4, + LAMB = 5, + MEGA_SATAN = 6, + ULTRA_GREED = 7, + --holds event counter id for greed donations + HUSH = 9, + HARD_MARKS = 10, -- not supported + ULTRA_GREEDIER = 11, + DELIRIUM = 12, + MOTHER = 13, + BEAST = 14, + TAINTED = 15, -- not supported + TAINTED_GROUP1 = 16, -- not supported + TAINTED_GROUP2 = 17, -- not supported +} + +PedestalType = { + DEFAULT = 0, + FORTUNE_TELLING_MACHINE = 1, + BLOOD_DONATION_MACHINE = 2, + SLOT_MACHINE = 3, + GOLDEN_CHEST = 4, + RED_CHEST = 5, + STONE_CHEST = 6, + SPIKED_CHEST = 7, + ETERNAL_CHEST = 8, + MOMS_DRESSING_TABLE = 9, + CHEST = 10, + MOMS_CHEST = 11, + OLD_CHEST = 12, + WOODEN_CHEST = 13, + MEGA_CHEST = 14, + CONFESSIONAL = 15, + GOLDEN_CHEST_COIN_SLOT = 16, + ETERNAL_CHEST_COIN_SLOT = 17, + OLD_CHEST_COIN_SLOT = 18, + MEGA_CHEST_COIN_SLOT = 19, +} + +DebugFlag = { -- bitwise + ENTITY_POSITIONS = 1 << 0, + GRID = 1 << 1, + INFINITE_HP = 1 << 2, + HIGH_DAMAGE = 1 << 3, + ROOM_INFO = 1 << 4, + HITSPHERES = 1 << 5, + DAMAGE_VALUES = 1 << 6, + INFINITE_ITEM_CHARGES = 1 << 7, + HIGH_LUCK = 1 << 8, + QUICK_KILL = 1 << 9, + GRID_INFO = 1 << 10, + PLAYER_ITEM_INFO = 1 << 11, + GRID_COLLISION_POINTS = 1 << 12, + LUA_MEMORY_USAGE = 1 << 13 +} + +DipSubType = { + NORMAL = 0, + RED = 1, + CHUNKY = 2, CORN = 2, + GOLDEN = 3, + RAINBOW = 4, + BLACK = 5, + HOLY = 6, WHITE = 6, + STONE = 12, PETRIFIED = 12, + FLAMING = 13, + STINKY = 14, POISON = 14, + BROWNIE = 20, +} + +PauseMenuStates = { + CLOSED = 0, + OPEN = 1, + OPTIONS = 2, +} + +TaintedMarksGroup = { + BOTH = 0, + SOULSTONE = 1, + POLAROID_NEGATIVE = 2, +} + +BagOfCraftingPickup = { + BOC_NONE = 0, + BOC_RED_HEART = 1, + BOC_SOUL_HEART = 2, + BOC_BLACK_HEART = 3, + BOC_ETERNAL_HEART = 4, + BOC_GOLD_HEART = 5, + BOC_BONE_HEART = 6, + BOC_ROTTEN_HEART = 7, + BOC_PENNY = 8, + BOC_NICKEL = 9, + BOC_DIME = 10, + BOC_LUCKY_PENNY = 11, + BOC_KEY = 12, + BOC_GOLD_KEY = 13, + BOC_CHARGED_KEY = 14, + BOC_BOMB = 15, + BOC_GOLD_BOMB = 16, + BOC_GIGA_BOMB = 17, + BOC_MINI_BATTERY = 18, + BOC_BATTERY = 19, + BOC_MEGA_BATTERY = 20, + BOC_CARD = 21, + BOC_PILL = 22, + BOC_RUNE = 23, + BOC_DICE_SHARD = 24, + BOC_CRACKED_KEY = 25, + BOC_GOLD_PENNY = 26, + BOC_GOLD_PILL = 27, + BOC_GOLD_BATTERY = 28, + BOC_POOP = 29, +} + +WeaponModifier = { --bitwise + CHOCOLATE_MILK = 1 << 0, + CURSED_EYE = 1 << 1, + BRIMSTONE = 1 << 2, + MONSTROS_LUNG = 1 << 3, + LUDOVICO_TECHNIQUE = 1 << 4, + ANTI_GRAVITY = 1 << 5, + TRACTOR_BEAM = 1 << 6, + SOY_MILK = 1 << 7, ALMOND_MILK = 1 << 7, + NEPTUNUS = 1 << 8, + AZAZELS_SNEEZE = 1 << 9, + C_SECTION = 1 << 11, + FAMILIAR = 1 << 30, + BONE = 1 << 31, +} + +ImGuiElement = { + Window = 0, + Menu = 1, + MenuItem = 2, + Popup = 3, + CollapsingHeader = 4, + TreeNode = 5, + Separator = 6, + SeparatorText = 7, + Text = 8, + TextWrapped = 9, + BulletText = 10, + SameLine = 11, -- used to render the next element in the same line + Button = 12, + SmallButton = 13, + InputInt = 14, + InputFloat = 15, + DragInt = 16, + DragFloat = 17, + SliderInt = 18, + SliderFloat = 19, + ColorEdit = 20, + TabBar = 21, + Tab = 22, + Checkbox = 23, + RadioButton = 24, + Combobox = 25, + InputText = 26, + InputTextWithHint = 27, + InputTextMultiline = 28, + InputController = 29, + InputKeyboard = 30, + PlotLines = 31, + PlotHistogram = 32, +} + +ImGuiCallback = { + Clicked = 0, + Hovered = 1, + Active = 2, + Focused = 3, + Visible = 4, + Edited = 5, + Activated = 6, + Deactivated = 7, + DeactivatedAfterEdit = 8, + ToggledOpen = 9, + Render = 10 -- Gets executed before an object gets rendered +} + +ImGuiData = { + Label = 0, -- descriptive text of an element + Value = 1, -- Used for single value Elements like Text- or Integer-Inputs, Checkboxes, or the currently selected Radiobutton + ListValues = 2, -- Used for elements that use a table as their data source like RadioButtons, Comboboxes, Plots, etc. + Min = 3, -- min value of a slider input + Max = 4, -- max value of a slider input + HintText = 5, -- hint text of a text input, or overlay texts used in plots or progressbars + ColorValues = 6, -- Color input. 3 values = RGB, 4 values = RGBA +} + +ImGuiColor = { + Text = 0, + TextDisabled = 1, + WindowBg = 2, -- Background of normal windows + ChildBg = 3, -- Background of child windows + PopupBg = 4, -- Background of popups, menus, tooltips windows + Border = 5, + BorderShadow = 6, + FrameBg = 7, -- Background of checkbox, radio button, plot, slider, text input + FrameBgHovered = 8, + FrameBgActive = 9, + TitleBg = 10, + TitleBgActive = 11, + TitleBgCollapsed = 12, + MenuBarBg = 13, + ScrollbarBg = 14, + ScrollbarGrab = 15, + ScrollbarGrabHovered = 16, + ScrollbarGrabActive = 17, + CheckMark = 18, + SliderGrab = 19, + SliderGrabActive = 20, + Button = 21, + ButtonHovered = 22, + ButtonActive = 23, + Header = 24, -- Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem + HeaderHovered = 25, + HeaderActive = 26, + Separator = 27, + SeparatorHovered = 28, + SeparatorActive = 29, + ResizeGrip = 30, -- Resize grip in lower-right and lower-left corners of windows. + ResizeGripHovered = 31, + ResizeGripActive = 32, + Tab = 33, -- TabItem in a TabBar + TabHovered = 34, + TabActive = 35, + TabUnfocused = 36, + TabUnfocusedActive = 37, + PlotLines = 38, + PlotLinesHovered = 39, + PlotHistogram = 40, + PlotHistogramHovered = 41, + TableHeaderBg = 42, -- Table header background + TableBorderStrong = 43, -- Table outer and header borders (prefer using Alpha=1.0 here) + TableBorderLight = 44, -- Table inner borders (prefer using Alpha=1.0 here) + TableRowBg = 45, -- Table row background (even rows) + TableRowBgAlt = 46, -- Table row background (odd rows) + TextSelectedBg = 47, + DragDropTarget = 48, -- Rectangle highlighting a drop target + NavHighlight = 49, -- Gamepad/keyboard: current highlighted item + NavWindowingHighlight = 50, -- Highlight window when using CTRL+TAB + NavWindowingDimBg = 51, -- Darken/colorize entire screen behind the CTRL+TAB window list, when active + ModalWindowDimBg = 52, -- Darken/colorize entire screen behind a modal window, when one is active +} + +ImGuiWindowFlags = { + None = 0, + NoTitleBar = 1 << 0, -- Disable title-bar + NoResize = 1 << 1, -- Disable user resizing with the lower-right grip + NoMove = 1 << 2, -- Disable user moving the window + NoScrollbar = 1 << 3, -- Disable scrollbars (window can still scroll with mouse or programmatically) + NoScrollWithMouse = 1 << 4, -- Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set. + NoCollapse = 1 << 5, -- Disable user collapsing window by double-clicking on it. Also referred to as Window Menu Button (e.g. within a docking node). + AlwaysAutoResize = 1 << 6, -- Resize every window to its content every frame + NoBackground = 1 << 7, -- Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f). + NoSavedSettings = 1 << 8, -- Never load/save settings in .ini file + NoMouseInputs = 1 << 9, -- Disable catching mouse, hovering test with pass through + MenuBar = 1 << 10, -- Has a menu-bar + HorizontalScrollbar = 1 << 11, -- Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section. + NoFocusOnAppearing = 1 << 12, -- Disable taking focus when transitioning from hidden to visible state + NoBringToFrontOnFocus = 1 << 13, -- Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus) + AlwaysVerticalScrollbar = 1 << 14, -- Always show vertical scrollbar (even if ContentSize.y < Size.y) + AlwaysHorizontalScrollbar = 1 << 15, -- Always show horizontal scrollbar (even if ContentSize.x < Size.x) + NoNavInputs = 1 << 16, -- No gamepad/keyboard navigation within the window + NoNavFocus = 1 << 17, -- No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB) + UnsavedDocument = 1 << 18, -- Display a dot next to the title. When used in a tab/docking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed + NoDocking = 1 << 19, -- Disable docking of this window + + NoNav = (1 << 16) | (1 << 17), -- ImGuiWindowFlags.NoNavInputs | ImGuiWindowFlags.NoNavFocus + NoDecoration = (1 << 0) | (1 << 1) | (1 << 3) | (1 << 5), -- ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoCollapse + NoInputs = (1 << 9) | (1 << 16) | (1 << 17), -- ImGuiWindowFlags.NoMouseInputs | ImGuiWindowFlags.NoNavInputs | ImGuiWindowFlags.NoNavFocus +} + +ImGuiChildFlags = { + None = 0, + Border = 1 << 0, -- Show an outer border and enable WindowPadding. (IMPORTANT: this is always == 1 == true for legacy reason) + AlwaysUseWindowPadding = 1 << 1, -- Pad with style.WindowPadding even if no border are drawn (no padding by default for non-bordered child windows because it makes more sense) + ResizeX = 1 << 2, -- Allow resize from right border (layout direction). Enable .ini saving (unless ImGuiWindowFlags_NoSavedSettings passed to window flags) + ResizeY = 1 << 3, -- Allow resize from bottom border (layout direction). + AutoResizeX = 1 << 4, -- Enable auto-resizing width. Read "IMPORTANT: Size measurement" details above. + AutoResizeY = 1 << 5, -- Enable auto-resizing height. Read "IMPORTANT: Size measurement" details above. + AlwaysAutoResize = 1 << 6, -- Combined with AutoResizeX/AutoResizeY. Always measure size even when child is hidden, always return true, always disable clipping optimization! NOT RECOMMENDED. + FrameStyle = 1 << 7, -- Style the child window like a framed item: use FrameBg, FrameRounding, FrameBorderSize, FramePadding instead of ChildBg, ChildRounding, ChildBorderSize, WindowPadding. +} + +PocketItemType = { + PILL = 0, + CARD = 1, + ACTIVE_ITEM = 2, +} + +ItemAnim = { + CHARGE = 0, + CHARGE_FULL = 1, + SHOOT = 2, + SHOOT_ALT = 3, +} + +XMLNode = { + MOD = 0, + ENTITY = 1, + PLAYER = 2, + ITEM = 3, + TRINKET = 4, + PILL = 5, + CARD = 6, + MUSIC = 7, + SOUND = 8, + CHALLENGE = 9, + ITEMPOOL = 10, + NIGHTMARE = 11, + COSTUME = 12, + NULLCOSTUME = 13, + WISP = 14, + WISPCOLOR = 15, + CURSE = 16, + LOCUST = 17, + LOCUSTCOLOR = 18, + BOMBCOSTUME = 19, + CRAFTINGRECIPE = 20, + BOSSPOOL = 21, + BOSSPORTRAIT = 22, + CUTSCENE = 23, + STAGE = 24, + BACKDROP = 25, + ACHIEVEMENT = 26, + GIANTBOOK = 27, + BOSSRUSHWAVE = 28, + PLAYERFORM = 29, + NULLITEM = 30, + BOSSCOLOR = 31, + FXLAYER = 32, + FXPARAM = 33, + FXRAY = 34, + BABY = 35, +} + +AutocompleteType = { + NONE = 0, + ENTITY = 1, + GOTO = 2, + STAGE = 3, + GRID = 4, + DEBUG_FLAG = 5, + ITEM = 6, + CHALLENGE = 7, + COMBO = 8, + CUTSCENE = 9, + MACRO = 10, + SFX = 11, + CURSE = 12, + METRO = 13, + DELIRIOUS = 14, + PLAYER = 15, + ACHIEVEMENT = 16, + MODFOLDER = 17, + CUSTOM = 18, + EFFECT = 19, +} + +AnimRenderFlags = { -- bitwise + GLITCH = 1 << 1, + COLOROFFSET_CHAMPION = 1 << 4, + STATIC = 1 << 5, + IGNORE_GAME_TIME = 1 << 6, + GOLDEN = 1 << 7, + ENABLE_LAYER_LIGHTING = 1 << 10, + ENABLE_NULL_LAYER_LIGHTING = 1 << 11 +} + +DialogButtons = { + OK = 0, + OK_CANCEL = 1, + ABORT_RETRY_IGNORE = 2, + YES_NO_CANCEL = 3, + YES_NO = 4, + RETRY_CANCEL = 5, + CANCEL_TRY_CONTINUE = 6, + HELP = 0x4000 +} + +DialogIcons = { + ERROR = 0x10, + HAND = 0x10, + STOP = 0x10, + QUESTION = 0x20, + EXCLAMATION = 0x30, + WARNING = 0x30, + ASTERISK = 0x40, + INFORMATION = 0x40 +} + +DialogReturn = { + OK = 1, + CANCEL = 2, + ABORT = 3, + RETRY = 4, + IGNORE = 5, + YES = 6, + NO = 7, + TRY_AGAIN = 10, + CONTINUE = 11 +} + +ProceduralEffectConditionType = { + ACTIVE = 0, + TEAR_FIRE = 1, + ENEMY_HIT = 2, + ENEMY_KILL = 3, + DAMAGE_TAKEN = 4, + ROOM_CLEAR = 5, + ENTITY_SPAWN = 6, + PICKUP_COLLECTED = 7, + CHAIN = 8, -- trigger if previous `ProceduralEffect` is triggered (or dropped by rate). +} + +ProceduralEffectActionType = { + USE_ACTIVE_ITEM = 0, + ADD_TEMPRORY_EFFECT = 1, + CONVERT_ENTITIES = 2, + AREA_DAMAGE = 3, + SPAWN_ENTITY = 4, + FART = 5, +} + +EntityTag = { -- bitwise + FLY = 1 << 0, + SPIDER = 1 << 1, + --unused? + GHOST = 1 << 3, + NOREROLL = 1 << 4, + CANSACRIFICE = 1 << 5, + EXPLOSIVE_SOUL = 1 << 6, + HOMING_SOUL = 1 << 7, + BRIMSTONE_SOUL = 1 << 8, + NODELIRIUM = 1 << 9, +} + +GibFlag = { -- bitwise + BLOOD = 1 << 0, + BONE = 1 << 1, + GUT = 1 << 2, + EYE = 1 << 3, + LARGE = 1 << 4, + POOP = 1 << 5, + WORM = 1 << 6, + ROCK = 1 << 7, + ROCK_SMALL = 1 << 8, + SOUND_BABY = 1 << 9, + SOUND_BONE = 1 << 10, + CHAIN = 1 << 11, + DUST = 1 << 12, + HUGE = 1 << 13, +} + +BombCostumeLayer = { + BACK = 0, + BODY2 = 1, + FRONT = 2, + FRONT2 = 3, + OVERLAY = 4, +} + +PurityState = { + --- Default value if no Purity item is owned. + RED = 0, + BLUE = 1, + YELLOW = 2, + ORANGE = 3, +} + +ImGuiNotificationType = { + INFO = 0, + SUCCESS = 1, + WARNING = 2, + ERROR = 3, +} + +SpecialQuest = { + DISABLED = -1, + DEFAULT = 0, + MIRROR = 1, + MINESHAFT = 2, +} + +BlendFactor = { + ZERO = 0, + ONE = 1, + SRC_COLOR = 2, + ONE_MINUS_SRC_COLOR = 3, + DST_COLOR = 4, + ONE_MINUS_DST_COLOR = 5, + SRC_ALPHA = 6, + ONE_MINUS_SRC_ALPHA = 7, + DST_ALPHA = 8, + ONE_MINUS_DST_ALPHA = 9, + -- the following are currently not supported + CONSTANT_COLOR = 10, + ONE_MINUS_CONSTANT_COLOR = 11, + CONSTANT_ALPHA = 12, + ONE_MINUS_CONSTANT_ALPHA = 13, + SRC_ALPHA_SATURATE = 14, +} + +BlendEquation = { + FUNC_ADD = 0, + FUNC_SUBTRACT = 1, + FUNC_REVERSE_SUBTRACT = 2, + MIN = 3, + MAX = 4, +} + +BlendType = { + CONSTANT = 0, + NORMAL = 1, + ADDITIVE = 2, + MULTIPLICATIVE = 3, + OVERLAY = 4, +} + +MinimapState = { + NORMAL = 0, + EXPANDED = 1, + EXPANDED_OPAQUE = 2 +} + +DwmWindowAttribute = { + DWMWA_NCRENDERING_ENABLED=1, + DWMWA_NCRENDERING_POLICY=2, + DWMWA_TRANSITIONS_FORCEDISABLED=3, + DWMWA_ALLOW_NCPAINT=4, + DWMWA_CAPTION_BUTTON_BOUNDS=5, + DWMWA_NONCLIENT_RTL_LAYOUT=6, + DWMWA_FORCE_ICONIC_REPRESENTATION=7, + DWMWA_FLIP3D_POLICY=8, + DWMWA_EXTENDED_FRAME_BOUNDS=9, + DWMWA_HAS_ICONIC_BITMAP=10, + DWMWA_DISALLOW_PEEK=11, + DWMWA_EXCLUDED_FROM_PEEK=12, + DWMWA_CLOAK=13, --blocked + DWMWA_CLOAKED=14, --blocked + DWMWA_FREEZE_REPRESENTATION=15, + DWMWA_PASSIVE_UPDATE_MODE=16, + DWMWA_USE_HOSTBACKDROPBRUSH=17, + DWMWA_USE_IMMERSIVE_DARK_MODE = 20, + DWMWA_WINDOW_CORNER_PREFERENCE = 33, + DWMWA_BORDER_COLOR=34, + DWMWA_CAPTION_COLOR=35, + DWMWA_TEXT_COLOR=36, + DWMWA_VISIBLE_FRAME_BORDER_THICKNESS=37, + DWMWA_SYSTEMBACKDROP_TYPE=38, + DWMWA_LAST=39 +} + +ConceptionFamiliarFlag = { -- bitwise + LEECH = 1 << 0, + DARK_BUM = 1 << 1, + DEMON_BABY = 1 << 2, + INCUBUS = 1 << 3, + LIL_BRIMSTONE = 1 << 4, + SUCCUBUS = 1 << 5, + GUARDIAN_ANGEL = 1 << 6, + HOLY_WATER = 1 << 7, + RELIC = 1 << 8, + SWORN_PROTECTOR = 1 << 9, + SERAPHIM = 1 << 10, + LIL_ABADDON = 1 << 11, + TWISTED_PAIR = 1 << 12, +} + +StatusEffect = { + BAITED = 0, + BLEEDING = 1, + BRIMSTONE_MARK = 2, + BURN = 3, + CHARMED = 4, + CONFUSION = 5, + FEAR = 6, + FREEZE = 7, + ICE = 8, + KNOCKBACK = 9, + MAGNETIZED = 10, + MIDAS_FREEZE = 11, + POISON = 12, + SHRINK = 13, + SLOWING = 14, + WEAKNESS = 15, +} + +CharacterMenuStatus = { + DEFAULT = 0, + SEED = 1, + RANDOM_SELECTION = 2, + RANDOM_CHARACTER_SELECTION = 2, + FADEOUT = 3, + CHARACTER_PAPER_SWAP = 4, +} + +DoorMask = { + LEFT0 = 1 << DoorSlot.LEFT0, + UP0 = 1 << DoorSlot.UP0, + RIGHT0 = 1 << DoorSlot.RIGHT0, + DOWN0 = 1 << DoorSlot.DOWN0, + LEFT1 = 1 << DoorSlot.LEFT1, + UP1 = 1 << DoorSlot.UP1, + RIGHT1 = 1 << DoorSlot.RIGHT1, + DOWN1 = 1 << DoorSlot.DOWN1, +} + +WaterClipFlag = { + --UNKNOWN_UNUSED = 1 << 0, + DISABLE_RENDER_ABOVE_WATER = 1 << 1, -- When set for an Entity, also enables rendering below water + ENABLE_RENDER_BELOW_WATER = 1 << 2, -- Entity only, Allows the "below water" rendering to happen alongside "above water" rendering + DISABLE_RENDER_BELOW_WATER = 1 << 3, -- Takes priority over other flags + --UNKNOWN_UNUSED = 1 << 4, + DISABLE_RENDER_REFLECTION = 1 << 5, -- Entity only, GridEntities don't get reflections + IGNORE_WATER_RENDERING = 1 << 6, -- Entity only, overrides other flags and renders the entity above water only, no reflection + FORCE_WATER_RIPPLE_WHEN_MOVING = 1 << 7, -- Entity only, only "grounded" entities will spawn water ripples without this flag +} + +PlayerHUDLayout = { + NORMAL = 0, + JACOB_AND_ESAU = 1, + COMPACT = 2, -- Used for co-op players, and for P1 if there are >2 players + COMPACT_JACOB_AND_ESAU = 3, -- Used for J&E if they are not P1 or if there are >3 players +} + +RoomEventOutput = { + GROUP_0 = 0, + GROUP_1 = 1, + GROUP_2 = 2, + GROUP_3 = 3, + GROUP_ROOM_CLEAR = 9, +} + +SuplexState = { + INACTIVE = 0, + DASHING = 1, + AIMING = 2, + ASCENDING = 3, + DESCENDING = 4, +} + +CustomCacheTag = { + FAMILIAR_MULTIPLIER = "familiarmultiplier", + MAX_COINS = "maxcoins", + MAX_KEYS = "maxkeys", + MAX_BOMBS = "maxbombs", + TEARS_CAP = "tearscap", + STAT_MULTIPLIER = "statmultiplier", + HEALTH_TYPE = "healthtype", +} + +EvaluateStatStage = { + TEARS_UP = 0, + FLAT_TEARS = 1, + DAMAGE_UP = 2, + FLAT_DAMAGE = 3, + PRE_FLAT_DAMAGE = 4, +} + +StringTableCategory = { + DEFAULT = "Default", + ITEMS = "Items", + CURSES = "Curses", + ENTITIES = "Entities", + MINIBOSSES = "Minibosses", + PLAYERS = "Players", + POCKET_ITEMS = "PocketItems", + STAGES = "Stages", + FORTUNE_GENERAL = "Fortune_General", + FORTUNE_RULES = "Fortune_Rules", + FORTUNE_SEEDS = "Fortune_Seeds", + RUN_STATUS = "RunStatus", + ONLINE = "Online", +} + +SplitTearType = { + GENERIC = 0, + QUAD = 1, -- Cricket's Body + PARASITE = 2, + BONE = 3, + ABSORB = 4, -- Lachryphagy + SPORE = 5, -- Mucormycosis + STICKY = 6, -- Explosivo/Booger/Spore for knives/lasers/ludo + BURST = 7, -- Haemolacria + POP = 8, -- Pop! + Lasers + MULTIDIMENSIONAL = 9, + ANGELIC_PRISM = 10, + SWORD_BEAM = 11, +} + +UseActiveItemResultFlag = { + DISCHARGE = 1 << 0, + REMOVE = 1 << 8, +} + +SlotState = { + IDLE = 1, + CHOICE = 2, -- Shell Game & Hell Game only, choose a skull + REWARD = 2, + DESTROYED = 3, + PAYOUT = 4, + REWARD_SHELL_GAME = 5, + REWARD_HELL_GAME = 5, +} + +BloodClotSubtype = { + RED = 0, + SOUL = 1, + BLACK = 2, + ETERNAL = 3, + GOLD = 4, + BONE = 5, + ROTTEN = 6, + LIL_CLOT = 7, +} + +RoomDisplayFlags = { + INVISIBLE = 1 << -1, + VISIBLE = 1 << 0, + SHOW_LOCK = 1 << 1, + SHOW_ICON = 1 << 2, +} + +PillEffectSubClass = { + NEUTRAL = 0, + POSITIVE = 1, GOOD = 1, + NEGATIVE = 2, BAD = 2, +} + +CompletionStatus = { + NOT_DONE = 0, NONE = 0, + NORMAL = 1, + HARD = 2, +} + +ChargeType = { + NORMAL = 0, + TIMED = 1, + SPECIAL = 2, +} + +EnemyTargetFlags = { + CAN_CHANGE_TARGET = 1 << 0, -- Allow switching to a better target even if we already have one + AVOID_CLOSE_ENEMIES = 1 << 1, -- Don't prioritize enemies close to our owner + PRIORITIZE_HIGH_HP = 1 << 2, -- Prioritize enemies with higher HP + PRIORITIZE_LOW_HP = 1 << 3, -- Prioritize enemies with lower HP + DEPRIORITIZE_CURRENT_TARGET = 1 << 4, -- Give lower priority to our current target (makes switching targets more likely) +} + +TrinketSlot = { + PRIMARY = 0, + SECONDARY = 1, + MOMS_PURSE = 1, + BELLY_BUTTON = 1, +} + +AltRockType = { + POT = 1, + MUSHROOM = 2, + SKULL = 3, + POLYP = 4, + BUCKET = 5, +} + +--deprecated enums + +Achievement.REVERSED_THE_HEIROPHANT = 529 +Achievement.RESERVED_HEIROPHANT = 529 +Achievement.HAEMOLACHRIA = Achievement.HAEMOLACRIA +Achievement.CROOKED_CARD = Achievement.CROOKED_PENNY +MainMenuType.SEED = MainMenuType.ONLINELOBBY +EventCounter.UNKNOWN_EVENT_499 = EventCounter.ONLINE_NEGATIVE_STREAK +GridRooms.ROOM_DEATHMATCH = GridRooms.ROOM_DEATHMATCH_IDX +GridRooms.ROOM_LIL_PORTAL = GridRooms.ROOM_LIL_PORTAL_IDX diff --git a/assets/repentogon/scripts/main_ex.lua b/assets/repentogon/scripts/main_ex.lua new file mode 100644 index 0000000..13c4585 --- /dev/null +++ b/assets/repentogon/scripts/main_ex.lua @@ -0,0 +1,2402 @@ +REPENTOGON = { + ["Real"] = true, + ["Name"] = "REPENTOGON", --I avoid having to do RegisterMod this way, sorry ;P + ["Version"] = "dev build", + ["Extras"] = { ["Misc"]={}, }, -- Tables containing additional REPENTOGON data structures, example: ChangeLog or StatsMenu +} + +pcall(collectgarbage, "generational") -- rebuild: Lua 5.3 has no generational mode + +--- Each module is a { module, loaded } pair +local s_modules = {} + +local debug_getinfo = debug.getinfo + +local function cleanTraceback(level) -- similar to debug.traceback but breaks at xpcall, uses spaces instead of tabs, and doesn't call local functions upvalues + level = level + 1 + local msg = "Stack Traceback:\n" + while true do + local info = debug_getinfo(level, "Sln") + if not info then break end + if info.what == "C" then + if info.name == "xpcall" then break end + msg = msg .. " in method " .. tostring(info.name) .. "\n" + else + if info.name then + msg = msg .. + " " .. + tostring(info.short_src) .. + ":" .. tostring(info.currentline) .. ": in function '" .. tostring(info.name) .. "'\n" + else + msg = msg .. + " " .. + tostring(info.short_src) .. + ":" .. tostring(info.currentline) .. ": in function at line " .. tostring(info.linedefined) .. "\n" + end + end + + level = level + 1 + end + + return msg +end + +local errorHandler = function(msg) + return msg .. "\n" .. cleanTraceback(2) +end + +---@param modName string +function _GetModule(modName) + local cachedMod = s_modules[modName] + if cachedMod then + if not cachedMod[2] then + error(string.format("[ERROR] [REPENTOGON] module \"%s\" caused a recursive dependency", modName), 0) -- use level 0 to not print a source line + end + + return cachedMod[1] + end + + cachedMod = {nil, false} + s_modules[modName] = cachedMod + local ok, mod = xpcall(include, errorHandler, modName) + if not ok then + s_modules[modName] = nil + error(string.format("[ERROR] [REPENTOGON] Failed to load module \"%s\": %s", modName, mod), 0) -- use level 0 to not print a source line + end + + cachedMod[1] = mod + cachedMod[2] = true + return mod +end + +local RaiseModError = _CBindings.RaiseModError +-- rebuild: the vanilla parity option and whether the REPENTOGON global is exposed +local IsVanillaParity = _CBindings.IsVanillaParity +local IsExposed = _CBindings.IsExposed +local ModManager = _GetModule("repentogon_extras.mod_manager") + +local function MeetsVersion(targetVersion) + if (REPENTOGON.Version == "dev build") then return true end + local version = {} + local target = {} + + for num in REPENTOGON.Version:gmatch("%d+") do + table.insert(version, tonumber(num)) + end + + for num in targetVersion:gmatch("%d+") do + table.insert(target, tonumber(num)) + end + + -- Compare each component of the version strings + for i = 1, math.max(#version, #target) do + local v = version[i] or 0 + local t = target[i] or 0 + + if v < t then + return false + elseif v > t then + return true + end + end + + + local targetsuffix = targetVersion:match("%a+$") + local currsuffix = REPENTOGON.Version:match("%a+$") + + return (not targetsuffix) or (targetsuffix <= currsuffix) +end + +REPENTOGON.MeetsVersion = MeetsVersion + +local callbackIDToName = {} +for k, v in pairs(ModCallbacks) do + callbackIDToName[v] = k +end + +local oldrequire = require + +function require(modname) + local ret = oldrequire(modname) + return ret +end + + +---------------------------------------------------------------------------------------------------- +---------------------------------------------------------------------------------------------------- +---- COLOR STUFF +---------------------------------------------------------------------------------------------------- + + +rawset(getmetatable(Color), "EmberFade", Color(1, 1, 1, 1, 1, 0.514, 0.004)) +Color.EmberFade:SetTint(0, 0, 0, 1.1) + +local function quickRegisterColorPreset(name, R, G, B, A, RO, GO, BO, RC, GC, BC, CA) + rawset(getmetatable(Color), name, Color(R, G, B, A or 1, RO or 0, GO or 0, BO or 0)) + Color[name]:SetColorize(RC or 0, GC or 0, BC or 0, CA or 0) +end + +rawset(getmetatable(Vector), "__type", "Vector") + +local colorPresets = { + TearIpecac = {0.5, 0.9, 0.4}, + TearHoming = {0.4, 0.15, 0.38, 1, 71/255, 0, 116/255}, + TearTar = {0.95, 0.8, 0.6, 1, -150/255, -150/255, -150/255}, + TearSoy = {1.5, 2, 2}, + TearChocolate = {0.33, 0.18, 0.18, 1, 66/255, 40/255, 40/255}, + TearAlmond = {1.8, 1.7, 1}, + TearScorpio = {50/255, 1, 50/255}, + TearSerpentsKiss = {0.5, 0.97, 0.5}, + TearCommonCold = {0.4, 0.97, 0.5}, + TearCoal = {0.2, 0.09, 0.065}, + TearNumberOne = {1, 1, 0, 1, 45/255, 15/255, 0}, + + ProjectileIpecac = {1, 1, 1, 1, 0, 0, 0, 0.4, 2, 0.5, 1}, + ProjectileHoming = {1, 1, 1, 1, 0.26, 0.05, 0.4, 0.8, 0.15, 1, 1}, + ProjectileTar = {1, 1, 1, 1, 0, 0, 0, 0.5, 0.5, 0.5, 1}, + ProjectileSoy = {1, 1, 1, 1, 0.8, 0.7, 0.5, 1, 1, 1, 1}, + ProjectileFireWave = {1, 1, 1, 1, 1, 0.3, 0}, + + ProjectileCageBlue = {1, 1, 1, 1, 0, 0, 0, 0.8, 1, 0.85, 1}, + ProjectileMegaSatanBlack = {1, 1, 1, 1, 0, 0, 0, 0.6, 0.6, 0.6, 1}, + ProjectileMegaSatanWhite = {1, 1, 1, 1, 0, 0, 0, 2, 2, 2, 1}, + ProjectileHushBlue = {1, 1, 1, 1, 0, 0.2, 0.4}, + ProjectileHushYellow = {1, 1, 1, 1, 0.4, 0.2, 0}, + ProjectileHushGreen = {1, 1, 1, 1, 0.2, 0.2, 0}, + + LaserIpecac = {1, 1, 1, 1, 0, 0, 0, 1.8, 3, 1, 1}, + LaserHoming = {1, 1, 1, 1, 0, 0, 0, 3, 1, 3.5, 1}, + LaserSoy = {1, 1, 1, 1, 0, 0, 0, 5.6, 5, 4.2, 1}, + LaserChocolate = {1, 1, 1, 1, 0, 0, 0, 3, 1.7, 1.7, 1}, + LaserAlmond = {1, 1, 1, 1, 0, 0, 0, 5.6, 5.2, 3.8, 1}, + LaserPoison = {1, 1, 1, 1, 0, 0, 0, 1.8, 4, 1, 1}, + LaserCoal = {3, 3, 3, 1, -0.5, -0.5, -0.5, 1.3, 1.2, 1.2, 1}, + LaserFireMind = {1, 1, 1, 1, 0, 0, 0, 5, 3, 1, 1}, + LaserNumberOne = {1, 1, 1, 1, 0, 0, 0, 5, 4.9, 1, 1}, + LaserMother = {1, 1, 1, 1, 0, 0, 0, 2, 2.2, 1, 1}, + + ProjectileCorpsePink = {1, 1, 1, 1, 0, 0, 0, 4, 3.5, 3.2, 1}, + ProjectileCorpseWhite = {1, 1, 1, 1, 0, 0, 0, 2.7, 3, 2, 1}, + ProjectileCorpseGreen = {1, 1, 1, 1, 0, 0, 0, 1.5, 2, 1, 1}, + ProjectileCorpseYellow = {1, 1, 1, 1, 0, 0, 0, 3.5, 2.5, 1, 1}, + ProjectileCorpseClusterLight = {4, 4, 4, 1, 0, 0, 0, 0.63, 0.85, 0.32, 1}, + ProjectileCorpseClusterDark = {1, 1, 1, 1, 0, 0, 0, 0.63, 0.85, 0.32, 1}, +} + +for colorName, colorData in pairs(colorPresets) do + quickRegisterColorPreset(colorName, table.unpack(colorData)) +end + + +---------------------------------------------------------------------------------------------------- +---------------------------------------------------------------------------------------------------- +---- TYPE CHECKING UTILITIES +---------------------------------------------------------------------------------------------------- + + +-- I hate Luabridge, we can't have nice things. +local function GetMetatableType(ret) + -- TODO directly pcall in here? + + -- Vector will CRASH THE GAME through a pcall if we try getting __name or __type from it, and getmetatable doesn't work on it. + -- We have no choice but to check manually. + if ret.X and ret.Y then + return "Vector" + else + -- Directly trying __name or __type, too, will crash the game on occasion, even through a pcall. + -- Absolute masterclass of an API here. Best in show, really. + return getmetatable(ret).__name or getmetatable(ret).__type + end +end + +local function checkMetatable(mtType) + return function(val) + if GetMetatableType(val) ~= mtType then + return "bad return type (" .. mtType .. " expected, got " .. GetMetatableType(val).__type .. ")" + end + end +end + + +local function checkInteger(val) + if math.type(val) ~= "integer" then + return "bad return type (number has no integer representation)" + end +end + +local function checkNumberGreaterThanFunction(minimum) + return function(val) + if val <= minimum then + return "bad return value (number must be > " .. minimum .. ")" + end + end +end + +local function checkNumberGreaterOrEqualFunction(minimum) + return function(val) + if val < minimum then + return "bad return value (number must be >= " .. minimum .. ")" + end + end +end + +local function checkTableSizeFunction(size) + return function(val) + local tablesize = 0 + for i, tabletype in pairs(val) do + tablesize = tablesize + 1 + end + + if tablesize > size then + + return "bad return table length (" .. tostring(size) .. " expected, got " .. tostring(tablesize) .. ")" + end + end +end + +local function checkTableIndexes(typestrings) + return function(tbl) + for i, param in pairs(tbl) do + if not typestrings[i] then + return "return table has unexpected key `" .. tostring(i) .. "` with value type " .. type(param) + end + end + end +end + +local function checkTableSizeFunctionUpTo(size) + return function(val) + local tablesize = 0 + for i, tabletype in pairs(val) do + tablesize = tablesize + 1 + end + + if tablesize > size then + return "bad return table length (up to " .. tostring(size) .. " expected, got " .. tostring(tablesize) .. ")" + end + end +end + +local function checkTableSizeFunctionMinimum(size) + return function(val) + local tablesize = 0 + for i, tabletype in pairs(val) do + tablesize = tablesize + 1 + end + + if tablesize < size then + return "bad return table length (minimum " .. tostring(size) .. " expected, got " .. tostring(tablesize) .. ")" + end + end +end + +local function checkTableTypeFunction(typestrings) + return function(tbl) + local tablesize = 0 + for i, tabletype in pairs(tbl) do + tablesize = tablesize + 1 + end + + for i, param in pairs(tbl) do + if typestrings[i] then --no point in doing any of this if the thing doesnt even fucking exist + local paramType = type(param) + + if paramType == "number" and math.type(param) == "integer" then + paramType = "integer" + end + + if paramType == "userdata" then + paramType = GetMetatableType(param) + end + + if paramType ~= typestrings[i] and not (paramType == "integer" and typestrings[i] == "number") then + return "bad return type for table value with key `" .. + tostring(i) .. "` (" .. typestrings[i] .. " expected, got " .. paramType .. ")" + end + end + end + end +end + + +local function backEnum(enum, id) + for k, v in pairs(enum) do + if v == id then + return k + end + end +end + +local typecheckFunctions = { + [ModCallbacks.MC_PRE_ADD_COLLECTIBLE] = { + ["table"] = checkTableTypeFunction({ "integer", "integer", "boolean", "integer", "integer" }), + ["number"] = checkInteger, + ["boolean"] = true, + }, + [ModCallbacks.MC_PRE_SFX_PLAY] = { + ["table"] = checkTableTypeFunction({ "integer", "number", "integer", "boolean", "number", "number" }), + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_ROOM_ENTITY_SPAWN] = { + ["table"] = checkTableTypeFunction({ "integer", "integer", "integer" }) + }, + [ModCallbacks.MC_USE_ITEM] = { + ["table"] = true, + ["boolean"] = true, + }, + [ModCallbacks.MC_GET_SHADER_PARAMS] = { + ["table"] = true + }, + [ModCallbacks.MC_PRE_MUSIC_PLAY] = { + ["table"] = checkTableTypeFunction({ "integer", "number", "boolean" }), + ["boolean"] = true, + ["number"] = checkInteger + }, + [ModCallbacks.MC_PRE_RENDER_PLAYER_HEAD] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_RENDER_PLAYER_BODY] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_ENTITY_THROW] = { + ["Vector"] = true + }, + [ModCallbacks.MC_PRE_CHANGE_ROOM] = { + ["table"] = checkTableTypeFunction({ "integer", "integer" }), + }, + [ModCallbacks.MC_PRE_PICKUP_MORPH] = { + ["table"] = checkTableTypeFunction({ "integer", "integer", "integer", "boolean", "boolean", "boolean" }), + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_NPC_MORPH] = { + ["table"] = checkTableTypeFunction({ "integer", "integer", "integer", "integer" }), + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_FAMILIAR_RENDER] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_NPC_RENDER] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_PLAYER_RENDER] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_PICKUP_RENDER] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_TEAR_RENDER] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_PROJECTILE_RENDER] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_KNIFE_RENDER] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_EFFECT_RENDER] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_BOMB_RENDER] = { + ["Vector"] = true, + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_SLOT_RENDER] = { + ["Vector"] = true, + ["boolean"] = true + }, +--[[ + // This seems to be eating the callback entirely + [ModCallbacks.MC_PRE_GRID_ENTITY_SPAWN] = { + ["boolean"] = true, + ["GridEntityDesc"] = true, + ["table"] = checkTableTypeFunction({ "integer", "integer", "integer", "integer" }) + }, +]]-- + [ModCallbacks.MC_PRE_REPLACE_SPRITESHEET] = { + ["table"] = checkTableTypeFunction({ "integer", "string" }) + }, + [ModCallbacks.MC_PRE_PLANETARIUM_APPLY_TREASURE_PENALTY] = { + ["boolean"] = true, + ["number"] = checkInteger + }, + [ModCallbacks.MC_PRE_PLANETARIUM_APPLY_ITEMS] = { + ["number"] = true, + }, + [ModCallbacks.MC_PRE_PLANETARIUM_APPLY_TELESCOPE_LENS] = { + ["number"] = true, + }, + [ModCallbacks.MC_POST_PLANETARIUM_CALCULATE] = { + ["number"] = true, + }, + [ModCallbacks.MC_PRE_DEVIL_APPLY_ITEMS] = { + ["number"] = true, + }, + [ModCallbacks.MC_PRE_DEVIL_APPLY_SPECIAL_ITEMS] = { + ["number"] = true, + }, + [ModCallbacks.MC_POST_DEVIL_CALCULATE] = { + ["number"] = true, + }, + [ModCallbacks.MC_PRE_ITEM_OVERLAY_SHOW] = { + ["boolean"] = true, + ["number"] = checkInteger + }, + [ModCallbacks.MC_PRE_GET_LIGHTING_ALPHA] = { + ["number"] = true, + }, + [ModCallbacks.MC_PRE_PLAYER_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableTypeFunction({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_TEAR_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableTypeFunction({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_FAMILIAR_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableTypeFunction({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_BOMB_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableTypeFunction({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_PICKUP_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableTypeFunction({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_SLOT_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableTypeFunction({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_KNIFE_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableTypeFunction({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_PROJECTILE_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableTypeFunction({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_NPC_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableTypeFunction({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_ENTITY_TAKE_DMG] = { + ["boolean"] = true, + ["table"] = checkTableTypeFunction({ Damage="number", DamageFlags="integer", DamageCountdown="number" }), + }, + [ModCallbacks.MC_PRE_PLAYER_ADD_CARD] = { + ["boolean"] = true, + ["number"] = checkInteger, + }, + [ModCallbacks.MC_PRE_PLAYER_ADD_PILL] = { + ["boolean"] = true, + ["number"] = checkInteger, + }, + [ModCallbacks.MC_CONSOLE_AUTOCOMPLETE] = { + ["table"] = true, + }, + [ModCallbacks.MC_PRE_STATUS_EFFECT_APPLY] = { + ["number"] = checkInteger, + ["boolean"] = true, + ["table"] = checkTableSizeFunctionUpTo(4), -- per-status type checking done manually + }, + [ModCallbacks.MC_PRE_GRID_HURT] = { + ["number"] = checkInteger, + ["boolean"] = true, + }, + [ModCallbacks.MC_PRE_LEVEL_PLACE_ROOM] = { + ["Room"] = true, + }, + [ModCallbacks.MC_PRE_SELECT_AMBUSH_WAVE] = { + ["Room"] = true, + }, + [ModCallbacks.MC_PRE_SELECT_GREED_WAVE] = { + ["Room"] = true, + }, + [ModCallbacks.MC_SHOULD_SAVE_ENTITY] = { + ["boolean"] = true, + } +} + +local typecheckWarnFunctions = { + [ModCallbacks.MC_INPUT_ACTION] = { + ["number"] = function(ret, retType, entity, hook) + if hook ~= InputHook.GET_ACTION_VALUE then + return "bad return type for hook " .. backEnum(InputHook, hook) .. " (boolean expected, got number)" + elseif ret < -1 or ret > 1 then + return "bad return value for hook GET_ACTION_VALUE (number must be within range -1 to 1)" + end + end, + ["boolean"] = function(ret, retType, entity, hook) + if hook == InputHook.GET_ACTION_VALUE then + return "bad return type for hook GET_ACTION_VALUE (number expected, got boolean)" + end + end + }, + [ModCallbacks.MC_EXECUTE_CMD] = { -- returning any value causes the game to crash... but strings seem to work? docs aren't clear + ["string"] = true + }, + [ModCallbacks.MC_PRE_ENTITY_SPAWN] = { + ["table"] = checkTableSizeFunction(4) + }, + [ModCallbacks.MC_POST_PICKUP_SELECTION] = { + ["table"] = checkTableTypeFunction({ "integer", "integer", "boolean"}) + }, + [ModCallbacks.MC_PRE_ADD_COLLECTIBLE] = { + ["table"] = checkTableSizeFunctionUpTo(5), --{ "integer", "integer", "boolean", "integer", "integer" }), + ["number"] = checkInteger, + ["boolean"] = true, + }, + [ModCallbacks.MC_PRE_SFX_PLAY] = { + ["table"] = checkTableSizeFunctionUpTo(6), --{ "integer", "number", "integer", "boolean", "number", "number" }), + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_ROOM_ENTITY_SPAWN] = { + ["table"] = checkTableSizeFunctionUpTo(3), --{ "integer", "integer", "integer" }) + }, + [ModCallbacks.MC_PRE_MUSIC_PLAY] = { + ["table"] = checkTableSizeFunctionUpTo(3), --{ "integer", "number", "boolean" }), + ["boolean"] = true, + ["number"] = checkInteger, + }, + [ModCallbacks.MC_PRE_CHANGE_ROOM] = { + ["table"] = checkTableSizeFunctionUpTo(2), --{ "integer", "integer" }), + }, + [ModCallbacks.MC_PRE_PICKUP_MORPH] = { + ["table"] = checkTableSizeFunctionUpTo(6), --{ "integer", "integer", "integer", "integer", "integer", "integer" }), + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_NPC_MORPH] = { + ["table"] = checkTableSizeFunctionUpTo(6), --{ "integer", "integer", "integer", "integer", "integer", "integer" }), + ["boolean"] = true + }, + [ModCallbacks.MC_PRE_REPLACE_SPRITESHEET] = { + ["table"] = checkTableSizeFunctionUpTo(2) --{ "integer", "string" }) + }, + [ModCallbacks.MC_PRE_PLAYER_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_TEAR_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_FAMILIAR_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_BOMB_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_PICKUP_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_SLOT_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_KNIFE_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_PROJECTILE_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_PRE_NPC_COLLISION] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Collide="boolean", SkipCollisionEffects="boolean" }), + }, + [ModCallbacks.MC_ENTITY_TAKE_DMG] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Damage="number", DamageFlags="integer", DamageCountdown="number" }), + }, + [ModCallbacks.MC_USE_ITEM] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Discharge = "boolean", Remove = "boolean", ShowAnim = "boolean", }), + }, + [ModCallbacks.MC_PRE_PLAYER_ADD_CARD] = { + ["boolean"] = true, + ["number"] = checkNumberGreaterThanFunction(0), + }, + [ModCallbacks.MC_PRE_PLAYER_ADD_PILL] = { + ["boolean"] = true, + ["number"] = checkNumberGreaterThanFunction(0), + }, + [ModCallbacks.MC_PLAYER_GET_ACTIVE_MAX_CHARGE] = { + ["number"] = checkNumberGreaterOrEqualFunction(0), + }, + [ModCallbacks.MC_PLAYER_GET_ACTIVE_MIN_USABLE_CHARGE] = { + ["number"] = checkNumberGreaterOrEqualFunction(0), + }, + [ModCallbacks.MC_PRE_USE_ITEM] = { + ["boolean"] = true, + ["table"] = checkTableIndexes({ Discharge="boolean" }), + }, +} + +local boolCallbacks = { + ModCallbacks.MC_PRE_LASER_COLLISION, + ModCallbacks.MC_PRE_NPC_UPDATE, + ModCallbacks.MC_PRE_ENTITY_DEVOLVE, + ModCallbacks.MC_PRE_SPAWN_CLEAN_AWARD, + ModCallbacks.MC_PRE_TRIGGER_PLAYER_DEATH, + ModCallbacks.MC_TRIGGER_PLAYER_DEATH_POST_CHECK_REVIVES, + ModCallbacks.MC_PRE_USE_CARD, + ModCallbacks.MC_PRE_USE_PILL, + ModCallbacks.MC_PRE_PLAYER_TRIGGER_ROOM_CLEAR, + ModCallbacks.MC_PRE_PLANETARIUM_APPLY_STAGE_PENALTY, + ModCallbacks.MC_PRE_PLANETARIUM_APPLY_PLANETARIUM_PENALTY, + ModCallbacks.MC_PRE_SLOT_CREATE_EXPLOSION_DROPS, + ModCallbacks.MC_PRE_DEVIL_APPLY_STAGE_PENALTY, + ModCallbacks.MC_PRE_MEGA_SATAN_ENDING, + ModCallbacks.MC_PRE_PLAYER_USE_BOMB, + ModCallbacks.MC_PRE_PLAYER_TAKE_DMG, + ModCallbacks.MC_PRE_PLAYER_COLLECT_CARD, + ModCallbacks.MC_PRE_PLAYER_COLLECT_PILL, + ModCallbacks.MC_PRE_PLAYER_GIVE_BIRTH_CAMBION, + ModCallbacks.MC_PRE_PLAYER_GIVE_BIRTH_IMMACULATE, + ModCallbacks.MC_PRE_UPDATE, +} + +for _, callback in ipairs(boolCallbacks) do + typecheckFunctions[callback] = { ["boolean"] = true } +end + +local intCallbacks = { + ModCallbacks.MC_POST_CURSE_EVAL, + ModCallbacks.MC_GET_CARD, + ModCallbacks.MC_PRE_GET_COLLECTIBLE, + ModCallbacks.MC_GET_PILL_COLOR, + ModCallbacks.MC_GET_PILL_EFFECT, + ModCallbacks.MC_GET_TRINKET, + ModCallbacks.MC_GET_FOLLOWER_PRIORITY, + ModCallbacks.MC_GET_SHOP_ITEM_PRICE, + ModCallbacks.MC_PLAYER_GET_HEALTH_TYPE, + ModCallbacks.MC_PLAYER_GET_ACTIVE_MAX_CHARGE, + ModCallbacks.MC_PLAYER_GET_ACTIVE_MIN_USABLE_CHARGE, + ModCallbacks.MC_PLAYER_GET_HEART_LIMIT, + ModCallbacks.MC_PRE_SLOT_SET_PRIZE_COLLECTIBLE, +} +for _, callback in ipairs(intCallbacks) do + typecheckFunctions[callback] = { ["number"] = checkInteger } +end + +local function setExpectedTypes(typeTable) + local validTypes = {} + for typ, func in pairs(typeTable) do + validTypes[#validTypes + 1] = typ + end + + table.sort(validTypes) + + local expected = "" + for i, typ in ipairs(validTypes) do + if i ~= #validTypes then + expected = expected .. typ .. ", " + elseif #validTypes == 1 then + expected = expected .. typ + else + expected = expected .. "or " .. typ + end + end + + if expected == "" then + expected = "no return" + end + + typeTable.expectedtypes = expected +end + +for callback, typeTable in pairs(typecheckFunctions) do + setExpectedTypes(typeTable) +end + +for callback, typeTable in pairs(typecheckWarnFunctions) do + setExpectedTypes(typeTable) +end + +rawset(Isaac, "SetCallbackTypeCheck", function(callbackID, tbl, noSetExpected) + typecheckFunctions[callbackID] = tbl + if not noSetExpected then + setExpectedTypes(tbl) + end +end) + +---------------------------------------------------------------------------------------------------- +---------------------------------------------------------------------------------------------------- +---- ERROR LOGGING / DISPLAY +---------------------------------------------------------------------------------------------------- + +-- Whether or not a lua error has been displayed in the ErrorDisplayWindow. +local err_shown = false + +-- Tracks how many times the same error has appeared consecutively. +local err_dupecount = 1 + +-- Tracks printed warnings to avoid them reappearing in the same session. +---@type string[] +local printedWarnings = {} + +-- rebuild: the console prints until REPENTOGON's Console is ported +local Console = Console or { + GetHistory = function() return {} end, + PopHistory = function() end, + PrintError = print, + PrintWarning = print, +} + +local function logWarning(callbackID, modName, warn) + local cbName = callbackIDToName[callbackID] or callbackID + for _, printedWarning in pairs(printedWarnings) do + if warn == printedWarning then return end + end + + table.insert(printedWarnings, warn) + + Console.PrintWarning('"' .. cbName .. '" from "' .. modName .. '" warning: ' .. warn .. "\n(This warning will not reappear until the next Lua reload.)") + Isaac.DebugString('Warning in "' .. cbName .. '" from "' .. modName .. '": ' .. warn .. "(This warning will not reappear until the next Lua reload.)") +end + +local function imGuiError(errortext) + if not ImGui then return end -- rebuild: until ImGui is ported + local windowId = "ErrorDisplayWindow" + if not ImGui.ElementExists("ErrorDisplayMenu") then + ImGui.CreateMenu("ErrorDisplayMenu", "REPENTOGON Error Display") + ImGui.AddElement("ErrorDisplayMenu", "ErrorDisplayMenuEntry", ImGuiElement.MenuItem, "Error Display") + + ImGui.CreateWindow(windowId, "Error Display") + ImGui.LinkWindowToElement(windowId, "ErrorDisplayMenuEntry") + + ImGui.AddText(windowId, "Below is the first error in the chain, which is likely (but not always) the one causing further problems.\nThis is **not** a replacement for a proper log file: it is simply an overview.\nAlways be sure to provide your full log file to mod developers.\n\n", true) + ImGui.AddText(windowId, errortext, true, "ErrorDisplayText") + ImGui.AddElement(windowId, "ErrorDisplayCopyToClipboard", ImGuiElement.Button, "Copy to Clipboard") + ImGui.AddCallback("ErrorDisplayCopyToClipboard", ImGuiCallback.Clicked, function() Isaac.SetClipboard(errortext) end) + else + ImGui.UpdateText("ErrorDisplayText", errortext) + end + ImGui.SetVisible(windowId, true) +end + +local function logError(callbackID, modName, err) + --[[ In order to squash multiple instances of an error into one line, + we want to get the *last* instance of "(x*)" for comparison here, + so we can remove our (x2) (x3) etc. from a comparison. + + Unfortunately, Lua has no support for removing the last instance of a pattern, + but it very much has support for removing the *first* instance of a pattern. + For better or worse, we use a reversed version of both the target log and console history for comparison. + This is likely not the best for performance, but this only runs when there's an error anyways- + all bets are already off the table at that point. + ]] + local ohistory = Console.GetHistory() + local history = {} + + --[[ First, inverse the table, as console history is returned last-to-first. + Next, concatenate the table with \n so we can compare with our tracebacks. + ]] + for i = #ohistory, 1, -1 do + history[#history + 1] = ohistory[i] + end + + history = table.concat(history, "\n"):reverse() + + local cbName = callbackIDToName[callbackID] or tostring(callbackID) + local consoleLog = '"' .. cbName .. '" from "' .. modName .. '" failed: ' .. err + + -- We add a \n to our comparison to account for the parsed history having one. + local historyComparison = (consoleLog .. "\n"):reverse() + + local parsedHistory = history:gsub("%)(%d+)x%(%s", "", 1):sub(1, #historyComparison) + + if parsedHistory == historyComparison then + --[[ Determine how many entries to remove. + Newlines automatically increment the amount of strings we need to remove by 1. + Since we previously concatenated history into a string with newlines, we can count + the amount of newlines, and this will return the amount to pop. + ]] + err_dupecount = err_dupecount + 1 + Console.PopHistory(select(2, string.gsub(parsedHistory, "\n", ""))) + consoleLog = consoleLog .. " (x" .. err_dupecount .. ")" + else + err_dupecount = 1 + end + + Console.PrintError(consoleLog) + Isaac.DebugString('Error in "' .. cbName .. '" call from "' .. modName .. '": ' .. err) -- this should be replaced with a proper log function so it can have the [INFO] header + + if not err_shown then + imGuiError(consoleLog) + RaiseModError(modName) + err_shown = true + end +end + + +---------------------------------------------------------------------------------------------------- +---------------------------------------------------------------------------------------------------- +---- TYPE CHECKING FOR CALLBACK RETURN VALUES +---------------------------------------------------------------------------------------------------- + + +local function typeCheckCallback(callback, callbackID, ret, ...) + local typeCheck = typecheckFunctions[callbackID] + if typeCheck then + local err + local typ = type(ret) + if typ == "userdata" then typ = GetMetatableType(ret) end + + if typeCheck[typ] == true then + elseif typeCheck[typ] then + err = typeCheck[typ](ret, typ, ...) + else + err = "bad return type (" .. + typeCheck.expectedtypes .. " expected, got " .. tostring(typ) .. ")" + end + + if err then + local info = debug_getinfo(callback.Function, "S") + logError(callbackID, callback.Mod.Name, + info.short_src .. ": " .. info.linedefined .. ": " .. err) + return err + end + end + + local typeCheckWarn = typecheckWarnFunctions[callbackID] + if typeCheckWarn then + local warn + local typ = type(ret) + if typeCheckWarn[typ] == true then + elseif typeCheckWarn[typ] then + warn = typeCheckWarn[typ](ret, typ, ...) + else + warn = "bad return type (" .. + typeCheckWarn.expectedtypes .. " expected, got " .. tostring(typ) .. ")" + end + + if warn then + local info = debug_getinfo(callback.Function, "S") + logWarning(callbackID, callback.Mod.Name, + info.short_src .. ": " .. info.linedefined .. ": " .. warn) + end + end +end + + +---------------------------------------------------------------------------------------------------- +---------------------------------------------------------------------------------------------------- +---- TYPE CHECKING FOR CALLBACK SYSTEM APIS (AddCallback, RemoveCallback, etc) +---------------------------------------------------------------------------------------------------- + + +-- Function argument type checking for AddCallback, RemoveCallback, etc. +local CALLBACK_ID_TYPE = "Callback ID" +local function checkArgType(index, val, expectedType, level) + level = (level or 2) + 1 + + local actualType = type(val) + local valid + if expectedType == CALLBACK_ID_TYPE then + -- Literally anything except nil is a valid callback ID. + valid = (val ~= nil) + else + valid = (actualType == expectedType) + end + if not valid then + if debug_getinfo(level+1).short_src == "resources/scripts/main.lua" then + local name = debug_getinfo(level+1).name + if name == "AddCallback" or name == "RemoveCallback" or name == "AddPriorityCallback" then + -- Throw the error up an extra level for those mod table wrappers, to show the actual call site. + -- IE, mod:AddCallback() / mod:AddPriorityCallback() / mod:RemoveCallback(). + level = level + 1 + end + end + error(string.format("Bad argument #%d to '%s' (%s expected, got %s)", index, debug_getinfo(level).name, expectedType, actualType), level+1) + end +end +local function checkNumberArg(index, val, level) checkArgType(index, val, "number", level) end +local function checkFunctionArg(index, val, level) checkArgType(index, val, "function", level) end +local function checkCallbackIdArg(index, val, level) checkArgType(index, val, CALLBACK_ID_TYPE, level) end + + +---------------------------------------------------------------------------------------------------- +---------------------------------------------------------------------------------------------------- +---- CALLBACK SYSTEM CORE +---------------------------------------------------------------------------------------------------- + + +local Callbacks = {} + +-- The new callback structure does not use this at all. +-- However, it's kept for the legacy list of "ALL" callbacks to accomodate some niche custom callback usage. +local legacyCallbackMeta = { + __matchParams = function(a, b) + return not a or not b or a == -1 or b == -1 or a == b + end +} + +local function InitCallbackIfNeeded(callbackID) + if not Callbacks[callbackID] then + Callbacks[callbackID] = { + NUM_ADDED = 0, + ALL = setmetatable({}, legacyCallbackMeta), + COMMON = {}, + PARAM = {}, + } + end +end + +-- Returns true if callback A should run before callback B. +local function CallbackComparator(a, b) + if not a or not b then + return a ~= nil + elseif a.Priority == b.Priority then + return a.AddOrder < b.AddOrder + else + return a.Priority < b.Priority + end +end + +-- Support to apply a conversion function to the params for certain callbacks (ie, for stuff like tables/userdata). +local function ConvertItemConfigItemParam(param) + if param and type(param) == "userdata" and GetMetatableType(param) == "Item" then + return GetPtrHash(param) + end + return param +end +local CALLBACK_PARAM_CONVERSION_FUNCS = { + [ModCallbacks.MC_POST_PLAYER_TRIGGER_EFFECT_REMOVED] = ConvertItemConfigItemParam, + [ModCallbacks.MC_POST_ROOM_TRIGGER_EFFECT_REMOVED] = ConvertItemConfigItemParam, + [ModCallbacks.MC_POST_PLAYER_ADD_EFFECT] = ConvertItemConfigItemParam, + [ModCallbacks.MC_POST_ROOM_ADD_EFFECT] = ConvertItemConfigItemParam, + [ModCallbacks.MC_PRE_PLAYER_ADD_COSTUME] = ConvertItemConfigItemParam, + [ModCallbacks.MC_POST_PLAYER_ADD_COSTUME] = ConvertItemConfigItemParam, + [ModCallbacks.MC_PRE_PLAYER_REMOVE_COSTUME] = ConvertItemConfigItemParam, + [ModCallbacks.MC_POST_PLAYER_REMOVE_COSTUME] = ConvertItemConfigItemParam, +} +local function ConvertCallbackParam(callbackID, param) + if callbackID and param then + local convertFunc = CALLBACK_PARAM_CONVERSION_FUNCS[callbackID] + if convertFunc then + return convertFunc(param) + end + end + return param +end + +-- Normally if you execute a callback with -1 as the param, it will run ALL added callbacks regardless of their specified param. +-- This behaviour exists for some vanilla callbacks that aren't intended to support optional params in the first place. +-- However, it can cause problems if a callback that DOES use params can get executed with -1 as the param, such as the first glitch item ID. +local RUN_CALLBACK_MINUS_ONE_PARAM_BLACKLIST = { + [ModCallbacks.MC_PRE_USE_ITEM] = true, + [ModCallbacks.MC_USE_ITEM] = true, + [ModCallbacks.MC_POST_USE_ITEM] = true, + [ModCallbacks.MC_PRE_ADD_COLLECTIBLE] = true, + [ModCallbacks.MC_POST_ADD_COLLECTIBLE] = true, + [ModCallbacks.MC_POST_TRIGGER_COLLECTIBLE_ADDED] = true, + [ModCallbacks.MC_POST_TRIGGER_COLLECTIBLE_REMOVED] = true, + [ModCallbacks.MC_POST_ADD_INNATE_COLLECTIBLE] = true, + [ModCallbacks.MC_POST_REMOVE_INNATE_COLLECTIBLE] = true, + [ModCallbacks.MC_PLAYER_GET_ACTIVE_MAX_CHARGE] = true, + [ModCallbacks.MC_PLAYER_GET_ACTIVE_MIN_USABLE_CHARGE] = true, + [ModCallbacks.MC_POST_DISCHARGE_ACTIVE_ITEM] = true, + [ModCallbacks.MC_PRE_PLAYERHUD_RENDER_ACTIVE_ITEM] = true, + [ModCallbacks.MC_POST_PLAYERHUD_RENDER_ACTIVE_ITEM] = true, + -- For the character select callbacks, -1 is the "random" character's "PlayerType". + [ModCallbacks.MC_PRE_RENDER_CHARACTER_SELECT_PORTRAIT] = true, + [ModCallbacks.MC_POST_RENDER_CHARACTER_SELECT_PORTRAIT] = true, + [ModCallbacks.MC_PRE_RENDER_CHARACTER_SELECT_PAGE] = true, + [ModCallbacks.MC_POST_RENDER_CHARACTER_SELECT_PAGE] = true, +} + +-- Returns an iterator function that takes advantage of how callbacks are now mapped by their optional params. +-- Allows other code to easily iterate over callbacks using a param, in the correct execution order. +local function GetCallbackIterator(callbackID, param, extraParam) + local callbackData = Callbacks[callbackID] + + if not callbackData then + -- No callbacks to run. Return an empty iterator. + return function() end + end + + if param == -1 and not RUN_CALLBACK_MINUS_ONE_PARAM_BLACKLIST[callbackID] then + -- If the callback is executed with -1 as the param, run ALL callbacks. + -- This is sometimes used by the game for callbacks not intended to support optional params. + local allCallback = callbackData.ALL[1] + return function() + local nextCallback + + -- Skip over removed callbacks if needed. + repeat + nextCallback = allCallback + if allCallback then + allCallback = allCallback.NextAll + end + until not nextCallback or not nextCallback.Removed + + return nextCallback + end + end + + param = ConvertCallbackParam(callbackID, param) + + local commonCallback = callbackData.COMMON[1] + local paramCallback = param and callbackData.PARAM[param] and callbackData.PARAM[param][1] + local extraParamCallback = extraParam and callbackData.PARAM[extraParam] and callbackData.PARAM[extraParam][1] + + if not paramCallback and extraParamCallback then + paramCallback = extraParamCallback + extraParamCallback = nil + end + + if not paramCallback then + -- No parameterized callbacks to run, so just iterate over the common callbacks. + return function() + local nextCallback + + -- Skip over removed callbacks if needed. + repeat + nextCallback = commonCallback + if commonCallback then + commonCallback = commonCallback.NextParam + end + until not nextCallback or not nextCallback.Removed + + return nextCallback + end + end + + if not extraParamCallback then + -- Simultaneously iterate over both the common callbacks and the relevant parameterized ones. + -- By comparing the Priority of the callbacks and the order they were added, we can iterate in the correct order. + return function() + local nextCallback + + -- Skip over removed callbacks if needed. + repeat + if CallbackComparator(commonCallback, paramCallback) then + nextCallback = commonCallback + commonCallback = commonCallback.NextParam + elseif paramCallback then + nextCallback = paramCallback + paramCallback = paramCallback.NextParam + else + nextCallback = nil + end + until not nextCallback or not nextCallback.Removed + + return nextCallback + end + end + + -- New: Iterate over callbacks using... two parameters at once??? + return function() + local nextCallback + + repeat + nextCallback = commonCallback + if CallbackComparator(paramCallback, nextCallback) then + nextCallback = paramCallback + end + if CallbackComparator(extraParamCallback, nextCallback) then + nextCallback = extraParamCallback + end + + if nextCallback == commonCallback and commonCallback then + commonCallback = commonCallback.NextParam + elseif nextCallback == paramCallback and paramCallback then + paramCallback = paramCallback.NextParam + elseif nextCallback == extraParamCallback and extraParamCallback then + extraParamCallback = extraParamCallback.NextParam + else + nextCallback = nil + end + until not nextCallback or not nextCallback.Removed + + return nextCallback + end +end + +rawset(Isaac, "GetCallbackIterator", function(callbackID, param) + checkCallbackIdArg(1, callbackID) + return GetCallbackIterator(callbackID, param) +end) + +-- Maintain legacy Isaac.GetCallbacks behaviour as it is accessible to mods and expects a table of ALL the callbacks, in execution order. +rawset(Isaac, "GetCallbacks", function(callbackID, createIfMissing) + checkCallbackIdArg(1, callbackID) + if createIfMissing then + InitCallbackIfNeeded(callbackID) + end + return Callbacks[callbackID] and Callbacks[callbackID].ALL or {} +end) + +-- Finds the correct spot to insert a new callback, taking into account CallbackPriority and the order they were added. +-- Utilizes Binary Search to improve performance when a lot of callbacks are added. +local function FindCallbackInsertPos(callbackList, newCallback) + -- Check the front or back of the list first. + if #callbackList == 0 or CallbackComparator(newCallback, callbackList[1]) then + return 1 + elseif CallbackComparator(callbackList[#callbackList], newCallback) then + return #callbackList + 1 + end + + -- Ok, binary search time. + local minIdx = 2 + local maxIdx = #callbackList - 1 + local mid + + while true do + mid = math.floor((maxIdx+minIdx)/2) + local callback = callbackList[mid] + if CallbackComparator(callback, newCallback) then + minIdx = mid + 1 + if minIdx > maxIdx then + return mid+1 + end + elseif CallbackComparator(newCallback, callback) then + maxIdx = mid - 1 + if minIdx > maxIdx then + return mid + end + else + return mid + end + end +end + +local function AddToCallbackList(callbackList, newCallback, isAllList) + local idx = FindCallbackInsertPos(callbackList, newCallback) + table.insert(callbackList, idx, newCallback) + + local prevCallback = callbackList[idx-1] + local nextCallback = callbackList[idx+1] + + -- Establish links to the previous/next callbacks in the list. + -- This is done to make removing callbacks while the callback is running a little safer. + if isAllList then + if prevCallback then + prevCallback.NextAll = newCallback + end + newCallback.NextAll = nextCallback + else + if prevCallback then + prevCallback.NextParam = newCallback + end + newCallback.NextParam = nextCallback + end +end + +local DEPRECATED_CALLBACKS = { + [ModCallbacks.MC_POST_PLAYER_GET_MULTI_SHOT_PARAMS] = "MC_POST_PLAYER_GET_MULTI_SHOT_PARAMS is deprecated - please use MC_EVALUATE_MULTI_SHOT_PARAMS instead.", + [ModCallbacks.MC_PRE_PLAYER_APPLY_INNATE_COLLECTIBLE_NUM] = "MC_PRE_PLAYER_APPLY_INNATE_COLLECTIBLE_NUM is deprecated - please use functions such as player:AddInnateCollectible instead.", + [ModCallbacks.MC_PRE_OPENGL_RENDER] = "MC_PRE_OPENGL_RENDER is unused, and does not run.", +} + +rawset(Isaac, "AddPriorityCallback", function(mod, callbackID, priority, fn, param) + checkCallbackIdArg(2, callbackID) + checkNumberArg(3, priority) + checkFunctionArg(4, fn) + + if DEPRECATED_CALLBACKS[callbackID] then + local info = debug_getinfo(fn, "S") + logWarning(callbackID, mod and mod.Name or "???", + info.short_src .. ": " .. info.linedefined .. ": " .. DEPRECATED_CALLBACKS[callbackID]) + end + + param = ConvertCallbackParam(callbackID, param) + + InitCallbackIfNeeded(callbackID) + + local callbackData = Callbacks[callbackID] + local wasEmpty = (#callbackData.ALL == 0) + local numAdded = callbackData.NUM_ADDED + 1 + callbackData.NUM_ADDED = numAdded + local newCallback = {Mod = mod, Function = fn, Priority = priority, AddOrder = numAdded, Param = param} + + AddToCallbackList(callbackData.ALL, newCallback, true) + + -- Callbacks with -1 as their param behave the same as those with no param. + -- This aligns with the behaviour of the old implementation. + if param and param ~= -1 then + if not callbackData.PARAM[param] then + callbackData.PARAM[param] = {} + end + AddToCallbackList(callbackData.PARAM[param], newCallback, false) + else + AddToCallbackList(callbackData.COMMON, newCallback, false) + end + + if wasEmpty then + if type(callbackID) == "number" then + -- Enable this callback + Isaac.SetBuiltInCallbackState(callbackID, true) + end + end +end) + +rawset(Isaac, "AddCallback", function(mod, callbackID, fn, param) + checkCallbackIdArg(2, callbackID) + checkFunctionArg(3, fn) + Isaac.AddPriorityCallback(mod, callbackID, CallbackPriority.DEFAULT, fn, param) +end) + +local function RemoveCallbacksIf(callbackList, removeConditionFunc, isAllList) + local removed = false + for i=#callbackList,1,-1 do + local callback = callbackList[i] + if removeConditionFunc(callback) then + -- Fix the iteration link of the previous callback. + if callbackList[i-1] then + if isAllList then + callbackList[i-1].NextAll = callback.NextAll + else + callbackList[i-1].NextParam = callback.NextParam + end + end + + callback.Removed = true + table.remove(callbackList, i) + removed = true + end + end + return removed +end + +local function RemoveAllCallbacksIf(callbackID, removeConditionFunc) + local callbackData = Callbacks[callbackID] + + if callbackData and RemoveCallbacksIf(callbackData.ALL, removeConditionFunc, true) then + RemoveCallbacksIf(callbackData.COMMON, removeConditionFunc, false) + for param, paramCallbacks in pairs(callbackData.PARAM) do + if RemoveCallbacksIf(paramCallbacks, removeConditionFunc, false) and #paramCallbacks == 0 then + callbackData.PARAM[param] = nil + end + end + if #callbackData.ALL == 0 then + if type(callbackID) == "number" then + -- No more functions left, disable this callback + Isaac.SetBuiltInCallbackState(callbackID, false) + else + Callbacks[callbackID] = nil + end + end + return true + end +end + +rawset(Isaac, "RemoveCallback", function(mod, callbackID, fn) + checkCallbackIdArg(2, callbackID) + checkFunctionArg(3, fn) + + RemoveAllCallbacksIf(callbackID, function(callback) return callback.Function == fn end) +end) + +local function RemoveAllCallbacksForMod(mod) + for callbackID, callbackData in pairs(Callbacks) do + RemoveAllCallbacksIf(callbackID, function(callback) return callback.Mod == mod end) + end +end + +function _UnloadMod(mod) + -- _UnloadMod is called late into the shutdown process where it is not safe to run a callback. + -- We separately trigger MC_PRE_MOD_UNLOAD earlier in the shutdown process. + -- rebuild: vanilla parity runs it as main.lua does, and IsShuttingDown is not ported yet + if IsVanillaParity() then + Isaac.RunCallback(ModCallbacks.MC_PRE_MOD_UNLOAD, mod) + elseif not (Isaac.IsShuttingDown and Isaac.IsShuttingDown()) then + Isaac.RunCallback(ModCallbacks.MC_PRE_MOD_UNLOAD, mod, false) + end + + RemoveAllCallbacksForMod(mod) + ModManager.detail.UnloadMod(mod) +end + +-- Runs a single callback function and checks the results. +-- Only returns the value returned by the callback if no errors occured and the return value passed the type checks. +local function RunCallbackInternal(callbackID, callback, ...) + local status, ret = xpcall(callback.Function, function(msg) + return msg .. "\n" .. cleanTraceback(2) + end, callback.Mod, ...) + + if not status then + logError(callbackID, callback.Mod.Name, ret) + elseif ret ~= nil and not typeCheckCallback(callback, callbackID, ret, ...) then + return ret + end +end + + +---------------------------------------------------------------------------------------------------- +---------------------------------------------------------------------------------------------------- +---- RUNCALLBACK LOGIC +---------------------------------------------------------------------------------------------------- + + +-- Default callback behaviour (first returned non-nil value terminates the callback). +local function DefaultRunCallbackLogic(callbackID, callbackIterator, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, ...) + if ret ~= nil then + return ret + end + end +end + +-- Slightly modified callback that only breaks on returning false specifically. +local function RunFalseBreakCallbackLogic(callbackID, callbackIterator, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, ...) + if ret == false then + return ret + end + end +end + +-- For callbacks with no return values that don't want to allow mods to terminate them early. +local function RunNoReturnCallback(callbackID, callbackIterator, ...) + for callback in callbackIterator do + RunCallbackInternal(callbackID, callback, ...) + end +end + +-- Basic "additive" callback behaviour. Values returned from a callback replace the value of the FIRST arg for subsequent callbacks. +-- Separate implementations are used depending on which arg is updated by the return value, because table.unpack tricks are slower. +local function RunAdditiveFirstArgCallback(callbackID, callbackIterator, value, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, value, ...) + if ret ~= nil then + value = ret + end + end + return value +end + +local function RunAdditiveSecondArgCallback(callbackID, callbackIterator, arg1, value, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, arg1, value, ...) + if ret ~= nil then + value = ret + end + end + return value +end + +local function RunAdditiveSecondArgCallbackWithBreak(callbackID, callbackIterator, arg1, value, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, arg1, value, ...) + if type(ret) == "boolean" then + if ret == false then + return ret + end + elseif ret ~= nil then + value = ret + end + end + return value +end + +local function RunAdditiveThirdArgCallback(callbackID, callbackIterator, arg1, arg2, value, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, arg1, arg2, value, ...) + if ret ~= nil then + value = ret + end + end + return value +end + +local function RunAdditiveThirdArgCallbackWithBreak(callbackID, callbackIterator, arg1, arg2, value, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, arg1, arg2, value, ...) + if type(ret) == "boolean" then + if ret == false then + return ret + end + elseif ret ~= nil then + value = ret + end + end + return value +end + +local function RunAdditiveFourthArgCallback(callbackID, callbackIterator, arg1, arg2, arg3, value, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, arg1, arg2, arg3, value, ...) + if ret ~= nil then + value = ret + end + end + return value +end + +local function RunPostModsLoadedCallback(callbackID, callbackIterator, ...) + DefaultRunCallbackLogic(callbackID, callbackIterator, ...) + ModManager.detail.OnModsLoaded() +end + +local function RunPreAddCardPillCallback(callbackID, callbackIterator, player, pillCard, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, player, pillCard, ...) + if type(ret) == "boolean" and ret == false then + return false + elseif type(ret) == "number" and ret > 0 then + pillCard = ret + end + end + return pillCard +end + +local function IsValidMultiShotParams(params) + return params ~= nil and type(params) == "userdata" and GetMetatableType(params) == "MultiShotParams" +end + +local function RunGetMultiShotParamsCallback(callbackID, callbackIterator, player, multiShotParams, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, player, multiShotParams, ...) + if IsValidMultiShotParams(ret) then + multiShotParams = ret + end + end + + return multiShotParams +end + +function _RunGetMultiShotParamsCallbackWithLegacyCompat(param, player, multiShotParams, ...) + -- Run legacy callback first (didn't pass a modifiable MultiShotParams along, incentivised recursing GetMultiShotParams + -- inside the callback, returning a MultiShotParams terminated the callback and made it hard for multiple mods to modify). + -- Replacing it was cleaner for backwards compatability's sake, and we can just run the legacy callbacks here with no extra C jumps. + local legacyResult = Isaac.RunCallbackWithParam(ModCallbacks.MC_POST_PLAYER_GET_MULTI_SHOT_PARAMS, param, player) + if IsValidMultiShotParams(legacyResult) then + multiShotParams = legacyResult + end + return Isaac.RunCallbackWithParam(ModCallbacks.MC_EVALUATE_MULTI_SHOT_PARAMS, param, player, multiShotParams, ...) +end + +-- Custom behaviour for pre-render callbacks (terminate on false, adds returned vectors to the render offset). +local function RunPreRenderCallback(callbackID, callbackIterator, mt, value, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, mt, value, ...) + if ret ~= nil then + if type(ret) == "boolean" and ret == false then + return false + elseif ret.X and ret.Y then -- We're a Vector, checking it directly will crash the game... While we should always be a Vector at this point it doesn't hurt to check + value = value + ret + end + end + end + return value +end + +-- Custom handling for the MC_ENTITY_TAKE_DMG rewrite, so if a mod changes the damage amount etc that doesn't terminate the callback +-- and the updated values are shown to later callbacks. The callback also now ONLY terminates early if FALSE is returned. +local function RunEntityTakeDmgCallback(callbackID, callbackIterator, entity, damage, damageFlags, source, damageCountdown, extraSource) + local combinedRet + + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, entity, damage, damageFlags, source, damageCountdown, extraSource) + if ret ~= nil then + if type(ret) == "boolean" and ret == false then + -- Only terminate the callback early if someone returns FALSE. + -- RIP to returning true stopping the callback. + return false + elseif type(ret) == "table" then + -- Set / update overrides to damage etc so that they are visible to later callbacks. + if ret.Damage and type(ret.Damage) == "number" then + damage = ret.Damage + end + if ret.DamageFlags and type(ret.DamageFlags) == "number" and math.tointeger(ret.DamageFlags) then + damageFlags = ret.DamageFlags + end + if ret.DamageCountdown and type(ret.DamageCountdown) == "number" then + damageCountdown = ret.DamageCountdown + end + if combinedRet then + for k, v in pairs(ret) do + combinedRet[k] = v + end + else + combinedRet = ret + end + end + end + end + + return combinedRet +end + +local function RunAccumulateReturnTableCallback(callbackID, callbackIterator, ...) + local retTable + + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, ...) + if ret ~= nil then + if type(ret) == "boolean" then + return ret + elseif type(ret) == "table" then + if retTable then + for k, v in pairs(ret) do + retTable[k] = v + end + else + retTable = ret + end + end + end + end + + return retTable +end + +local function RunPreAddCollectibleCallback(callbackID, callbackIterator, collectibleType, charge, firstTime, slot, vardata, ...) + local retType + local retTable + + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, collectibleType, charge, firstTime, slot, vardata, ...) + if ret ~= nil then + if type(ret) == "boolean" and ret == false then + return false + elseif type(ret) == "number" then + retType = ret + collectibleType = ret + if retTable then + retTable.Type = ret + end + elseif type(ret) == "table" then + -- Set / update overrides so that they are visible to later callbacks. + collectibleType = ret[1] or collectibleType + charge = ret[2] or charge + if ret[3] ~= nil then + firstTime = ret[3] + end + slot = ret[4] or slot + vardata = ret[5] or vardata + if retTable then + for k, v in pairs(ret) do + retTable[k] = v + end + else + retTable = ret + retTable[1] = retTable[1] or collectibleType + end + end + end + end + + return retTable or retType +end + +local function RunPreAddTrinketCallback(callbackID, callbackIterator, player, trinketType, firstTime, ...) + local retType + local retTable + + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, player, trinketType, firstTime, ...) + if ret ~= nil then + if type(ret) == "boolean" and ret == false then + return false + elseif type(ret) == "number" then + retType = ret + trinketType = ret + if retTable then + retTable.Type = ret + end + elseif type(ret) == "table" then + -- Set / update overrides so that they are visible to later callbacks. + trinketType = ret[1] or trinketType + if ret[2] ~= nil then + firstTime = ret[2] + end + if retTable then + for k, v in pairs(ret) do + retTable[k] = v + end + else + retTable = ret + retTable[1] = retTable[1] or trinketType + end + end + end + end + + return retTable or retType +end + +-- Custom handling for MC_PRE_TRIGGER_PLAYER_DEATH and MC_TRIGGER_PLAYER_DEATH_POST_CHECK_REVIVES. +-- Terminate early if the player is revived by any means. +local function RunTriggerPlayerDeathCallback(callbackID, callbackIterator, player, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, player, ...) + if not player:IsDead() or not player:Exists() then + return + end + if ret == false then + return false + end + end + return true +end + +-- Custom handling for MC_POST_PICKUP_SELECTION. +-- Terminate early if the table's 3rd argument is nil or false +local function RunPostPickupSelectionCallback(callbackID, callbackIterator, pickup, variant, subType, ...) + local recentRet = nil + + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, pickup, variant, subType, ...) + if type(ret) == "table" then + if not ret[3] then + return ret + end + + if (math.type(ret[1]) == "integer" and math.type(ret[2]) == "integer") then + recentRet = {ret[1], ret[2]} + variant = ret[1] + subType = ret[2] + end + + end + end + + return recentRet +end + +local function RunTryAddToBagOfCraftingCallback(callbackID, callbackIterator, player, pickup, result, ...) + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, player, pickup, result) + if type(ret) == "boolean" and ret == false then + return false + elseif type(ret) == "table" then + result = {} + for i=1,8 do + if not ret[i] or ret[i] <= BagOfCraftingPickup.BOC_NONE or ret[i] > BagOfCraftingPickup.BOC_POOP then + break + else + table.insert(result, ret[i]) + end + end + end + end + + return result +end + +local function RunPreApplyTearflagEffectsCallback(callbackID, callbackIterator, entity, pos, flags, source, damage) + local combinedRet + + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, entity, pos, flags, source, damage) + if ret ~= nil then + if type(ret) == "boolean" and ret == false then + return false + elseif type(ret) == "table" then + -- Set / update modified values so that they are visible to later callbacks. + if ret.Damage and type(ret.Damage) == "number" then + damage = ret.Damage + end + if ret.TearFlags and type(ret.TearFlags) == "userdata" and GetMetatableType(ret.TearFlags) == "BitSet128" then + flags = ret.TearFlags + end + if ret.Position and type(ret.Position) == "userdata" and GetMetatableType(ret.Position) == "Vector" then + pos = ret.Position + end + if combinedRet then + for k, v in pairs(ret) do + combinedRet[k] = v + end + else + combinedRet = ret + end + end + end + end + + return combinedRet +end + +local preStatusApplyReturnTableTypes = { + [StatusEffect.CONFUSION] = checkTableTypeFunction({ "integer", "boolean" }), + [StatusEffect.CHARMED] = checkTableTypeFunction({ "integer", "boolean" }), + [StatusEffect.FEAR] = checkTableTypeFunction({ "integer", "boolean" }), + [StatusEffect.FREEZE] = checkTableTypeFunction({ "integer", "boolean" }), + [StatusEffect.MIDAS_FREEZE] = checkTableTypeFunction({ "integer", "boolean" }), + [StatusEffect.SHRINK] = checkTableTypeFunction({ "integer", "boolean" }), + [StatusEffect.KNOCKBACK] = checkTableTypeFunction({ "integer", "Vector", "boolean" }), + [StatusEffect.SLOWING] = checkTableTypeFunction({ "integer", "number", "Color", "boolean" }), + [StatusEffect.POISON] = checkTableTypeFunction({ "integer", "number", "boolean" }), + [StatusEffect.BURN] = checkTableTypeFunction({ "integer", "number", "boolean" }), +} + +-- Custom handling for MC_PRE_STATUS_EFFECT_APPLY +-- Handle type checking here since the callback is called for several status effects with different types, +-- terminate early if false is returned, +-- and use additive callback logic instead of the default one. +local function RunPreStatusEffectApplyCallback(callbackID, callbackIterator, status, entity, entityRef, duration, extraParam1, extraParam2, extraParam3) + local recentRet = nil + + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, status, entity, entityRef, duration, extraParam1, extraParam2, extraParam3) + + if type(ret) == "boolean" then + if ret == false then return false end + elseif type(ret) == "table" then + if preStatusApplyReturnTableTypes[status] then + local err = preStatusApplyReturnTableTypes[status](ret) + + if err then + logError(callbackID, callback.Mod.Name, err) + else + if ret[1] ~= nil then duration = ret[1] end + if ret[2] ~= nil then extraParam1 = ret[2] end + if ret[3] ~= nil then extraParam2 = ret[3] end + if ret[4] ~= nil then extraParam3 = ret[4] end + recentRet = { duration, extraParam1, extraParam2, extraParam3 } + end + else + logError(callbackID, callback.Mod.Name, "bad return type (table not expected for status)") + end + elseif type(ret) == "number" then + if type(recentRet) == "table" then + recentRet[1] = ret + else + recentRet = ret + end + duration = ret + end + end + + return recentRet +end + +local function RunPreBombDamageCallback(callbackID, callbackIterator, pos, damage, radius, lineCheck, source, tearFlags, damageFlags, damageSource) + local combinedRet + + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, pos, damage, radius, lineCheck, source, tearFlags, damageFlags, damageSource) + if ret ~= nil then + if type(ret) == "boolean" and ret == false then + return false + elseif type(ret) == "table" then + if ret.Position and type(ret.Position) == "userdata" and GetMetatableType(ret.Position) == "Vector" then + pos = ret.Position + end + if ret.Damage and type(ret.Damage) == "number" then + damage = ret.Damage + end + if ret.Radius and type(ret.Radius) == "number" then + radius = ret.Radius + end + if ret.TearFlags and type(ret.TearFlags) == "userdata" and GetMetatableType(ret.TearFlags) == "BitSet128" then + tearFlags = ret.TearFlags + end + if ret.DamageFlags and type(ret.DamageFlags) == "number" and math.tointeger(ret.DamageFlags) then + damageFlags = ret.DamageFlags + end + if combinedRet then + for k, v in pairs(ret) do + combinedRet[k] = v + end + else + combinedRet = ret + end + end + end + end + + return combinedRet +end + +local function RunPreBombTearFlagEffectsCallback(callbackID, callbackIterator, pos, radius, tearFlags, source, radiusMult) + local combinedRet + + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, pos, radius, tearFlags, source, radiusMult) + if ret ~= nil then + if type(ret) == "boolean" and ret == false then + return false + elseif type(ret) == "table" then + if ret.Position and type(ret.Position) == "userdata" and GetMetatableType(ret.Position) == "Vector" then + pos = ret.Position + end + if ret.Radius and type(ret.Radius) == "number" then + radius = ret.Radius + end + if ret.RadiusMult and type(ret.RadiusMult) == "number" then + radiusMult = ret.RadiusMult + end + if ret.TearFlags and type(ret.TearFlags) == "userdata" and GetMetatableType(ret.TearFlags) == "BitSet128" then + tearFlags = ret.TearFlags + end + if combinedRet then + for k, v in pairs(ret) do + combinedRet[k] = v + end + else + combinedRet = ret + end + end + end + end + + return combinedRet +end + +local function RunPreHistoryHudRenderCallback(callbackID, callbackIterator, ...) + local combinedRet = { + HideCollectibles = {}, + HideTrinkets = {}, + } + + for callback in callbackIterator do + local ret = RunCallbackInternal(callbackID, callback, ...) + if ret ~= nil then + if type(ret) == "boolean" and ret == false then + return false + elseif type(ret) == "table" then + if ret.HideCollectibles and type(ret.HideCollectibles) == "table" then + for _, id in pairs(ret.HideCollectibles) do + combinedRet.HideCollectibles[id] = true + end + end + if ret.HideTrinkets and type(ret.HideTrinkets) == "table" then + for _, id in pairs(ret.HideTrinkets) do + combinedRet.HideTrinkets[id] = true + end + end + end + end + end + + return combinedRet +end + +-- Legacy globals. Safer to just leave them alone since they were already exposed. Don't use these. +function _RunPreRenderCallback(callbackID, param, ...) + return RunPreRenderCallback(callbackID, GetCallbackIterator(callbackID, param), ...) +end +function _RunAdditiveCallback(callbackID, value, ...) + return RunAdditiveFirstArgCallback(callbackID, GetCallbackIterator(callbackID), value, ...) +end +function _RunEntityTakeDmgCallback(callbackID, param, ...) + return RunEntityTakeDmgCallback(callbackID, GetCallbackIterator(callbackID, param), ...) +end +function _RunPostPickupSelection(callbackID, param, ...) + return RunPostPickupSelectionCallback(callbackID, GetCallbackIterator(callbackID, param), ...) +end +function _RunTriggerPlayerDeathCallback(callbackID, param, ...) + return RunTriggerPlayerDeathCallback(callbackID, GetCallbackIterator(callbackID, param), ...) +end +rawset(Isaac, "RunPreRenderCallback", _RunPreRenderCallback) +rawset(Isaac, "RunAdditiveCallback", _RunAdditiveCallback) +rawset(Isaac, "RunEntityTakeDmgCallback", _RunEntityTakeDmgCallback) +rawset(Isaac, "RunTriggerPlayerDeathCallback", _RunTriggerPlayerDeathCallback) + + +-- Defines non-default callback handling logic to be used for specific callbacks. +-- If a callback is not specified here, "DefaultRunCallbackLogic" will be called. +local CustomRunCallbackLogic = { + [ModCallbacks.MC_ENTITY_TAKE_DMG] = RunEntityTakeDmgCallback, + [ModCallbacks.MC_EVALUATE_MULTI_SHOT_PARAMS] = RunGetMultiShotParamsCallback, + [ModCallbacks.MC_PRE_APPLY_TEARFLAG_EFFECTS] = RunPreApplyTearflagEffectsCallback, + [ModCallbacks.MC_POST_APPLY_TEARFLAG_EFFECTS] = RunNoReturnCallback, + [ModCallbacks.MC_POST_CURSE_EVAL] = RunAdditiveFirstArgCallback, + [ModCallbacks.MC_POST_ENTITY_REMOVE] = RunNoReturnCallback, + [ModCallbacks.MC_POST_PICKUP_SELECTION] = RunPostPickupSelectionCallback, + [ModCallbacks.MC_PRE_TRIGGER_PLAYER_DEATH] = RunTriggerPlayerDeathCallback, + [ModCallbacks.MC_TRIGGER_PLAYER_DEATH_POST_CHECK_REVIVES] = RunTriggerPlayerDeathCallback, + [ModCallbacks.MC_TRY_ADD_TO_BAG_OF_CRAFTING] = RunTryAddToBagOfCraftingCallback, + [ModCallbacks.MC_PRE_PLAYER_APPLY_INNATE_COLLECTIBLE_NUM] = RunAdditiveFirstArgCallback, + [ModCallbacks.MC_PRE_DEVIL_APPLY_ITEMS] = RunAdditiveFirstArgCallback, + [ModCallbacks.MC_PRE_DEVIL_APPLY_SPECIAL_ITEMS] = RunAdditiveFirstArgCallback, + [ModCallbacks.MC_POST_DEVIL_CALCULATE] = RunAdditiveFirstArgCallback, + [ModCallbacks.MC_PRE_PLANETARIUM_APPLY_ITEMS] = RunAdditiveFirstArgCallback, + [ModCallbacks.MC_PRE_PLANETARIUM_APPLY_TELESCOPE_LENS] = RunAdditiveFirstArgCallback, + [ModCallbacks.MC_POST_PLANETARIUM_CALCULATE] = RunAdditiveFirstArgCallback, + [ModCallbacks.MC_EVALUATE_CUSTOM_CACHE] = RunAdditiveThirdArgCallback, + [ModCallbacks.MC_EVALUATE_FAMILIAR_MULTIPLIER] = RunAdditiveSecondArgCallback, + [ModCallbacks.MC_PRE_PLAYER_ADD_CARD] = RunPreAddCardPillCallback, + [ModCallbacks.MC_PRE_PLAYER_ADD_PILL] = RunPreAddCardPillCallback, + [ModCallbacks.MC_PLAYER_GET_ACTIVE_MIN_USABLE_CHARGE] = RunAdditiveThirdArgCallback, + [ModCallbacks.MC_PLAYER_GET_ACTIVE_MAX_CHARGE] = RunAdditiveFourthArgCallback, + [ModCallbacks.MC_PRE_STATUS_EFFECT_APPLY] = RunPreStatusEffectApplyCallback, + [ModCallbacks.MC_PLAYER_HEALTH_TYPE_CHANGE] = RunNoReturnCallback, + [ModCallbacks.MC_EVALUATE_STAT] = RunAdditiveThirdArgCallback, + [ModCallbacks.MC_EVALUATE_TEAR_HIT_PARAMS] = RunAdditiveSecondArgCallback, + [ModCallbacks.MC_PRE_PLAYERHUD_RENDER_ACTIVE_ITEM] = RunAccumulateReturnTableCallback, + [ModCallbacks.MC_PRE_ADD_COLLECTIBLE] = RunPreAddCollectibleCallback, + [ModCallbacks.MC_PRE_ADD_TRINKET] = RunPreAddTrinketCallback, + [ModCallbacks.MC_POST_ADD_COLLECTIBLE] = RunNoReturnCallback, + [ModCallbacks.MC_PLAYER_GET_HEART_LIMIT] = RunAdditiveSecondArgCallback, + [ModCallbacks.MC_PRE_RENDER_CHARACTER_SELECT_PORTRAIT] = RunAdditiveThirdArgCallbackWithBreak, + [ModCallbacks.MC_POST_RENDER_CHARACTER_SELECT_PORTRAIT] = RunNoReturnCallback, + [ModCallbacks.MC_PRE_RENDER_CHARACTER_SELECT_PAGE] = RunFalseBreakCallbackLogic, + [ModCallbacks.MC_POST_RENDER_CHARACTER_SELECT_PAGE] = RunNoReturnCallback, + [ModCallbacks.MC_PRE_BOMB_DAMAGE] = RunPreBombDamageCallback, + [ModCallbacks.MC_POST_BOMB_DAMAGE] = RunNoReturnCallback, + [ModCallbacks.MC_PRE_BOMB_TEARFLAG_EFFECTS] = RunPreBombTearFlagEffectsCallback, + [ModCallbacks.MC_POST_BOMB_TEARFLAG_EFFECTS] = RunNoReturnCallback, + [ModCallbacks.MC_PRE_HISTORYHUD_RENDER] = RunPreHistoryHudRenderCallback, + [ModCallbacks.MC_POST_HISTORYHUD_RENDER] = RunNoReturnCallback, + [ModCallbacks.MC_POST_HISTORYHUD_RECOMPUTE] = RunNoReturnCallback, + [ModCallbacks.MC_CAN_SELECT_CHARACTER] = RunFalseBreakCallbackLogic, + [ModCallbacks.MC_PRE_GRID_HURT] = RunAdditiveSecondArgCallbackWithBreak, + [ModCallbacks.MC_POST_GRID_HURT] = RunNoReturnCallback, + [ModCallbacks.MC_POST_MODS_LOADED] = RunPostModsLoadedCallback, + [ModCallbacks.MC_PRE_RENDER_PLAYER_BODY] = RunAdditiveSecondArgCallbackWithBreak, + [ModCallbacks.MC_PRE_RENDER_PLAYER_HEAD] = RunAdditiveSecondArgCallbackWithBreak, + [ModCallbacks.MC_PRE_LEVEL_PLACE_ROOM] = RunAdditiveSecondArgCallback, + [ModCallbacks.MC_PRE_SELECT_AMBUSH_WAVE] = RunAdditiveFirstArgCallback, + [ModCallbacks.MC_PRE_SELECT_GREED_WAVE] = RunAdditiveFirstArgCallback, + [ModCallbacks.MC_PRE_PLAYERHUD_RENDER_INVENTORY] = RunAdditiveSecondArgCallbackWithBreak, + [ModCallbacks.MC_POST_PLAYERHUD_RENDER_INVENTORY] = RunNoReturnCallback, + [ModCallbacks.MC_PRE_PLAYERHUD_RENDER_POOP_SPELL_QUEUE] = RunAdditiveSecondArgCallbackWithBreak, + [ModCallbacks.MC_POST_PLAYERHUD_RENDER_POOP_SPELL_QUEUE] = RunNoReturnCallback, + [ModCallbacks.MC_PRE_PLAYERHUD_RENDER_CRAFTING_TABLE] = RunAdditiveSecondArgCallbackWithBreak, + [ModCallbacks.MC_POST_PLAYERHUD_RENDER_CRAFTING_TABLE] = RunNoReturnCallback, + [ModCallbacks.MC_POST_USE_ITEM] = RunNoReturnCallback, +} + +for _, callback in ipairs({ + ModCallbacks.MC_PRE_FAMILIAR_RENDER, + ModCallbacks.MC_PRE_NPC_RENDER, + ModCallbacks.MC_PRE_PLAYER_RENDER, + ModCallbacks.MC_PRE_PICKUP_RENDER, + ModCallbacks.MC_PRE_TEAR_RENDER, + ModCallbacks.MC_PRE_PROJECTILE_RENDER, + ModCallbacks.MC_PRE_KNIFE_RENDER, + ModCallbacks.MC_PRE_EFFECT_RENDER, + ModCallbacks.MC_PRE_BOMB_RENDER, + ModCallbacks.MC_PRE_SLOT_RENDER, +}) do + CustomRunCallbackLogic[callback] = RunPreRenderCallback +end + +local function RunCallbackOverIterator(callbackID, callbackIterator, ...) + local runCallbackLogic = CustomRunCallbackLogic[callbackID] or DefaultRunCallbackLogic + return runCallbackLogic(callbackID, callbackIterator, ...) +end +rawset(Isaac, "RunCallbackOverIterator", RunCallbackOverIterator) + +-- rebuild: vanilla main.lua's _RunCallback over the same callbacks, which runs the original's while vanilla parity is on +local function RunVanillaCallback(callbackID, param, ...) + local callbackData = Callbacks[callbackID] + if callbackData then + local callbacks = callbackData.ALL + local matchFunc = getmetatable(callbacks).__matchParams or legacyCallbackMeta.__matchParams + + for _,v in ipairs(callbacks) do + if matchFunc(param, v.Param) then + local result = v.Function(v.Mod, ...) + if result ~= nil then + return result + end + end + end + end +end + +function _RunCallback(callbackID, param, ...) + if IsVanillaParity() and not (type(callbackID) == "number" and callbackID >= 1000) then + return RunVanillaCallback(callbackID, param, ...) + end + + local callbackIterator = GetCallbackIterator(callbackID, param) + return RunCallbackOverIterator(callbackID, callbackIterator, ...) +end + +Isaac.RunCallbackWithParam = _RunCallback + +function Isaac.RunCallback(callbackID, ...) + return Isaac.RunCallbackWithParam(callbackID, nil, ...) +end + +function _RunCallbackWithTwoParams(callbackID, param1, param2, ...) + local callbackIterator = GetCallbackIterator(callbackID, param1, param2) + return RunCallbackOverIterator(callbackID, callbackIterator, ...) +end +rawset(Isaac, "RunCallbackWithTwoParams", _RunCallbackWithTwoParams) + + +----------------------------------------------------------------------------------------------------- +----------------------------------------------------------------------------------------------------- +---- MISC STUFF +----------------------------------------------------------------------------------------------------- + +local Original_HasModData = Isaac.HasModData +local Original_SaveModData = Isaac.SaveModData +local Original_LoadModData = Isaac.LoadModData +local Original_RemoveModData = Isaac.RemoveModData + +local ModReference_HasModFile = _CBindings.ModReference_HasModFile +local ModReference_SaveModFile = _CBindings.ModReference_SaveModFile +local ModReference_LoadModFile = _CBindings.ModReference_LoadModFile +local ModReference_RemoveModFile = _CBindings.ModReference_RemoveModFile + +if ModReference_HasModFile then -- rebuild: until the mod file bindings are ported +rawset(Isaac, "HasModData", function(modRef, filename) + if type(filename) == "string" then + return ModReference_HasModFile(modRef, filename) + else + return Original_HasModData(modRef) + end +end) + +rawset(Isaac, "SaveModData", function(modRef, data, filename) + if type(filename) == "string" then + return ModReference_SaveModFile(modRef, filename, data) + else + return Original_SaveModData(modRef, data) + end +end) + +rawset(Isaac, "LoadModData", function(modRef, filename) + if type(filename) == "string" then + return ModReference_LoadModFile(modRef, filename) + else + return Original_LoadModData(modRef) + end +end) + +rawset(Isaac, "RemoveModData", function(modRef, filename) + if type(filename) == "string" then + return ModReference_RemoveModFile(modRef, filename) + else + return Original_RemoveModData(modRef) + end +end) +end + +--Menuman Hub +if MenuManager then -- rebuild: until MenuManager is ported +MenuManager.MainMenu = MainMenu +MenuManager.CharacterMenu = CharacterMenu +MenuManager.StatsMenu = StatsMenu +end + +-- ImGui alias functions +--local ImGui = Isaac.GetImGui() +if ImGui then -- rebuild: until ImGui is ported +ImGui.WorldToImGui = function (world_pos) + local scr_xy = Isaac.WorldToScreen(world_pos) + -- scale the screen xy to the window rectangle + local _, imgui_wh = ImGui.GetGameWindowRect() + return Vector(scr_xy.X * imgui_wh.X / Isaac.GetScreenWidth(), scr_xy.Y * imgui_wh.Y / Isaac.GetScreenHeight()) +end +ImGui.ImGuiToWorld = function (imgui_pos) + local _, imgui_wh = ImGui.GetGameWindowRect() + return Isaac.RenderToWorld(Vector(imgui_pos.X * Isaac.GetScreenWidth() / imgui_wh.X, imgui_pos.Y * Isaac.GetScreenHeight() / imgui_wh.Y)) +end +end + +if not _LUADEBUG then + debug = nil + if os then -- rebuild: vanilla parity leaves os closed + os = { + date = os.date, + time = os.time, + clock = os.clock, + difftime = os.difftime + } + end +end + +--Object Cache stuff +local gaymeinstance +local oldgayme = Game +function Game() + if not gaymeinstance then + gaymeinstance = oldgayme() + end + return gaymeinstance +end + + +local oldregmod = RegisterMod + +function RegisterMod(name, ver) + local out = oldregmod(name, ver) + out.Repentogon = REPENTOGON + ModManager.detail.RegisterMod(out) + + out.SaveData = function(self, ...) return Isaac.SaveModData(self, ...) end + out.LoadData = function(self, ...) return Isaac.LoadModData(self, ...) end + out.HasData = function(self, ...) return Isaac.HasModData(self, ...) end + out.RemoveData = function(self, ...) Isaac.RemoveModData(self, ...) end + + return out +end + + +rawset(Isaac, "GetEntityConfig", function() return EntityConfig end) +RoomConfigHolder = RoomConfig -- Backwards compatability + +-- Reset Imgui Data after reload of all mods +if ImGui then ImGui.Reset() end -- rebuild: until ImGui is ported + + +--resource load error, used in changelog but it's not strictly a changelog thing so i'm putting it here +local res_error_font=Font() +local loaded_reserror_font="" + +local curlocale="default" +local reserror_text={ + ["en"]={"Unable to load REPENTOGON", + "resources. Please make sure", + "that all files are copied", + "correctly and that mods are", + "enabled in the mods menu!",}, + ["ru"]={"Не удалось загрузить ресурсы", + "REPENTOGON-а. Просьба проверить", + "наличие всех файлов и убедиться,", + "что моды включены в меню модов!",}, + ["zh"]={"无法加载 REPENTOGON 资源。", + "请确保正确复制了所有文件,并在 mod", + "菜单中启用了 mod!",}, +} + +local reserror_fonts={ + ["en"]={"font/pftempestasevencondensed.fnt",0,0}, --font name, hori and vert offsets relative to en replacement + ["ru"]={"font/pftempestasevencondensed.fnt",-30,0}, + ["zh"]={"font/cjk/lanapixel.fnt",-15,0}, +} + +local function NoRepentogonFolderErrRender() +-- if MenuManager:GetActiveMenu()==MainMenuType.TITLE then + curlocale=Options.Language + if not reserror_text[curlocale] then curlocale="en" end + if loaded_reserror_font~=reserror_fonts[curlocale][1] or (not res_error_font:IsLoaded()) then res_error_font:Load(reserror_fonts[curlocale][1]) loaded_reserror_font=reserror_fonts[curlocale][1] end + local rendercoords=Isaac.WorldToMenuPosition(MainMenuType.TITLE,Vector(260+reserror_fonts[curlocale][2],180+reserror_fonts[curlocale][3])) + for i,line in ipairs(reserror_text[curlocale]) do + res_error_font:DrawStringUTF8(line,rendercoords.X,rendercoords.Y + 12*(i-1) ,KColor(0.7,0.1,0.1,1.0),0,false) + end +-- end +end +REPENTOGON.Extras.Misc.NoRPTGNFldrErr=NoRepentogonFolderErrRender +--res load error stuff end + + +local RoomShapeToDoorMask = { + [RoomShape.ROOMSHAPE_1x1] = DoorMask.LEFT0 | DoorMask.UP0 | DoorMask.RIGHT0 | DoorMask.DOWN0, + [RoomShape.ROOMSHAPE_IH] = DoorMask.LEFT0 | DoorMask.RIGHT0, + [RoomShape.ROOMSHAPE_IV] = DoorMask.UP0 | DoorMask.DOWN0, + [RoomShape.ROOMSHAPE_1x2] = DoorMask.LEFT0 | DoorMask.UP0 | DoorMask.RIGHT0 | DoorMask.DOWN0 | DoorMask.LEFT1 | DoorMask.RIGHT1, + [RoomShape.ROOMSHAPE_IIV] = DoorMask.UP0 | DoorMask.DOWN0, + [RoomShape.ROOMSHAPE_2x1] = DoorMask.LEFT0 | DoorMask.UP0 | DoorMask.RIGHT0 | DoorMask.DOWN0 | DoorMask.UP1 | DoorMask.DOWN1, + [RoomShape.ROOMSHAPE_IIH] = DoorMask.LEFT0 | DoorMask.RIGHT0, + [RoomShape.ROOMSHAPE_2x2] = DoorMask.LEFT0 | DoorMask.UP0 | DoorMask.RIGHT0 | DoorMask.DOWN0 | DoorMask.LEFT1 | DoorMask.UP1 | DoorMask.RIGHT1 | DoorMask.DOWN1, + [RoomShape.ROOMSHAPE_LTL] = DoorMask.LEFT0 | DoorMask.UP0 | DoorMask.RIGHT0 | DoorMask.DOWN0 | DoorMask.LEFT1 | DoorMask.UP1 | DoorMask.RIGHT1 | DoorMask.DOWN1, + [RoomShape.ROOMSHAPE_LTR] = DoorMask.LEFT0 | DoorMask.UP0 | DoorMask.RIGHT0 | DoorMask.DOWN0 | DoorMask.LEFT1 | DoorMask.UP1 | DoorMask.RIGHT1 | DoorMask.DOWN1, + [RoomShape.ROOMSHAPE_LBL] = DoorMask.LEFT0 | DoorMask.UP0 | DoorMask.RIGHT0 | DoorMask.DOWN0 | DoorMask.LEFT1 | DoorMask.UP1 | DoorMask.RIGHT1 | DoorMask.DOWN1, + [RoomShape.ROOMSHAPE_LBR] = DoorMask.LEFT0 | DoorMask.UP0 | DoorMask.RIGHT0 | DoorMask.DOWN0 | DoorMask.LEFT1 | DoorMask.UP1 | DoorMask.RIGHT1 | DoorMask.DOWN1, +} +rawset(Isaac, "GetAllowedDoorsMaskForRoomShape", function(roomShape) + return roomShape and RoomShapeToDoorMask[roomShape] or 0 +end) + + +local SpriteMT=getmetatable(Sprite) +local OldSprConstructor=SpriteMT.__call + +function SpriteMT.__call(_,ANM2Path,LoadGraphics) + local out,isloaded=OldSprConstructor(),false + if LoadGraphics==nil then LoadGraphics=true end + + if ANM2Path and type(ANM2Path)=="string" then + out:Load(ANM2Path,LoadGraphics) + isloaded=out:GetLayerCount()>0 + end + + return out,isloaded +end + + +local FontMT=getmetatable(Font) +local OldFontConstructor=FontMT.__call + +function FontMT.__call(_,FontPath) + local out,isloaded=OldFontConstructor(),false + + if FontPath and type(FontPath)=="string" then + out:Load(FontPath) + isloaded=out:IsLoaded() + end + + return out,isloaded +end + + +-- Gets rid of the old `scripts/main.lua` wrappers for some re-implemented function hooks. +-- This can allow us to circumvent how the old wrappers handled certain inputs, as well as make +-- errors report the actual call site instead of the line in `scripts/main.lua`. +-- Make sure you understand what the old wrapper was doing, and that the new hook maintains any features like optional args. +-- rebuild: only once the REPENTOGON global is exposed, as these need its own versions of the functions +local LuaWrappersToRemove = IsExposed and { + { ItemPool, {"GetCollectible"} }, + { + EntityPlayer, { + "AddCollectible", + "FullCharge", + "GetMultiShotParams", + "GetActiveItem", + "GetActiveCharge", + "GetActiveSubCharge", + "GetBatteryCharge", + "NeedsCharge", + "SetActiveCharge", + "DischargeActiveItem", + "SetPocketActiveItem", + "HasInvincibility", + "UseActiveItem", + } + }, +} +for _, tab in ipairs(LuaWrappersToRemove or {}) do + local class = tab[1] + + local mt = getmetatable(class).__class + local oldIndex = mt.__index + local newIndex = {} + + for _, funcName in ipairs(tab[2]) do + newIndex[funcName] = mt[funcName] + end + + rawset(mt, "__index", function(self, k) + return newIndex[k] or oldIndex(self, k) + end) +end +LuaWrappersToRemove = nil + + +if IsExposed then -- rebuild: the menu extras need the REPENTOGON global and the menu API +pcall(require, "repentogon_extras/changelog") +pcall(require, "repentogon_extras/daily_stats") +pcall(require, "repentogon_extras/stats_menu") +pcall(require, "repentogon_extras/bestiary_menu") +-- pcall(require, "repentogon_extras/onlinestub") let's not load it +pcall(require, "repentogon_extras/mods_menu_tweaks") +end + +pcall(require, "repentogon_api/room_descriptor") + +if _CBindings.ESSM then -- rebuild: until the save state bindings are ported +local SSM = _GetModule("repentogon_extras.save_state_manager") +local ESSM = _GetModule("repentogon_extras.entity_save_state_manager") + +local ESSM_OnNewEntity = ESSM._OnNewEntity +local ESSM_OnDeleteEntity = ESSM._OnDeleteEntity + +---@class REPENTOGON._LuaBindings +---@field SSM REPENTOGON._LuaBindings.SSM +---@field ESSM REPENTOGON._LuaBindings.ESSM +---@field EntityManager REPENTOGON._LuaBindings.EntityManager + +---@class REPENTOGON._LuaBindings.ESSM +---@field StoreEntity fun(entityId: integer, saveStateId: integer) +---@field RestoreEntity fun(entityId: integer, saveStateId: integer) +---@field ClearStates fun(saveStateIds: integer[]) +---@field CopyStates fun(sourceIds: integer[], destIds: integer[]) -- sourceIds and destIds must have the same size +---@field Serialize fun(idMap: table, fileName: string, checksum: integer) -- first integer is the serializationId, second integer is the actualId +---@field PreDeserialize fun(mods: ModReference[], modIds: string[]) -- list mods that have data that could be deserialized +---@field Deserialize fun(serializedIds: integer[], destIds: integer[], fileName: string, checksum: integer) -- serializedIds and destIds must have the same size + +---@class REPENTOGON._LuaBindings.SSM +---@field StoreGameState fun(gameStateId: integer) +---@field RestoreGameState fun(gameStateId: integer) +---@field ClearGameState fun(gameStateId: integer) +---@field SerializeGameState fun(gameStateInfo: REPENTOGON.GameStateInfo) +---@field DeserializeGameState fun(gameStateInfo: REPENTOGON.GameStateInfo) + +---@class REPENTOGON._LuaBindings.EntityManager +---@field NewEntity fun(entityId: integer) +---@field DeleteEntity fun(entityId: integer) + +---@type REPENTOGON._LuaBindings.EntityManager +local _EntityManager = { + NewEntity = function (entityId) + ESSM_OnNewEntity(entityId) + end, + DeleteEntity = function (entityId) + ESSM_OnDeleteEntity(entityId) + end, +} + +---@type REPENTOGON._LuaBindings.SSM +local _SSM = { + StoreGameState = SSM._StoreGameState, + RestoreGameState = SSM._RestoreGameState, + ClearGameState = SSM._ClearGameState, + SerializeGameState = SSM._SerializeGameState, + DeserializeGameState = SSM._DeserializeGameState, + DeleteGameState = SSM._DeleteGameState, + CleanupState = SSM._CleanupState, +} + +---@param entity Entity +---@param entityId integer +---@param saveStateId integer +local function ESSM_StoreEntity(entity, entityId, saveStateId) + Isaac.RunCallback(ModCallbacks.MC_ENTITY_SAVE, entity) + ESSM._OnStoreEntity(entityId, saveStateId) +end + +---@param entity Entity +---@param entityId integer +---@param saveStateId integer +local function ESSM_RestoreEntity(entity, entityId, saveStateId) + ESSM._OnRestoreEntity(entityId, saveStateId) + Isaac.RunCallback(ModCallbacks.MC_ENTITY_RESTORE, entity) +end + +---@type REPENTOGON._LuaBindings.ESSM +local _ESSM = { + StoreEntity = ESSM_StoreEntity, + RestoreEntity = ESSM_RestoreEntity, + ClearStates = ESSM._OnClearSaveStates, + CopyStates = ESSM._OnCopySaveStates, + Serialize = ESSM._Serialize, + PreDeserialize = ESSM._PreDeserialize, + Deserialize = ESSM._Deserialize, +} + +---@type REPENTOGON._LuaBindings +_LuaBindings = { + EntityManager = _EntityManager, + ESSM = _ESSM, + SSM = _SSM, +} + +SaveStateManager = { + GetGameData = SSM.GetGameData, + ClearGameData = SSM.ClearGameData, + GetEntityData = ESSM.GetEntityData, + GetEntitySaveStateData = ESSM.GetEntitySaveStateData, + TryGetEntityData = ESSM.TryGetEntityData, + TryGetEntitySaveStateData = ESSM.TryGetEntitySaveStateData, +} + +-- Backwards compatibility +EntitySaveStateManager = { + GetEntityData = ESSM.GetEntityData, + GetEntitySaveStateData = ESSM.GetEntitySaveStateData, + TryGetEntityData = ESSM.TryGetEntityData, + TryGetEntitySaveStateData = ESSM.TryGetEntitySaveStateData, +} + +end + +_GetModule = nil +s_modules = nil \ No newline at end of file diff --git a/assets/repentogon/scripts/repentogon_api/room_descriptor.lua b/assets/repentogon/scripts/repentogon_api/room_descriptor.lua new file mode 100644 index 0000000..d6f18bd --- /dev/null +++ b/assets/repentogon/scripts/repentogon_api/room_descriptor.lua @@ -0,0 +1,49 @@ +---@type table +local s_groupNames = {} +local s_nextGroupId = 0 + +local ModManager = _GetModule("repentogon_extras.mod_manager") + +---@param groupName string +---@return integer groupId +local function CreateGroup(groupName) + if type(groupName) ~= "string" then + error(string.format("bad argument #%d (string expected, got %s)", 1, type(groupName)), 2) + end + + local existingId = s_groupNames[groupName] + if existingId then + if not ModManager.ModsLoaded() then + Console.PrintWarning(string.format("[WARN] [RGON] group \"%s\" already exists", groupName)) + end + + return existingId + end + + if ModManager.ModsLoaded() then + error("groups can only be created during Mod Load", 2) + end + + local groupId = s_nextGroupId + + s_nextGroupId = s_nextGroupId + 1 + if s_nextGroupId == RoomGroup.GROUP_ULTRA_SECRET then + s_nextGroupId = s_nextGroupId + 1 + end + + s_groupNames[groupName] = groupId + return groupId +end + +---@param groupName string +---@return integer? groupId +local function GetGroupByName(groupName) + if type(groupName) ~= "string" then + error(string.format("bad argument #%d (string expected, got %s)", 1, type(groupName)), 2) + end + + return s_groupNames[groupName] +end + +rawset(RoomDescriptor, "CreateGroup", CreateGroup) +rawset(RoomDescriptor, "GetGroupByName", GetGroupByName) \ No newline at end of file diff --git a/assets/repentogon/scripts/repentogon_extras/_emmy_lua.lua b/assets/repentogon/scripts/repentogon_extras/_emmy_lua.lua new file mode 100644 index 0000000..2034607 --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/_emmy_lua.lua @@ -0,0 +1,30 @@ +error("This file should not have been included") + +---@class REPENTOGON._CBindings +---@field ESSM REPENTOGON._CBindings.ESSM +---@field RaiseModError fun(modName: string) +---@field GetModId fun(mod: ModReference): string? +---@field HasModData fun(mod: ModReference, fileName: string): boolean +---@field SaveModData fun(mod: ModReference, fileName: string, data: string): boolean +---@field LoadModData fun(mod: ModReference, fileName: string): string? +---@field RemoveModData fun(mod: ModReference, fileName: string) +---@field RemoveAllData fun(fileName: string) +---@field ModReference_HasModFile fun(mod: ModReference, fileName: string): boolean +---@field ModReference_SaveModFile fun(mod: ModReference, fileName: string, data: string): boolean +---@field ModReference_LoadModFile fun(mod: ModReference, fileName: string): string? +---@field ModReference_RemoveModFile fun(mod: ModReference, fileName: string) + + +---@class REPENTOGON._CBindings.ESSM +---@field GetEntitySaveStateId fun(ess: EntitiesSaveState): integer +---@field SaveData fun(mod: ModReference, fileName: string, data: string) +---@field LoadData fun(mod: ModReference, fileName: string): string? +---@field DeleteData fun(mod: ModReference, fileName: string) + +---@class REPENTOGON.GameStateInfo +---@field checksum integer +---@field fileName string + +---@type REPENTOGON._CBindings +---@diagnostic disable-next-line: missing-fields +_G._CBindings = {} \ No newline at end of file diff --git a/assets/repentogon/scripts/repentogon_extras/bestiary_menu.lua b/assets/repentogon/scripts/repentogon_extras/bestiary_menu.lua new file mode 100644 index 0000000..a682ed4 --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/bestiary_menu.lua @@ -0,0 +1,116 @@ +-- save copy of original enums, to make it harder for mods to mess with the repentogon features +local _ModCallbacks = ModCallbacks +local _MainMenuType = MainMenuType +local _ButtonAction = ButtonAction +local _SoundEffect = SoundEffect + +local BestiaryMenuRep = { + BestiarySheetSprite = Sprite(), + BestiarySheetSpritePos = Vector(5, 28), + ArrowSprite = Sprite(), + PageWidgetPos = Vector(84, 238), + PageTextPos = Vector(84, 231) +} + +local font = Font() +font:Load("font/teammeatex/teammeatex10.fnt") +local fontcolor = KColor(0.20, 0.15, 0.1, 1) + +local MaxPollCIdx = 3 +local function UpdateMaxPollCIdx() + local str=Input.GetDeviceNameByIdx(0) + local i=0 + while (str~=nil) do + i=i+1 + str=Input.GetDeviceNameByIdx(i) + end + MaxPollCIdx=i +end +local function IsActionTriggeredAll(action) + for i = 0, MaxPollCIdx do + if Input.IsActionTriggered(action, i) then + return true,i + end + end + return false +end + +local function BoolToNum(value) + return value and 1 or 0 +end + +local function LoadAssets() + if #BestiaryMenuRep.BestiarySheetSprite:GetDefaultAnimation() <= 0 then + BestiaryMenuRep.BestiarySheetSprite:Load("gfx/ui/bestiary_tabs.anm2", true) + BestiaryMenuRep.BestiarySheetSprite:SetFrame("Tabs", 0) + + BestiaryMenuRep.ArrowSprite:Load("gfx/ui/leaderboardmenu.anm2", true) + BestiaryMenuRep.ArrowSprite:SetFrame("Idle", 0) + end + if not font:IsLoaded() then + font:Load("font/teammeatex/teammeatex10.fnt") + end + if font:IsLoaded() and #(BestiaryMenuRep.BestiarySheetSprite:GetDefaultAnimation()) > 0 then + Isaac.RemoveCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, LoadAssets) + end +end + +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, LoadAssets) + +local function RenderBestiaryMenu() + local selectedPage = BestiaryMenu.GetSelectedPage() + local lastEnemyPage = BestiaryMenu.GetNumMonsterPages() + local totalPages = BestiaryMenu.GetNumPages() + local isEnemyPage = selectedPage <= lastEnemyPage + local inputController=-1 + if MenuManager:GetActiveMenu() == _MainMenuType.BESTIARY then + UpdateMaxPollCIdx() + local scrollBy=0 + local leftInputIdx,rightInputIdx + local scrollLeft,scrollRight + scrollLeft,leftInputIdx=IsActionTriggeredAll(_ButtonAction.ACTION_PILLCARD) + scrollRight,rightInputIdx=IsActionTriggeredAll(_ButtonAction.ACTION_BOMB) + inputController = leftInputIdx or rightInputIdx or -1 + scrollBy=BoolToNum(scrollRight)-BoolToNum(scrollLeft) + if inputController>0 then scrollBy=scrollBy*-1.0 end --flip gamepad inputs + if IsActionTriggeredAll(_ButtonAction.ACTION_MENUTAB) then + SFXManager():Play(_SoundEffect.SOUND_PAPER_IN) + if isEnemyPage then + BestiaryMenu.SetSelectedPage(lastEnemyPage+1) + else + BestiaryMenu.SetSelectedPage(0) + end + BestiaryMenu.SetSelectedElement(0) + elseif IsActionTriggeredAll(_ButtonAction.ACTION_BOMB) then + if selectedPage < BestiaryMenu.GetNumPages() then -- last page reached + SFXManager():Play(_SoundEffect.SOUND_PAPER_IN) + BestiaryMenu.SetSelectedPage(selectedPage + 1) + BestiaryMenu.SetSelectedElement(0) + end + elseif IsActionTriggeredAll(_ButtonAction.ACTION_PILLCARD) then + if selectedPage > 0 then -- first page + SFXManager():Play(_SoundEffect.SOUND_PAPER_IN) + BestiaryMenu.SetSelectedPage(selectedPage - 1) + BestiaryMenu.SetSelectedElement(0) + end + end + end + + -- render stat page over original stat page, to allow for custom content + BestiaryMenuRep.BestiarySheetSprite:SetFrame("Tabs", isEnemyPage and 0 or 1) + local posSheet = Isaac.WorldToMenuPosition(_MainMenuType.BESTIARY, BestiaryMenuRep.BestiarySheetSpritePos) + BestiaryMenuRep.BestiarySheetSprite:Render(posSheet) + + BestiaryMenuRep.BestiarySheetSprite:SetFrame("PageWidget", 0) + local posPageSheet = Isaac.WorldToMenuPosition(_MainMenuType.BESTIARY, BestiaryMenuRep.PageWidgetPos) + BestiaryMenuRep.BestiarySheetSprite:Render(posPageSheet) + + local pos = Isaac.WorldToMenuPosition(_MainMenuType.BESTIARY, BestiaryMenuRep.PageTextPos) + local text = "Page: "..tostring(selectedPage + 1).."/"..tostring(totalPages + 1) + local width = font:GetStringWidthUTF8(text) + font:DrawStringUTF8(text, pos.X-width/2, pos.Y, fontcolor, 0, false) +end + +REPENTOGON.Extras.BestiaryMenu = BestiaryMenuRep + +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, RenderBestiaryMenu) diff --git a/assets/repentogon/scripts/repentogon_extras/changelog.lua b/assets/repentogon/scripts/repentogon_extras/changelog.lua new file mode 100644 index 0000000..f9c2cb5 --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/changelog.lua @@ -0,0 +1,343 @@ +-- save copy of original enums, to make it harder for mods to mess with the repentogon features +local _ModCallbacks = ModCallbacks +local _MainMenuType = MainMenuType +local _ButtonAction = ButtonAction +local _Keyboard = Keyboard +local _SoundEffect = SoundEffect + +local ChangeLog = { + ["AssetsLoaded"] = false, + ["NoteOffset"] = Vector(275, 190), + ["PaperOffset"] = Vector(-37, -15), + ["VersionOffset"] = Vector(238, 240), + ["ChangelogSprite"] = Sprite(), + ["NoteSprite"] = Sprite(), + + ["Font"] = Font(), + ["VersionFont"] = Font(), + ["FontColor"] = KColor(0.20, 0.15, 0.1, 1), + ["LineHeight"] = 12, + + ["ScrollMargin"] = 5, + ["ScrollSpeed"] = 1, + ["ScrollSpeedFast"] = 2.5, + ["ScrollItertia"] = 0.8, + + ["CurrentSheet"] = 1, + + ["Sheets"] = --TODO: implement the ability to have multiple sheets with unique sprites and stuff + {}, +} + +local Cl = ChangeLog + +local function TextSplit(inputstr, sep) --shamelessly stolen from the stackoverflow + if sep == nil then + sep = "%s" + end + local t = {} + for str in string.gmatch(inputstr, "([^" .. sep .. "]+)") do + table.insert(t, str) + end + return t +end + +function SplitStringByLength(str, max_length) + local result = {} + local line = "" + for word in string.gmatch(str, "%S+") do + if #line + #word + 1 > max_length then + table.insert(result, line) + line = word + else + if line == "" then + line = word + else + line = line .. " " .. word + end + end + end + if line ~= "" then + table.insert(result, line) + end + return result +end + +function ChangeLog.EvaluateText() + for i = 1, #Cl.Sheets do + local temparray = TextSplit(Cl.Sheets[i].Text, "\n") + for k, v in pairs(temparray) do + temparray[k] = string.gsub(v, "/newline/", " ") --new + temparray[k] = string.gsub(temparray[k], "/fade/", "/f/") + --line support + temparray[k] = string.gsub(temparray[k], "https://%S+", "(...)") --replace links with three dots + end + + local finalarray = {} + for _, v in pairs(temparray) do + local splitbywords = string.gmatch(v, "%w+") + local wordcount = 0 + for _ in splitbywords do + wordcount = wordcount + 1 + end + local limitedarray = {} + if wordcount > 0 then + limitedarray = SplitStringByLength(v, 29) + for _, str in pairs(limitedarray) do + table.insert(finalarray, str) + end + else + table.insert(finalarray, v) + end + end + + Cl.Sheets[i].TextArray = finalarray + end +end + + +local ShouldBeRendered = false --render of the changelog isn't attempted +local ScrollVelocity = 0 +local CurrentPage = 1 +local ScrollOffset = Cl.ScrollMargin + +local MaxPollCIdx = 3 + +local UseFade = false + +local function UpdateMaxPollCIdx() + local str=Input.GetDeviceNameByIdx(0) + local i=0 + while (str~=nil) do + i=i+1 + str=Input.GetDeviceNameByIdx(i) + end + MaxPollCIdx=i +end + +local function IsActionTriggeredAll(action) + for i = 0, MaxPollCIdx do + if Input.IsActionTriggered(action, i) then + return true + end + end + return false +end + +local function IsActionPressedAll(action) + for i = 0, MaxPollCIdx do + if Input.IsActionPressed(action, i) then + return true + end + end + return false +end + +local function IsKeyboardPressedAll(input) + for i = 0, MaxPollCIdx do + if Input.IsButtonPressed(input, i) then + return true + end + end + return false +end + +function ChangeLog.MenuRender() + if not Cl.AssetsLoaded then + return + end + Cl.NoteSprite:Render(Isaac.WorldToMenuPosition(_MainMenuType.TITLE, Cl.NoteOffset)) + local versionPosition = Isaac.WorldToMenuPosition(_MainMenuType.TITLE, Cl.VersionOffset) + local versionString = "REPENTOGON " .. REPENTOGON.Version + + Cl.VersionFont:DrawStringUTF8(versionString, versionPosition.X + 1, versionPosition.Y + 1, + KColor(0, 0, 0, 0.3), 200) -- shadow + Cl.VersionFont:DrawStringUTF8(versionString, versionPosition.X, versionPosition.Y, + KColor(67 / 255, 5 / 255, 5 / 255, 1), 200) -- text + local ActiveMenu=MenuManager:GetActiveMenu() + + if ActiveMenu == _MainMenuType.TITLE or ActiveMenu==0 then --reserve menu id 0 for changelog to prevent inputs, mdoders: please do not use that specific id, you already have almost 2^32 of them!... + UpdateMaxPollCIdx() + if IsActionTriggeredAll(_ButtonAction.ACTION_MAP) then + Cl.CurrentState = not Cl.CurrentState + + if Cl.CurrentState == true then + SFXManager():Play(_SoundEffect.SOUND_PAPER_IN) + Cl.ChangelogSprite:Play("SwapIn") + MenuManager.SetActiveMenu(0) --block inputs + else + SFXManager():Play(_SoundEffect.SOUND_PAPER_OUT) + Cl.ChangelogSprite:Play("SwapOut") + MenuManager.SetActiveMenu(1) --unblock inputs + end + ShouldBeRendered = true + elseif IsActionTriggeredAll(_ButtonAction.ACTION_MENUBACK) and Cl.CurrentState==true then + Cl.CurrentState=false + SFXManager():Play(_SoundEffect.SOUND_PAPER_OUT) + Cl.ChangelogSprite:Play("SwapOut") + MenuManager.SetActiveMenu(1) --unblock inputs + elseif IsActionTriggeredAll(_ButtonAction.ACTION_MENURIGHT) and Cl.CurrentState then + CurrentPage = CurrentPage + 1 + if CurrentPage < #ChangeLog.Sheets then + SFXManager():Play(_SoundEffect.SOUND_PAPER_IN) + ScrollOffset = 5 + else + CurrentPage = #ChangeLog.Sheets + end + elseif IsActionTriggeredAll(_ButtonAction.ACTION_MENULEFT) and Cl.CurrentState then + CurrentPage = CurrentPage - 1 + if CurrentPage > 0 then + SFXManager():Play(_SoundEffect.SOUND_PAPER_IN) + ScrollOffset = 5 + else + CurrentPage = 1 + end + end + if ShouldBeRendered then + local LogRenderPosition = Isaac.WorldToMenuPosition(_MainMenuType.TITLE, Cl.PaperOffset) + Cl.ChangelogSprite:RenderLayer(3, LogRenderPosition) + local TextGuideNull = Cl.ChangelogSprite:GetNullFrame("UpdateText") + local Height = 0 + local BoxSize = 200 + if TextGuideNull then + local NullPos = TextGuideNull:GetPos() + local NullScale = TextGuideNull:GetScale() + local YOffset = 0 + local MinOffset = LogRenderPosition.Y + NullPos.Y + 40 * NullScale.Y --40 is a static offset for the "Change Log" title + local MaxOffset = MinOffset + 170 * NullScale.Y --170 is a total height of the paper, should get it exposed in the table + local TextStretchFactor = 0 + for _, iterline in pairs(Cl.Sheets[CurrentPage].TextArray) do + if string.find(iterline, "/f/") then + UseFade = true + elseif iterline == " " then + UseFade = false + end + local line = string.gsub(iterline, "/f/", "") + local XOffset = (-BoxSize / 2) * NullScale.X + local FullY = LogRenderPosition.Y + NullPos.Y + 40 * NullScale.Y + YOffset * NullScale.Y + ScrollOffset +-- if FullY<500 then +-- print(line,"fully-minoffset",FullY - MinOffset,",minoffset:",(MinOffset + Cl.ScrollMargin * NullScale.Y),",maxoffset:",(MaxOffset - Cl.ScrollMargin * NullScale.Y)) end +-- print("checking",FullY-MinOffset) + if ((MaxOffset - FullY) < 0.0) or ((FullY - MinOffset) < 0.0) then + goto skiptonextline + end + if FullY < (MinOffset + Cl.ScrollMargin * NullScale.Y) or FullY > (MaxOffset - Cl.ScrollMargin * NullScale.Y) then + if FullY - MinOffset < Cl.ScrollMargin * NullScale.Y then + Cl.FontColor.Alpha = (FullY - MinOffset) / Cl.ScrollMargin + end + if (MaxOffset - FullY) < Cl.ScrollMargin * NullScale.Y then + Cl.FontColor.Alpha = (MaxOffset - FullY) / Cl.ScrollMargin + end + else + Cl.FontColor.Alpha = 1 + end + if UseFade then + Cl.FontColor.Alpha = Cl.FontColor.Alpha * 0.75 + end + TextStretchFactor=math.min(1.0, BoxSize/Cl.Font:GetStringWidthUTF8(line) ) --this way the long lines of text get squished horizontally + Cl.Font:DrawStringScaledUTF8(line, LogRenderPosition.X + NullPos.X + XOffset, FullY, NullScale.X*TextStretchFactor, + NullScale.Y, Cl.FontColor, 0, false) + ::skiptonextline:: + YOffset = YOffset + Cl.LineHeight + Height = YOffset + end + end + + -- Scroll faster when holding SHIFT or DROP + local speed = (IsActionPressedAll(_ButtonAction.ACTION_DROP) or IsKeyboardPressedAll(_Keyboard.KEY_LEFT_SHIFT)) + and Cl.ScrollSpeedFast or Cl.ScrollSpeed + + if IsActionPressedAll(_ButtonAction.ACTION_MENUUP) then + ScrollVelocity = ScrollVelocity + speed + end + if IsActionPressedAll(_ButtonAction.ACTION_MENUDOWN) and -ScrollOffset < Height - (BoxSize / 2) then + ScrollVelocity = ScrollVelocity - speed + end + + if Cl.ChangelogSprite:IsFinished("SwapOut") then + ShouldBeRendered = false + ScrollOffset = 5 + ScrollVelocity = 0 + end + if ScrollOffset + ScrollVelocity > Cl.ScrollMargin then + ScrollOffset = Cl.ScrollMargin + ScrollVelocity = 0 + end + ScrollOffset = ScrollOffset + ScrollVelocity + ScrollVelocity = ScrollVelocity * 0.8 + + Cl.ChangelogSprite:Update() + end + elseif ShouldBeRendered then + ShouldBeRendered = false + Cl.CurrentState = false + ScrollOffset = Cl.ScrollMargin + ScrollVelocity = 0 + Cl.ChangelogSprite:Play("SwapOut") + end +end + +REPENTOGON.Extras.ChangeLog = ChangeLog + +local curattempt=0 +function ChangeLog.LoadAssets() + if #Cl.ChangelogSprite:GetDefaultAnimation() <= 0 then + Cl.ChangelogSprite:Load("gfx/ui/changelog.anm2", true) + Cl.ChangelogSprite:Play("SwapOut") + Cl.ChangelogSprite.PlaybackSpeed = 0.5 --correct speed for doing Update() inside of xxx_RENDER callback + + Cl.NoteSprite:Load("gfx/ui/changelog_tab_paper.anm2", true) + Cl.NoteSprite:Play("Idle") + curattempt=curattempt+1 + if curattempt>5 then + Isaac.RemoveCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, ChangeLog.LoadAssets) + Isaac.RemoveCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, Cl.MenuRender) + Isaac.AddCallback(REPENTOGON,_ModCallbacks.MC_MAIN_MENU_RENDER,REPENTOGON.Extras.Misc.NoRPTGNFldrErr) + end + end + if not Cl.Font:IsLoaded() then + Cl.Font:Load("font/teammeatex/teammeatex10.fnt") + end + + if not Cl.VersionFont:IsLoaded() then + Cl.VersionFont:Load("font/luamini.fnt") + end + + if Cl.Font:IsLoaded() and Cl.VersionFont:IsLoaded() and #(Cl.ChangelogSprite:GetDefaultAnimation()) > 0 then + + -- Separate sheets by version + -- Also, Lua doesn't have a way to separate strings by words. Only with patterns. + -- This makes me very sad. + local rawChangelog = Isaac.RGON_GetChangelog() + local entireChangelog = TextSplit(rawChangelog, "\n") + local chunk = "" + for _, word in ipairs(entireChangelog) do + if word == "/versionseparator/" then + table.insert(Cl.Sheets, { + ["Text"] = chunk, + ["TextArray"] = {}, + }) + chunk = "" + else + chunk = chunk .. word .. "\n" + end + end + + -- Just a failsafe if the log somehow doesn't have any version separators. + -- Mainly just for dev environments. + if #Cl.Sheets == 0 then + table.insert(Cl.Sheets, { + ["Text"] = rawChangelog, + ["TextArray"] = {} + }) + end + + Cl.EvaluateText() + Isaac.RemoveCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, ChangeLog.LoadAssets) + + Cl.AssetsLoaded = true + end +end + +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, ChangeLog.LoadAssets) +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, Cl.MenuRender) \ No newline at end of file diff --git a/assets/repentogon/scripts/repentogon_extras/changelog_official_text.lua b/assets/repentogon/scripts/repentogon_extras/changelog_official_text.lua new file mode 100644 index 0000000..ec1b598 --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/changelog_official_text.lua @@ -0,0 +1,20 @@ +return [[ +Have a nice sample text! +/newline/ +;D +/newline/ +/newline/ +/newline/ +/newline/ +/newline/ +/newline/ +/newline/ +/newline/ +/newline/ +/newline/ +/newline/ +/newline/ +/newline/ +Thanks for scrolling! +-im_tem +]] diff --git a/assets/repentogon/scripts/repentogon_extras/daily_stats.lua b/assets/repentogon/scripts/repentogon_extras/daily_stats.lua new file mode 100644 index 0000000..b08f503 --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/daily_stats.lua @@ -0,0 +1,156 @@ +-- save copy of original enums, to make it harder for mods to mess with the repentogon features +local _EventCounter = EventCounter +local _ModCallbacks = ModCallbacks +local _MainMenuType = MainMenuType + +local WinStreak = 0 +local TotalDailies = 0 +local GetStageGoal = 0 +local isAltPath = false +local isHardMode = false +local isMegaSatan = false +local diffOffsetFrameNum = 0 + +local ScheduleRefresh = true + +--local StreakSheet = Sprite() +local TotalSheet = Sprite() +--local GoalDestinationIcon = Sprite() +--local HardModeIcon = Sprite() + +local LeaderboardSprite = Sprite() + +local StreakPos = Vector(428, 110) + Vector(36, 24) +--StreakSheet.Offset = Vector(-36, -24) + +local TotalStreakText = "Total Runs: 0" +local TextLen = 38 + +local font = Font() +font:Load("font/teammeatex/teammeatex10.fnt") +local fontcolor = KColor(0.20, 0.15, 0.1, 1) + +local function RefreshDailyStats() + ScheduleRefresh = true +end + +local function GetGoalDestination(stage, altPath) + local goalMap = { + [6] = 0, + [8] = { + [false] = 1, + [true] = 8, + }, + [10] = { + [false] = 2, + [true] = 3, + }, + [11] = { + [false] = 4, + [true] = 5, + }, + [12] = 7, + [13] = 9, + } + + if goalMap[stage] then + if type(goalMap[stage]) == "table" then + if goalMap[stage][altPath] then + return goalMap[stage][altPath] + end + else + return goalMap[stage] + end + end + return 0 +end + +local function LoadAssets() + if #TotalSheet:GetDefaultAnimation() <= 0 then + --StreakSheet:Load("gfx/ui/main menu/winstreakwidget.anm2", true) + --StreakSheet:SetFrame("Idle", 0) + + TotalSheet:Load("gfx/ui/main menu/seedselectionwidget.anm2", true) + TotalSheet:SetFrame("Eggs", 0) + + --GoalDestinationIcon:Load("gfx/ui/hudpickups.anm2", true) + --GoalDestinationIcon:SetAnimation("Destination", true) + --GoalDestinationIcon:SetFrame(7) + + --HardModeIcon:Load("gfx/ui/hudpickups.anm2", true) + --HardModeIcon:SetAnimation("Idle", true) + --HardModeIcon:SetFrame(4) + + LeaderboardSprite:Load("gfx/ui/daily_destinations.anm2", true) + LeaderboardSprite:SetAnimation("Destination", true) + LeaderboardSprite:SetFrame(0) + end + if not font:IsLoaded() then + font:Load("font/teammeatex/teammeatex10.fnt") + end + if font:IsLoaded() and #(TotalSheet:GetDefaultAnimation()) > 0 then + TextLen = font:GetStringWidthUTF8(TotalStreakText) / 2 + Isaac.RemoveCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, LoadAssets) + end +end + +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, LoadAssets) + +local function RenderDailyStats() + if ScheduleRefresh and MenuManager:GetActiveMenu() == _MainMenuType.DAILYRUN then + local dailyChallenge = DailyChallenge + local challengeParam = dailyChallenge.GetChallengeParams() + WinStreak = Isaac.GetPersistentGameData():GetEventCounter(_EventCounter.DAILYS_STREAK) + TotalDailies = Isaac.GetPersistentGameData():GetEventCounter(_EventCounter.DAILYS_PLAYED) + GetStageGoal = challengeParam:GetEndStage() + isAltPath = challengeParam:IsSecretPath() or (GetStageGoal >= LevelStage.STAGE5 and challengeParam:IsAltPath()) + isBrokenBeastPath = challengeParam:IsBeastPath() and challengeParam:GetEndStage() ~= LevelStage.STAGE8 + + --[[if WinStreak > 0 then + StreakSheet:SetFrame("Good", 0) + elseif WinStreak < 0 then + StreakSheet:SetFrame("Bad", 0) + else + StreakSheet:SetFrame("Idle", 0) + end]] + TotalStreakText = "Total Runs: " .. TotalDailies + TextLen = font:GetStringWidthUTF8(TotalStreakText) / 2 + --StageGoalText = "Goal Stage: "..GetStageGoal + isHardMode = challengeParam:GetDifficulty() == 1 + isMegaSatan = challengeParam:IsMegaSatanRun() + diffOffsetFrameNum = isHardMode and 10 or 0 + end + if DailyChallengeMenu:IsLeaderboardVisible() then + return + end + local pos = Isaac.WorldToMenuPosition(_MainMenuType.DAILYRUN, StreakPos) + --StreakSheet:Render(pos) + font:DrawString(WinStreak, pos.X, pos.Y, fontcolor, 0, false) + pos = Isaac.WorldToMenuPosition(_MainMenuType.DAILYRUN, Vector(160, 230)) + TotalSheet:RenderLayer(0, pos) + + local goalPosition = Isaac.WorldToMenuPosition(_MainMenuType.DAILYRUN, Vector(258, 80)) + local goalFrame = GetGoalDestination(GetStageGoal, isAltPath) + diffOffsetFrameNum + + if isMegaSatan then + LeaderboardSprite:SetFrame(6 + diffOffsetFrameNum) + LeaderboardSprite:RenderLayer(0, goalPosition) + LeaderboardSprite:SetFrame(goalFrame) + LeaderboardSprite:RenderLayer(0, goalPosition - Vector(16, 0)) --alr variant -8,48 + else + if isBrokenBeastPath then + goalFrame = 9 + diffOffsetFrameNum + end + LeaderboardSprite:SetFrame(goalFrame) + LeaderboardSprite:RenderLayer(0, goalPosition) + end + --GoalDestinationIcon:RenderLayer(0, Vector(pos.X + 69, pos.Y - 32)) + + --[[if isHardMode then + HardModeIcon:RenderLayer(0, Vector(pos.X + 75, pos.Y - 82)) + end]] + font:DrawStringUTF8(TotalStreakText, pos.X - TextLen, pos.Y - 9, fontcolor, 0, false) +end + +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_PRE_GAME_EXIT, RefreshDailyStats) +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, RenderDailyStats) diff --git a/assets/repentogon/scripts/repentogon_extras/entity_save_state_manager.lua b/assets/repentogon/scripts/repentogon_extras/entity_save_state_manager.lua new file mode 100644 index 0000000..3b76fbc --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/entity_save_state_manager.lua @@ -0,0 +1,455 @@ +--#region Data + +---@class REPENTOGON._Internals.ESSM.ModLookup +---@field entityData table +---@field saveStateData table + +---@class REPENTOGON._Internals.ESSM.SaveData +---@field version integer +---@field checksum integer +---@field data REPENTOGON.SerializedTable + +local SAVE_DATA_VERSION = 1 + +---Map of registered mod ids and it's name, used to check if a modId has been registered and for some debug messages. +---@type table +local s_registeredMods = {} + +---Set of entities PtrHash that exist +---@type table +local s_validEntities = {} + +---Persistent mod data for existing entities +---@type table> +local s_entityData = {} + +---Persistent mod data for entity save states +---@type table> +local s_saveStateData = {} + +---Lookup for individual ModReference. +---mod references for the same mod point to the same data. +---@type table +local s_modLookup = {} +setmetatable(s_modLookup, { __mode = "k" }) + +--#endregion + +local json = require("json") +local ModManager = _GetModule("repentogon_extras.mod_manager") +local TableUtils = _GetModule("repentogon_extras.table_utils") + +local type = type +local pairs = pairs +local error = error +local assert = assert +local pcall = pcall +local tostring = tostring +local getmetatable = getmetatable +local string_format = string.format +local json_encode = json.encode +local json_decode = json.decode +local GetPtrHash = GetPtrHash +local Isaac_DebugString = Isaac.DebugString +local GetEntitySaveStateId = _CBindings.ESSM.GetEntitySaveStateId +local SaveEntityData = _CBindings.ESSM.SaveData +local LoadEntityData = _CBindings.ESSM.LoadData +local DeleteEntityData = _CBindings.ESSM.DeleteData + +---@param mod ModReference +---@param modId string +local function register_mod_id(mod, modId) + local exists = s_registeredMods[modId] ~= nil + local entityData + local saveStateData + + if not exists then + s_registeredMods[modId] = mod.Name + entityData = {} + saveStateData = {} + s_entityData[modId] = entityData + s_saveStateData[modId] = saveStateData + else + entityData = s_entityData[modId] + saveStateData = s_saveStateData[modId] + end + + s_modLookup[mod] = {entityData = entityData, saveStateData = saveStateData} +end + +---@param mod table +---@return boolean, string +local function register_mod(mod) + local varType = type(mod) + local modId = ModManager.GetModIdByReference(mod) + if not modId then + return false, string_format("ModReference expected, got %s", varType) + end + + register_mod_id(mod, modId) + + return true, "success" +end + +--#region Internals + +---@param entityId integer +local function _OnDeleteEntity(entityId) + local exists = s_validEntities[entityId] ~= nil + s_validEntities[entityId] = nil + + if not exists then + return + end + + for _, entityTbl in pairs(s_entityData) do + entityTbl[entityId] = nil + end +end + +---@param entityId integer +local function _OnNewEntity(entityId) + if s_validEntities[entityId] then + _OnDeleteEntity(entityId) + end + + s_validEntities[entityId] = true +end + +---@param entityId integer +---@param saveStateId integer +local function _OnStoreEntity(entityId, saveStateId) + for modId, entityTbl in pairs(s_entityData) do + local entityData = entityTbl[entityId] + if entityData then + s_saveStateData[modId][saveStateId] = TableUtils.DeepCopy(entityData) + end + end +end + +---@param entityId integer +---@param saveStateId integer +local function _OnRestoreEntity(entityId, saveStateId) + for modId, saveStateTbl in pairs(s_saveStateData) do + local stateData = saveStateTbl[saveStateId] + local data = nil + if stateData then + data = TableUtils.DeepCopy(stateData) + end + s_entityData[modId][entityId] = data + end +end + +---@param saveStateIds integer[] +local function _OnClearSaveStates(saveStateIds) + for _, saveStateTbl in pairs(s_saveStateData) do + for i = 1, #saveStateIds, 1 do + local id = saveStateIds[i] + saveStateTbl[id] = nil + end + end +end + +---@param sourceIds integer[] +---@param destIds integer[] +local function _OnCopySaveStates(sourceIds, destIds) + assert(#sourceIds == #destIds) + for _, saveStateTbl in pairs(s_saveStateData) do + for i = 1, #sourceIds, 1 do + local sourceTbl = saveStateTbl[sourceIds[i]] + local dest = destIds[i] + if sourceTbl then + saveStateTbl[dest] = TableUtils.DeepCopy(sourceTbl) + end + end + end +end + +---@param saveStateTbl table +---@param idMap table +---@param checksum integer +---@return string data +local function serialize_data(saveStateTbl, idMap, checksum) + local remappedData = {} + for serializationId, id in pairs(idMap) do + remappedData[serializationId] = saveStateTbl[id] + end + + local serializedTable = TableUtils.Serialize(remappedData) + + ---@type REPENTOGON._Internals.ESSM.SaveData + local saveData = { + version = SAVE_DATA_VERSION, + checksum = checksum, + data = serializedTable, + } + + local data = json_encode(saveData) + return data +end + +---@param idMap table +---@param fileName string +---@param checksum integer +local function _Serialize(idMap, fileName, checksum) + for modId, saveStateTbl in pairs(s_saveStateData) do + local mod = ModManager.GetModReferenceById(modId) + if not mod then + local modName = s_registeredMods[modId] -- use the first ever registered mod reference name + Isaac_DebugString(string_format("[ERROR] [ESSM] Registered mod \"%s\" no longer has a valid ModReference, cannot save data", modName)) + goto continue + end + + local success, result = pcall(serialize_data, saveStateTbl, idMap, checksum) + if not success then + Isaac_DebugString(string_format("[ERROR] [ESSM] Unable to save data for Mod \"%s\" in \"%s\": %s", mod.Name, fileName, result)) + DeleteEntityData(mod, fileName) + else + SaveEntityData(mod, fileName, result) + end + ::continue:: + end +end + +-- Register mods forcefully so that the system works as expected, even +-- if a mod has not accessed any data yet. +---@param mods ModReference[] +---@param modIds string[] +local function _PreDeserialize(mods, modIds) + for i = 1, #mods, 1 do + local modId = modIds[i] + if not s_registeredMods[modId] then + register_mod_id(mods[i], modId) + end + end +end + +---@param serializedIds integer[] +---@param destIds integer[] +---@param encodedData string +---@param checksum integer +---@param outData table +---@return boolean, string +local function deserialize_data(serializedIds, destIds, encodedData, checksum, outData) + ---@type boolean, REPENTOGON._Internals.ESSM.SaveData + local decodeSuccess, decodedData = pcall(json_decode, encodedData) + if not decodeSuccess then + return false, string_format("Unable to decode data: %s", decodedData) + end + + if type(decodedData) ~= "table" then + return false, "decoded data is not a table" + end + + local tblChecksum = decodedData.checksum + if not tblChecksum or tblChecksum ~= checksum then + return false, "checksum mismatch" + end + + local data = decodedData.data + if type(data) ~= "table" then + return false, "decoded data does not have any data" + end + + local deserializeSuccess, deserializedData = TableUtils.Deserialize(data) + if not deserializeSuccess then + return false, string_format("Unable to deserialize data: %s", deserializedData) + end + ---@cast deserializedData table + + for i = 1, #serializedIds, 1 do + local sourceId = serializedIds[i] + local deserialized = deserializedData[sourceId] + if type(deserialized) == "table" then + local id = destIds[i] + outData[id] = deserialized + end + end + + return true, "success" +end + +---@param serializedIds integer[] +---@param destIds integer[] +---@param fileName string +---@param checksum integer +local function _Deserialize(serializedIds, destIds, fileName, checksum) + assert(#serializedIds, #destIds) + for modId, saveStateTbl in pairs(s_saveStateData) do + local mod = ModManager.GetModReferenceById(modId) + if not mod then + local modName = s_registeredMods[modId] -- use the first ever registered mod reference name + Isaac_DebugString(string_format("[ERROR] [ESSM] Registered mod \"%s\" no longer has a valid ModReference, cannot load data", modName)) + goto continue + end + + local data = LoadEntityData(mod, fileName) + + if not data then + Isaac_DebugString(string_format("[INFO] [ESSM] Mod '%s' does not have any data for '%s'", mod.Name, fileName)) + goto continue + end + + local success, err = deserialize_data(serializedIds, destIds, data, checksum, saveStateTbl) + if not success then + Isaac_DebugString(string_format("[ERROR] [ESSM] Unable to load data for Mod '%s' in '%s': %s", mod.Name, fileName, tostring(err))) + DeleteEntityData(mod, fileName) + end + ::continue:: + end +end + +--#endregion + +--#region API + +local VALID_ENTITY_USERDATA = { + ["Entity"] = true, + ["EntityPlayer"] = true, + ["EntityFamiliar"] = true, + ["EntityTear"] = true, + ["EntityBomb"] = true, + ["EntityPickup"] = true, + ["EntitySlot"] = true, + ["EntityProjectile"] = true, + ["EntityKnife"] = true, + ["EntityLaser"] = true, + ["EntityNPC"] = true, + ["EntityEffect"] = true, +} + +---@param dataTable table +---@param id integer +---@return table +---@return boolean +local function get_data(dataTable, id) + local entityData = dataTable[id] + local exists = true + + if not entityData then + exists = false + entityData = {} + dataTable[id] = entityData + end + + return entityData, exists +end + +---@param mod ModReference +---@param entity Entity +---@param errLevel integer +---@return table, integer +local function get_entity_params(mod, entity, errLevel) + local modLookup = s_modLookup[mod] + if not modLookup then + local success, err = register_mod(mod) + modLookup = s_modLookup[mod] + + if not success then + error(string_format("bad argument #1 (%s)", err), errLevel + 1) + end + end + + local entityArgType = type(entity) + if entityArgType ~= "userdata" then + error(string_format("bad argument #2 (expected userdata, got %s)", entityArgType), errLevel + 1) + end + + local id = GetPtrHash(entity) + if not s_validEntities[id] then + local specificError + local metatable = getmetatable(entity) + local userdataName = metatable.__name or metatable.__type + if not VALID_ENTITY_USERDATA[userdataName] then + specificError = string_format("got %s", userdataName) + else + specificError = "Entity no longer exists" + end + error(string_format("bad argument #2 (got invalid Entity, %s)", specificError), errLevel + 1) + end + + return modLookup.entityData, id +end + +---@param mod ModReference +---@param ess EntitiesSaveState +---@param errLevel integer +---@return table, integer +local function get_entity_save_state_params(mod, ess, errLevel) + local modLookup = s_modLookup[mod] + if not modLookup then + local success, err = register_mod(mod) + modLookup = s_modLookup[mod] + + if not success then + error(string_format("bad argument #1 (%s)", err), errLevel + 1) + end + end + + local essArgType = type(ess) + if essArgType ~= "userdata" then + error(string_format("bad argument #2 (expected userdata, got %s)", essArgType), errLevel + 1) + end + + local userdataName = getmetatable(ess).__name + if userdataName ~= "EntitySaveState" then + error(string_format("bad argument #2 (expected EntitySaveState, got %s)", userdataName), errLevel + 1) + end + + ---@cast ess EntitiesSaveState + return modLookup.saveStateData, GetEntitySaveStateId(ess) +end + +---@param mod ModReference +---@param entity Entity +---@return table +---@return boolean +local function GetEntityData(mod, entity) + local dataTable, id = get_entity_params(mod, entity, 2) + return get_data(dataTable, id) +end + +---@param mod ModReference +---@param ess EntitiesSaveState +---@return table +---@return boolean +local function GetEntitySaveStateData(mod, ess) + local dataTable, id = get_entity_save_state_params(mod, ess, 2) + return get_data(dataTable, id) +end + +---@param mod ModReference +---@param entity Entity +---@return table? +local function TryGetEntityData(mod, entity) + local dataTable, id = get_entity_params(mod, entity, 2) + return dataTable[id] +end + +---@param mod ModReference +---@param ess EntitiesSaveState +---@return table? +local function TryGetEntitySaveStateData(mod, ess) + local dataTable, id = get_entity_save_state_params(mod, ess, 2) + return dataTable[id] +end + +--#endregion + +local Module = {} + +Module._OnNewEntity = _OnNewEntity +Module._OnDeleteEntity = _OnDeleteEntity +Module._OnStoreEntity = _OnStoreEntity +Module._OnRestoreEntity = _OnRestoreEntity +Module._OnCopySaveStates = _OnCopySaveStates +Module._OnClearSaveStates = _OnClearSaveStates +Module._Serialize = _Serialize +Module._PreDeserialize = _PreDeserialize +Module._Deserialize = _Deserialize +Module.GetEntityData = GetEntityData +Module.GetEntitySaveStateData = GetEntitySaveStateData +Module.TryGetEntityData = TryGetEntityData +Module.TryGetEntitySaveStateData = TryGetEntitySaveStateData + +return Module \ No newline at end of file diff --git a/assets/repentogon/scripts/repentogon_extras/mod_manager.lua b/assets/repentogon/scripts/repentogon_extras/mod_manager.lua new file mode 100644 index 0000000..58ef875 --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/mod_manager.lua @@ -0,0 +1,98 @@ +---@alias REPENTOGON.ModId string +---@class REPENTOGON.ModData + +--#region Data + +---@type table +local s_modIds = {} + +---@type table +local s_modReferences = {} + +local s_modsLoaded = false + +--#endregion + +local table_insert = table.insert +local table_remove = table.remove +local GetModId = _CBindings.GetModId + +---@param modReference ModReference +local function _RegisterMod(modReference) + local id = GetModId(modReference) + if not id then + return + end + + assert(s_modIds[modReference] == nil, "The same mod has been registered multiple times") + s_modIds[modReference] = id + local modReferences = s_modReferences[id] + if not modReferences then + modReferences = {} + s_modReferences[id] = modReferences + end + + table_insert(modReferences, modReference) +end + +---@param modReference ModReference +local function _UnloadMod(modReference) + local id = s_modIds[modReference] + if not id then + return + end + + s_modIds[modReference] = nil + + local modReferences = s_modReferences[id] + for i = 1, #modReferences, 1 do + if modReferences[i] == modReference then + table_remove(modReferences, i) + break -- there should never be multiple of the same mod references in the list + end + end +end + +local function _OnModsLoaded() + s_modsLoaded = true +end + +---@param modReference ModReference +---@return REPENTOGON.ModId? +local function GetModIdByReference(modReference) + return s_modIds[modReference] +end + +---@param modId REPENTOGON.ModId +---@return ModReference? +local function GetModReferenceById(modId) + local modReferences = s_modReferences[modId] + if modReferences then + return modReferences[1] + end +end + +---@return fun(table: table, index?: REPENTOGON.ModId): REPENTOGON.ModId, ModReference[] +---@return table +local function GetModIterator() + return pairs(s_modReferences) +end + +---@return boolean +local function ModsLoaded() + return s_modsLoaded +end + +---@class REPENTOGON.Scripts.ModManager +local Module = {} +Module.detail = {} + +Module.detail.RegisterMod = _RegisterMod +Module.detail.UnloadMod = _UnloadMod +Module.detail.OnModsLoaded = _OnModsLoaded +Module.GetModIdByReference = GetModIdByReference +Module.GetModReferenceById = GetModReferenceById +Module.ModsLoaded = ModsLoaded +Module.GetModIterator = GetModIterator + +return Module \ No newline at end of file diff --git a/assets/repentogon/scripts/repentogon_extras/mods_menu_tweaks.lua b/assets/repentogon/scripts/repentogon_extras/mods_menu_tweaks.lua new file mode 100644 index 0000000..0b67c3e --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/mods_menu_tweaks.lua @@ -0,0 +1,53 @@ +-- save copy of original enums, to make it harder for mods to mess with the repentogon features +local _ModCallbacks = ModCallbacks +local _MainMenuType = MainMenuType +local _ButtonAction = ButtonAction +local _Keyboard = Keyboard + +local MaxPollCIdx = 3 +local function UpdateMaxPollCIdx() + local str=Input.GetDeviceNameByIdx(0) + local i=0 + while (str~=nil) do + i=i+1 + str=Input.GetDeviceNameByIdx(i) + end + MaxPollCIdx=i +end +local function IsActionTriggeredAll(action) + for i = 0, MaxPollCIdx do + if Input.IsActionTriggered(action, i) then + return true + end + end + return false +end + +local function IsButtonTriggeredAll(action) + for i = 0, MaxPollCIdx do + if Input.IsButtonTriggered(action, i) then + return true + end + end + return false +end + +local function TweakModsMenu() + -- The values are automatically clamped so there's not much to worry about here + if MenuManager.GetActiveMenu() == _MainMenuType.MODS then + UpdateMaxPollCIdx() + if IsActionTriggeredAll(_ButtonAction.ACTION_MENULEFT) then + ModsMenu.SetSelectedElement(ModsMenu.GetSelectedElement() - 3) + elseif IsActionTriggeredAll(_ButtonAction.ACTION_MENURIGHT) then + ModsMenu.SetSelectedElement(ModsMenu.GetSelectedElement() + 3) + end + + if IsButtonTriggeredAll(_Keyboard.KEY_PAGE_UP) or IsButtonTriggeredAll(_ButtonAction.ACTION_MENULT) then + ModsMenu.SetSelectedElement(ModsMenu.GetSelectedElement() - 10) + elseif IsButtonTriggeredAll(_Keyboard.KEY_PAGE_DOWN) or IsActionTriggeredAll(_ButtonAction.ACTION_MENURT) then + ModsMenu.SetSelectedElement(ModsMenu.GetSelectedElement() + 10) + end + end +end + +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, TweakModsMenu) \ No newline at end of file diff --git a/assets/repentogon/scripts/repentogon_extras/onlinestub.lua b/assets/repentogon/scripts/repentogon_extras/onlinestub.lua new file mode 100644 index 0000000..f7333b7 --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/onlinestub.lua @@ -0,0 +1,306 @@ +-- save copy of original enums, to make it harder for mods to mess with the repentogon features +local _ImGuiElement = _ImGuiElement +local _ImGuiCallback = ImGuiCallback +local _ModCallbacks = ModCallbacks +local _RoomTransitionAnim = RoomTransitionAnim +local _Direction = Direction + +REPENTOGON.Extras.OnlineRNG=RNG() +local rng=REPENTOGON.Extras.OnlineRNG +local stubvec=Vector(-1,-1) +rng:SetSeed(1) --placeholder seed +local isonline=false +local checkonline=true +local con=nil +if REPENTOGON.NoOnlineStub then + return +end + +function REPENTOGON.Extras.UnlinkCB() local cnt=0 for _,_ in pairs(_ModCallbacks) do cnt=cnt+1 end for i=0,cnt do local cb=Isaac.GetCallbacks(i,false) print(cb) while #(cb)~=0 do table.remove(cb,1) Isaac.SetBuiltInCallbackState(i, false) end end for _,ent in pairs(Isaac.GetRoomEntities()) do for entry,_ in pairs(ent:GetData()) do ent:GetData()[entry]=nil end end end --temporary, used to bypass mod unload callbacks since actions done there are just way too nasty for us! + + +local function CheckOnlineCoop() + if not Isaac.GetPlayer() then + print("[onlinestub] player not initialized yet!") + return false + end + for i=0, Game():GetNumPlayers() do + if (not Isaac.GetPlayer(i):IsLocalPlayer()) then + return true + end + end + return false +end + +-- if Isaac.GetPlayer()==nil or (not CheckOnlineCoop()) then +-- REPENTOGON.Extras.OnlineStubReturned=true +-- return --preventing the thing from running in scenario when we aren't netstarting +-- end + +if Isaac.GetPlayer() and CheckOnlineCoop() then + isonline=true + checkonline=false +else + Isaac.DebugString("[onlinestub] Assuming no netstart for now!") +end + +local stubdata={} + +REPENTOGON.Extras.UnsafeFuncs={} +REPENTOGON.Extras.UnsafeFuncs.MathRandom=math.random +REPENTOGON.Extras.UnsafeFuncs.Random=Random +REPENTOGON.Extras.UnsafeFuncs.RandomVector=RandomVector + +REPENTOGON.Extras.UnsafeFuncs.ActionValue=Input.GetActionValue +REPENTOGON.Extras.UnsafeFuncs.ButtonValue=Input.GetButtonValue +REPENTOGON.Extras.UnsafeFuncs.KeyPress=Input.IsButtonPressed +REPENTOGON.Extras.UnsafeFuncs.KeyTrigger=Input.IsButtonTriggered +REPENTOGON.Extras.UnsafeFuncs.ActionPress=Input.IsActionPressed +REPENTOGON.Extras.UnsafeFuncs.ActionTrigger=Input.IsActionTriggered +REPENTOGON.Extras.UnsafeFuncs.MousePos=Input.GetMousePosition +REPENTOGON.Extras.UnsafeFuncs.MouseInput=Input.IsMouseBtnPressed + +REPENTOGON.Extras.UnsafeFuncs.HasData=Isaac.HasModData +REPENTOGON.Extras.UnsafeFuncs.SaveData=Isaac.SaveModData +REPENTOGON.Extras.UnsafeFuncs.LoadData=Isaac.LoadModData +REPENTOGON.Extras.UnsafeFuncs.RemoveData=Isaac.RemoveModData + +function Input.GetActionValue(act,cidx) + if (not isonline) or cidx~=0 then + return REPENTOGON.Extras.UnsafeFuncs.ActionValue(act,cidx) + end + local pl=Isaac.GetPlayer() + if pl then return REPENTOGON.Extras.UnsafeFuncs.ActionValue(act,pl.ControllerIndex) else return 0.0 end +end + +function Input.GetButtonValue(act,cidx) + if (not isonline) or cidx~=0 then + return REPENTOGON.Extras.UnsafeFuncs.ButtonValue(act,cidx) + end + return 0.0 +end + +function Input.IsButtonPressed(act,cidx) + if (not isonline) or cidx~=0 then + return REPENTOGON.Extras.UnsafeFuncs.KeyPress(act,cidx) + end + return false +end + +function Input.IsButtonTriggered(act,cidx) + if (not isonline) or cidx~=0 then + return REPENTOGON.Extras.UnsafeFuncs.KeyTrigger(act,cidx) + end + return false +end + +function Input.IsActionPressed(act,cidx) + if (not isonline) or cidx~=0 then + return REPENTOGON.Extras.UnsafeFuncs.ActionPress(act,cidx) + end + local pl=Isaac.GetPlayer() + if pl then return REPENTOGON.Extras.UnsafeFuncs.ActionPress(act,pl.ControllerIndex) else return false end +end + +function Input.IsActionTriggered(act,cidx) + if (not isonline) or cidx~=0 then + return REPENTOGON.Extras.UnsafeFuncs.ActionTrigger(act,cidx) + end + local pl=Isaac.GetPlayer() + if pl then return REPENTOGON.Extras.UnsafeFuncs.ActionTriggerda(act,pl.ControllerIndex) else return false end +end + + +function Isaac.HasModData(modref) + if not isonline then + return REPENTOGON.Extras.UnsafeFuncs.HasData(modref) + end + if stubdata[modref] then + return true + end + return false +end + +function Isaac.LoadModData(modref) + if not isonline then + return REPENTOGON.Extras.UnsafeFuncs.LoadData(modref) + end + if stubdata[modref]~=nil then + return stubdata[modref] + end + return "" --stub +end + +function Isaac.SaveModData(modref,data) + if not isonline then + return REPENTOGON.Extras.UnsafeFuncs.SaveData(modref,data) + end + stubdata[modref]=data + return false --stub +end + +function Isaac.RemoveModData(modref) + if not isonline then + return REPENTOGON.Extras.UnsafeFuncs.RemoveData(modref) + end --stub + stubdata[modref]=nil +end + +function Input.GetMousePosition(gamecoords) + if not isonline then + return REPENTOGON.Extras.UnsafeFuncs.MousePos(gamecoords) + end + if gamecoords then + return Isaac.ScreenToWorld(stubvec) + end + return stubvec --stub +end + + +function Input.IsMouseBtnPressed(button) + if not isonline then + return REPENTOGON.Extras.UnsafeFuncs.MouseInput(button) + end + return 0 --stub +end + +function math.random(...) + local args={...} + local min=args[1] + local max=args[2] + if not isonline then + return REPENTOGON.Extras.UnsafeFuncs.MathRandom(...) + end + if min==nil and max==nil then + return rng:RandomFloat() + end + if min~=nil and max==nil then + return rng:RandomInt(min)+1 + end + return rng:RandomInt(max-min+1)+min +end + +function Random() + if not isonline then + return REPENTOGON.Extras.UnsafeFuncs.Random() + end + return rng:RandomInt(2^32 - 1) --might not be 100% accurate but eh, good enough +end + +function RandomVector() + if not isonline then + return REPENTOGON.Extras.UnsafeFuncs.RandomVector() + end + return Vector.FromAngle(math.random()*360) +end + + + +function REPENTOGON.Extras.IsOnlineStub() + return isonline +end + +local function ScheduleLuaReset() + if Game():GetFrameCount()>30 then + Isaac.RemoveCallback(REPENTOGON, _ModCallbacks.MC_POST_UPDATE,ScheduleLuaReset) + print('Please, run the "luareset" debug command :)') + if not REPENTOGON.Extras.NoImGui then + local imgui = Isaac.GetImGui() + imgui:CreateWindow("luareset-warning","A rather important message!") + imgui:AddElement("luareset-warning","luareset-text",_ImGuiElement.Text,'Hey, folks, can you please have one person run the "luareset" command for me?') + imgui:AddElement("luareset-warning","luareset-okay",_ImGuiElement.Button,"Okay, I will!") + imgui:AddCallback("luareset-okay", _ImGuiCallback.Clicked, function() imgui:RemoveWindow("luareset-warning") imgui:Hide() end) + imgui:SetVisible("luareset-warning",true) + imgui:Show() + end +-- Isaac.ExecuteCommand("luareset") + end +end + +local function ScheduleRestart() + if Game():GetFrameCount()>1 then + Isaac.ExecuteCommand("seed "..Game():GetSeeds():GetStartSeedString()) + Isaac.RemoveCallback(REPENTOGON, _ModCallbacks.MC_POST_UPDATE,ScheduleRestart) + Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_POST_UPDATE,ScheduleLuaReset) + end +end + +local function SetOnlineRNG() + if not checkonline then + return + end + checkonline=false + stubdata={} + isonline=CheckOnlineCoop() --will be set to false on local only runs + rng:SetSeed(Game():GetSeeds():GetStartSeed(),35) + if isonline then + REPENTOGON.Extras.UnlinkCB() + Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_POST_UPDATE,ScheduleRestart) + end +end + +local function ResetStubData() + stubdata={} + checkonline=true +end + +function REPENTOGON.Extras.SetOnlineStub(val) + isonline=val + checkonline=false +end + +local function render() + if isonline then + Isaac.RenderScaledText("Online stubber enabled!",5,Isaac.GetScreenHeight()-8,0.5,0.5,1,1,1,0.5) + end +end + +local function TeleportToBeast() + Isaac.ExecuteCommand("goto x.itemdungeon.666") + Game():StartRoomTransition(-3, _Direction.NO_DIRECTION, _RoomTransitionAnim.FADE,nil,-1) + Isaac.RemoveCallback(REPENTOGON, _ModCallbacks.MC_POST_UPDATE,TeleportToBeast) +end + +local function DelayDogmaTeleport(_,npc) + if npc:GetSprite():GetFrame()>=110 then + Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_POST_UPDATE,TeleportToBeast) + Isaac.RemoveCallback(REPENTOGON, _ModCallbacks.MC_POST_NPC_RENDER,DelayDogmaTeleport) + end +end + +local function DogmaStub(_,npc) + if isonline and npc.Variant==2 and Game():GetLevel():GetStage()==13 and Game():GetLevel():GetStageType()>0 and Game():GetLevel():GetCurrentRoomIndex()==109 then + Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_POST_NPC_RENDER,DelayDogmaTeleport) + end +end + +local function DesyncDetect() + if isonline and not REPENTOGON.Extras.NoImGui then + if not con then con=Game():GetConsole() end + local conhist=con:GetHistory() + local imgui = Isaac.GetImGui() + for i=1,5 do + if string.match(conhist[i],"Checksum mismatch") then + print("\n\n\n\n\n") + imgui:CreateWindow("desync-warning","Fuck.") + imgui:AddElement("desync-warning","desync-text", _ImGuiElement.Text,'Shit just happened, want to try a "rewind"? Maybe a "restart"?') + imgui:AddElement("desync-warning","desync-rewind", _ImGuiElement.Button,"Please rewind!") + imgui:AddElement("desync-warning","desync-restart", _ImGuiElement.Button,"I choose a restart") + imgui:AddCallback("desync-rewind", _ImGuiCallback.Clicked,function() imgui:RemoveWindow("desync-warning") imgui:Hide() Isaac.ExecuteCommand("rewind") end) + imgui:AddCallback("desync-restart", _ImGuiCallback.Clicked,function() imgui:RemoveWindow("desync-warning") imgui:Hide() Isaac.ExecuteCommand("restart") end) + imgui:SetVisible("desync-warning",true) + imgui:Show() + break + end + end + end +end + +function REPENTOGON.Extras.StubCallbacks() + Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_POST_UPDATE, DesyncDetect) + Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_POST_ENTITY_KILL, DogmaStub,950) + Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_POST_RENDER, render) + Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_PRE_GAME_EXIT, ResetStubData) + Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_POST_NEW_ROOM, SetOnlineRNG) --because new room triggers before anything else :skull: +end +REPENTOGON.Extras.StubCallbacks() diff --git a/assets/repentogon/scripts/repentogon_extras/save_state_manager.lua b/assets/repentogon/scripts/repentogon_extras/save_state_manager.lua new file mode 100644 index 0000000..35876af --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/save_state_manager.lua @@ -0,0 +1,220 @@ +---@class REPENTOGON._Internals.SSM.ModData +---@field gameData table +---@field gameStates table[] + +---@class REPENTOGON.SSM.SaveData +---@field version integer +---@field checksum integer +---@field gameData REPENTOGON.SerializedTable + +--#region Data + +---@type table +local s_modData = {} + +--#endregion + +local MAIN_GAME_STATE = 0 +local SAVE_DATA_VERSION = 1 + +local json = require("json") +local ModManager = _GetModule("repentogon_extras.mod_manager") +local TableUtils = _GetModule("repentogon_extras.table_utils") +local HasModData = _CBindings.HasModData +local SaveModData = _CBindings.SaveModData +local LoadModData = _CBindings.LoadModData +local RemoveModData = _CBindings.RemoveModData +local RemoveAllData = _CBindings.RemoveAllData + +---@param fileName string +---@return string +local function get_file_name(fileName) + return "SaveStateManager/" .. fileName .. ".dat" +end + +---Tries to initialize mod's gameData and returns. +---@param modId REPENTOGON.ModId +---@return REPENTOGON._Internals.SSM.ModData +local function get_data(modId) + local modData = s_modData[modId] + if not modData then + modData = {gameData = {}, gameStates = {}} + s_modData[modId] = modData + end + + return modData +end + +---Gets the mod's gameData +---@param mod ModReference +local function GetGameData(mod) + local modId = ModManager.GetModIdByReference(mod) + if not modId then + error(string.format("bad argument #1 (ModReference expected, got %s)", type(mod)), 2) + end + + local modData = get_data(modId) + return modData.gameData +end + +---Resets the mod's gameData +---@param mod ModReference +local function ClearGameData(mod) + local modId = ModManager.GetModIdByReference(mod) + if not modId then + error(string.format("bad argument #1 (ModReference expected, got %s)", type(mod)), 2) + end + + local modData = get_data(modId) + modData.gameData = {} +end + +---Copies all mods' gameData to gameState +---@param gameStateId integer +local function StoreGameState(gameStateId) + for _, modData in pairs(s_modData) do + modData.gameStates[gameStateId] = TableUtils.DeepCopy(modData.gameData) + end +end + +---Copies all mods' gameState to gameData +---@param gameStateId integer +local function RestoreGameState(gameStateId) + for _, modData in pairs(s_modData) do + local state = modData.gameStates[gameStateId] or {} + modData.gameData = TableUtils.DeepCopy(state) + end +end + +---Clears all mods' gameState +---@param gameStateId integer +local function ClearGameState(gameStateId) + for _, modData in pairs(s_modData) do + modData.gameStates[gameStateId] = nil + end +end + +---Serializes mods' main gameState and saves it to a file in the 'data' folder +---@param gameStateInfo REPENTOGON.GameStateInfo +local function SerializeGameState(gameStateInfo) + for modId, modData in pairs(s_modData) do + local gameData = modData.gameStates[MAIN_GAME_STATE] or {} + local serializedData = TableUtils.Serialize(gameData) + + ---@type REPENTOGON.SSM.SaveData + local saveData = { + version = SAVE_DATA_VERSION, + checksum = gameStateInfo.checksum, + gameData = serializedData + } + + local modReference = ModManager.GetModReferenceById(modId) + if not modReference then + goto continue + end + + local fileName = get_file_name(gameStateInfo.fileName) + local success = SaveModData(modReference, fileName, json.encode(saveData)) + if not success then + Isaac.DebugString(string.format("[ERROR] [SSM] Unable to Save mod data for '%s'", tostring(modReference.Name))) + end + ::continue:: + end +end + +---@param gameStateInfo REPENTOGON.GameStateInfo +---@param serializedData string +---@return boolean ok +---@return table | string +local function deserialize_game_state(gameStateInfo, serializedData) + local ok, saveData = pcall(json.decode, serializedData) + if not ok then + return false, saveData + end + + if type(saveData) ~= "table" then + return false, "decoded data is not a table" + end + + ---@cast saveData REPENTOGON.SSM.SaveData + if saveData.checksum ~= gameStateInfo.checksum then + return false, "checksum mismatch" + end + + local gameData = saveData.gameData + if type(gameData) ~= "table" then + return false, "no mod data found" + end + + local ok, data = TableUtils.Deserialize(gameData) + if not ok then + return false, data + end + + return true, data +end + +---Clears each mod's main gameState and tries to load the game state file. +---If successful it loads the data into the main gameState. +---@param gameStateInfo REPENTOGON.GameStateInfo +local function DeserializeGameState(gameStateInfo) + for modId, modReferences in ModManager.GetModIterator() do + local modRef = modReferences[1] + if not modRef then + goto continue + end + + local fileName = get_file_name(gameStateInfo.fileName) + local noDataInit = not s_modData[modId] and not HasModData(modRef, fileName) + if noDataInit then + goto continue + end + + local modData = get_data(modId) + modData.gameStates[MAIN_GAME_STATE] = nil + + local serializedData = LoadModData(modRef, fileName) + if not serializedData then + goto continue + end + + local ok, data = deserialize_game_state(gameStateInfo, serializedData) + if not ok then + Isaac.DebugString(string.format("[ERROR] [SSM] Unable to decode mod data for '%s' in '%s': %s", tostring(modRef.Name), fileName, data)) + RemoveModData(modRef, fileName) + goto continue + end + + ---@cast data table + modData.gameStates[MAIN_GAME_STATE] = data + ::continue:: + end +end + +---Delete all mod files for that fileName +---@param fileName string +local function DeleteGameState(fileName) + RemoveAllData(get_file_name(fileName)) +end + +---Reset game data for all mods +local function CleanupState() + for _, modData in pairs(s_modData) do + modData.gameData = {} + end +end + +---@class REPENTOGON.Scripts.SSM +local Module = {} + +Module.GetGameData = GetGameData +Module.ClearGameData = ClearGameData +Module._StoreGameState = StoreGameState +Module._RestoreGameState = RestoreGameState +Module._ClearGameState = ClearGameState +Module._SerializeGameState = SerializeGameState +Module._DeserializeGameState = DeserializeGameState +Module._DeleteGameState = DeleteGameState +Module._CleanupState = CleanupState + +return Module \ No newline at end of file diff --git a/assets/repentogon/scripts/repentogon_extras/stats_menu.lua b/assets/repentogon/scripts/repentogon_extras/stats_menu.lua new file mode 100644 index 0000000..9d0c4e4 --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/stats_menu.lua @@ -0,0 +1,258 @@ +-- save copy of original enums, to make it harder for mods to mess with the repentogon features +local _Achievement = Achievement +local _EventCounter = EventCounter +local _ModCallbacks = ModCallbacks +local _CollectibleType = CollectibleType +local _MainMenuType = MainMenuType +local _ButtonAction = ButtonAction +local _SoundEffect = SoundEffect +local _ButtonActionBitwise = ButtonActionBitwise + +local StatsMenuRep = { + StatPageAngleOffsetX = -2, + StatPageNumberOffsetX = 120, + StatSheetSprite = Sprite(), + StatSheetSpritePos = Vector(-39, -15), + ArrowSprite = Sprite(), + LeftArrowSpritePos = Vector(-93, -33), + RightArrowSpritePos = Vector(-169, -25), + ScheduleRefresh = true, + CurrentlyDisplayedCategoryID = 1, + -- data structure: {category name, {stat name (string or table of lines), EventCounter enum or custom function to calculate stat, current value, value text width/2}} + Stats = { + { + "GAME STATS", { + { "deaths", _EventCounter.DEATHS }, + { "items", function() + local gameData = Isaac.GetPersistentGameData() + local itemconfig = Isaac.GetItemConfig() + local sum = 0 + local unlocked = 0 + for id = 1, 732 do --this wont work for modded items for now so hardcoded 732 it is + local configEntry = itemconfig:GetCollectible(id) + if configEntry and not configEntry.Hidden then + sum = sum + 1 + if gameData:IsItemInCollection(id) then + unlocked = unlocked + 1 + end + end + end + + return unlocked .. "/" .. sum + end }, + { "mom kills", _EventCounter.MOM_KILLS }, + { "secrets", function() + local gameData = Isaac.GetPersistentGameData() + local sum = 0 + local unlocked = 0 + local previousValues = {} + for _, value in pairs(_Achievement) do + if not previousValues[value] then + sum = sum + 1 + previousValues[value] = true + if gameData:Unlocked(value) then + unlocked = unlocked + 1 + end + end + end + + return unlocked .. "/" .. sum + end }, + { "best streak", _EventCounter.BEST_STREAK }, + { "best online streak", _EventCounter.ONLINE_BEST_STREAK }, + { "", function() return "" end }, -- spacer + { "eden tokens", _EventCounter.EDEN_TOKENS }, + { "", function() return "" end }, -- spacer + { "dailys played", _EventCounter.DAILYS_PLAYED }, + { "dailys won", _EventCounter.DAILYS_WON }, + } }, + { + "BOSS KILLS", { + { "isaac kills", _EventCounter.ISAAC_KILLS }, + { "satan kills", _EventCounter.SATAN_KILLS }, + { "blue baby kills", _EventCounter.BLUE_BABY_KILLS }, + { "lamb kills", _EventCounter.LAMB_KILLS }, + { "hush kills", _EventCounter.HUSH_KILLS }, + { "delirium kills", _EventCounter.DELIRIUM_KILLS }, + { "mega satan kills", _EventCounter.MEGA_SATAN_KILLS }, + { "mother kills", _EventCounter.MOTHER_KILLS }, + { "beast kills", _EventCounter.BEAST_KILLS }, + { "baby plum kills", _EventCounter.BABY_PLUM_KILLS }, + { "boss rushs cleared", _EventCounter.BOSSRUSHS_CLEARED }, + } }, + { + "SHOPPING", { + { "shopkeeper killed", _EventCounter.SHOPKEEPER_KILLED }, + { "items bought", _EventCounter.SHOP_ITEMS_BOUGHT }, + { "angel deals taken", _EventCounter.ANGEL_DEALS_TAKEN }, + { "devil deals taken", _EventCounter.DEVIL_DEALS_TAKEN }, + { "", function() return "" end }, -- spacer + { { "donation machine", "coins" }, _EventCounter.DONATION_MACHINE_COUNTER }, + { { "greed donation", "machine coins" }, _EventCounter.GREED_DONATION_MACHINE_COUNTER }, + } }, + { + "GAMBLING", { + { "arcades entered", _EventCounter.ARCADES_ENTERED }, + { "shellgames played", _EventCounter.SHELLGAMES_PLAYED }, + { { "blood donation", "machine used" }, _EventCounter.BLOOD_DONATION_MACHINE_USED }, + { { "slot machines", "broken" }, _EventCounter.SLOT_MACHINES_BROKEN }, + { { "golden chests", "opened" }, _EventCounter.CHESTS_OPENED_WITH_KEY }, + { { "secret room", "walls broken" }, _EventCounter.SECRET_ROOMS_WALLS_OPENED }, + } }, + { + "CHAOS", { + { "rocks destroyed", _EventCounter.ROCKS_DESTROYED }, + { { "tinted rocks", "destroyed" }, _EventCounter.TINTED_ROCKS_DESTROYED }, + { { "super special", "rocks destroyed" }, _EventCounter.SUPER_SPECIAL_ROCKS_DESTROYED }, + { "poop destroyed", _EventCounter.POOP_DESTROYED }, + { { "rainbow poop", "destroyed" }, _EventCounter.RAINBOW_POOP_DESTROYED }, + { "pills eaten", _EventCounter.PILLS_EATEN }, + { "cards used", _EventCounter.CARDS_USED }, + { "batteries collected", _EventCounter.BATTERIES_COLLECTED }, + { "battery bums killed", _EventCounter.BATTERY_BUMS_KILLED }, + } }, + { + "MISC", { + { "beds used", _EventCounter.BEDS_USED }, + { { "battery bum", "collectible payouts" }, _EventCounter.BATTERY_BUM_COLLECTIBLE_PAYOUTS }, + } }, + } +} + +local StatsMenuPos = Vector(35, 34) +local MaxCategoryID = 1 + +local font = Font() +font:Load("font/teammeatex/teammeatex10.fnt") +local fontcolor = KColor(0.20, 0.15, 0.1, 1) + +local MaxPollCIdx = 3 +local function UpdateMaxPollCIdx() + local str=Input.GetDeviceNameByIdx(0) + local i=0 + while (str~=nil) do + i=i+1 + str=Input.GetDeviceNameByIdx(i) + end + MaxPollCIdx=i +end +local function IsActionTriggeredAll(action) + for i = 0, MaxPollCIdx do + if Input.IsActionTriggered(action, i) then + return true + end + end + return false +end + +local function RefreshExtraStats() + StatsMenuRep.ScheduleRefresh = true +end + +local function LoadAssets() + if #StatsMenuRep.StatSheetSprite:GetDefaultAnimation() <= 0 then + StatsMenuRep.StatSheetSprite:Load("gfx/ui/main menu/statsmenu.anm2", true) + StatsMenuRep.StatSheetSprite:SetFrame("Idle", 0) + + StatsMenuRep.ArrowSprite:Load("gfx/ui/leaderboardmenu.anm2", true) + StatsMenuRep.ArrowSprite:SetFrame("Idle", 0) + end + if not font:IsLoaded() then + font:Load("font/teammeatex/teammeatex10.fnt") + end + if font:IsLoaded() and #(StatsMenuRep.StatSheetSprite:GetDefaultAnimation()) > 0 then + Isaac.RemoveCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, LoadAssets) + end +end + +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, LoadAssets) + + +local function RenderExtraStats() + if StatsMenu:IsSecretsMenuVisible() then + StatsMenu:GetStatsMenuSprite():GetLayer("Paper1"):SetVisible(true) + return + end + if MenuManager:GetActiveMenu() == _MainMenuType.SAVES then StatsMenuRep.ScheduleRefresh = true end + if MenuManager:GetActiveMenu() == _MainMenuType.STATS then + UpdateMaxPollCIdx() + if StatsMenuRep.ScheduleRefresh then + local gameData = Isaac.GetPersistentGameData() + MaxCategoryID = #StatsMenuRep.Stats + 1 + for i, categoryData in ipairs(StatsMenuRep.Stats) do + for j, stat in ipairs(categoryData[2]) do + if type(stat[2]) == "function" then + StatsMenuRep.Stats[i][2][j][3] = stat[2]() + else + StatsMenuRep.Stats[i][2][j][3] = gameData:GetEventCounter(stat[2]) + end + StatsMenuRep.Stats[i][2][j][4] = font:GetStringWidthUTF8(tostring(StatsMenuRep.Stats[i][2][j][3])) / 2 + end + end + StatsMenuRep.ScheduleRefresh = false + end + + if IsActionTriggeredAll(_ButtonAction.ACTION_MENULEFT) and MenuManager.GetInputMask() & _ButtonActionBitwise.ACTION_MENULEFT ~= 0 then + SFXManager():Play(_SoundEffect.SOUND_PAPER_IN) + StatsMenuRep.CurrentlyDisplayedCategoryID = (StatsMenuRep.CurrentlyDisplayedCategoryID - 1) % MaxCategoryID + if StatsMenuRep.CurrentlyDisplayedCategoryID == 0 then + StatsMenuRep.CurrentlyDisplayedCategoryID = MaxCategoryID - 1 + end + elseif IsActionTriggeredAll(_ButtonAction.ACTION_MENURIGHT) and MenuManager.GetInputMask() & _ButtonActionBitwise.ACTION_MENURIGHT ~= 0 then + SFXManager():Play(_SoundEffect.SOUND_PAPER_IN) + StatsMenuRep.CurrentlyDisplayedCategoryID = math.max( + (StatsMenuRep.CurrentlyDisplayedCategoryID + 1) % MaxCategoryID, 1) + end + end + StatsMenu:GetStatsMenuSprite():GetLayer("Paper1"):SetVisible(false) + + -- render stat page over original stat page, to allow for custom content + local posSheet = Isaac.WorldToMenuPosition(_MainMenuType.STATS, StatsMenuRep.StatSheetSpritePos) + StatsMenuRep.StatSheetSprite:RenderLayer(1, posSheet) + local posLeftArrow = Isaac.WorldToMenuPosition(_MainMenuType.STATS, StatsMenuRep.LeftArrowSpritePos) + StatsMenuRep.ArrowSprite:RenderLayer(6, posLeftArrow) + local posRightArrow = Isaac.WorldToMenuPosition(_MainMenuType.STATS, StatsMenuRep.RightArrowSpritePos) + StatsMenuRep.ArrowSprite:RenderLayer(7, posRightArrow) + + local nextLineOffsetX = 0 + local nextLineOffsetY = 0 + + local pos = Isaac.WorldToMenuPosition(_MainMenuType.STATS, StatsMenuPos) + + local categoryData = StatsMenuRep.Stats[StatsMenuRep.CurrentlyDisplayedCategoryID] + font:DrawStringUTF8(categoryData[1], pos.X, pos.Y + nextLineOffsetY, fontcolor, 0, false) + nextLineOffsetY = nextLineOffsetY + 12 + for _, stat in ipairs(categoryData[2]) do + -- text + local statValue = tostring(stat[3] or 0) + local statValueWidth = stat[4] or 0 + if type(stat[1]) == "table" then + nextLineOffsetY = nextLineOffsetY + 2 -- some padding aboth + for i, text in ipairs(stat[1]) do + font:DrawStringUTF8(text, pos.X + nextLineOffsetX, pos.Y + nextLineOffsetY, fontcolor, 0, false) + if i ~= #stat[1] then + nextLineOffsetY = nextLineOffsetY + 12 + nextLineOffsetX = nextLineOffsetX + StatsMenuRep.StatPageAngleOffsetX + end + end + -- value + font:DrawStringUTF8(statValue, pos.X + nextLineOffsetX + StatsMenuRep.StatPageNumberOffsetX - statValueWidth, + pos.Y + nextLineOffsetY - 5, fontcolor, 0, false) + + nextLineOffsetY = nextLineOffsetY + 2 -- some padding below + else + font:DrawStringUTF8(stat[1], pos.X + nextLineOffsetX, pos.Y + nextLineOffsetY, fontcolor, 0, false) + -- value + font:DrawStringUTF8(statValue, pos.X + nextLineOffsetX + StatsMenuRep.StatPageNumberOffsetX - statValueWidth, + pos.Y + nextLineOffsetY + 2, fontcolor, 0, false) + end + + nextLineOffsetY = nextLineOffsetY + 12 + nextLineOffsetX = nextLineOffsetX + StatsMenuRep.StatPageAngleOffsetX + end +end + +REPENTOGON.Extras.StatsMenu = StatsMenuRep + +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_PRE_GAME_EXIT, RefreshExtraStats) +Isaac.AddCallback(REPENTOGON, _ModCallbacks.MC_MAIN_MENU_RENDER, RenderExtraStats) diff --git a/assets/repentogon/scripts/repentogon_extras/table_utils.lua b/assets/repentogon/scripts/repentogon_extras/table_utils.lua new file mode 100644 index 0000000..726c713 --- /dev/null +++ b/assets/repentogon/scripts/repentogon_extras/table_utils.lua @@ -0,0 +1,196 @@ +---@class REPENTOGON.SerializedTable +---@field _data table -- connects a string key to plain data +---@field _links table -- connects a string key to a table id +---@field _specialKeyData table -- connects a special key (number and boolean) to plain data +---@field _specialKeyLinks table -- connects a special key (number and boolean) to a table id + +local NON_SERIALIZABLE_KEYS = { + ["userdata"] = true, + ["table"] = true, + ["function"] = true, + ["thread"] = true, +} + +local NON_SERIALIZABLE_VALUES = { + ["userdata"] = true, + ["function"] = true, + ["thread"] = true, +} + +-- the json library does not properly restore these types of json keys +local SPECIAL_JSON_KEYS = { + ["boolean"] = true, + ["number"] = true, +} + +---@param tbl table +---@param memoTable table +---@return table +local function deep_copy(tbl, memoTable) + local memo = memoTable[tbl] + if memo then + return memo + end + + local copy = {} + memoTable[tbl] = copy + + for key, value in pairs(tbl) do + local keyType = type(key) + local valueType = type(value) + + if NON_SERIALIZABLE_KEYS[keyType] then + goto continue + end + + if NON_SERIALIZABLE_VALUES[valueType] then + goto continue + end + + if valueType == "table" then + copy[key] = deep_copy(value, memoTable) + else + copy[key] = value + end + ::continue:: + end + + return copy +end + +---@param tbl table +---@return table +local function DeepCopy(tbl) + return deep_copy(tbl, {}) +end + +---@param tbl table +---@param saveData REPENTOGON.SerializedTable +---@param memoTable table +---@return integer +local function serialize_table(tbl, saveData, memoTable) + local memoId = memoTable[tbl] + if memoId then + return memoId + end + + local tables = saveData._data + local id = #tables + 1 + memoTable[tbl] = id + + local plainData = {} + local links = {} + local specialKeyPlainData = {} + local specialKeyLinks = {} + + table.insert(tables, plainData) + table.insert(saveData._links, links) + table.insert(saveData._specialKeyData, specialKeyPlainData) + table.insert(saveData._specialKeyLinks, specialKeyLinks) + + for key, value in pairs(tbl) do + local keyType = type(key) + local valueType = type(value) + + if NON_SERIALIZABLE_KEYS[keyType] then + goto continue + end + + if NON_SERIALIZABLE_VALUES[valueType] then + goto continue + end + + local dataTable = plainData + local specialKey = SPECIAL_JSON_KEYS[keyType] ~= nil + + if valueType == "table" then + value = serialize_table(value, saveData, memoTable) + if specialKey then + dataTable = specialKeyLinks + else + dataTable = links + end + elseif specialKey then + dataTable = specialKeyPlainData + end + + if specialKey then + table.insert(dataTable, {key, value}) + else + dataTable[key] = value + end + ::continue:: + end + + return id +end + +---@param tbl table +---@return REPENTOGON.SerializedTable +local function Serialize(tbl) + ---@type REPENTOGON.SerializedTable + local serializedTable = { + _data = {}, + _specialKeyData = {}, + _links = {}, + _specialKeyLinks = {}, + } + + serialize_table(tbl, serializedTable, {}) + return serializedTable +end + +---@param serializeTable REPENTOGON.SerializedTable +local function assert_serialized_table_size(serializeTable) + local size = #serializeTable._data + if size == #serializeTable._specialKeyData and + size == #serializeTable._links and + size == #serializeTable._specialKeyLinks then + return true + end + + return false +end + +---@param serializeTable REPENTOGON.SerializedTable +---@return boolean ok +---@return table | string -- table or error +local function Deserialize(serializeTable) + if not assert_serialized_table_size(serializeTable) then + return false, "table is corrupted (sizes don't match)" + end + + local tables = serializeTable._data + + for i = 1, #tables, 1 do + local tbl = tables[i] + local specialTbl = serializeTable._specialKeyData[i] + local links = serializeTable._links[i] + local specialLinks = serializeTable._specialKeyLinks[i] + + for j = 1, #specialTbl, 1 do + local keyVal = specialTbl[j] + tbl[keyVal[1]] = keyVal[2] + end + + for k, v in pairs(links) do + tbl[k] = tables[v] + end + + for j = 1, #specialLinks, 1 do + local keyVal = specialLinks[j] + tbl[keyVal[1]] = tables[keyVal[2]] + end + end + + return true, tables[1] +end + +---@class REPENTOGON.Scripts.TableUtils +local Module = {} + +Module.DeepCopy = DeepCopy +Module.Serialize = Serialize +Module.Deserialize = Deserialize + +return Module \ No newline at end of file diff --git a/scripts/repentogon_coverage.py b/scripts/repentogon_coverage.py new file mode 100644 index 0000000..a62e380 --- /dev/null +++ b/scripts/repentogon_coverage.py @@ -0,0 +1,1251 @@ +#!/usr/bin/env python3 +"""REPENTOGON coverage: every item of REPENTOGON's surface, one row each, with its status in this rebuild. + +Usage: python3 -I scripts/repentogon_coverage.py [--mods DIR] +Writes analysis/repentogon_coverage.tsv and prints counts by kind, area and status. +With --mods, also writes one test mod per area under DIR (tools/harness/repentogon by default when DIR is omitted). + +Sources (repentogon/ is the pinned clone) + function, property, constructor + every registration in repentogon/repentogon (LuaInterfaces, ImGuiFeatures, Patches, LuaInit): luaL_Reg tables + consumed by lua::RegisterFunctions, lua::RegisterNewClass or luaL_setfuncs, lua::RegisterFunction, + lua::RegisterGlobalClassFunction, lua::RegisterVariable(Getter|Setter), lua::RegisterGlobalClassVariable, + lua::TableAssoc with a C function, lua_pushcfunction followed by lua_rawset or lua_setfield, lua_register. + A table filled inside "__propget" or "__propset" gives properties. "__call" and lua_register give the constructor, + named after its class. Functions main_ex.lua adds in Lua (rawset(Isaac, ...), function Isaac.X) are rows too. + Documented members found in no registration (vanilla functions changed through a hook) are rows marked "docs only". + callback ModCallbacks in resources/scripts/enums_ex.lua and docs/enums/ModCallbacks.md, merged by name + enum each table enums_ex.lua defines, and each vanilla enum it extends (one row, its value count in summary) + xml_attribute the attribute tables (and "Supported attributes" lists) of docs/xml/*.md + xml_tag each documented XML file and each tag its examples use + option each ini["Section"]["Key"] REPENTOGONOptions reads or writes + behaviour_patch each file in repentogon/repentogon/Patches, with a hand-written summary + +Class of an unnamed table (luaL_setfuncs, TableAssoc, pushcfunction): the last luaL_newmetatable, PushMetatable, +lua_getglobal or "__class" string before it in the same function since the last lua_setglobal, else the next +lua_setglobal after it, else the class at the call site of the helper holding it, else the file's most common class. + +Status rules (against this repository) + function, property, constructor + the rebuild registers a name on a class when src/ (src/lua, src/repentogon and helpers they call) passes it to + lua_method, lua_static, lua_field, lua_field_get or lua_property, or as {"Name", function} or lua_table_set, + inside lua_class_begin(state, "Class") or lua_namespace_begin(state, "Class"). A helper with no class of its own + takes the class at its call site. Class names are compared after REPENTOGON's aliases (RoomConfig.Room is + RoomConfig_Room). A constructor is registered when the class registers "__call", and is vanilla when its class is. + done registered, and neither vanilla (dump/lua_bindings.tsv, analysis/lua_all.tsv) nor under a docs "Modified" + section + review registered, but vanilla or documented as modified: the vanilla behaviour exists, REPENTOGON's change + is unchecked + todo not registered + callback done when src/**/*.cpp names MC_X (comments stripped) for this id or an alias of it, review when that + callback is vanilla (id below 1000 or documented as modified), todo otherwise + Lua-defined function or property (summary "defined in Lua"): done when a .lua file under assets/repentogon or src + holds its defining line unchanged + enum done when a .lua file under assets/repentogon or src defines it (Name = { for a new enum, every + Name.Key = for an extension) + option done when a src/ .cpp or .h file holds the key as a string literal + behaviour_patch started when a src/ file names Patches/ in a comment + xml_attribute, xml_tag todo + analysis/repentogon_overrides.tsv (kind, class, name, status, optional), when present, is applied last: a later phase + that verifies an item by hand (an xml attribute, a patch, a reviewed vanilla change) records it there. +""" + +import argparse +import bisect +import re +import sys +import time +from collections import Counter, defaultdict +from pathlib import Path + +ROOT = Path(__file__).resolve().parent.parent +RGON = ROOT / "repentogon" +SOURCES = RGON / "repentogon" +DOCS = RGON / "docs" / "docs" +ENUMS_EX = SOURCES / "resources" / "scripts" / "enums_ex.lua" +MAIN_EX = SOURCES / "resources" / "scripts" / "main_ex.lua" +LUA_CORE = RGON / "libzhl" / "LuaCore.cpp" +OPTIONS = SOURCES / "REPENTOGONOptions.h" +OUT = ROOT / "analysis" / "repentogon_coverage.tsv" +OVERRIDES = ROOT / "analysis" / "repentogon_overrides.tsv" +MODS_DEFAULT = ROOT / "tools" / "harness" / "repentogon" +VANILLA_TABLES = (ROOT / "dump" / "lua_bindings.tsv", ROOT / "analysis" / "lua_all.tsv") + +COLUMNS = ("kind", "class", "name", "location", "docs", "area", "status", "summary") +KINDS = ("function", "property", "constructor", "callback", "xml_attribute", "xml_tag", "enum", "option", + "behaviour_patch") +AREAS = ("entities", "player", "npc", "familiar", "pickup", "tear and weapons", "game", "level and room", + "items and pools", "render and sprites", "hud and menus", "persistent data and saves", "audio", "input", + "console and debug", "misc") +VANILLA_CALLBACK_LIMIT = 1000 +SUMMARY_WIDTH = 120 + +# Metamethods and LuaBridge plumbing, not part of the API a mod calls. +SKIPPED_NAMES = {"__index", "__newindex", "__gc", "__name", "__type", "__class", "__parent", "__propget", "__propset", + "__const", "__metatable"} +SKIPPED_DIRS = ("lua/", "resources", "resources-repentogon") + +# Docs pages named differently from the metatable their functions are registered on. +DOC_CLASS_ALIASES = {"ItemConfig_Item": "Item", "ItemConfig_Costume": "Costume", "ItemConfig_Card": "Card", + "ItemConfig_PillEffect": "PillEffect", "ItemConfig": "Config", "RoomConfigRoom": "RoomConfig_Room", + "Pathfinder": "PathFinder", "Repentogon": "REPENTOGON", "EntitiesSaveState": "EntitySaveState", + "CcpContainer_RoomConfigSet": "RoomConfigSet"} +DOC_SKIPPED = {"docs", "index", "install", "install_zh"} + +# The rebuild's names for REPENTOGON's classes, by namespace. +REBUILD_CLASS_ALIASES = {("RoomConfig", "Room"): "RoomConfig_Room"} + +CLASS_AREAS = { + "entities": "Entity EntityRef EntityPtr EntityList EntityConfig EntityConfigEntity EntityDesc EntitySaveState " + "EntitiesSaveStateVector GridEntitiesSaveStateVector EntitySaveStateManager EntityEffect GridEntity " + "GridEntityDesc Capsule Shape", + "player": "EntityPlayer PlayerManager TemporaryEffect TemporaryEffects PocketItem History HistoryItem " + "CostumeSpriteDesc EntityConfigPlayer EntityConfigBaby QueueItemData", + "npc": "EntityNPC EntityDelirium PathFinder BossPool BossPoolManager", + "familiar": "EntityFamiliar", + "pickup": "EntityPickup EntitySlot", + "tear and weapons": "EntityTear EntityLaser EntityKnife EntityBomb EntityProjectile Weapon TearParams " + "ProjectileParams MultiShotParams", + "game": "Game Seeds ChallengeParam DailyChallenge Ambush GenericPrompt StageTransition REPENTOGON", + "level and room": "Level Room RoomDescriptor RoomConfig RoomConfig_Room RoomConfigSet RoomConfigStage " + "LevelGenerator LevelGeneratorEntry LevelGeneratorRoom Backdrop FXLayers FXParams Camera " + "RailManager LRoomAreaDesc LRoomTileDesc RoomTransition Spawn Entry RoomDescriptorDoors " + "RoomDescriptorDoorsConst", + "items and pools": "Config Item Card PillEffect Costume ItemPool LootList LootListEntry WeightedOutcomePicker " + "ProceduralItem ProceduralItemManager ProceduralEffect XMLData", + "render and sprites": "Sprite AnimationData AnimationFrame AnimationLayer AnimationState LayerState NullFrame " + "Color KColor ColorModifier ColorParams BlendMode Renderer SourceQuad DestinationQuad Beam " + "Point DebugRenderer Font FontRenderSettings Shader Image Transformer", + "hud and menus": "HUD PlayerHUD PlayerHUDHeart HistoryHUD HistoryHUDItem HUDMessage Minimap MinimapConfig " + "ScoreSheet MenuManager PauseMenu NightmareScene ItemOverlay", + "persistent data and saves": "PersistentGameData", + "audio": "MusicManager SFXManager", + "input": "Input", + "console and debug": "Console Debug ImGui ASMPatch _G _Internals", + "misc": "Isaac Vector RNG Options BitSet128", +} +CLASS_AREA = {name: area for area, names in CLASS_AREAS.items() for name in names.split()} + +# Keyword rules for names that carry their area (callbacks, Isaac's functions), first match wins. +NAME_AREAS = ( + (r"COMPLETION|ACHIEVEMENT|UNLOCK|SAVE|MODDATA|MARK|PERSISTENT", "persistent data and saves"), + (r"FAMILIAR|WISP|LOCUST", "familiar"), + (r"PLAYER|HEART|BIRTHRIGHT|COSTUME|POCKET|TRANSFORMATION", "player"), + (r"NPC|BOSS|DELIRIUM|CHAMPION", "npc"), + (r"PICKUP|SLOT|COIN", "pickup"), + (r"TEAR|LASER|KNIFE|BOMB|PROJECTILE|WEAPON|FIRE|BRIMSTONE|SPLIT", "tear and weapons"), + (r"HUD|MENU|OVERLAY|PAUSE|NIGHTMARE|MINIMAP|CUTSCENE|GIANTBOOK|POPUP|STAT", "hud and menus"), + (r"RENDER|SPRITE|SHADER|LIGHTING|OPENGL|DRAW|COLOR|ANIM", "render and sprites"), + (r"ROOM|LEVEL|GRID|BACKDROP|STAGE|AMBUSH|GREED|DOOR|WAVE|FLOOR|CURSE", "level and room"), + (r"COLLECTIBLE|TRINKET|ITEM|POOL|CARD|PILL|CRAFTING|PLANETARIUM|DEVIL|SHOP|CACHE", "items and pools"), + (r"SFX|MUSIC|SOUND|JINGLE", "audio"), + (r"INPUT|MOUSE|CONTROLLER|KEYBOARD|CURSOR", "input"), + (r"CONSOLE|COMMAND|AUTOCOMPLETE|DEBUG|IMGUI|LOG", "console and debug"), + (r"ENTITY|SPAWN|DAMAGE|DMG|KILL|DEATH", "entities"), + (r"GAME|UPDATE|EXIT|START|CHALLENGE|DAILY|SEED", "game"), +) + +XML_AREAS = {"items": "items and pools", "pocketitems": "items and pools", "itempools": "items and pools", + "costumes": "player", "players": "player", "babies": "player", "edenhair": "player", + "entities": "entities", "bosscolors": "npc", "backdrops": "level and room", "ambush": "level and room", + "achievements": "persistent data and saves", "challenges": "persistent data and saves", + "cutscenes": "hud and menus", "giantbook": "hud and menus", "stringtable": "hud and menus"} +XML_FILE_ALIASES = {"edenahir.xml": "edenhair.xml"} +XML_CODE_FIRST = ("Patches/XMLData.cpp", "Patches/XMLPlayerExtras.cpp") + +# One line per file of Patches/: its area and what it changes in the game. +PATCHES = { + "ASMPatches.cpp": ("console and debug", "Applies every byte patch at startup: log and console routing, mod and save " + "folders moved to REPENTOGON's data folder"), + "ASMPatches/ASMBagOfCrafting.cpp": ("items and pools", "Bag of Crafting pickup adds: MC_TRY_ADD_TO_BAG_OF_CRAFTING " + "and modded pickups"), + "ASMPatches/ASMCallbacks.cpp": ("misc", "Inline patches firing the callbacks a hook cannot reach (pause, HUD " + "messages, room placement, NPC removal and many more)"), + "ASMPatches/ASMCamera.cpp": ("level and room", "Keeps the room's single Camera alive for Lua and restores it on " + "destruction"), + "ASMPatches/ASMDelirium.cpp": ("npc", "Delirium transformation callbacks (pre, transform, post)"), + "ASMPatches/ASMEntityKnife.cpp": ("tear and weapons", "Melee knife hitbox initialisation"), + "ASMPatches/ASMEntityNPC.cpp": ("npc", "NPC speed and active enemy checks driven by entity config"), + "ASMPatches/ASMFixes.cpp": ("misc", "Vanilla bug fixes: modded crafting quality, smelted trinkets, pill " + "identification and effects, game state load, render target overflow, " + "familiar pathing"), + "ASMPatches/ASMGridEntityCollision.cpp": ("level and room", "Grid collision callbacks, deduplicated per frame " + "and grid index"), + "ASMPatches/ASMGridEntitySpawn.cpp": ("level and room", "Routes inlined grid spawns through " + "MC_PRE/POST_GRID_ENTITY_SPAWN"), + "ASMPatches/ASMGridEntitySpawn_Definitions.cpp": ("level and room", "Signature table of the inlined grid spawn " + "sites"), + "ASMPatches/ASMHud.cpp": ("hud and menus", "HistoryHUD render and recompute callbacks, smelted item images"), + "ASMPatches/ASMLevel.cpp": ("level and room", "Custom stage ids, level generation and room placement callbacks, " + "stage binaries"), + "ASMPatches/ASMLocalization.cpp": ("hud and menus", "Localised resource lookup in archives with an English " + "fallback"), + "ASMPatches/ASMMenu.cpp": ("hud and menus", "Mods menu font, language change from options, online and daily " + "menu selection"), + "ASMPatches/ASMPlayer.cpp": ("player", "Familiar checks, Mars double tap window, active charge, custom hurt " + "and death sounds, Lost Soul puddle"), + "ASMPatches/ASMPlayerManager.cpp": ("player", "Controller reassignment on restore and disconnect"), + "ASMPatches/ASMRender.cpp": ("hud and menus", "Planetarium chance on the stat HUD (option)"), + "ASMPatches/ASMRoom.cpp": ("level and room", "Ambush wave count, boss wave difficulty, Mega Satan ending, water, " + "room save state, clear delay, Blue Womb door"), + "ASMPatches/ASMSplitTears.cpp": ("tear and weapons", "MC_POST_FIRE_SPLIT_TEAR for every tear split"), + "ASMPatches/ASMStatusEffects.cpp": ("entities", "Status effect targets and Weakness for custom status effects"), + "ASMPatches/ASMTweaks.cpp": ("misc", "Small tweaks: Godhead partition, Tear Detonator, Hush veins, archive " + "checksums, console online, resource paths, exit prompt, music bound, " + "language"), + "AchievementsStuff.cpp": ("persistent data and saves", "Modded achievements: XML, saving, popups, " + "lockachievement, Isaac.GetAchievementIdByName"), + "Anm2Extras.cpp": ("render and sprites", "Per ANM2 and per layer extras: shaders and render flags"), + "CardsExtras.cpp": ("items and pools", "Card XML extras: availability conditions, hidden cards, weights in " + "GetCard"), + "ChallengesStuff.cpp": ("persistent data and saves", "Modded challenge completion, saving and menus"), + "CompletionTracker.cpp": ("persistent data and saves", "Completion marks for modded characters: saving, the " + "character menu and Isaac's completion functions"), + "ConsoleHooks.cpp": ("console and debug", "Console: REPENTOGON branding, command history kept on crash, new " + "commands, autocomplete"), + "CustomCache.cpp": ("items and pools", "Custom cache flags (customcache XML) evaluated on item, trinket and " + "effect changes"), + "CustomDevilPlanetariumChance.cpp": ("items and pools", "Devil and planetarium chance split into callback " + "steps"), + "CustomModManager.cpp": ("misc", "Per mod curses and mod entry extras"), + "CutsceneSkip.cpp": ("hud and menus", "Cutscenes skippable with input"), + "EntityConfigEx.cpp": ("entities", "entities2.xml extras: tags, erased enemies, Jera and reroll flags, familiar " + "buddies"), + "EntityManager.cpp": ("entities", "Entity lifetime tracking: factory, list reset, removal"), + "EntityPlus.cpp": ("entities", "Extra per entity data: water clip, flying override, init and remove"), + "EvaluateStats.cpp": ("items and pools", "XML item stats (tears, damage, range ...) applied at the vanilla steps " + "of EvaluateItems"), + "ExtraDebugRender.cpp": ("console and debug", "Draws FindInRadius and capsule queries (debug option)"), + "ExtraLives.cpp": ("player", "Custom extra lives and revives, MC_PRE_TRIGGER_PLAYER_DEATH"), + "ExtraRenderSteps.cpp": ("render and sprites", "Cursor initialised and rendered for the mouse control option"), + "FamiliarTags.cpp": ("familiar", "Familiar XML tags: damageable, blocks projectiles, charmable"), + "GetCoinValue.cpp": ("pickup", "Custom coin values, MC_PICKUP_GET_COIN_VALUE"), + "GridEntityPlus.cpp": ("level and room", "Extra per grid entity data and water clip"), + "ImagePatches.cpp": ("render and sprites", "Transparent render batch reuse fixes"), + "Init.cpp": ("misc", "Starts REPENTOGON's systems in Manager::Init"), + "InterpolV2.cpp": ("render and sprites", "Interpolated rendering between updates (option)"), + "ItemConfigEx.cpp": ("items and pools", "items.xml extras and custom item sounds"), + "ItemPoolManager.cpp": ("items and pools", "Custom item pools from XML, pool queries, Isaac.GetPoolIdByName"), + "ItemSpoofSystem.cpp": ("player", "Innate collectibles and trinkets counted by HasCollectible and friends"), + "JsonSavedata.h": ("persistent data and saves", "JSON helpers for REPENTOGON's own save data"), + "LagMetric.cpp": ("render and sprites", "Lag metric and laser sample caching"), + "MainMenuBlock.cpp": ("hud and menus", "Main menu input mask (MenuManager.SetInputMask)"), + "MesaShaderFix.cpp": ("render and sprites", "Shader loading fix for Mesa drivers"), + "MinimapPatches.cpp": ("hud and menus", "Minimap shader before its image renders"), + "MiscFixes.cpp": ("misc", "Fixes: null frames, missing entity configs, familiar followers, innate collectibles, " + "font drawing"), + "ModReloading.cpp": ("misc", "Mod reloading and workshop updates"), + "ModsMenuStuff.cpp": ("hud and menus", "Mods menu search bar and input"), + "NullItemsAndCostumes.cpp": ("player", "Custom null items and their costumes"), + "PlayerFeatures.cpp": ("player", "Modded character trinket handling, Greed donations, per save state"), + "PlayerTags.cpp": ("player", "players.xml tags: no shake, no Metronome, no expansion pack, nightmare portraits"), + "PocketItems.cpp": ("player", "Pocket item adds and removals with callbacks"), + "Quickstart.cpp": ("hud and menus", "Quickstart into the last save slot"), + "RoomConfigExtras.h": ("level and room", "Stage id mapping for Greed and alternate stages"), + "SaveImport.cpp": ("persistent data and saves", "Imports vanilla saves into REPENTOGON's save folder"), + "StagesStuff.cpp": ("level and room", "Custom floor music, backdrop and name, stage config ids, stage command"), + "VanillaTweaks.cpp": ("misc", "Option tweaks: better Void generation, Hush laser speed, quick room clear, " + "Hornfel, archive checks"), + "XMLData.cpp": ("misc", "Loads every content XML into XMLData, merges content and resources, custom backdrops, " + "cutscenes and stages"), + "XMLPlayerExtras.cpp": ("player", "players.xml extras: starting health and stats, health limit, custom " + "character menu"), + "Xml/XmlBossPools.cpp": ("npc", "bosspools.xml parsing for custom boss pools"), +} + +STATE = r"\s*[^,()]+?\s*" +ARG = r"\s*([^,()]+?)\s*" +FN = r"\s*([\w:]+)\s*" +STR = r'\s*"([^"]*)"\s*' +EVENT_PATTERNS = { + "regfuncs": r"lua::RegisterFunctions\(" + STATE + "," + ARG + "," + FN + r"\)", + "newclass": r"lua::RegisterNewClass\(" + STATE + "," + ARG + "," + ARG + "," + FN + r"[,)]", + "setfuncs": r"luaL_setfuncs\(" + STATE + "," + FN + ",", + "regfunc": r"lua::RegisterFunction\(" + STATE + "," + ARG + "," + ARG + "," + FN + r"\)", + "globalfunc": r"lua::RegisterGlobalClassFunction\(" + STATE + "," + ARG + "," + STR + "," + FN + r"\)", + "regvar": r"lua::RegisterVariable(?:Getter|Setter)?\(" + STATE + "," + ARG + "," + ARG + ",", + "globalvar": r"lua::RegisterGlobalClassVariable(?:Setter)?\(" + STATE + "," + ARG + "," + STR + ",", + "tableassoc": r"lua::TableAssoc\(" + STATE + "," + STR + "," + FN + r"\)", + "pushstring": r"lua_pushstring\(" + STATE + "," + STR + r"\)", + "pushcfunction": r"lua_pushcfunction\(" + STATE + "," + FN + r"\)", + "rawset": r"lua_rawset\(", + "pop": r"lua_pop\(", + "setfield": r"lua_setfield\(" + STATE + "," + ARG + "," + STR + r"\)", + "register": r"lua_register\(" + STATE + "," + ARG + "," + FN + r"\)", + "marker": r"(?:luaL_newmetatable|lua::PushMetatable|lua_getglobal)\(" + STATE + "," + ARG + r"\)", + "setglobal": r"lua_setglobal\(" + STATE + "," + ARG + r"\)", +} +EVENT_RE = re.compile("|".join(f"(?P<{name}>{pattern})" for name, pattern in EVENT_PATTERNS.items())) +GROUP_INDEX = {name: EVENT_RE.groupindex[name] - 1 for name in EVENT_PATTERNS} +COMMENT_RE = re.compile(r'//[^\n]*|/\*.*?\*/|"(?:\\.|[^"\\\n])*"|\'(?:\\.|[^\'\\\n])*\'', re.S) +ARRAY_RE = re.compile(r"luaL_Reg\s+([\w:]+)\s*\[\s*\w*\s*\]\s*=\s*\{") +ENTRY_RE = re.compile(r'\{\s*"([^"]+)"\s*,\s*&?([\w:]+)\s*\}') +FUNCTION_NAME_RE = re.compile(r"LUA_FUNCTION\(\s*(\w+)\s*\)|\bint\s+(\w+)\s*\(\s*lua_State\s*\*") +STRING_CONST_RE = re.compile(r'\b(\w+)\s*=\s*"([^"]+)"\s*;') + + +# A row of the table, keyed by kind, class and name. +class Item: + def __init__(self, kind, className, name, location="", summary=""): + self.kind = kind + self.className = className + self.name = name + self.location = location + self.summary = summary + self.docs = "" + self.area = "" + self.status = "todo" + self.isDocsModified = False + + +# Collects rows, merging duplicates, the first location winning. +class Table: + def __init__(self): + self.items = {} + + def item_add(self, kind, className, name, location="", summary=""): + key = (kind, className, name) + item = self.items.get(key) + if item is None: + item = self.items[key] = Item(kind, className, name, location, summary) + elif not item.location: + item.location = location + return item + + +# Comments blanked (newlines kept) and, for the masked copy, string contents too, so offsets match the original. +def text_strip(text): + stripped = COMMENT_RE.sub(lambda m: m.group(0) if m.group(0)[0] in "\"'" else re.sub(r"[^\n]", " ", m.group(0)), + text) + masked = COMMENT_RE.sub(lambda m: m.group(0)[0] + " " * (len(m.group(0)) - 2) + m.group(0)[-1] + if m.group(0)[0] in "\"'" else re.sub(r"[^\n]", " ", m.group(0)), text) + return stripped, masked + + +def braces_match(masked): + matches = {} + stack = [] + for index, char in enumerate(masked): + if char == "{": + stack.append(index) + elif char == "}" and stack: + matches[stack.pop()] = index + return matches + + +# Function bodies (name, params, body start, body end), walking into namespaces, classes and structs. +def functions_find(masked, matches): + spans = [] + + def blocks_walk(start, end): + index = start + segmentStart = start + while index < end: + char = masked[index] + if char in ";}": + segmentStart = index + 1 + elif char == "{": + close = matches.get(index, end) + header = re.sub(r"(?m)^\s*#.*$", "", masked[segmentStart:index]).strip() + if re.search(r"\b(namespace|class|struct)\b", header) and not header.endswith(")"): + blocks_walk(index + 1, close) + elif re.search(r"\)[\w\s:<>&*\->]*$", header) and "=" not in header.split("(")[0]: + spans.append((function_name(header), function_params(header), index + 1, close)) + index = close + segmentStart = close + 1 + index += 1 + + blocks_walk(0, len(masked)) + return spans + + +def function_name(header): + hook = re.search(r"HOOK_\w+\(\s*(\w+)\s*,\s*(\w+)", header) + if hook: + return f"HOOK:{hook.group(1)}::{hook.group(2)}" + named = re.search(r"(\w+)\s*\(", header) + return named.group(1) if named else "" + + +def function_params(header): + opened = header.find("(") + if opened < 0: + return [] + params = args_split(header[opened + 1:header.rfind(")")]) + return [re.sub(r"=.*", "", param).split()[-1].strip("*&") if param.split() else "" for param in params] + + +def args_split(text): + args = [] + depth = 0 + current = "" + for char in text: + if char in "(<{[": + depth += 1 + elif char in ")>}]": + depth -= 1 + if char == "," and depth == 0: + args.append(current.strip()) + current = "" + else: + current += char + if current.strip(): + args.append(current.strip()) + return args + + +# What REPENTOGON's sources say a class expression names: metatable enums, MT constants, literals, local variables. +class Resolver: + def __init__(self, metaNames, stringConsts): + self.metaNames = metaNames + self.stringConsts = stringConsts + + def class_resolve(self, expr, body=""): + expr = expr.strip() + literal = re.fullmatch(r'"([^"]+)"', expr) + if literal: + return literal.group(1) + metas = re.findall(r"Metatables::(\w+)", expr) + if metas: + meta = next((meta for meta in metas if not meta.startswith("CONST_")), metas[0]) + return self.metaNames.get(meta.removeprefix("CONST_")) + globalClass = re.search(r"GlobalClasses::(\w+)", expr) + if globalClass: + return globalClass.group(1) + ident = re.search(r"(\w+)$", expr) + if not ident: + return None + name = ident.group(1) + if name in self.stringConsts: + return self.stringConsts[name] + assigned = re.search(rf"\b{name}\s*=\s*([^;]+);", body) + if assigned and assigned.group(1).strip() != expr: + return self.class_resolve(assigned.group(1), "") + loop = re.search(rf"for\s*\(\s*[\w:]+\s+{name}\s*:\s*(\w+)\s*\)", body) + if loop: + array = re.search(rf"\b{loop.group(1)}\s*\[\s*\d*\s*\]\s*=\s*\{{([^}}]*)\}}", body) + if array: + return self.class_resolve(array.group(1), "") + return None + + +# One C++ file's registrations: explicit rows go straight in, unnamed tables wait for their class. +class SourceFile: + def __init__(self, path, text, resolver, knownFunctions): + self.path = path + self.relative = str(path.relative_to(RGON)) + self.stripped, masked = text_strip(text) + self.resolver = resolver + self.knownFunctions = knownFunctions + self.lineStarts = [0] + [m.end() for m in re.finditer("\n", self.stripped)] + matches = braces_match(masked) + self.functions = functions_find(masked, matches) + self.arrays = [] + for match in ARRAY_RE.finditer(masked): + close = matches.get(match.end() - 1, len(masked)) + entries = [(entry.group(1), entry.group(2), entry.start() + match.end()) + for entry in ENTRY_RE.finditer(self.stripped[match.end():close])] + self.arrays.append((match.group(1), match.start(), entries)) + self.usedArrays = set() + self.debugLines = debug_lines(text) + self.explicit = [] + self.anonymous = [] + self.unnamed = [] + self.markersByFunction = {} + + def location(self, offset): + return f"{self.relative}:{bisect.bisect_right(self.lineStarts, offset)}" + + def array_find(self, name, offset): + candidates = [array for array in self.arrays if array[0] == name or array[0].endswith("::" + name) + or name.endswith("::" + array[0])] + before = [array for array in candidates if array[1] < offset] + chosen = before[-1] if before else (candidates[0] if candidates else None) + if chosen: + self.usedArrays.add(chosen[1]) + return chosen[2] if chosen else [] + + def name_values(self, functionIndex, expr): + literal = re.fullmatch(r'\s*"([^"]+)"\s*', expr) + if literal: + return [(literal.group(1), None)] + name, params, _, _ = self.functions[functionIndex] + ident = expr.strip() + if ident not in params: + return [] + position = params.index(ident) + values = [] + for _, _, start, end in self.functions: + for call in re.finditer(rf"\b{name}\s*\(", self.stripped[start:end]): + args = args_split(self.call_args(start + call.end())) + if position < len(args): + value = re.fullmatch(r'\s*"([^"]+)"\s*', args[position]) + if value: + values.append((value.group(1), start + call.start())) + return values + + def call_args(self, offset): + depth = 1 + index = offset + while index < len(self.stripped) and depth: + depth += {"(": 1, ")": -1}.get(self.stripped[index], 0) + index += 1 + return self.stripped[offset:index - 1] + + def events_parse(self): + for functionIndex, (_, _, start, end) in enumerate(self.functions): + self.function_parse(functionIndex, start, end) + + def explicit_add(self, kind, classExpr, nameExpr, functionIndex, offset, body): + className = self.resolver.class_resolve(classExpr, body) + values = self.name_values(functionIndex, nameExpr) + if not values: + self.unnamed.append(f"{self.location(offset)} name {nameExpr.strip()} not found at any call site") + for name, callOffset in values: + self.explicit.append((kind, className, name, self.location(callOffset or offset), classExpr)) + + def function_parse(self, functionIndex, start, end): + body = self.stripped[start:end] + markers = [] + setglobals = [] + mode = None + pendingKey = None + pendingFunction = None + isClassNext = False + isParentNext = False + for event in EVENT_RE.finditer(body): + kind = event.lastgroup + groups = [group for group in event.groups()[GROUP_INDEX[kind]:GROUP_INDEX[kind] + 6]] + offset = start + event.start() + if kind != "pushstring" and isClassNext: + isClassNext = False + if kind != "marker" and isParentNext and kind != "pushstring": + isParentNext = False + if kind == "pushstring": + value = groups[1] + if value in ("__propget", "__propset"): + mode = "property" + pendingKey = None + elif value in ("__class", "__type"): + isClassNext = True + elif isClassNext: + markers.append((offset, value)) + isClassNext = False + elif value == "__parent": + isParentNext = True + elif value == "__const": + mode = None + else: + pendingKey = (value, offset) + pendingFunction = None + elif kind == "pushcfunction": + pendingFunction = groups[1] + elif kind == "rawset": + if pendingKey and pendingFunction: + self.anonymous.append((mode or "function", pendingKey[0], pendingKey[1], functionIndex)) + else: + mode = None + pendingKey = None + pendingFunction = None + elif kind == "pop": + mode = None + elif kind == "setfield": + if pendingFunction: + self.anonymous.append((mode or "function", groups[2], offset, functionIndex)) + pendingFunction = None + pendingKey = None + elif kind == "tableassoc": + if groups[2].split("::")[-1] in self.knownFunctions: + self.anonymous.append((mode or "function", groups[1], offset, functionIndex)) + elif kind == "setfuncs": + for name, _, entryOffset in self.array_find(groups[1], offset): + self.anonymous.append((mode or "function", name, entryOffset, functionIndex)) + elif kind == "regfuncs": + className = self.resolver.class_resolve(groups[1], body) + for name, _, entryOffset in self.array_find(groups[2], offset): + self.explicit.append(("function", className, name, self.location(entryOffset), groups[1])) + elif kind == "newclass": + className = self.resolver.class_resolve(groups[1], body) + for name, _, entryOffset in self.array_find(groups[3], offset): + self.explicit.append(("function", className, name, self.location(entryOffset), groups[1])) + elif kind == "regfunc": + self.explicit_add("function", groups[1], groups[2], functionIndex, offset, body) + elif kind == "globalfunc": + self.explicit.append(("function", self.resolver.class_resolve(groups[1], body), groups[2], + self.location(offset), groups[1])) + elif kind == "regvar": + self.explicit_add("property", groups[1], groups[2], functionIndex, offset, body) + elif kind == "globalvar": + self.explicit.append(("property", self.resolver.class_resolve(groups[1], body), groups[2], + self.location(offset), groups[1])) + elif kind == "register": + className = self.resolver.class_resolve(groups[1], body) + self.explicit.append(("constructor", className, className, self.location(offset), groups[1])) + elif kind == "marker": + if isParentNext: + isParentNext = False + else: + className = self.resolver.class_resolve(groups[1], body) + if className: + markers.append((offset, className)) + elif kind == "setglobal": + className = self.resolver.class_resolve(groups[1], body) + setglobals.append((offset, className)) + markers.append((offset, None)) + self.markersByFunction[functionIndex] = (markers, setglobals) + + # The class an unnamed table entry at offset belongs to, from the markers around it or its helper's call site. + def class_at(self, functionIndex, offset, depth=0): + markers, setglobals = self.markersByFunction.get(functionIndex, ([], [])) + before = [className for markerOffset, className in markers if markerOffset < offset] + if before and before[-1]: + return before[-1] + after = [className for globalOffset, className in setglobals if globalOffset > offset and className] + if after: + return after[0] + if depth > 2: + return None + name = self.functions[functionIndex][0] + for callerIndex, (_, _, start, end) in enumerate(self.functions): + call = re.search(rf"\b{re.escape(name)}\s*\(", self.stripped[start:end]) + if call and callerIndex != functionIndex: + className = self.class_at(callerIndex, start + call.start(), depth + 1) + if className: + return className + return None + + def rows_resolve(self): + rows = [(kind, className, name, location, expr) for kind, className, name, location, expr in self.explicit] + unresolved = [] + for kind, name, offset, functionIndex in self.anonymous: + className = self.class_at(functionIndex, offset) + rows.append((kind, className, name, self.location(offset), "")) + counts = Counter(row[1] for row in rows if row[1]) + fallback = counts.most_common(1)[0][0] if counts else self.path.stem.removeprefix("Lua") + resolved = [] + for kind, className, name, location, expr in rows: + if className is None: + className = fallback + unresolved.append(f"{location} {name}: class guessed as {fallback} ({expr or 'unnamed table'})") + isDebug = int(location.rsplit(":", 1)[1]) in self.debugLines + resolved.append((kind, className, name, location, "debug builds only" if isDebug else "")) + unused = [f"{self.location(offset)} luaL_Reg {name}" for name, offset, entries in self.arrays + if offset not in self.usedArrays and entries] + return resolved, unresolved + unused + self.unnamed + + +# Lines inside #ifndef NDEBUG or #ifdef _DEBUG: registrations only debug builds make. +def debug_lines(text): + lines = set() + stack = [] + for number, line in enumerate(text.splitlines(), 1): + directive = re.match(r"\s*#\s*(if\w*|endif)\b\s*(\w*)", line) + if directive and directive.group(1).startswith("if"): + stack.append(directive.group(1) == "ifndef" and directive.group(2) == "NDEBUG" + or directive.group(2) in ("_DEBUG", "DEBUG")) + elif directive and stack: + stack.pop() + if any(stack): + lines.add(number) + return lines + + +def metatable_names(): + text = LUA_CORE.read_text(errors="replace") + names = dict((meta, name) for name, meta in + re.findall(r'_metatable_idx_from_name\["([^"]+)"\]\s*=\s*Metatables::(\w+)', text) + if not name.startswith("const ")) + return names + + +def cpp_sources(): + for path in sorted(SOURCES.rglob("*.cpp")): + relative = str(path.relative_to(SOURCES)) + if not relative.startswith(SKIPPED_DIRS): + yield path + + +def registrations_load(table, problems): + texts = {path: path.read_text(errors="replace") for path in cpp_sources()} + knownFunctions = set() + stringConsts = {} + for text in list(texts.values()) + [LUA_CORE.read_text(errors="replace")] + \ + [path.read_text(errors="replace") for path in SOURCES.rglob("*.h")]: + for match in FUNCTION_NAME_RE.finditer(text): + knownFunctions.add(match.group(1) or match.group(2)) + for name, value in STRING_CONST_RE.findall(text): + stringConsts.setdefault(name, value) + resolver = Resolver(metatable_names(), stringConsts) + rawCount = 0 + allRows = [] + for path, text in texts.items(): + source = SourceFile(path, text, resolver, knownFunctions) + source.events_parse() + rows, unresolved = source.rows_resolve() + problems.extend(unresolved) + rawCount += len(rows) + allRows += rows + classes = Counter(row[1] for row in allRows if row[0] != "constructor") + for kind, className, name, location, summary in allRows: + if name in SKIPPED_NAMES: + continue + if kind == "constructor" and not classes[className]: + kind = "function" + className = "_G" + if name == "__call": + kind = "constructor" + name = className + table.item_add(kind, className, name, location, summary) + return rawCount + + +# Functions and properties main_ex.lua and repentogon_api add from Lua: rawset on a class or its metatable, function +# Class.Name, Class.Name = function, a global table of functions, and calls of local helpers that rawset a preset. +def lua_functions_load(table): + for path in [MAIN_EX] + sorted((SOURCES / "resources" / "scripts" / "repentogon_api").glob("*.lua")): + text = path.read_text(errors="replace") + lines = text.splitlines() + localFunctions = set(re.findall(r"(?m)^\s*(?:local\s+)?function\s+(\w+)\s*\(", text)) + presetHelpers = dict(re.findall(r"function\s+(\w+)\s*\([^)]*\)\s*\n\s*rawset\(getmetatable\((\w+)\),\s*\w+", text)) + tableName = None + for number, line in enumerate(lines, 1): + location = f"{path.relative_to(RGON)}:{number}" + opened = re.match(r"([A-Z]\w*)\s*=\s*\{\s*$", line) + if opened: + tableName = opened.group(1) + continue + if tableName: + if line.startswith("}"): + tableName = None + continue + key = re.match(r"\s*(\w+)\s*=", line) + if key: + table_lua_add(table, "function", tableName, key.group(1), location, line) + continue + preset = re.match(r'\s*rawset\(getmetatable\(([A-Z]\w*)\),\s*"(\w+)"', line) + helper = re.match(r'\s*(\w+)\("(\w+)"', line) + if preset or (helper and helper.group(1) in presetHelpers): + className, name = preset.groups() if preset else (presetHelpers[helper.group(1)], helper.group(2)) + table_lua_add(table, "property", className, name, location, line) + continue + found = re.match(r'\s*rawset\(\s*([A-Z]\w*)\s*,\s*"(\w+)"\s*,\s*(.*)', line) \ + or re.match(r"\s*function\s+([A-Z]\w*)[.:](\w+)\s*\(()", line) \ + or re.match(r"\s*([A-Z]\w*)\.(\w+)\s*=\s*(function\b.*|\w+\s*$)", line) + if not found: + continue + className, name, value = found.groups() + valueName = re.match(r"[\w.]*", value.strip()).group(0) + if value.strip() and valueName != "function" and valueName not in localFunctions: + continue + className = className.removesuffix("MT") if className.endswith("MT") else className + isCall = name == "__call" + table_lua_add(table, "constructor" if isCall else "function", className, className if isCall else name, + location, line) + + +def table_lua_add(table, kind, className, name, location, line): + if name in SKIPPED_NAMES: + return + item = table.item_add(kind, className, name, location, "defined in Lua") + if not item.summary: + item.summary = "defined in Lua" + item.luaLine = line.strip() + + +def docs_load(table): + docs = {} + for path in sorted(DOCS.glob("*.md")): + if path.stem in DOC_SKIPPED: + continue + className = DOC_CLASS_ALIASES.get(path.stem, path.stem) + section = "" + for line in path.read_text(errors="replace").splitlines(): + if line.startswith("## "): + section = line[3:].strip() + elif line.startswith("### ") and section: + name = re.match(r"###\s+([\w.:]+)", line) + if not name: + continue + isVariable = bool(re.search(r"Variable|Constant|Attribute", section)) + kind = "constructor" if "Constructor" in section else "property" if isVariable else "function" + memberName = name.group(1).split(".")[-1].split(":")[-1] + docs[(kind, className, memberName)] = (f"{path.name}", section.startswith("Modified")) + luaLines = [(path, number, line) for path in [MAIN_EX] + sorted((SOURCES / "resources" / "scripts" / + "repentogon_api").glob("*.lua")) + for number, line in enumerate(path.read_text(errors="replace").splitlines(), 1)] + for (kind, className, name), (page, isModified) in docs.items(): + item = table.items.get((kind, className, name)) or \ + next((table.items[key] for key in ((other, className, name) for other in KINDS) if key in table.items), + None) + if item is None: + note = "docs only: vanilla changed through a hook" if isModified else "docs only: no registration found" + defined = next(((path, number, line) for path, number, line in luaLines + if re.match(rf"\s*{name}\s*=", line)), None) + if defined: + table_lua_add(table, kind, className, name, f"{defined[0].relative_to(RGON)}:{defined[1]}", + defined[2]) + item = table.item_add(kind, className, name, "", note) + item.docs = page + item.isDocsModified = item.isDocsModified or isModified + return docs + + +def callbacks_load(table): + entries = {} + for number, line in enumerate(ENUMS_EX.read_text().splitlines(), 1): + found = re.match(r"ModCallbacks\.(MC_\w+)\s*=\s*(\d+)", line) + if found: + entries.setdefault(found.group(1), [int(found.group(2)), f"{ENUMS_EX.relative_to(RGON)}:{number}", + "", False]) + page = DOCS / "enums" / "ModCallbacks.md" + section = "" + for line in page.read_text(errors="replace").splitlines(): + if line.startswith("## "): + section = line + found = re.match(r"###\s+(MC_\w+)", line) + if found: + entry = entries.setdefault(found.group(1), [None, "", "", False]) + entry[2] = "enums/ModCallbacks.md" + entry[3] = "Modified" in section + row = re.match(r"\|\s*(\d+)\s*\|\s*(MC_\w+)", line) + if row and row.group(2) in entries and entries[row.group(2)][0] is None: + entries[row.group(2)][0] = int(row.group(1)) + for name, (callbackId, location, docs, isModified) in entries.items(): + isVanilla = isModified or (callbackId is not None and callbackId < VANILLA_CALLBACK_LIMIT) + summary = f"id {callbackId}" + (", vanilla callback REPENTOGON changes" if isVanilla else "") + item = table.item_add("callback", "ModCallbacks", name, location, summary) + item.docs = docs + item.isDocsModified = isVanilla + item.callbackId = callbackId + + +def enums_load(table): + lines = ENUMS_EX.read_text().splitlines() + extended = defaultdict(list) + for number, line in enumerate(lines, 1): + created = re.match(r"(\w+)\s*=\s*\{", line) + if created: + table.item_add("enum", "enums_ex.lua", created.group(1), f"{ENUMS_EX.relative_to(RGON)}:{number}", + "new enum") + added = re.match(r"(\w+)\.(\w+)\s*=", line) + if added and added.group(1) != "ModCallbacks": + extended[added.group(1)].append((number, added.group(2))) + for name, values in extended.items(): + item = table.item_add("enum", "enums_ex.lua", name, f"{ENUMS_EX.relative_to(RGON)}:{values[0][0]}", + f"extends the vanilla enum: {len(values)} values") + item.enumKeys = [key for _, key in values] + for item in table.items.values(): + if item.kind == "enum" and (DOCS / "enums" / f"{item.name}.md").exists(): + item.docs = f"enums/{item.name}.md" + + +def xml_load(table): + codeHits = {} + files = [SOURCES / relative for relative in XML_CODE_FIRST] + \ + [path for path in sorted(SOURCES.rglob("*.cpp")) if str(path.relative_to(SOURCES)) not in XML_CODE_FIRST] + for path in files: + if str(path.relative_to(SOURCES)).startswith(SKIPPED_DIRS): + continue + for number, line in enumerate(path.read_text(errors="replace").splitlines(), 1): + for literal in re.findall(r'"([a-z][a-z0-9_]*)"', line): + codeHits.setdefault(literal, f"{path.relative_to(RGON)}:{number}") + for path in sorted((DOCS / "xml").glob("*.md")): + if path.stem == "overview": + continue + text = path.read_text(errors="replace") + title = re.search(r'# File "([^"]+)"', text) + fileName = title.group(1).split()[0] if title else path.stem + ".xml" + fileName = XML_FILE_ALIASES.get(fileName, fileName) + area = XML_AREAS.get(path.stem, "misc") + docs = f"xml/{path.name}" + fileItem = table.item_add("xml_tag", fileName, fileName, "", "file: content and resources support") + fileItem.docs = docs + fileItem.area = area + for tag in sorted(set(re.findall(r"<(\w+)[\s/>]", "".join(re.findall(r"```xml(.*?)```", text, re.S))))): + item = table.item_add("xml_tag", fileName, tag, codeHits.get(tag, ""), "tag in the docs' examples") + item.docs = docs + item.area = area + section = "" + isTable = False + for line in text.splitlines(): + if line.startswith("#"): + section = line.lstrip("#").strip() + if line.startswith("|") and "Variable-Name" in line: + isTable = True + continue + if not line.startswith("|"): + isTable = False + attributes = [] + if isTable and not line.startswith("|:"): + cells = [cell.strip() for cell in line.strip("|").split("|")] + attributes = [(cells[0].strip("` "), cells[-1] if len(cells) > 2 else "")] + supported = re.match(r"Supported attributes:\s*(.*)", line) + if supported: + attributes = [(name, "stat attribute") for name in re.findall(r"`(\w+)`", supported.group(1))] + for name, description in attributes: + if not name: + continue + summary = section + ": " + re.sub(r"<[^>]+>|\s+", " ", description) + item = table.item_add("xml_attribute", fileName, name, codeHits.get(name.lower(), ""), + summary[:SUMMARY_WIDTH].strip()) + item.docs = docs + item.area = area + + +def options_load(table): + for number, line in enumerate(OPTIONS.read_text().splitlines(), 1): + for section, key in re.findall(r'ini\["(\w+)"\]\["(\w+)"\]', line.split("//")[0]): + item = table.item_add("option", section, key, f"{OPTIONS.relative_to(RGON)}:{number}", "options.ini") + item.area = "console and debug" if re.search("Console|ImGui|Font|Debug|Unifont", key) else "misc" + + +def patches_load(table): + root = SOURCES / "Patches" + names = sorted(str(path.relative_to(root)) for path in root.rglob("*.cpp")) + names += sorted(str(path.relative_to(root)) for path in root.rglob("*.h") + if not path.with_suffix(".cpp").exists() and str(path.relative_to(root)) in PATCHES) + for name in names: + area, summary = PATCHES.get(name, ("misc", "no summary yet")) + item = table.item_add("behaviour_patch", "Patches", name, f"repentogon/Patches/{name}:1", summary) + item.area = area + + +def area_find(item): + if item.area: + return item.area + upperName = re.sub(r"(?<=[a-z])(?=[A-Z])", "_", item.name).upper() + if item.kind in ("callback", "enum"): + return name_area(upperName) or "misc" + area = CLASS_AREA.get(item.className) + if area is None and item.className.endswith("Menu"): + area = "hud and menus" + if area is None and item.className.startswith("GridEntity"): + area = "level and room" + if item.className in ("Isaac", "_G") or area is None: + area = name_area(upperName) or area + return area or "misc" + + +def name_area(name): + return next((area for pattern, area in NAME_AREAS if re.search(pattern, name)), None) + + +# What src/ registers, as {class: names}, following helpers without a class of their own to their call sites. +def rebuild_registrations(): + files = {} + for path in sorted((ROOT / "src").rglob("*.cpp")) + sorted((ROOT / "src").rglob("*.h")): + text = path.read_text(errors="replace") + if "lua/api.h" not in text and path.parent.name not in ("lua", "repentogon"): + continue + stripped, masked = text_strip(text) + files[path] = (stripped, functions_find(masked, braces_match(masked))) + contextRe = re.compile(r'lua_(class|namespace)_begin\(\s*\w+\s*,\s*"(\w+)"') + nameRe = re.compile(r'lua_(?:method|static|field|field_get|property)\s*(?:<[^;]*?>)?\s*\(\s*\w+\s*,\s*"(\w+)"' + r'|\{\s*"(\w+)"\s*,|lua_table_set\(\s*\w+\s*,\s*-?\d+\s*,\s*"(\w+)"\)') + bodies = {} + for path, (stripped, functions) in files.items(): + for name, _, start, end in functions: + bodies[(path, name, start)] = stripped[start:end] + + def class_name(namespace, name): + return REBUILD_CLASS_ALIASES.get((namespace, name), name) + + def contexts(body): + events = [] + namespace = None + for match in contextRe.finditer(body): + if match.group(1) == "namespace": + namespace = match.group(2) + events.append((match.start(), class_name(namespace, match.group(2)))) + return events + + callers = {} + + def caller_classes(functionName, depth=0): + if functionName in callers: + return callers[functionName] + found = callers[functionName] = set() + for (path, name, start), body in bodies.items(): + for call in re.finditer(rf"\b{re.escape(functionName)}\s*\(", body): + before = [className for offset, className in contexts(body) if offset < call.start()] + if before: + found.add(before[-1]) + elif depth < 2: + found |= caller_classes(name, depth + 1) + return found + + registered = defaultdict(set) + for (path, functionName, start), body in bodies.items(): + events = contexts(body) + if not events and not re.search(r"\blua_(method|static|field|field_get|property|table_set)\b", body): + continue + for match in nameRe.finditer(body): + name = match.group(1) or match.group(2) or match.group(3) + before = [className for offset, className in events if offset < match.start()] + for className in ([before[-1]] if before else caller_classes(functionName)): + registered[className].add(name) + return registered + + +def vanilla_names(): + names = set() + for path in VANILLA_TABLES: + if not path.exists(): + continue + for line in path.read_text(errors="replace").splitlines(): + fields = line.split("\t") + if path.name == "lua_bindings.tsv" and len(fields) >= 2: + names.add((fields[0], fields[1])) + elif len(fields) >= 2 and "::" in fields[1]: + names.add(tuple(fields[1].split("::", 1))) + return names + + +def callbacks_fired(): + fired = set() + for path in (ROOT / "src").rglob("*.cpp"): + stripped, _ = text_strip(path.read_text(errors="replace")) + fired |= set(re.findall(r"\bMC_[A-Z0-9_]+\b", COMMENT_RE.sub(" ", stripped))) + return fired + + +def status_compute(table): + registered = rebuild_registrations() + vanilla = vanilla_names() + vanillaClasses = {className for className, _ in vanilla} + fired = callbacks_fired() + firedIds = {item.callbackId for item in table.items.values() + if item.kind == "callback" and item.name in fired} + luaText = "\n".join(path.read_text(errors="replace") for folder in (ROOT / "assets" / "repentogon", ROOT / "src") + if folder.exists() for path in folder.rglob("*.lua")) + cppText = "\n".join(path.read_text(errors="replace") for path in (ROOT / "src").rglob("*.cpp")) + srcText = cppText + "\n".join(path.read_text(errors="replace") for path in (ROOT / "src").rglob("*.h")) + for item in table.items.values(): + if getattr(item, "luaLine", None): + item.status = "done" if item.luaLine in luaText else "todo" + elif item.kind in ("function", "property", "constructor"): + names = registered.get(item.className, set()) + isRegistered = ("__call" in names) if item.kind == "constructor" else item.name in names + isVanilla = (item.className, item.name) in vanilla or item.isDocsModified or \ + (item.kind == "constructor" and item.className in vanillaClasses) + item.status = ("review" if isVanilla else "done") if isRegistered else "todo" + elif item.kind == "callback": + if item.callbackId in firedIds or item.name in fired: + item.status = "review" if item.isDocsModified else "done" + elif item.kind == "enum": + keys = getattr(item, "enumKeys", None) + isDefined = all(re.search(rf"\b{item.name}\.{key}\s*=", luaText) for key in keys) if keys else \ + re.search(rf"(?m)^\s*{item.name}\s*=\s*\{{", luaText) + item.status = "done" if luaText and isDefined else "todo" + elif item.kind == "option": + item.status = "done" if f'"{item.name}"' in srcText else "todo" + elif item.kind == "behaviour_patch": + item.status = "started" if f"Patches/{item.name}" in srcText else "todo" + if OVERRIDES.exists(): + for line in OVERRIDES.read_text().splitlines(): + fields = line.split("\t") + if len(fields) >= 4 and (fields[0], fields[1], fields[2]) in table.items: + table.items[(fields[0], fields[1], fields[2])].status = fields[3] + + +def table_write(table): + rows = sorted(table.items.values(), key=lambda item: (KINDS.index(item.kind), item.className, item.name)) + with OUT.open("w") as out: + out.write("\t".join(COLUMNS) + "\n") + for item in rows: + out.write("\t".join(str(value).replace("\t", " ") for value in ( + item.kind, item.className, item.name, item.location, item.docs, item.area, item.status, + item.summary)) + "\n") + return rows + + +def summary_print(rows, rawCount, problems, elapsed): + statuses = sorted({item.status for item in rows}) + print(f"{OUT.relative_to(ROOT)}: {len(rows)} rows ({rawCount} registrations read before merging), " + f"{elapsed:.1f}s") + for title, key, order in (("kind", "kind", KINDS), ("area", "area", AREAS)): + print(f"\n{'by ' + title:<28}{'total':>7}" + "".join(f"{status:>9}" for status in statuses)) + counts = defaultdict(Counter) + for item in rows: + counts[getattr(item, key)][item.status] += 1 + for name in order: + if counts[name]: + print(f"{name:<28}{sum(counts[name].values()):>7}" + + "".join(f"{counts[name][status]:>9}" for status in statuses)) + totals = Counter(item.status for item in rows) + print(f"{'all':<28}{len(rows):>7}" + "".join(f"{totals[status]:>9}" for status in statuses)) + docsOnly = sum(1 for item in rows if item.summary.startswith("docs only")) + undocumented = sum(1 for item in rows if item.kind in ("function", "property", "constructor") and not item.docs) + print(f"\nfunction rows only in the docs: {docsOnly}, registered but undocumented: {undocumented}") + if problems: + print(f"\nunparsed ({len(problems)}):") + for problem in problems: + print(f" {problem}") + + +def lua_string(text): + return '"' + text.replace("\\", "\\\\").replace('"', '\\"') + '"' + + +# One mod per area: lists its functions, properties, constructors and callbacks, and checks each exists. +def mods_write(rows, folder): + for area in AREAS: + members = [item for item in rows if item.area == area and item.kind in ("function", "property", "constructor")] + callbacks = [item for item in rows if item.area == area and item.kind == "callback"] + if not members and not callbacks: + continue + slug = "rgon_" + area.replace(" and ", "_").replace(" ", "_") + directory = folder / slug + directory.mkdir(parents=True, exist_ok=True) + (directory / "metadata.xml").write_text(METADATA_TEMPLATE.format(name=f"REPENTOGON test {area}", + directory=slug)) + checks = "\n".join(f"\t{{{lua_string(item.className)}, {lua_string(item.name)}, {lua_string(item.kind)}}}," + for item in members) + callbackNames = "\n".join(f"\t{lua_string(item.name)}," for item in callbacks) + (directory / "main.lua").write_text(MOD_TEMPLATE.replace("@AREA@", area).replace("@CHECKS@", checks) + .replace("@CALLBACKS@", callbackNames)) + expected = directory / "expected.lua" + if not expected.exists(): + expected.write_text(EXPECTED_TEMPLATE) + print(f"\ntest mods written to {folder}") + + +METADATA_TEMPLATE = """ + + {name} + {directory} + Generated by scripts/repentogon_coverage.py: checks REPENTOGON's surface for one area. + 1.0 + Private + +""" + +EXPECTED_TEMPLATE = """-- Hand-written expectations for this area's checks, kept when scripts/repentogon_coverage.py regenerates main.lua. +-- ["Class.Name"] = {args = {...}, result = value}: the check calls the member on its object with args and compares. +return { +} +""" + +MOD_TEMPLATE = """-- Generated by scripts/repentogon_coverage.py for the area "@AREA@": regenerating rewrites this file, not expected.lua. +-- When a run starts it prints one line per item: PASS, FAIL (with the reason) or SKIP (no object to test on). +-- An item passes when it exists, and with an entry in expected.lua, when calling it with args returns result. + +local AREA = "@AREA@" + +-- {class, name, kind} from analysis/repentogon_coverage.tsv. +local CHECKS = { +@CHECKS@ +} + +local CALLBACKS = { +@CALLBACKS@ +} + +local isLoaded, loaded = pcall(include, "expected") +local EXPECTED = isLoaded and type(loaded) == "table" and loaded or {} + +local mod = RegisterMod("REPENTOGON test " .. AREA, 1) +local game = Game() + +-- An object of the class to test on: a singleton, a fresh value or the class's global table. +local OBJECTS = { + Game = function() return game end, + Room = function() return game:GetRoom() end, + Level = function() return game:GetLevel() end, + HUD = function() return game:GetHUD() end, + Seeds = function() return game:GetSeeds() end, + ItemPool = function() return game:GetItemPool() end, + Config = function() return Isaac.GetItemConfig() end, + RoomDescriptor = function() return game:GetLevel():GetCurrentRoomDesc() end, + EntityPlayer = function() return Isaac.GetPlayer(0) end, + Entity = function() return Isaac.GetPlayer(0) end, + TemporaryEffects = function() return Isaac.GetPlayer(0):GetEffects() end, + Sprite = function() return Sprite() end, + RNG = function() return RNG() end, + Vector = function() return Vector(0, 0) end, + Color = function() return Color(1, 1, 1, 1) end, + KColor = function() return KColor(1, 1, 1, 1) end, + MusicManager = function() return MusicManager() end, + SFXManager = function() return SFXManager() end, + Font = function() return Font() end, +} + +local function object_get(class) + local getter = OBJECTS[class] + if getter then return getter() end + return rawget(_G, class) +end + +local function result_print(outcome, class, name, reason) + print(string.format("%s %s %s.%s%s", outcome, AREA, class, name, reason and (" " .. reason) or "")) +end + +local function check_run(check, counts) + local class, name, kind = check[1], check[2], check[3] + if kind == "constructor" then + local global = rawget(_G, class) + local isCallable = type(global) == "function" or (getmetatable(global) or {}).__call ~= nil + counts[isCallable and "pass" or "fail"] = counts[isCallable and "pass" or "fail"] + 1 + return result_print(isCallable and "PASS" or "FAIL", class, name, not isCallable and "not callable" or nil) + end + local isFound, object = pcall(object_get, class) + if not isFound or object == nil then + counts.skip = counts.skip + 1 + return result_print("SKIP", class, name, "no object") + end + local isRead, value = pcall(function() return object[name] end) + if not isRead or (kind ~= "property" and value == nil) then + counts.fail = counts.fail + 1 + return result_print("FAIL", class, name, isRead and "missing" or tostring(value)) + end + local expected = EXPECTED[class .. "." .. name] + if expected then + local isCalled, result = pcall(value, object, table.unpack(expected.args or {})) + if not isCalled or result ~= expected.result then + counts.fail = counts.fail + 1 + return result_print("FAIL", class, name, "got " .. tostring(result)) + end + end + counts.pass = counts.pass + 1 + result_print("PASS", class, name) +end + +mod:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, function() + local counts = {pass = 0, fail = 0, skip = 0} + for _, check in ipairs(CHECKS) do check_run(check, counts) end + for _, name in ipairs(CALLBACKS) do + local isKnown = ModCallbacks[name] ~= nil + counts[isKnown and "pass" or "fail"] = counts[isKnown and "pass" or "fail"] + 1 + result_print(isKnown and "PASS" or "FAIL", "ModCallbacks", name, not isKnown and "missing" or nil) + end + print(string.format("DONE %s pass %d fail %d skip %d", AREA, counts.pass, counts.fail, counts.skip)) +end) +""" + + +def main(): + parser = argparse.ArgumentParser(description="REPENTOGON coverage table") + parser.add_argument("--mods", nargs="?", const=str(MODS_DEFAULT), help="also write the per area test mods") + args = parser.parse_args() + started = time.time() + table = Table() + problems = [] + rawCount = registrations_load(table, problems) + lua_functions_load(table) + docs_load(table) + callbacks_load(table) + enums_load(table) + xml_load(table) + options_load(table) + patches_load(table) + for item in table.items.values(): + item.area = area_find(item) + status_compute(table) + rows = table_write(table) + summary_print(rows, rawCount, problems, time.time() - started) + if args.mods: + mods_write(rows, Path(args.mods)) + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/src/game/manager.cpp b/src/game/manager.cpp index d070aeb..75f1891 100644 --- a/src/game/manager.cpp +++ b/src/game/manager.cpp @@ -12,6 +12,9 @@ #include "level/room_transition.h" #include "engine/kage_input.h" #include "engine/texture_cache.h" +#ifdef ISAAC_REPENTOGON +#include "repentogon/options.h" +#endif #include #include #include @@ -522,7 +525,7 @@ static void daily_challenge_clear(DailyChallenge& daily) // lobby from the command line are offline. // The import tool's resources/ replaces the packed archives, their mount points and their load timing. // Lua uses the system allocator, so --luaheapsize is ignored. LuaEngine's inlined construction is its own, run by new -// once taken over. +// once taken over. REPENTOGON's options load first, as its scripts read them. void IsaacStartup(int argc, uint8_t** argv) { StartupArguments arguments; @@ -533,6 +536,9 @@ void IsaacStartup(int argc, uint8_t** argv) if (argument == LUA_DEBUG_FLAG) arguments.luaMode = LUA_MODE_DEBUG; else if (argument == NETWORK_TEST_FLAG) isNetworkTestRequested = true; } +#ifdef ISAAC_REPENTOGON + repentogonOptions.load(); +#endif LuaEngine* luaEngine = new LuaEngine(); g_luaEngine = luaEngine; luaEngine->Init(arguments.luaMode); diff --git a/src/lua/api_isaac.cpp b/src/lua/api_isaac.cpp index a76f022..7f7eee0 100644 --- a/src/lua/api_isaac.cpp +++ b/src/lua/api_isaac.cpp @@ -18,6 +18,9 @@ #include "engine/platform.h" #include "level/room.h" #include "level/room_grid.h" +#ifdef ISAAC_REPENTOGON +#include "repentogon/repentogon.h" +#endif #include #include #include @@ -286,8 +289,8 @@ static int mod_data_remove(lua_State* state) } // 0085f0f0 The file a module name is in: dots become folders and .lua is added, searched in resources/scripts/, the -// running script's folder, and that folder under the mods folder. The name is lowercased, as the import tool lowercases -// every path a mod ships. Empty when none exists, with tried listing them. +// running script's folder, and that folder under the mods folder, with REPENTOGON's scripts folder first. The name is +// lowercased, as the import tool lowercases every path a mod ships. Empty when none exists, with tried listing them. static std::string module_path_find(std::string_view name, std::string& tried) { std::string module(name); @@ -299,7 +302,11 @@ static std::string module_path_find(std::string_view name, std::string& tried) std::string scriptPath = lua_engine_get().scriptPath; std::string local = scriptPath.substr(0, scriptPath.find_last_of(PATH_SEPARATORS)) + "/" + module; - for (const std::string& path : {resource_path(SCRIPTS_FOLDER + module), local, platform.modsDirectory + local}) + for (const std::string& path : { +#ifdef ISAAC_REPENTOGON + repentogon_script_path(module), +#endif + resource_path(SCRIPTS_FOLDER + module), local, platform.modsDirectory + local}) { std::error_code error; if (std::filesystem::exists(path, error)) return path; @@ -500,12 +507,10 @@ static void isaac_register(lua_State* state) EntityList& list = g_game->room->entityList; return std::max(list.bossCount + list.pendingBossCount, 0); }); - lua_method(state, "SetBuiltInCallbackState", [](int callback, bool isEnabled) { - if ((uint32_t)callback < LUA_CALLBACK_COUNT) lua_engine_get().enabledCallbacks[callback] = isEnabled; - }); - lua_method(state, "GetBuiltInCallbackState", [](int callback) { - return (uint32_t)callback < LUA_CALLBACK_COUNT && lua_engine_get().enabledCallbacks[callback]; - }); + lua_method(state, "SetBuiltInCallbackState", + [](int callback, bool isEnabled) { lua_engine_get().callback_state_set(callback, isEnabled); }); + lua_method(state, "GetBuiltInCallbackState", + [](int callback) { return lua_engine_get().is_callback_enabled(callback); }); lua_method(state, "WorldToScreen", [](Vector position) { if (!g_game) return position; diff --git a/src/lua/callback_run.h b/src/lua/callback_run.h new file mode 100644 index 0000000..504a282 --- /dev/null +++ b/src/lua/callback_run.h @@ -0,0 +1,139 @@ +#pragma once + +#include "lua/api.h" +#include + +// One run of a callback: the name its errors log, its id, and the parameter mods filter it by, nil when it has none. +// A REPENTOGON callback may filter by a second parameter, which runs it through _RunCallbackWithTwoParams. +struct CallbackRun +{ + const char* name; + int id; + std::optional param = CALLBACK_PARAM_NONE; + std::optional secondParam; +}; + +// Pushes a filter parameter, nil when there is none. +inline void param_push(lua_State* state, std::optional param) +{ + if (param) lua_pushinteger(state, *param); + else lua_pushnil(state); +} + +// Calls _RunCallback (_RunCallbackWithTwoParams for two filter parameters) with a callback's id, its filter parameters +// and its arguments when a mod added a function for it, leaving its one result on the stack. Whether it ran, false +// without a function or on an error, which is logged. +// The callers, result readers and error throws the original instantiates per callback are this and its readers +// (00872980, 00872c60, 00873470, 00873980, 00873d00, 00873fc0, 00874120, 00874210, 00874310, 00874a10, 00874f60) +// (0085c080, 008727d0, 0086130e, 00861225, 00861d96, 00861e7f, 008623a6, 0086248f, 008628b6, 0086299f, 00864453) +// (0086453c, 00865bbc, 00872a20, 00872b10, 00872ff0, 008730e0, 00873890, 00873ac0, 00873bb0, 00873e40, 008746b0) +// (00874860, 00874910, 00874ac0, 00874d20, 00874dd0, 00874e90, 00865a04, 0085bfd0, 0085bff0, 0085c270, 00873f40) +// (00872da0, 00872e90, 00873230, 00873320, 00873560, 00873650, 00873740, 00874400, 00874550, 00875050, 008663b6) +// (00872820, 00872860, 00872910, 00861c23, 00862233, 00862d53, 00865aad, 00865c61, 00866474, 00872a0c, 00872af1) +// (00872c43, 00872d80, 00872e71, 00872fc3, 008730c1, 00873213, 00873301, 00873453, 00873541, 00873631, 00873721) +// (00873873, 00873961, 00873aa0, 00873b91, 00873ce3, 00873e20, 00873f26, 00874103, 008741f1, 008742f7, 008743eb) +// (00874533, 0087469a, 00874846, 008748f6, 008749f7, 00874aa8, 00874bbb, 00874d0a, 00874db6, 00874e7e, 00874f4a) +// (00861bda, 008621ea, 00862d0a, 0085c250, 0085c2d0, 0085c300, 0085c340, 0085bf50, 0085c1d0, 0085c200, 0085c210) +// (0085da70) +// and their catches log through lua_error_log +// (00860ea3, 008611da, 0086191f, 00861d4b, 0086235b, 0086286b, 00862ea4, 008632e1) +// (00863706, 00863b6a, 00863e31, 00863f1e, 008640de, 00864408, 00864f6e, 00865b69, 008661cc, 00860826, 0086090e) +// (00860a70, 00860b4b, 00860c36, 00860d1e, 008613bf, 0086149f, 00861587, 00862a4c, 00862b2f, 00862cb8, 00862f8c) +// (0086306c, 00863154, 0086354b, 00863fff, 00864a6a, 00864bb8, 00864d16, 00865209, 008652e9, 00865424, 008659a7) +// (00865d53, 00865e99, 00865fe8, 008660ec) +// (00860f8b, 00861076, 0086166f, 0086174f, 00861837, 008619ff, 00861b88, 00861f2f, 0086200f, 00862198, 0086253f) +// (0086261f, 00862707, 0086362b, 00863879, 00863c6e, 00863d4e, 008641bb, 008642a4, 00864682, 00864e6d, 0086504e) +// (0086512e, 008655b7, 00866364, 0086675e, 008668e0). +template +bool callback_run(LuaEngine& engine, CallbackRun run, Args... args) +{ + if (!engine.is_callback_enabled(run.id)) return false; + lua_State* state = engine.state; + bool isTwoParams = run.secondParam.has_value(); + + lua_rawgeti(state, LUA_REGISTRYINDEX, isTwoParams ? engine.runCallbackTwoParamsRef : engine.runCallbackRef); + lua_pushinteger(state, run.id); + param_push(state, run.param); + if (isTwoParams) param_push(state, run.secondParam); + (lua_push(state, args), ...); + if (lua_pcall(state, sizeof...(Args) + 2 + isTwoParams, 1, 0) == LUA_OK) return true; + + lua_error_log(state, run.name); + return false; +} + +// Runs a callback whose result the game ignores. +template +void callback_notify(LuaEngine& engine, CallbackRun run, Args... args) +{ + if (callback_run(engine, run, args...)) lua_pop(engine.state, 1); +} + +// Runs a callback whose result is an integer that replaces fallback. +// The original aborts on a result that is neither nil nor an integer. This keeps fallback instead. +template +int callback_integer_run(LuaEngine& engine, CallbackRun run, int fallback, Args... args) +{ + if (!callback_run(engine, run, args...)) return fallback; + + int isInteger = 0; + lua_Integer result = lua_tointegerx(engine.state, -1, &isInteger); + lua_pop(engine.state, 1); + return isInteger ? (int)result : fallback; +} + +// Runs a callback whose result, when not nil, is a boolean that replaces fallback. +template +bool callback_boolean_run(LuaEngine& engine, CallbackRun run, bool fallback, Args... args) +{ + if (!callback_run(engine, run, args...)) return fallback; + + bool result = lua_isnil(engine.state, -1) ? fallback : lua_toboolean(engine.state, -1); + lua_pop(engine.state, 1); + return result; +} + +// Runs a Pre*Collision callback for an entity and what it hits, and reads its result as true, false or nothing. +template +LuaResult collision_run(LuaEngine& engine, CallbackRun run, T* entity, Entity* collider, bool isLow) +{ + if (!callback_run(engine, run, entity, collider, isLow)) return LUA_RESULT_NIL; + + LuaResult result = lua_isnil(engine.state, -1) ? LUA_RESULT_NIL + : lua_toboolean(engine.state, -1) ? LUA_RESULT_TRUE + : LUA_RESULT_FALSE; + lua_pop(engine.state, 1); + return result; +} + +// Sets value to a field of the table on top of the stack, when the field is not nil. +inline void field_read(lua_State* state, const char* key, bool& value) +{ + lua_getfield(state, -1, key); + if (!lua_isnil(state, -1)) value = lua_toboolean(state, -1); + lua_pop(state, 1); +} + +// Sets value to an element of the table on top of the stack, when the element is not nil. Whether it was not. +// The original aborts on an element that is not an integer. This keeps the value instead. +template +bool element_read(lua_State* state, int key, T& value) +{ + int isInteger = 0; + bool isSet = lua_geti(state, -1, key) != LUA_TNIL; + lua_Integer element = lua_tointegerx(state, -1, &isInteger); + if (isInteger) value = (T)element; + lua_pop(state, 1); + return isSet; +} + +// Pops a callback's result, and when it is a table sets values in order to its elements 1, 2 ... Whether any was set. +template +bool elements_pop(lua_State* state, T&... values) +{ + int key = 1; + bool isChanged = false; + if (lua_istable(state, -1)) ((isChanged |= element_read(state, key++, values)), ...); + lua_pop(state, 1); + return isChanged; +} diff --git a/src/lua/callbacks.cpp b/src/lua/callbacks.cpp index 44b1ae0..a223e5e 100644 --- a/src/lua/callbacks.cpp +++ b/src/lua/callbacks.cpp @@ -1,4 +1,4 @@ -#include "lua/engine.h" +#include "lua/callback_run.h" #include "classes.h" #include "entity/weapon/bomb.h" #include "entity/effect/effect.h" @@ -11,134 +11,10 @@ #include "entity/weapon/projectile.h" #include "entity/weapon/tear.h" #include "game/game.h" -#include "lua/api.h" #include "level/room_config.h" constexpr int PILL_EFFECT_UNCHANGED = -1; -// One run of a callback: the name its errors log, its id, and the parameter mods filter it by. -struct CallbackRun -{ - const char* name; - LuaCallback id; - int param = CALLBACK_PARAM_NONE; -}; - -// Calls _RunCallback with a callback's id, its filter parameter and its arguments when a mod added a function for it, -// leaving its one result on the stack. Whether it ran, false without a function or on an error, which is logged. -// The callers, result readers and error throws the original instantiates per callback are this and its readers -// (00872980, 00872c60, 00873470, 00873980, 00873d00, 00873fc0, 00874120, 00874210, 00874310, 00874a10, 00874f60) -// (0085c080, 008727d0, 0086130e, 00861225, 00861d96, 00861e7f, 008623a6, 0086248f, 008628b6, 0086299f, 00864453) -// (0086453c, 00865bbc, 00872a20, 00872b10, 00872ff0, 008730e0, 00873890, 00873ac0, 00873bb0, 00873e40, 008746b0) -// (00874860, 00874910, 00874ac0, 00874d20, 00874dd0, 00874e90, 00865a04, 0085bfd0, 0085bff0, 0085c270, 00873f40) -// (00872da0, 00872e90, 00873230, 00873320, 00873560, 00873650, 00873740, 00874400, 00874550, 00875050, 008663b6) -// (00872820, 00872860, 00872910, 00861c23, 00862233, 00862d53, 00865aad, 00865c61, 00866474, 00872a0c, 00872af1) -// (00872c43, 00872d80, 00872e71, 00872fc3, 008730c1, 00873213, 00873301, 00873453, 00873541, 00873631, 00873721) -// (00873873, 00873961, 00873aa0, 00873b91, 00873ce3, 00873e20, 00873f26, 00874103, 008741f1, 008742f7, 008743eb) -// (00874533, 0087469a, 00874846, 008748f6, 008749f7, 00874aa8, 00874bbb, 00874d0a, 00874db6, 00874e7e, 00874f4a) -// (00861bda, 008621ea, 00862d0a, 0085c250, 0085c2d0, 0085c300, 0085c340, 0085bf50, 0085c1d0, 0085c200, 0085c210) -// (0085da70) -// and their catches log through lua_error_log -// (00860ea3, 008611da, 0086191f, 00861d4b, 0086235b, 0086286b, 00862ea4, 008632e1) -// (00863706, 00863b6a, 00863e31, 00863f1e, 008640de, 00864408, 00864f6e, 00865b69, 008661cc, 00860826, 0086090e) -// (00860a70, 00860b4b, 00860c36, 00860d1e, 008613bf, 0086149f, 00861587, 00862a4c, 00862b2f, 00862cb8, 00862f8c) -// (0086306c, 00863154, 0086354b, 00863fff, 00864a6a, 00864bb8, 00864d16, 00865209, 008652e9, 00865424, 008659a7) -// (00865d53, 00865e99, 00865fe8, 008660ec) -// (00860f8b, 00861076, 0086166f, 0086174f, 00861837, 008619ff, 00861b88, 00861f2f, 0086200f, 00862198, 0086253f) -// (0086261f, 00862707, 0086362b, 00863879, 00863c6e, 00863d4e, 008641bb, 008642a4, 00864682, 00864e6d, 0086504e) -// (0086512e, 008655b7, 00866364, 0086675e, 008668e0). -template -static bool callback_run(LuaEngine& engine, CallbackRun run, Args... args) -{ - if (!engine.enabledCallbacks[run.id]) return false; - lua_State* state = engine.state; - - lua_rawgeti(state, LUA_REGISTRYINDEX, engine.runCallbackRef); - lua_push(state, (int)run.id); - lua_push(state, run.param); - (lua_push(state, args), ...); - if (lua_pcall(state, sizeof...(Args) + 2, 1, 0) == LUA_OK) return true; - - lua_error_log(state, run.name); - return false; -} - -// Runs a callback whose result the game ignores. -template -static void callback_notify(LuaEngine& engine, CallbackRun run, Args... args) -{ - if (callback_run(engine, run, args...)) lua_pop(engine.state, 1); -} - -// Runs a callback whose result is an integer that replaces fallback. -// The original aborts on a result that is neither nil nor an integer. This keeps fallback instead. -template -static int callback_integer_run(LuaEngine& engine, CallbackRun run, int fallback, Args... args) -{ - if (!callback_run(engine, run, args...)) return fallback; - - int isInteger = 0; - lua_Integer result = lua_tointegerx(engine.state, -1, &isInteger); - lua_pop(engine.state, 1); - return isInteger ? (int)result : fallback; -} - -// Runs a callback whose result, when not nil, is a boolean that replaces fallback. -template -static bool callback_boolean_run(LuaEngine& engine, CallbackRun run, bool fallback, Args... args) -{ - if (!callback_run(engine, run, args...)) return fallback; - - bool result = lua_isnil(engine.state, -1) ? fallback : lua_toboolean(engine.state, -1); - lua_pop(engine.state, 1); - return result; -} - -// Runs a Pre*Collision callback for an entity and what it hits, and reads its result as true, false or nothing. -template -static LuaResult collision_run(LuaEngine& engine, CallbackRun run, T* entity, Entity* collider, bool isLow) -{ - if (!callback_run(engine, run, entity, collider, isLow)) return LUA_RESULT_NIL; - - LuaResult result = lua_isnil(engine.state, -1) ? LUA_RESULT_NIL - : lua_toboolean(engine.state, -1) ? LUA_RESULT_TRUE - : LUA_RESULT_FALSE; - lua_pop(engine.state, 1); - return result; -} - -// Sets value to a field of the table on top of the stack, when the field is not nil. -static void field_read(lua_State* state, const char* key, bool& value) -{ - lua_getfield(state, -1, key); - if (!lua_isnil(state, -1)) value = lua_toboolean(state, -1); - lua_pop(state, 1); -} - -// Sets value to an element of the table on top of the stack, when the element is not nil. Whether it was not. -// The original aborts on an element that is not an integer. This keeps the value instead. -template -static bool element_read(lua_State* state, int key, T& value) -{ - int isInteger = 0; - bool isSet = lua_geti(state, -1, key) != LUA_TNIL; - lua_Integer element = lua_tointegerx(state, -1, &isInteger); - if (isInteger) value = (T)element; - lua_pop(state, 1); - return isSet; -} - -// Pops a callback's result, and when it is a table sets values in order to its elements 1, 2 ... Whether any was set. -template -static bool elements_pop(lua_State* state, T&... values) -{ - int key = 1; - bool isChanged = false; - if (lua_istable(state, -1)) ((isChanged |= element_read(state, key++, values)), ...); - lua_pop(state, 1); - return isChanged; -} - // 00862250 Runs MC_PRE_BOMB_COLLISION, filtered by the bomb's variant. LuaResult LuaEngine::PreBombCollision(Entity_Bomb* bomb, Entity* collider, bool isLow) { diff --git a/src/lua/engine.cpp b/src/lua/engine.cpp index d0de680..fcd2c19 100644 --- a/src/lua/engine.cpp +++ b/src/lua/engine.cpp @@ -5,6 +5,9 @@ #include "game/game.h" #include "game/manager.h" #include "engine/platform.h" +#ifdef ISAAC_REPENTOGON +#include "repentogon/repentogon.h" +#endif #include #include #include @@ -169,6 +172,9 @@ void LuaEngine::Init(LuaMode luaMode) RegisterAPI(); RunScript(resource_path(ENUMS_SCRIPT)); RunScript(resource_path(MAIN_SCRIPT)); +#ifdef ISAAC_REPENTOGON + repentogon_scripts_run(*this); +#endif runCallbackRef = global_take(state, RUN_CALLBACK); unloadModRef = global_take(state, UNLOAD_MOD); } @@ -193,10 +199,11 @@ void LuaEngine::destroy() for (LuaMod& mod : mods) mod_unload(*this, mod); mods.clear(); - luaL_unref(state, LUA_REGISTRYINDEX, runCallbackRef); - luaL_unref(state, LUA_REGISTRYINDEX, unloadModRef); - runCallbackRef = LUA_REF_NONE; - unloadModRef = LUA_REF_NONE; + for (int* ref : {&runCallbackRef, &runCallbackTwoParamsRef, &unloadModRef}) + { + luaL_unref(state, LUA_REGISTRYINDEX, *ref); + *ref = LUA_REF_NONE; + } lua_close(state); state = nullptr; } @@ -296,6 +303,27 @@ void LuaEngine::gc_update() lua_gc(state, LUA_GCSTEP, gcStepSize); } +// Whether a mod added a function for a callback, by its id: the original's, or with REPENTOGON one of its own. +bool LuaEngine::is_callback_enabled(int callback) +{ + if ((uint32_t)callback < LUA_CALLBACK_COUNT) return enabledCallbacks[callback]; +#ifdef ISAAC_REPENTOGON + uint32_t index = (uint32_t)(callback - REPENTOGON_CALLBACK_FIRST); + if (index < REPENTOGON_CALLBACK_COUNT) return enabledRepentogonCallbacks[index]; +#endif + return false; +} + +// Sets whether a callback runs, for the API's SetBuiltInCallbackState. Any other id is ignored. +void LuaEngine::callback_state_set(int callback, bool isEnabled) +{ + if ((uint32_t)callback < LUA_CALLBACK_COUNT) enabledCallbacks[callback] = isEnabled; +#ifdef ISAAC_REPENTOGON + uint32_t index = (uint32_t)(callback - REPENTOGON_CALLBACK_FIRST); + if (index < REPENTOGON_CALLBACK_COUNT) enabledRepentogonCallbacks[index] = isEnabled; +#endif +} + // 0086f640 A collectible's id by its name, -1 for none. The original searches a copy of the name map. int LuaEngine::Isaac_GetItemIdByName(std::string_view name) { diff --git a/src/lua/engine.h b/src/lua/engine.h index b38e8fb..ce90f1b 100644 --- a/src/lua/engine.h +++ b/src/lua/engine.h @@ -34,6 +34,9 @@ constexpr int LUA_MEMORY_HISTORY_SIZE = 128; constexpr int LUA_REF_NONE = -2; // A callback registered for every parameter. constexpr int CALLBACK_PARAM_NONE = -1; +// REPENTOGON's callback ids, from 1000 up (enums_ex.lua's ModCallbacks), with room for as many as it tracks. +constexpr int REPENTOGON_CALLBACK_FIRST = 1000; +constexpr int REPENTOGON_CALLBACK_COUNT = 500; // The input hooks of MC_INPUT_ACTION (Lua's InputHook). enum InputHook : int @@ -132,13 +135,15 @@ struct LuaMod // The mod scripting host: the Lua 5.3 state, the game's scripts in resources/scripts/, the mods scripts register, and // the entry points that run mods' callbacks. A callback runs only while enabledCallbacks has its id, which the API's -// SetBuiltInCallbackState sets once a mod adds a function for it. Lua errors are logged, never fatal. +// SetBuiltInCallbackState sets once a mod adds a function for it, REPENTOGON's ids from 1000 up in a set of their own. +// Lua errors are logged, never fatal. // Construction is inlined in IsaacStartup, and the original never destroys the engine. struct LuaEngine { std::array memoryHistory{}; std::array gcGrowth{}; std::bitset enabledCallbacks; + std::bitset enabledRepentogonCallbacks; std::list mods; std::string scriptPath; lua_State* state = nullptr; @@ -151,6 +156,7 @@ struct LuaEngine int memoryHistoryIndex = 0; int memoryHistoryTimer = 0; int runCallbackRef = LUA_REF_NONE; + int runCallbackTwoParamsRef = LUA_REF_NONE; int scriptApiVersion = -1; int unloadModRef = LUA_REF_NONE; uint32_t pointerMask = 0; @@ -161,6 +167,8 @@ struct LuaEngine bool RunScript(std::string_view path); bool LuamodCMD(std::string_view modName); void gc_update(); + bool is_callback_enabled(int callback); + void callback_state_set(int callback, bool isEnabled); static int Isaac_GetItemIdByName(std::string_view name); LuaResult PreBombCollision(Entity_Bomb* bomb, Entity* collider, bool isLow); diff --git a/src/repentogon/options.cpp b/src/repentogon/options.cpp new file mode 100644 index 0000000..19daf55 --- /dev/null +++ b/src/repentogon/options.cpp @@ -0,0 +1,93 @@ +#include "repentogon/options.h" +#include "engine/platform.h" +#include +#include +#include +#include +#include +#include + +constexpr const char* OPTIONS_FILE = "Repentogon/options.ini"; +constexpr std::string_view WHITESPACE = " \t\r"; +constexpr int FONT_SIZES[] = {13, 16, 14, 8, 8}; +constexpr int FONT_SIZE_DEFAULT = 8; + +// The keys a new options.ini gets besides the options, which REPENTOGON writes but no longer reads. +constexpr const char* UNREAD_KEYS[][3] = {{"VanillaTweaks", "FastLasers", "0"}, + {"internal", "DidModReset", "0"}, + {"internal", "EnableUnifont", "1"}, + {"internal", "UnifontRenderMode", "0"}}; + +RepentogonOptions repentogonOptions; + +// The text without the whitespace around it. +static std::string_view text_trim(std::string_view text) +{ + size_t start = text.find_first_not_of(WHITESPACE); + if (start == text.npos) return {}; + + return text.substr(start, text.find_last_not_of(WHITESPACE) + 1 - start); +} + +// Sets value to a key's leading digits, kept when the key is missing or has none, as REPENTOGON's defstoi reads it. +template static void value_read(RepentogonOptions& options, const char* section, const char* key, T& value) +{ + auto keys = options.ini.find(section); + if (keys == options.ini.end() || !keys->second.contains(key)) return; + + std::string& text = keys->second[key]; + int number = 0; + if (std::from_chars(text.data(), text.data() + text.size(), number).ec == std::errc()) value = (T)number; +} + +// Reads options.ini's sections, writing a new one with the defaults when there is none, then every option it holds. +// FontSize defaults by the old UnifontRenderMode, and the Mars double tap window is clamped. +void RepentogonOptions::load() +{ + char* folder = SDL_GetPrefPath("", SAVE_FOLDER.data()); + path = std::string(folder ? folder : "") + OPTIONS_FILE; + SDL_free(folder); + + std::ifstream file(path); + std::string section; + for (std::string line; std::getline(file, line);) + { + std::string_view text = text_trim(line); + size_t equals = text.find('='); + + if (text.starts_with('[') && text.ends_with(']')) section = text.substr(1, text.size() - 2); + else if (equals != text.npos && !text.starts_with(';')) + ini[section][std::string(text_trim(text.substr(0, equals)))] = text_trim(text.substr(equals + 1)); + } + bool isNew = !file.is_open(); + if (isNew) + for (auto [fileSection, key, value] : UNREAD_KEYS) ini[fileSection][key] = value; + + int renderMode = -1; + value_read(*this, "internal", "UnifontRenderMode", renderMode); + fontSize = (uint32_t)renderMode < std::size(FONT_SIZES) ? FONT_SIZES[renderMode] : FONT_SIZE_DEFAULT; + repentogon_options_visit(*this, [&](const char* fileSection, const char* key, auto& value) { + value_read(*this, fileSection, key, value); + }); + marsDoubleTapWindow = std::clamp(marsDoubleTapWindow, MARS_DOUBLE_TAP_WINDOW_MIN, MARS_DOUBLE_TAP_WINDOW_MAX); + if (isNew) save(); +} + +// Writes every option into its section of options.ini, with the keys it read but does not know. +void RepentogonOptions::save() +{ + repentogon_options_visit(*this, [&](const char* section, const char* key, auto value) { + ini[section][key] = std::to_string((int)value); + }); + + std::error_code error; + std::filesystem::create_directories(std::filesystem::path(path).parent_path(), error); + std::ofstream file(path); + for (auto& [section, keys] : ini) + { + file << '[' << section << "]\n"; + for (auto& [key, value] : keys) file << key << '=' << value << '\n'; + file << '\n'; + } + if (!file) log_printf(LOG_INFO, "[warn] could not write %s\n", path.c_str()); +} diff --git a/src/repentogon/options.h b/src/repentogon/options.h new file mode 100644 index 0000000..07405e9 --- /dev/null +++ b/src/repentogon/options.h @@ -0,0 +1,84 @@ +#pragma once + +#include +#include + +constexpr int MARS_DOUBLE_TAP_WINDOW_MIN = 2; +constexpr int MARS_DOUBLE_TAP_WINDOW_MAX = 20; + +// REPENTOGON's own options (REPENTOGONOptions), kept by section in Repentogon/options.ini in the save folder, with its +// defaults, plus the rebuild's vanilla parity switch, which keeps the game's behaviour exactly the original's. +// Keys it does not know are kept as read. Only the parity switch changes anything yet: the callback dispatch. +struct RepentogonOptions +{ + std::map> ini; + std::string path; + + int consoleAutofillLimit = 10; + int consoleKeyMode = 0; + int consoleKeyScancode = 41; + int consoleKeyVK = 192; + int fontRenderStyle = 0; + int fontSize = 8; + int imGuiScale = 0; + int lastSaveFile = 0; + int marsDoubleTapWindow = 10; + + bool isBetterVoidGeneration = false; + bool isBlockUnknownDevices = false; + bool isDidInputConfigsImport = false; + bool isDisableExitPrompt = false; + bool isEcoMode = false; + bool isEnableDocking = true; + bool isEnableImGuiMultiView = false; + bool isFileMap = true; + bool isHushLaserSpeedFix = true; + bool isInterpolV2 = false; + bool isPreventModUpdates = false; + bool isQuickRoomClear = false; + bool isRenderDebugFindInRadius = false; + bool isSkipArchiveChecks = false; + bool isSkipIntro = false; + bool isStatHudPlanetarium = true; + bool isSyncModsEnabled = true; + bool isSyncVanillaOptions = true; + bool isVanillaParity = true; + + void load(); + void save(); +}; + +// Calls visit with each option's section, key and value, in the order REPENTOGON saves them, the parity switch first. +template void repentogon_options_visit(RepentogonOptions& options, Visit visit) +{ + visit("Rebuild", "VanillaParity", options.isVanillaParity); + visit("OptionsSyncing", "SyncVanillaOptions", options.isSyncVanillaOptions); + visit("OptionsSyncing", "SyncModsEnabled", options.isSyncModsEnabled); + visit("VanillaTweaks", "BetterVoidGeneration", options.isBetterVoidGeneration); + visit("VanillaTweaks", "HushLaserSpeedFix", options.isHushLaserSpeedFix); + visit("VanillaTweaks", "QuickRoomClear", options.isQuickRoomClear); + visit("VanillaTweaks", "PreventModUpdates", options.isPreventModUpdates); + visit("VanillaTweaks", "StatHUDPlanetarium", options.isStatHudPlanetarium); + visit("VanillaTweaks", "SkipIntro", options.isSkipIntro); + visit("VanillaTweaks", "InterpolV2", options.isInterpolV2); + visit("VanillaTweaks", "MarsDoubleTapWindow", options.marsDoubleTapWindow); + visit("VanillaTweaks", "ConsoleAutofillLimit", options.consoleAutofillLimit); + visit("VanillaTweaks", "ConsoleKeyMode", options.consoleKeyMode); + visit("VanillaTweaks", "ConsoleKeyVK", options.consoleKeyVK); + visit("VanillaTweaks", "ConsoleKeyScancode", options.consoleKeyScancode); + visit("VanillaTweaks", "EcoMode", options.isEcoMode); + visit("VanillaTweaks", "DisableExitPrompt", options.isDisableExitPrompt); + visit("VanillaTweaks", "BlockUnknownDevices", options.isBlockUnknownDevices); + visit("internal", "LastSaveFile", options.lastSaveFile); + visit("internal", "FileMap", options.isFileMap); + visit("internal", "ImGuiScale", options.imGuiScale); + visit("internal", "RenderDebugFindInRadius", options.isRenderDebugFindInRadius); + visit("internal", "SkipArchiveChecks", options.isSkipArchiveChecks); + visit("internal", "DidInputConfigsImport", options.isDidInputConfigsImport); + visit("internal", "FontSize", options.fontSize); + visit("internal", "FontRenderStyle", options.fontRenderStyle); + visit("internal", "EnableImGuiMultiView", options.isEnableImGuiMultiView); + visit("internal", "EnableDocking", options.isEnableDocking); +} + +extern RepentogonOptions repentogonOptions; diff --git a/src/repentogon/repentogon.cpp b/src/repentogon/repentogon.cpp new file mode 100644 index 0000000..283b207 --- /dev/null +++ b/src/repentogon/repentogon.cpp @@ -0,0 +1,88 @@ +#include "repentogon/repentogon.h" +#include "engine/data.h" +#include "engine/platform.h" +#include "lua/api.h" +#include "repentogon/options.h" + +constexpr const char* SCRIPTS_FOLDER = "repentogon/scripts/"; +constexpr const char* ENUMS_SCRIPT = "enums_ex.lua"; +constexpr const char* MAIN_SCRIPT = "main_ex.lua"; +constexpr const char* BINDINGS = "_CBindings"; +constexpr const char* GLOBAL = "REPENTOGON"; +constexpr const char* RUN_CALLBACK_TWO_PARAMS = "_RunCallbackWithTwoParams"; + +// Logs that a mod's callback failed, where REPENTOGON raises its error display. +static int mod_error_raise(lua_State* state) +{ + log_printf(LOG_INFO, "%s is causing errors!\n", luaL_checkstring(state, 1)); + return 0; +} + +// The main.lua path of the mod a table was registered for, nil for none. +static int mod_id_get(lua_State* state) +{ + luaL_checktype(state, 1, LUA_TTABLE); + for (LuaMod& mod : lua_engine_get().mods) + { + lua_rawgeti(state, LUA_REGISTRYINDEX, mod.tableRef); + bool isMod = lua_rawequal(state, 1, -1); + lua_pop(state, 1); + if (!isMod) continue; + + lua_pushstring(state, mod.scriptPath.c_str()); + return 1; + } + lua_pushnil(state); + return 1; +} + +// Whether the vanilla parity option is on, read at each callback run. +static int vanilla_parity_get(lua_State* state) +{ + lua_pushboolean(state, repentogonOptions.isVanillaParity); + return 1; +} + +// Where one of REPENTOGON's scripts lives: under assets/repentogon/scripts/. +std::string repentogon_script_path(std::string_view path) +{ + return asset_path(SCRIPTS_FOLDER + std::string(path)); +} + +// Runs REPENTOGON's enums_ex.lua and main_ex.lua after the game's own scripts, as its LuaEngine::Init hook does. +// debug opens again for them (main.lua closed it), os too unless vanilla parity is on, and _CBindings holds the +// internals main_ex.lua takes, cleared after. main_ex.lua replaces _RunCallback and _UnloadMod, which Init then takes, +// and adds _RunCallbackWithTwoParams. The REPENTOGON global is cleared while it is not exposed. +void repentogon_scripts_run(LuaEngine& engine) +{ + lua_State* state = engine.state; + for (luaL_Reg library : {luaL_Reg{LUA_DBLIBNAME, luaopen_debug}, {LUA_OSLIBNAME, luaopen_os}}) + { + if (library.func == luaopen_os && repentogonOptions.isVanillaParity) continue; + luaL_requiref(state, library.name, library.func, 1); + lua_pop(state, 1); + } + + lua_newtable(state); + for (auto [name, function] : {std::pair{"RaiseModError", mod_error_raise}, {"GetModId", mod_id_get}, + {"IsVanillaParity", vanilla_parity_get}}) + { + lua_pushcfunction(state, function); + lua_table_set(state, -2, name); + } + lua_pushboolean(state, IS_REPENTOGON_EXPOSED); + lua_table_set(state, -2, "IsExposed"); + lua_setglobal(state, BINDINGS); + + engine.RunScript(repentogon_script_path(ENUMS_SCRIPT)); + engine.RunScript(repentogon_script_path(MAIN_SCRIPT)); + lua_pushnil(state); + lua_setglobal(state, BINDINGS); + + lua_getglobal(state, RUN_CALLBACK_TWO_PARAMS); + engine.runCallbackTwoParamsRef = luaL_ref(state, LUA_REGISTRYINDEX); + if (IS_REPENTOGON_EXPOSED) return; + + lua_pushnil(state); + lua_setglobal(state, GLOBAL); +} diff --git a/src/repentogon/repentogon.h b/src/repentogon/repentogon.h new file mode 100644 index 0000000..934bb11 --- /dev/null +++ b/src/repentogon/repentogon.h @@ -0,0 +1,12 @@ +#pragma once + +#include +#include + +struct LuaEngine; + +// Whether mods see the REPENTOGON global and its version. It stays off until the whole API is ported, which flips it. +constexpr bool IS_REPENTOGON_EXPOSED = false; + +std::string repentogon_script_path(std::string_view path); +void repentogon_scripts_run(LuaEngine& engine); diff --git a/src/ui/overlay/game_options.cpp b/src/ui/overlay/game_options.cpp index 8d85f57..a6aebaf 100644 --- a/src/ui/overlay/game_options.cpp +++ b/src/ui/overlay/game_options.cpp @@ -5,6 +5,9 @@ #include "game/options_config.h" #include "game/sfx_manager.h" #include "game/string_table.h" +#ifdef ISAAC_REPENTOGON +#include "repentogon/options.h" +#endif #include "ui/hud.h" #include "ui/menu/key_config.h" #include @@ -24,11 +27,18 @@ enum OptionsTab OPTIONS_TAB_CONSOLE, OPTIONS_TAB_ONLINE, OPTIONS_TAB_SYSTEM, +#ifdef ISAAC_REPENTOGON + OPTIONS_TAB_REPENTOGON, +#endif OPTIONS_TAB_COUNT }; -constexpr const char* OPTIONS_TAB_NAMES[OPTIONS_TAB_COUNT] = {"Audio", "Video", "HUD", "Gameplay", - "Console", "Online", "System"}; +constexpr const char* OPTIONS_TAB_NAMES[OPTIONS_TAB_COUNT] = {"Audio", "Video", "HUD", "Gameplay", + "Console", "Online", "System", +#ifdef ISAAC_REPENTOGON + "REPENTOGON" +#endif +}; // Where an options.ini setting sits: its tab and label, the range of a number (a slider when it has one, else typed), // and for a choice its labels, each standing for min plus its index. @@ -93,7 +103,39 @@ constexpr OptionSpec OPTION_SPECS[] = { {"SteamCloud", "Steam Cloud", OPTIONS_TAB_SYSTEM}, {"TryImportSave", "Import save", OPTIONS_TAB_SYSTEM}, {"AcceptedPublicBeta_v1.9.7.17", "Public beta accepted", OPTIONS_TAB_SYSTEM}, - {"AcceptedDataCollectionDisclaimer", "Data collection accepted", OPTIONS_TAB_SYSTEM}}; + {"AcceptedDataCollectionDisclaimer", "Data collection accepted", OPTIONS_TAB_SYSTEM}, +#ifdef ISAAC_REPENTOGON + {"VanillaParity", "Vanilla parity", OPTIONS_TAB_REPENTOGON}, + {"SyncVanillaOptions", "Sync vanilla options", OPTIONS_TAB_REPENTOGON}, + {"SyncModsEnabled", "Sync enabled mods", OPTIONS_TAB_REPENTOGON}, + {"BetterVoidGeneration", "Better Void generation", OPTIONS_TAB_REPENTOGON}, + {"HushLaserSpeedFix", "Hush laser speed fix", OPTIONS_TAB_REPENTOGON}, + {"QuickRoomClear", "Quick room clear", OPTIONS_TAB_REPENTOGON}, + {"PreventModUpdates", "Prevent mod updates", OPTIONS_TAB_REPENTOGON}, + {"StatHUDPlanetarium", "Planetarium chance on stat HUD", OPTIONS_TAB_REPENTOGON}, + {"SkipIntro", "Skip intro", OPTIONS_TAB_REPENTOGON}, + {"InterpolV2", "Interpolation v2", OPTIONS_TAB_REPENTOGON}, + {"MarsDoubleTapWindow", "Mars double tap window", OPTIONS_TAB_REPENTOGON, MARS_DOUBLE_TAP_WINDOW_MIN, + MARS_DOUBLE_TAP_WINDOW_MAX}, + {"ConsoleAutofillLimit", "Console autofill limit", OPTIONS_TAB_REPENTOGON}, + {"ConsoleKeyMode", "Console key mode", OPTIONS_TAB_REPENTOGON, 0, 1, "Virtual key\0Scancode\0"}, + {"ConsoleKeyVK", "Console virtual key", OPTIONS_TAB_REPENTOGON}, + {"ConsoleKeyScancode", "Console scancode", OPTIONS_TAB_REPENTOGON}, + {"EcoMode", "Eco mode", OPTIONS_TAB_REPENTOGON}, + {"DisableExitPrompt", "Disable exit prompt", OPTIONS_TAB_REPENTOGON}, + {"BlockUnknownDevices", "Block unknown devices", OPTIONS_TAB_REPENTOGON}, + {"LastSaveFile", "Last save file", OPTIONS_TAB_REPENTOGON}, + {"FileMap", "File map", OPTIONS_TAB_REPENTOGON}, + {"ImGuiScale", "ImGui scale", OPTIONS_TAB_REPENTOGON}, + {"RenderDebugFindInRadius", "Draw FindInRadius", OPTIONS_TAB_REPENTOGON}, + {"SkipArchiveChecks", "Skip archive checks", OPTIONS_TAB_REPENTOGON}, + {"DidInputConfigsImport", "Input configs imported", OPTIONS_TAB_REPENTOGON}, + {"FontSize", "Font size", OPTIONS_TAB_REPENTOGON}, + {"FontRenderStyle", "Font render style", OPTIONS_TAB_REPENTOGON}, + {"EnableImGuiMultiView", "ImGui multi-viewport", OPTIONS_TAB_REPENTOGON}, + {"EnableDocking", "ImGui docking", OPTIONS_TAB_REPENTOGON}, +#endif +}; static const OptionSpec* spec_find(std::string_view key) { @@ -146,8 +188,8 @@ template static bool is_option_edited(const OptionSpec& spec, T& va } } -// Every setting options.ini holds, a tab each by subject, then the key bindings. A change applies at once and is saved -// to options.ini as the game saves it, once no widget is held. +// Every setting options.ini holds, a tab each by subject, REPENTOGON's own options in theirs, then the key bindings. +// A change applies at once and is saved as the game saves it, once no widget is held. void Overlay::options_render() { OptionsConfig& config = g_manager->optionsConfig; @@ -173,7 +215,7 @@ void Overlay::options_render() ImGui::TextDisabled("Language: %s (read only)", language.c_str()); } - options_visit(config, [&](const char* key, auto& value) { + auto optionRender = [&](const char* file, const char* key, auto& value) { const OptionSpec* spec = spec_find(key); if (!spec || spec->tab != tab) return; @@ -183,11 +225,22 @@ void Overlay::options_render() option_apply(key); isOptionsSavePending = true; } - ImGui::SetItemTooltip("options.ini: %s", key); + ImGui::SetItemTooltip("%s: %s", file, key); ImGui::PopID(); - }); + }; + options_visit(config, [&](const char* key, auto& value) { optionRender("options.ini", key, value); }); if (tab == OPTIONS_TAB_CONSOLE) ImGui::TextDisabled("**The overlay's console works whatever these say. They drive the original's."); +#ifdef ISAAC_REPENTOGON + if (tab == OPTIONS_TAB_REPENTOGON) + { + ImGui::TextDisabled("**Only vanilla parity does anything yet. On, the original's callbacks run as the " + "original runs them."); + repentogon_options_visit(repentogonOptions, [&](const char* section, const char* key, auto& value) { + optionRender(section, key, value); + }); + } +#endif ImGui::PopItemWidth(); ImGui::EndTabItem(); } @@ -200,6 +253,9 @@ void Overlay::options_render() if (!isOptionsSavePending || ImGui::IsAnyItemActive()) return; config.Save(); +#ifdef ISAAC_REPENTOGON + repentogonOptions.save(); +#endif isOptionsSavePending = false; }