Files
isaac-port/notes/entities/pass6_h1.md
T

11 KiB

Group h1 notes (pass 6, 2026-10-25)

Shopkeepers, pitfalls, fireplaces, Movable TNT, Ball and Chain, Nerve Ending 2, Dead Meat, Cultist + Purple Ball, Cohort and Camillo Jr., read for isaac-classic branch rif/monster-fidelity-9. Speed convention as pass4_00.md (the scripted brake runs before the move, so an AddVelocity push divided by friction maps to the Rep constant).

shopkeeper: NpcAI::ENTITY_SHOPKEEPER 006c2220 (17.0). Changed

  • State 0: flags 0x11, collision class 1, no grid collision, subtype = InitSeed % 9 + 1 -> "Shopkeeper %u" (variants 0, 3), "Guy%u" (1, 4); sprite offset (0, 8) in room type 16 (crawlspace). Pinned to its spawn spot every tick, friction *.8.
  • Death: event counter 0xc, then Entity_NPC::shopkeeper_get_loot 006c1ac0 (variants 0-2): rand%100 == 0 and RemoveCollectible(64) -> Steam Sale; else RandomInt(100) == 0 and RemoveCollectible(429) -> Head of the Keeper; else RandomInt(100) == 0 and an unidentified unlock/game-mode test and RemoveCollectible(521) -> Coupon; else RandomInt(3): 0 nothing, 1 two spiders (ThrowSpider, the first at a free spot 70 out), 2 two random coins (5.20.0).
  • Port: Steam Sale 1% and Head of the Keeper .99% as item_give pedestals, then thirds. Not expressible: the pool removal (an item already drawn this run is skipped), the Coupon roll; the pedestal lands beside Isaac, not the keeper.

special_shopkeeper / special_secret_room_keeper: 006c2220 (17.3, 17.4). Changed

  • Same AI. shopkeeper_get_loot for variants 3/4: rng & 127 == 0 (and the room not a boss room) -> Greed (50.0), with the doors shut; else rng & 31 == 0 -> a penny trinket, three tries among Swallowed (1), Butt (24), Bloody (49), Burnt (50), Flat (51), Counterfeit (52) Penny for an unlocked one; else rng % 3 != 0 -> a nickel 5.20.2; else nothing.
  • Port: was 33/33/34 nickel / sticky nickel / nothing. Now weights 96 Greed, 381 penny trinket (uniform of six), 7874 nickel, 3937 nothing (of 12288 = 128 * 32 * 3).

ball_and_chain: NpcAI::ENTITY_BALL_AND_CHAIN 004f4730 (893.0). Changed (partly)

  • Radius ((subtype & 15) + 1) * 40, spin ((subtype >> 4) & 15) * .5 degrees a tick, bit 0x100 reverses. The anchor is the first of four neighbour cells holding a rock (grid type 3) or block (4, not 15); none -> free from the start.
  • Anchored: angle += spin * speedMult, velocity = circle point - pos; rock/poop grids (types 3, 2) under its collision points (* 1.05) break while anchored or faster than 4. Debris effect 59 at random.
  • Anchor broken: chain debris (1000.163) along the chain every max(20, length / 12), sound 0x1f8, velocity * 3, then height -10 with vz -6 (gravity .8, bounces * -.35 when faster than 4, sound), rolling friction .86 + .13 * clamp((speed - .5) / 3.5, 0, 1). Two Hagalaz-like trinket copies (trinket 0x97 multiplier >= 2) retract it (no contact damage, retracted png).
  • Port: orbit subtype radius/spin/reverse match. Free phase retention .95 -> .86 with fast_retention .99 from .5 to 4. Not expressible: the * 3 release kick, the hop.

