Curation round 10: combat, pathfinding, death and game over, items and stats, room state, Continue, Lua callbacks

Seven agents took over tear and contact collision, NPC death with blood and gibs, champions, PathFinder, the Gaper's
kin, the player's death with the game over screen, item pedestals with collectible pickup, AddCollectible and
EvaluateItems, room state save and restore, GameState::read, pressure plates, fireplaces, entity lights, ambient
sounds, and one Lua callback enum with gated runners. Integration reconstructed Room::Update's loot preview and
Entity_NPC::UpdatePickupGhosts and replaced a leftover Sacred Orb stub that stopped every pedestal roll.
Under gdb: Gapers die with blood and gibs, a cleared room opens its doors, the treasure room's item is taken (banner,
costume, stats: a Magic Mushroom gives damage 3.5 -> 6.12 and a heart), death leads to the game over diary, and a saved
run is read back on the next boot with Continue offered. 3028 functions taken over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-20 09:55:14 -05:00
1 parent 48933cd312
commit d8385e6c64
64 files changed
+8665 -3059

No files matched your search

+1 -3
View File
@@ -117,7 +117,6 @@ constexpr int LAST_DAMAGE_STAGE_MAX = 13;
constexpr int HURT_FRAMES_PER_HEART = 60;
constexpr int HURT_HEARTS_MAX = 2;
constexpr int HIT_COOLDOWN = 4;
constexpr int MC_ENTITY_TAKE_DMG = 11;
constexpr uint32_t DEBUG_INFINITE_HP = 1 << 2;
constexpr uint32_t DEBUG_DAMAGE_VALUES = 1 << 6;
constexpr uint32_t STAGE_FULL_HEART_DAMAGE = 7;
@@ -437,8 +436,7 @@ bool Entity_Player::TakeDamage(float damage, uint64_t damageFlags, const EntityR
reconstruction_missing("Entity_Player::TakeDamage 007729d0 (Holy Mantle's shield)");
if (hallowedGroundCountdown > 0 && !(damageFlags & DAMAGE_NO_MODIFIERS))
reconstruction_missing("Entity_Player::TakeDamage 007729d0 (Hallowed Ground)");
if (static_cast<LuaEngine*>(g_luaEngine)->enabledCallbacks.test(MC_ENTITY_TAKE_DMG))
reconstruction_missing("Entity_Player::TakeDamage 007729d0 (LuaEngine::EntityTakeDamage 00864560)");
lua_callback_check(MC_ENTITY_TAKE_DMG, "Entity_Player::TakeDamage 007729d0: LuaEngine::EntityTakeDamage 00864560");
(void)damageCountdown;
if (try_end_astral_projection()) return false;
if (playerType == PLAYER_JACOB_B && source.type == ENTITY_DARK_ESAU)