diff --git a/db/names.tsv b/db/names.tsv index e2ad2c3..cf67c06 100644 --- a/db/names.tsv +++ b/db/names.tsv @@ -1458,3 +1458,10 @@ 00736c30 ItemPool::on_pill_used the gold pill (colour 14) after a use: clears its identified byte (ItemPool+0x7e0+colour) and gives effects[colour] (ItemPool+0x7a4+colour*4) a random available pill effect none of colours 1-14 holds (rif/rebirth-pills) 007ea2d0 Room::time_scale_update misnamed GetDevilRoomChance: the global time scale (manager+0x2a2d4) SetBrokenWatchState stores: Stop Watch effect (0xe8) / Hourglass effect (0x42) / Broken Watch state 1 -> 0.7, state 2 or challenge 22 -> 1.43, Stop Watch owned -> 0.9, collectible 0x2a5's countdown eases it; plus (GFuel count - 1) * 0.1 (rif/rebirth-pills) 00703190 Game::spawn_bomb_crater spawns effect 1000.18 (BOMB_CRATER) at pos, sprite scale from XMM2, and appends an EntitySaveState (1000.18) to the room save list; called from NpcAI::ENTITY_SKINNY Black Bony death after BombDamage (pass5_g2) +0044ee60 NpcAI::ENTITY_BEAST_ultra_war_fire_burst npc in ECX; called by NpcAI::ENTITY_BEAST_ultra_war 0x44c070 on the Transition and QuickBurst Shoot events: sound 483 flame_burst (pitch 1.5/0.5 for champion colour 18/19) and 5 fans x 5 dust clouds 1000.59 rising from pos (notes/entities/beast_war_death.md) +008279c0 Room::get_lava_line_y body: returns Room+0x20 (BottomRight.y) - 30 (0xbaa8d0); the Lava Spawner case of Entity_Effect::Update (0x5e1f3a) spawns its eruption at that y (beast_war_death.md) +00435e60 Entity_Effect::set_state body: this+0x450 (EntityEffect.State, Lua field+0x450) = arg; the Lava Spawner sets 1 on the 1000.1 it spawns (tiny setter: ICF may fold other +0x450 setters) +006d6d20 Entity_NPC::on_player_damaged called by Entity_Player::TakeDamage (ECX = each IsEnemy entity) when a player is hurt: types 0x24 Gurdy / 0x54 Satan set V1.x = 1; 951.102-104 (background Pestilence/War/Death) in state 3 get state 8 and StateFrame = Random()%15 + 2, which NpcAI::ENTITY_BEAST_background turns into "Cheer" (notes/entities/beast_fight.md) +00444c90 Entity_Projectile::set_falling_accel trivial setter of +0x418 (db/fields.tsv _fallingAccel); Entity_Effect 1000.181 sets 0.5 on its 9.14 lava ball (beast_fight.md) +0044bd80 std::deque::resize the Pestilence fly ball (0x44aad0) calls it on its +0xbf0 orbiter deque with the new count after killing the slots past it (also Hornfel 0x4b92e0); grows by operator_new(0x10) blocks of 4 pointers (std::deque::resize is 0x44bcc0) +007ea190 Room::is_type_16 body `return *(int*)(this+8) == 0x10` (room type 16: crawl space / Beast room); ECX from Level::GetCurrentRoom in Entity_Projectile::Update 0x653070 (flag at 0x653bd2), Entity_Tear::Update, Entity_Effect::Update/Init, Entity_Familiar::Update, Entity_NPC::Update; tiny, beware ICF diff --git a/notes/entities/beast.md b/notes/entities/beast.md index d397a8f..47dfc5a 100644 --- a/notes/entities/beast.md +++ b/notes/entities/beast.md @@ -291,3 +291,30 @@ For a 30 Hz engine with 1:1 units and 40-unit cells: 8. Entities to port: 951.0-3, 10/11, 20-23, 30/31, 40-42, 100-104, plus effects 1000.181 (Lava Spawner), 1000.151.0/1 (attract ring/trail) and .10/11 (shockwave ring/trail), 1000.59, 1000.66, 1000.16.66/67 (lava splash), 1000.144, 1000.145, 1000.166 (trail), 1000.199, a laser variant 13, fire place 33.10. + +## isaac-classic port (2026-10-25) + +Ported per tick in isaac-classic (src/game/enemies/beast.cpp, behavior.beast; Dogma in dogma.cpp, see +[dogma.md](dogma.md)): Home's map, the night TV calling Dogma, Dogma and its angel, the Beast room as an open arena +(room shape "arena": the rect above, no walls/doors, the lava line hurting every 4 ticks, the world scroll applied to +every actor but Isaac and familiars, shots and tears), the handover with all four background riders and Ultra +harbingers, every harbinger AI with its children (951.10-42, War's moveable fires 33.10), the Beast's states 3-13 with +its HP phases, kinematic target movement and stalactite collision, 951.1-3 and the Lava Spawner subtype 2, and the run +won (run_win) 98 ticks after its death (its death clip's length; Game::End(14) waits for the room clear). + +Decisions taken where these notes leave it open: +- The epilogue's negative-S snap (beast_fight.md, phase-0 epilogue) is ported as read: a leftward slide stops at once + out of a run. +- The rock (951.2) is harmless as read (collision class 0 in its state 0). +- Null capsules (stalactite Hit0-2 for the rock count, Ultra Death's Hit swipe box) are read as a 10-unit box at 100 % + scale (half size = scale / 100 * 5 per axis); not checked against GetNullCapsule's own constant. +- The stalactite's 220 x 0.1 body is tested as an ellipse (22 by 220) against Isaac; the Beast's (166, y x1.3) against + it in the collision pass. +- Lava balls (9.14) fall at their FallingAccel (0.5) from launch; the Surface spit's eight (default params) use 0.5 too. + +Not ported (looks, sound, or engine gaps): the 16-layer parallax backdrop (one still composite instead), screen shakes, +music layer masks, the BossOverlay Whiteout/DeathRay and camera focus, attract rings and shockwave rings, dust and +blood effects, the suck fan's CHANGE_FLAGS_AFTER_TIMEOUT fade-outs (no projectile lifetime in the engine), Safety +Scissors' Giga Bomb, War's death blast (its Explosion event), Death's dropped scythe 1000.199 and trails, the +background riders' cheers and darkening, and Rotgut's side-view crawl space (911; the arena shape has no gravity for +Isaac or ladders yet).