suction_pitfall: NpcAI::ENTITY_PITFALL 00492550 (291.1). Changed

  • Init: size multi (1, .5) (an ellipse), clamped into the room, collision off, grid path 900 under it, v1.x = 1.
  • State 3 (variants 0, 1, 2): a non-flying player inside the ellipse (scaled distance < size 30) plays FallIn (pitfall state 1) unless holding effect 0x271; the pit goes to state 16 and pulls him in (his velocity = (pit - pos)
    • .1). Entity_Player pitfall update 007b9b50: FallIn ends -> TakeDamage(1, DAMAGE_PITFALL 0x80000), after 40 ticks input (or 120) he jumps out where he stands (a free spot if on a grid), damage cooldown 120. Then the pit Disappears and is removed: every pit catches once.
  • Variant 1 suction (state 2/3): every player, tear and projectile within 300 gains min(v1.x * k, max(0, (300 - d) * v1.x * k / 300)) toward it, k = .6 for players, .9 for tears/shots.
  • Lifetime: a positive StateFrame counts down to Disappear (spawners set it: Little Horn 240); 0 = until the room is cleared (then 5 ticks); a grid hit (collidesWithGrid) also ends it.
  • Port: fade 150 removed (room pits were vanishing after 5 s), radius 32 -> 30, aura 300 / -.6, attack range 300 with no cooldown, catch = player_damage .5 + enemy_slay self (no teleport), cleared {after 5, Disappear, dies} with a Disappear death. Not expressible: the instant fall (ours on the Swallow frame of the Suction loop), enemies being pulled by the aura (Rep pulls only players, tears and shots), Isaac vanishing for 40-120 ticks.

teleport_pitfall: 00492550 (291.2). Changed

  • As above, plus: in state 16 while the player's pitfall state is 2, Disappear; at its end the pit moves to Room::GetRandomPosition -> FindFreePickupSpawnPosition, Isaac is teleported there, Appear; removed once he is out. The half heart applies (player code, all variants).
  • Port: + player_damage .5 and enemy_slay self after the teleport, cleared Disappear death. Not expressible: Little Horn's launched pits sliding at constant speed until a grid hit ends them (fade 150 kept).

white_fire_place: NpcAI::ENTITY_FIREPLACE 006d18d0 (33.4). Skipped (matches)

  • Variant 4 skips both damage branches (never put out); Entity_NPC::fireplace_get_loot 006d1580 returns nothing for 4/10/11/12/13. Embers only.

moveable_blue_fireplace (cart-riding 33.2 here): 006d18d0. Changed

  • Variants 2/3 are put out only by a blast (pending damage flag 4) or death; fireplace_get_loot: RandomFloat < .25 (.1 hard) -> a soul heart 5.10.3 (Daemon's Tail 0x16: 1 in 5 kept, black heart 5.10.6 with two copies). Variant 0/1: same chance, then 25% a random heart 5.10.0 else a random coin 5.20.0; tears take 1-2 (2-3 above 10 damage) of its 5 hp; variant 1/3 shoot (rand%5, cooldown out, Isaac < 160 with a line, rand%15: overlay Shoot, one shot at 5 from 25 out, cooldown 84; variant 3's homing).
  • The real 33.10/12/13 (NpcHelper::fireplace_moveable_update 006d0ec0): velocity *.95 free, 33.10 removed after 300 ticks (180 when +0x184 set), 33.12 loses 1 hp per 90 ticks (Disappear at 1.5), 33.13 never; no loot.
  • Port: added the soul heart roll (when hard_mode false 1:3, true 1:9). The Daemon's Tail swap is not ported.

movable_tnt: NpcAI::ENTITY_MOVABLE_TNT 006d6690 (292.0). Changed (partly)

  • Hits: -1 (2/3) or -2 (1/3) whatever the damage, a blast (flag 4) -4, floored at 1. Idle (>3), IdleMedium (2-3), ReadyToExplode (1-2). At <= 1 (or dead): explosion 1000.1, crater, BombDamage(100, radius 75, flags 0x1004), particles, 1/100 a Burnt Penny or Match Stick trinket (1 in 2), then state 16 "Blown" rubble (collision off, friction *.3) unless on a minecart (removed). Friction *.8.
  • Port: retention .7 -> .8, phases hp_below 3.01 / 2.01 for the poses. Not expressible: the hit-count damage, the trinket, the rubble left behind.

nerve_ending_2: NpcAI::ENTITY_NERVE_ENDING 00537e20 (231.1). Skipped (matches)

  • Pinned, friction *.5; Isaac with dx != 0, |dx| < 80, |dy| < 20 -> SwingLeft/SwingRight (kept playing); on its Hit event two sounds and apply_tear_effects_in_rect over x..x+-80, y+-20.

