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

147 lines
12 KiB
Markdown

# Group i7 notes (pass 7, 2026-10-25)
Props, helpers and records no earlier notes file covered (most were ported from wiki text or an early toolkit), read
for isaac-classic branch monster-fidelity-10. Speed convention as pass4_00.md / pass6_engine.md (the scripted brake
runs before the move, so an AddVelocity push divided by friction maps to the Rep constant).
## error_room_keeper: NpcAI::ENTITY_SHOPKEEPER 006c2220 (17.2). Skipped (matches)
- Same AI as the shopkeeper, only the animation is "Idle" (no seed%9 look). Pinned (velocity from target), friction
*.8, flags 0x11, collision class 1, sprite offset (0, 8) in room type 16.
- Loot: Entity_NPC::shopkeeper_get_loot 006c1ac0 takes the variants 0-2 branch: rng%100 Steam Sale (0x40), else
RandomInt(100) Head of the Keeper (0x1ad), else RandomInt(100) Coupon (0x209, behind a mode test), else RandomInt(3):
0 nothing, 1 two spiders (ThrowSpider, the first at a free spot 70 out), 2 two random coins 5.20.0.
- The record carries the thirds, like the shopkeeper record. entities2: radius 1 for every keeper (records keep 13).
- For the parent: the shopkeeper's reference note (monster-fidelity-9) says its Steam Sale / Head of the Keeper
pedestals were added, but the record in this worktree has only the thirds.
## singes_ball: NpcAI::ENTITY_SINGE_ball 0058d8b0 (915.1). Changed
- Init flags |= 0x50011, invincible, V1.x = a random roll phase. Friction .7 + .29 * clamp((speed - .5) / 3.5)
(fast_retention matches). Roll frame = frames * phase, with the phase advanced by speed * .02 along its axis.
- Subtype 0: Kill once GetAliveEnemyCount < 1 (and a room counter test). Changed: cleared {after 0, RollVert, dies}.
- Blast (pending damage flag 4): velocity += away * 20 * (2 - 2 clamp((v . away + 20) / 40)) * speedMult, and when on
the floor a hop V1.y = -6 (gravity .8 a tick, height in V2.y; landing above speed 4 bounces * -.35 with sound
0x1e7 at volume clamp(.1 vz + .2, 1.2); landing on a pit cell: grid class 7, falls past 10 -> poof 1000.15, removed).
Grid class 6 airborne (over pits), 5 on the ground; no entity collision above height -50.
- Trinket 0x97 (x2 multiplier): retracted sheet and no contact damage.
- Not expressed: the speed-shaped blast kick and the hop (see MF engine_i7.md #1), the roll frame by distance.
## rotten_gaper: NpcAI::ENTITY_ROTTEN_GAPER 004da590 (10.3.0). Skipped (matches)
- State 0, subtype 0, type 10: Morph(10, 3, (x ^ x >> 16) % 5 + 1) with x the xorshifted init seed. The record's
uniform choice of 10.3.1-5 matches (the subtype records were not read).
## minecart: NpcAI::ENTITY_MINECART 004ce8a0 (965.0). Skipped (matches)
- Ridden: mass 10000, collision 4 (0 while the rider's 0x188 flag is set), velocity += heading * 1.3 * V2.x with V2.x
= 1 (Entity::GiveMinecart 006b7be0), friction .8. Riderless: mass 50, friction .9, minecart_break after 3 frames.
Fades within 48 px off the room, removed outside it. Rail 1.3 / .8 matches.
## moveable_fireplace: NpcHelper::fireplace_moveable_update 006d0ec0 (33.10). Changed (partly)
- Free (target zero): friction *= .95 (not under spawner 0x3b7); a set target pins it (friction *.6).
- 33.10: Disappear once older than 300 ticks, 180 with any grid collision class (entities2 gives walls, so 180).
33.12 loses 1 hp per 90 ticks, 33.13 never. Flooded room (> .2): self damage every 5 frames.
- Hits: any tear 1 (2/3) or 2 (1/3), above 10 damage 2 or 3; a blast sets 1; below 1.5: Disappear, collision off,
sound 0x105 (steam) unless the hit had flag 0x20000. Flame layer scaled .1 + .9 * hp share. No loot.
- Changed: retention .7 -> .95.
- Not done: the 180-tick life. rebirth_rooms.py (FIRE_RIDERS) also seats this record for Rep's 33.0 fire places
riding carts, which have no life limit (see engine_i7.md #2). Hit-count health and the shrink are not expressible.
## moms_dresser, moms_vanity, generic_prop: NpcAI::ENTITY_GENERIC_PROP 00551d30 (960.1, 960.2, 960.0). Skipped (matches)
- State 0: its sprite's default animation, flags |= 0x2008 / 0x44250011, invincible; dimension 2 tints it. State 3:
pinned (velocity = target - pos); only 960.3/4 (couch, TV) animate on stage 13 type 1.
- entities2 radii 58 * .32 = 18.6 and 40 * .4 = 16 (the records' 19 and 16).
## henry: NpcAI::ENTITY_HENRY 00565bc0 (837.0). Changed
- State 0: Entity_NPC::FindTargetPit(pos, pos, -1); none -> removed; placed on the pit cell's centre, grid class 0.
- State 3: Idle; stateFrame += elapsed; past 30 -> sound 0x18c (Flush.wav), Leave, state 8. State 8: a water ripple
1000.133 every interval tick; removed when Leave ends. Pinned every tick.
- Changed: rebirth/flush.mp3 on Leave's frame 1. Idle 31 and Leave matched; the ripples and the no-pit removal not.
## vessel (858.0), strifer (839.0). Skipped (no Repentance AI)
- Both types land in the NPC AI dispatcher's default block (NpcHelper::default_case_lua_callback): cut content with
no exe behaviour to check.
## swinger_head: NpcAI::ENTITY_SWINGER 00536d00 (216.1). Changed
- As pass5_g5.md: velocity = (body + cord point) - pos, friction .7 (cord 100 grown 100/60 a tick, angle pi/50).
- Changed: orbit speed .5 / retention .5 -> .7 / 0, the engine's v = r v + gap * speed matching Rep's .7 * gap.
## siren_helper_projectile: NpcAI::ENTITY_SIREN 00591460 variant 10 (904.10). Changed
- As boss_approx_3.md: thrown at 10 toward Isaac's lead; on a grid hit (or a carried familiar out after 15 ticks)
FireProjectiles mode 9 of clamp(6 * carried, 6, 18) at 8, shake 5, helpers take 1000, removed.
- Changed: circular_count 12 -> 6 (the port's cluster carries no familiar), mass 3 -> 30 (entities2).
- Not expressed: carrying the charmed familiars, removal with its Siren.
## peeping_fatty_eye: NpcAI::ENTITY_PEEPER_FATTY 005562b0 variant 10 (835.10). Changed
- Phase 1/2 callbacks: removed without its fatty; past 75 px of cord velocity += dir * (d - 75) * .03. Collision with
its parent is ignored. State 4: friction *.95; it looks along aiFloat (degrees) for Isaac within 200 in a .85 cone,
else (each interval tick, look timer out) another entity more than 120 from the fatty in the cone.
- Target: the seen entity's spot 40 px short of it (toward the eye), else targetPosition = a point 200 out from the
fatty at +-110 deg (rand) on its side (subtype 0 left, 1 right; inside the room within 10 tries), redrawn every
15 + rand%60; within 9 px of its target (squared 80) a 1 in 20 drops it. AddVelocity(.25 toward it); the look turns toward
its motion; Idle0-7 by look octant.
- Changed: hover .5 / .8 -> .25 / .95, leash 25 -> 75 (the slack length).
- Not expressed: the cone look and the side wander (it hovers at Isaac), the soft pull past 75 (ours a hard limit).
## tar_boy_mouth: NpcAI::ENTITY_TARBOY 005442a0 subtype 1 (307.0.1). Changed
- Subtype 1: collision class 0; Kill when the parent is gone or dead. Tar Boy (state 3) spawns it at Isaac + vel *
.1 * dist the same tick it plays Attack2 (state 9); in state 9 the mouth's frame follows Tar Boy's, sound 0x107
(weird worm spit) on Shoot, and between Shoot (13) and ShootEnd (21), every 2 ticks (GetIntervalTicks(2)):
Game::DamageRadius(mouth pos, Tar Boy, flags 0, damage 8, radius 12, 50): Isaac within takes half a heart, NPCs are
spared. Attack2's end removes the mouth. No projectiles.
- Changed: the 4 boss_volley tar shots -> a hidden gas on Shoot (radius 22: 12 plus Isaac's size, since the gas test
takes no player radius; 8 ticks; player_damage .5), the spit sound, leave at the clip end, partner tar_boy dies_with.
- For the parent (tar_boy is not this group's): its Attack2 has spawn_on "Shoot", so the mouth comes 13 frames late;
Rep spawns it with the clip's first frame.
## maze_roamer_890_0_1: NpcAI::ENTITY_MAZE_ROAMER 004f1ec0 subtype 1 (890.0.1). Skipped (matches)
- Paired: velocity = 2 * room centre - leader pos - pos (grid class 0), facing from the leader's I1 rotated by 2.
Same IsFrame(3) attack test and shot as subtype 0; Transition and the solo FindGridPath(1) as pass4_00.md.
## exorcist: NpcAI::ENTITY_EXORCIST 004ec240 (832.0). Changed
- Init: state 4, Head overlay, I1 = 15 + rand%30. Sound 0x74 1 in 3 each interval tick.
- Corpse: each interval tick 1 in 3, the room's remains list (+0x1218) for one within 80 of a free spot it can path
to (nearest); FindGridPath(.85) there; within 15 -> state 9 Revive: each remain within 80 becomes a Lil Haunt 260.10
(sound 0x109, pitch 1.5 / .5 for champions 18 / 19).
- No corpse: no child -> PathFinder::EvadeTarget 007e4940 (a spot 170-250 away, FindGridPath 1.079) then friction *.8;
with its Lil Haunt -> FindGridPath(.85) to haunt + 80 px away from Isaac (clamped 5 in the room).
- I1 < 1, rand%10 == 0, no child -> state 8 Revive: friction *.6; on the Revive event a Lil Haunt 260.10 at a free
spot 40 out (flag 0x400), sound 0x109; I1 = 60 + rand%60. I1 counts down while > 30, or while > 0 with no child.
- Changed: path .5 / 1 at Isaac -> flee .78 / .8 (EvadeTarget: v' = .56 v + 1.73, terminal 3.9, matched at .8);
revive one_in 60 -> 10, cooldown 60 + random 60 drawn once, first_cooldown [15, 30], spawn_cap own 1, offset 40,
retention .6, summonsound.mp3 (was ghost_roar).
- Not expressed: the corpse raising (no remains list), keeping 80 behind its haunt, the 30 ticks after the haunt dies.
## dead_isaac: NpcAI::ENTITY_ROTTEN_GAPER 004da590, type 0x390 branch (912.20). Skipped (partial, not this record's)
- Mother 00569170 spawns it with zero velocity (Game::Spawn(0x390, 0x14, ...)), target y = Mother's bottom - 40.
- Each tick friction *.75, velocity.y -= 1 (terminal 3 px a tick upward), 1 in 10 sound 0xa5; walk animation.
- Killed with a Mother hit among its damage sources: FireBossProjectiles(4, traj 10, VelocityMulti .4) and a shot at
Isaac + a random 40 offset, speed min(.05 d, 25), variant 15, FallingAccel -.06.
- Ours keeps Mother's spawn_velocity [0, -1.4] at retention 1: Rep's terminal is 3 (Mother's record, a boss's, would
give [0, -3]). The burst is not expressible.
## coal, coal_33_11_1/2/3: NpcAI::ENTITY_FIREPLACE 006d18d0 -> NpcAI::ENTITY_ROCK_SPIDER 004f9ad0 (33.11). Changed
- 33.11 is the rock spider's routine, type 0x21 branch: subtype 0 -> seed % 3 + 1; state 16 IdleRock; thrown with a
hop (V1.x vertical speed, gravity .5, bounce * -.3 above 1, landing on a grid cell kills it, velocity * .8 a
landing); airborne above -50 no collision; at rest on the floor friction *.9 and its config mass.
- Invincible flag; hits: 1 (2/3) or 2 (1/3), above 10 damage 2 or 3; a blast (0x1000004) sets 1; below 1.5: sound
0x105 (steam), Kill. Every 30 frames 2/3 a TakeDamage(1) on itself (counted as 1 or 2): about 456 ticks from 15.
Kill once GetAliveEnemyCount < 1 (room counter < 3). Embers 1000.66 1 in 5 a tick; the rock layer scaled by hp.
- Changed: anchor .7 -> still .9, cleared {IdleRock, dies}, an IdleRock die attack at age 456, steam_halfsec death.
- Not expressed: hit-count health (tears take their damage, so ~5 tears), the random self damage (a fixed age),
embers, the shrink.
## ultra_greed_coin_*: NpcAI::ENTITY_ULTRA_COIN 005a4820 (293.0-3). Changed
- Init: state 2, collision 0, sprite offset (5, -3), max hp and hp * 1.15. Appear<Kind> then Spinning<Kind>, collision 4.
- b0 = .5 + .5 * (sum of the room's live enemies' health / their max health), * .9 in a mode test; it shortens every
timer below as the room is hurt.
- Spinner (0): friction *.9; health -= maxhp / 330 a tick (dead below 0); playback 2 + 2 hp share; pushes .12 b0 round
a circle (angle (stateFrame + 0x231d index) / 240 turns, sign by index parity) and .1 b0 along V1 (RandomVector every
120 frames); a grid hit kicks 9 * rand off the wall.
- Key (1): age > 225 b0 -> KeyChange (state 4, friction *.1); KeyMove: velocity += 2 * unit to the door whose I1 is
its own, turned onto that way; on reaching it the door goes to state 13, sound, removed.
- Bomb (2): age > 60 b0 -> PulseBomb (on SpinningBomb frame 7+, playback 1 / b0); at its end
Game::BombExplosionEffects(damage 40, radius * 1.8); subtype 1: 1 in 2 a coin 5.20; friction *.8.
- Heart (3): age > 150 b0 -> HeartChange; HeartMove to the nearest other (Ultra Greed); on arrival
NpcHelper::UltraGreed_Heal(3) 0059e2a0 = maxhp * .00125 * 3 (I2 += 3, cap 25) and a flash; friction *.8.
- Death: sound, Crumble, removed (no drops).
- Changed: hp 50/60/50/40 -> 57.5/69/57.5/46; spinner drift .4 -> .15 (the .1 drift plus the circle); bomb blast
radius_scale 1.8. Not expressed: b0's scaling, the spinner's circle, the bomb subtype's coin.