Curation round 9: floors and walls, room transitions, collision, the first enemies, saving, damage, pickups

Seven agents took over the backdrop's floor and wall rendering, room transitions (StartRoomTransition, on_leave,
room_enter), grid collision with tear hits and decal baking, Entity_NPC's core with the AI dispatch and the first
enemies (flies, Gaper, Pooter, Clotty, Horf, Dip, Spider), the run's save, player damage, PlayerManager::Update,
ShowName, pickups, slots and the common effects. Integration added LuaEngine::PostNewLevel/PostNewRoom, one shared
lua_callback_check (4 copies merged) and the enemy type range the original checks.
Under gdb a run draws its rooms with floors and walls, walks between rooms, fights Gapers with contact damage and the
damage flash, and collects pickups. Next: tears hitting enemies, pathfinding, item pedestals, death.
2891 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 08:24:38 -05:00
1 parent 69a354f843
commit 48933cd312
59 files changed
+13387 -6056

No files matched your search

+6 -6
View File
@@ -18,7 +18,7 @@ void NpcHelper::the_lamb_pattern(Entity_NPC *npc, int pattern, int frame)
Manager *manager;
local_8 = (float)(__security_cookie ^ GHIDRA_UINT(&(&params)[1].CircleAngle));
(GHIDRA_CAST<ProjectileParams *>((&params)))->ProjectileParams::ProjectileParams();
ProjectileParams::ProjectileParams(&params);
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(params)) + 0x4))) = 0x40a00000;
params.Scale = 1.8;
params.FallingAccelModifier = -0.06;
@@ -5590,7 +5590,7 @@ void NpcHelper::moms_heart_attack_pattern(Entity_NPC *npc, int pattern, int stat
uint32_t stackCookie;
stackCookie = __security_cookie ^ GHIDRA_UINT(auStack_f8);
(GHIDRA_CAST<ProjectileParams *>((&projParams)))->ProjectileParams::ProjectileParams();
ProjectileParams::ProjectileParams(&projParams);
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(projParams)) + 0x4))) = 0x40a00000;
projParams.Scale = 1.5;
projParams.FallingAccelModifier = -0.06;
@@ -7442,7 +7442,7 @@ LAB_00548a4b:
}
local_d4.x = (float)pbVar5 * 10.0;
local_d4.y = fVar8 * 10.0;
(GHIDRA_CAST<ProjectileParams *>((&projParams)))->ProjectileParams::ProjectileParams();
ProjectileParams::ProjectileParams(&projParams);
projParams.Color._offset[2] = 0.0;
projParams.Color._tint[0] = 1.0;
projParams.Color._tint[1] = 1.0;
@@ -8001,7 +8001,7 @@ void NpcHelper::willo_attack(Entity_NPC *npc)
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_bc));
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_bc),1.0,2,0,local_b8,0.0);
target = Entity_NPC::GetPlayerTarget(npc);
(GHIDRA_CAST<ProjectileParams *>((&projParams)))->ProjectileParams::ProjectileParams();
ProjectileParams::ProjectileParams(&projParams);
local_bc = ((target->_pos).x + (target->_velocity).x) - (npc->_pos).x;
local_b8 = ((target->_pos).y + (target->_velocity).y) - (npc->_pos).y;
distance = sqrtf(local_bc * local_bc + local_b8 * local_b8);
@@ -12419,7 +12419,7 @@ void NpcHelper::ChampionDrop(Entity_NPC *npc)
(nearestPlayer = Game::GetNearestPlayer(g_game,dropDir),
fVar3 = (npc->_pos).y - (nearestPlayer->_pos).y,
fVar7 = dropDir->x - (nearestPlayer->_pos).x, 6400.0 < fVar3 * fVar3 + fVar7 * fVar7)))) {
params = (GHIDRA_CAST<ProjectileParams *>((&projParams)))->ProjectileParams::ProjectileParams();
params = ProjectileParams::ProjectileParams(&projParams);
local_11c.x = 7.0;
local_11c.y = 0.0;
Entity_NPC::FireProjectiles(npc,dropDir,&local_11c,8,params);
@@ -12737,7 +12737,7 @@ LAB_006c0128:
(nearestPlayer = Game::GetNearestPlayer(g_game,dropDir),
fVar3 = (npc->_pos).y - (nearestPlayer->_pos).y,
fVar7 = dropDir->x - (nearestPlayer->_pos).x, 6400.0 < fVar3 * fVar3 + fVar7 * fVar7)))) {
params = (GHIDRA_CAST<ProjectileParams *>((&projParams)))->ProjectileParams::ProjectileParams();
params = ProjectileParams::ProjectileParams(&projParams);
local_c8._seed = 0x40e00000;
(*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(local_c8)) + 0x4))) = (uint64_t)GHIDRA_UINT(local_c8._shift2) << 0x20;
Entity_NPC::FireProjectiles(npc,dropDir,GHIDRA_CAST<Vector *>(&local_c8),8,params);