dead_meat: NpcAI::ENTITY_MEMBRAIN 0051c040 (57.2). Changed

  • Friction *.8; PathFinder::MoveRandomly (feared/charmed: EvadeTarget, *.8 more). rand%30 with < 8 alive enemies -> Attack. Shoot: sound 0x30, FireProjectiles mode 9 (speed 8, 8 shots), Scale 1.4, CircleAngle .3927 (22.5 deg), BulletFlags 0x2000 | BOUNCE (1 << 42), FallingAccelModifier -.07. Death: two Cysts (862) at +- a random unit * 10.
  • Port: move flee .5 -> hop .625 (Dinga's MoveRandomly mapping), longshot 1 -> fall_acceleration -.07, attack retention .8. Not expressible: the 22.5 deg offset of the ring (eight is axis-aligned; ring is random), the random angle of the split.

cultist: NpcAI::ENTITY_CULTIST 004ed840 (885.0). Changed (partly)

  • Init: ProjectileCooldown 30 + rand%30; layers 2-4 hidden. State 3 friction *.75, steers at .7 + 1.7 rand a tick toward its target (angle smoothed), arrival within 10 (100 squared).
  • Picks (I1 0): with the cooldown out, rand & 3 == 0 and the room's dead-enemy list (Room+0x7300, not 885.0) non-empty: the centroid of corpses within 160 of the nearest -> I1 2. Otherwise its offset from Isaac turned rand*240-120 deg, resized 50 + 40 rand, clamped 60 in -> I1 1 (variant 0 always armed).
  • Arrival: I1 2 -> Respawn; I1 1 with no live child (ball) and hostile -> Attack. Pick dropped after 60 ticks, or 1 in 10 a tick while armed with a ball alive.
  • Attack (friction *.7): Shoot -> sound 0xd, Purple Ball 409.1 from (0, 5) at 8 straight down turned +-20 deg, parent the cultist, its V2.y 210, state 4; recoil vy -= 5 * v1 (v1 1 dropping .1). No cooldown after it.
  • Respawn (state 13, friction *.7, held still): Shoot revives every listed corpse within 80, summing max hp until 100 (sound 0x109), then cooldown 90.
  • Port: retention .85 -> .75, attack retentions .5 -> .7, first_cooldown [30, 30], Respawn one_in 3 -> 4 with cooldown 90, Attack cooldown 30 -> 0, spawn_at (0, 5) spawn_velocity (0, 8). Not expressible: the walk (spot around fits except that its cooled pick heads at Isaac), walking to the corpses, the 100 hp total, recoil.

purple_ball: NpcAI::ENTITY_RAG_MEGA 00495610 (409.1). Changed (partly)

  • State 4 (a Cultist's ball, and Rag Mega's released ones): friction *.8, velocity * 1.1765 + .5 toward CalcTargetPosition / friction (net .941 v + .5), mass 8. V2.y counts down from 210: the tint lerps to black, and below 15 it turns black and vulnerable (after 195 ticks).
  • Port: the released/host-absent hover .35 / .8 -> .5 / .941 (as dark_ball). Not expressible: the timed vulnerability (initially_invulnerable has no timed lift), mass 8.

cohort: NpcAI::ENTITY_COHORT 005513a0 (857.0). Changed

  • State 3: friction *.8, waits StateFrame > 8. Then within 420: rand%3 == 0 (or I1 > 4 and rand%3 != 0) -> Attack1 if rand & 1 and a clear line (mode 3), else Attack2; I1 = 0. Otherwise a hop: target CalcTargetPosition with a clear ground line, else the FindGridPath heading; I1++.
  • Hop (state 6): from Jump to Land, collision off, v += unit * 1.5 / f, f *= .9 (v = .9 v + 1.5 ~ 13.5); Land: sound, shockwave effect.
  • Attack1: one shot at Isaac speed 10, height -23, FallingSpeed 0, FallingAccel 0, scale 2, params high flags 0x60 and .94 at +0x?? (likely decelerate/burst; not verified). Attack2: FireBossProjectiles(18, Isaac) then, while < 10 Globins and < 4 spawned by it, a variant-11 BOUNCE shot at 3 (fall speed at most -10). Death: 4 BOUNCE shots at 10.
  • Port: Jump leap 15 -> lunge 1.5, retention .9, untouchable Jump..Land; the goo shot gated type_count globin below 10. Not expressible: the own-spawn cap 4, the 5-hop escalation.

camillo_jr: NpcAI::ENTITY_SWARMER 00518e20 (230.0). Changed

  • Init: velocity a random unit. Friction *.77 then *.9 (.693); +-.45 per axis along the velocity's signs (Psy Tumor's).
  • Laser (Entity_Laser::ShootAngle 2, 3 ticks, from ShootPos / .65, only on screen): when (1 - hp/max) * 10 > shots so far on each interval tick, or rand%100 a tick; both need ProjectileCooldown 0 (60 after a shot).
  • Port: bounce .2 / .9 -> .45 / .693, bounce_random, + a period 1 / one_in 100 copy of the laser attack.