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

+2 -4
View File
@@ -67,7 +67,6 @@ constexpr int BABY_TWENTY_TWENTY = 65;
constexpr int PLAYERFORM_CONJOINED = 7;
constexpr int PLAYERFORM_BOOKWORM = 10;
constexpr int TRANSFORMATION_COUNT = 3;
constexpr int LUA_CALLBACK_POST_FIRE_TEAR = 61;
constexpr int TEAR_COLOR_PRIORITY = 255;
constexpr int COLLECTIBLE_20_20 = 245;
@@ -383,7 +382,7 @@ PosVel Entity_Player::GetMultiShotPositionVelocity(int loopIndex, WeaponType wea
// game until reached.
TearParams Entity_Player::GetTearHitParams(WeaponType weaponType, float damageScale, int displacement, Entity* source)
{
if ((source && source->IsFamiliar()) || !is_evaluation_plain() || redStewBonusDuration > RED_STEW_BLOOD_FRAMES)
if ((source && source->IsFamiliar()) || !is_tear_hit_plain() || redStewBonusDuration > RED_STEW_BLOOD_FRAMES)
reconstruction_missing("Entity_Player::GetTearHitParams 007bf6c0 (items, effects and familiars)");
TearParams params;
@@ -475,8 +474,7 @@ Entity_Tear* Entity_Player::FireTear(const PosVel& shot, uint32_t fireFlags, Ent
tear->Update();
tear->pos = vector_make(tear->pos.x - tear->velocity.x, tear->pos.y - tear->velocity.y);
if (static_cast<LuaEngine*>(g_luaEngine)->enabledCallbacks.test(LUA_CALLBACK_POST_FIRE_TEAR))
reconstruction_missing("lua_callback_run_post_fire_tear 00863f70");
lua_engine_get().PostFireTear(tear);
if (HasCollectible(COLLECTIBLE_EVIL_EYE) && !(fireFlags & TEAR_FIRE_NO_EVIL_EYE))
reconstruction_missing("Entity_Player::FireTear 00790af0 (Evil Eye)");
return tear;