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:
1 parent
48933cd312
commit
d8385e6c64
64 files changed
+8665
-3059
No files matched your search
@@ -104,9 +104,6 @@ constexpr float RIGHT_ANGLE = 90;
|
||||
constexpr int SOUND_BOOMERANG_LOOP = 837;
|
||||
constexpr int SOUND_PORTAL_ENTITY_LOOP = 846;
|
||||
constexpr int SOUND_CHAIN_LOOP = 503;
|
||||
constexpr int LUA_CALLBACK_POST_EFFECT_INIT = 54;
|
||||
constexpr int LUA_CALLBACK_POST_EFFECT_UPDATE = 55;
|
||||
constexpr int LUA_CALLBACK_POST_EFFECT_RENDER = 56;
|
||||
|
||||
template <size_t N>
|
||||
static bool is_listed(const std::array<int, N>& list, int value)
|
||||
@@ -206,7 +203,7 @@ void Entity_Effect::Init(int entityType, int entityVariant, int entitySubType, u
|
||||
sprite.LoadGraphics();
|
||||
if (g_game->deathmatchManager.is_active())
|
||||
reconstruction_missing("Entity_Effect::Init 005cdb20: the versus mode's entity registration");
|
||||
lua_callback_check(LUA_CALLBACK_POST_EFFECT_INIT, "LuaEngine::PostEffectInit 00861330");
|
||||
lua_engine_get().PostEffectInit(this);
|
||||
}
|
||||
|
||||
// 005d4380 Runs the effect for a frame at the room's time scale, held in place while paused and kept on its parent
|
||||
@@ -247,7 +244,7 @@ void Entity_Effect::Update()
|
||||
else poof_update();
|
||||
if (timeout > 0 && --timeout < 1) isDead = true;
|
||||
pausePosition = pos;
|
||||
lua_callback_check(LUA_CALLBACK_POST_EFFECT_UPDATE, "LuaEngine::PostEffectUpdate 00861410");
|
||||
lua_engine_get().PostEffectUpdate(this);
|
||||
}
|
||||
|
||||
// A poof's animation by its subtype. POOF01 and POOF02's large kinds draw over everything, POOF02's small kinds lie
|
||||
@@ -499,7 +496,7 @@ void Entity_Effect::Render(const Vector& offset)
|
||||
Vector screen = render_position_get(vector_make(pos.x + posOffset.x, pos.y + posOffset.y), RENDER_SNAPPED);
|
||||
renderPosition = vector_make(screen.x + offset.x, screen.y + offset.y);
|
||||
sprite.Render(SpriteDraw{renderPosition, {}, {}});
|
||||
lua_callback_check(LUA_CALLBACK_POST_EFFECT_RENDER, "LuaEngine::PostEffectRender 008614f0");
|
||||
lua_engine_get().PostEffectRender(this, offset);
|
||||
}
|
||||
|
||||
// 005d2420 Stops the boomerang and portal loops unless another such effect still plays them, then removes it.
|
||||
|
||||
Reference in new issue
Block a user