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

141 lines
13 KiB
Markdown

# Group h2 notes (pass 6, 2026-10-25)
Larry Jr. chains (Tuff Twin, The Shell), The Frail, The Pile, The Matriarch, Black Globin, Gasbag, Adult Leech, Min-Min,
Mother's Shadow, read for isaac-classic branch rif/monster-fidelity-9. Speed convention as pass4_00.md (path/roam speed =
the call's argument, retention = the AI's friction multiplier; entities2 friction is 1 for all of them). FireProjectiles
modes: 3 = three at 0 / +-24 deg, 5 = five at 0 / +-12 / +-24 deg, 7 = diagonal four, 9 = ring (x speed, y count).
## tuff_twin: NpcAI::ENTITY_TUFF_TWINS 0059a2d0 (19.2, called from NpcAI::ENTITY_LARRYJR 0046a0f0). Changed
- Every segment: friction *.8 a tick. Armour: until its health falls 15 below max only blasts count (the port's
blast_only .4 and phase hp_below 20 match); breaking it: sound 0x89, rock particles, flag 1 cleared.
- Head walk: MoveRandomlyAxisAligned(s), s = 1.8 - .8 * clamp((sum - 2) / 18, 0, 1), sum over the chain of 3.5 per
armoured segment and 1 per bare one: 1.0 with all six armoured, 1.07 with only the head bare, 1.62 all bare.
- Head attack: IsFrame(10, InitSeed), rand%24, NpcHelper::tuff_twins_spawn_count 00599950 (live flies 13 + suckers 61)
< 4: AttackHead<dir> by its walking direction, on Shoot a 61.3 (ink; 61.0 sucker once bare) at pos + dir*2 with
velocity dir*30 turned rand*20-10 deg, sound 0x9e.
- Bare middle: IsFrame(5), rand%24 -> body attack, FireBossProjectiles(2 + rand%3, Isaac if within 160 else random,
10), sound 0xb2. Matches the port.
- Port: move corridor 1 (corridor_retry) -> roam 1; bare phase speed 1.8 -> 1.3 (between the chain's 1.07 and 1.62).
- Not expressible: the chain-wide armour sum in the head speed; the spit along the head's run at 30 (it flies at Isaac
at 10); the cap counting flies too.
## the_shell: NpcAI::ENTITY_TUFF_TWINS 0059a2d0 (19.3). Changed
- Grid collision 3 (walls and rocks) unlike the Twins (5); layer 1 hidden at init. Head heading speed V1.x 2.5 (1.9 once
any segment is bare), steered by approach_angle toward Isaac within 130 (weight 1 - (d - 70)/60), toward a bare
segment more than 160 away, and to the nearest diagonal on a wall hit.
- Bare segments (cooldown 30 + rand%30 as the shell breaks): middle GutsAttack every 60 + rand%30 (head 20): on Shoot
FireProjectiles mode 3 at 8 toward Isaac, FallingAccelModifier -.075, sound 0x13e; tail ButtAttack every 90 + rand%60
while fewer than 4 Fly Bombs (00599950): a Fly Bomb 819 at 3 along the way from its parent (random without one).
- Port: gut volley spread .2 -> .4189 (mode 3's 24 degrees). Cooldowns already matched.
- Not expressible: the steered heading (the port keeps the Hollow's diagonal chase), the first 30-59 cooldown as the
shell breaks, the butt Fly Bomb's direction, the -.075 fall acceleration (loader minimum 0).
## the_frail: NpcAI::ENTITY_PIN 00476860 (62.2). Skipped (matches)
- Underground: AddVelocity away from Isaac (250 - d) * .003 / d and toward the room centre min(d, 200) * .002; surfaces
when V2 rise - d/20 > 15 and d > 100; then 1 in 2 Attack1 (FireBossProjectiles(1, Isaac, 10) lob) else the leap
(speeds 10 / 6). 4th body: rand&1, height below -20, cooldown 30 -> FireProjectiles mode 7 at 5 (homing flag 0x10000
when the second form's bones), sound 0x3a7. All in the record's pin block already.
## the_pile: NpcAI::ENTITY_POLYCEPHALUS_the_pile 005983f0 (269.1). Changed (restructured)
- Friction *.8 every tick in every state. Idle (state 3): MoveRandomlyAxisAligned(.3); StateFrame = 30 + rand%30 at
init and after every attack, counting down; at 0 a WeightedOutcomePicker draw, all weights 1: charge (not on the first
pick), spikes (not on the first pick), summon (only while Room+0x12c0 + Room+0x12c4 < 3), dive (always). No per-tick
rolls at all (the port had four one_in 120 rolls on a pathing walk).
- Dive (state 6, ProjectileDelay 3 = three surfacings): GoUnder; DirtShrink with collision 0, FindGridPath(target, 2):
target from 10 tries round CalcTargetPosition at (.8 + .2 rand) * 120, a free in-room cell more than 80 from Isaac,
scored min(d_pile^2, 22500) + 2 d_isaac^2 (highest kept); travel ticks 6 * max(1, d/100); re-picked every 3 ticks if
Isaac comes within 80 of it. ComeUp there (collision on at frame 1), target = Isaac's spot; then Attack1 (Attack3 on
the last of the three): on Shoot FireProjectiles mode 5 at 10 toward that spot, projectile variant 1 (bone), sound
0x132. The last ends in state 3; the others go under again (sound 0x42).
- Charge (state 9): ChargeBegin; on StartCharge V1 = unit to Isaac * 4 (sounds 0x73, 0x40); every tick after,
AddVelocity(V1) (net v' = .8 v + 3.2, terminal 16) with ChargeLoop, until a grid collision: sound 0x34, shake 15,
four 1000.72 (subtype 2) waves at 45 + 90 i, velocity 0, ChargeEnd; ProjectileDelay 20 counting down, each even value
1 + rand&1 FireBossProjectiles(1, Isaac, 1.0) bone shots (10 volleys).
- Summon (state 13): Attack3, on Shoot (sound 0x109) one Bony 227 at pos + RandomVector * 60. No Bony cap.
- Spikes (state 14): Summon clip; ProjectileDelay = 2 * the largest cell distance to a wall, cooldown 6, then each tick
an even delay places 1000.55 spikes on the four axes delay/2 cells out (in-room, free cells): rings marching in one
cell every 2 ticks. Sound 0x133.
- Port: path 1 -> roam .3; a choice over [dive, summon, spikes, charge] (uniform) with every chain's last attack
cooldown 30 + random 30 (cooldown_once), first_cooldown [30, 30]; spikes and charge gated age_at_least 60 (the first
pick never draws them); summon gated others_below 3 (spawn_cap 2 Bony removed); dive volleys spread .2 -> .2094 and
the third surfacing plays Attack3; spikes wave period 3 -> 2; charge lunge 1.4 / .9 -> 3.2 / .8; ChargeEnd's ten
bones at once -> 1 + random(1) a volley in a burst of 20 ticks every 2.
- Not expressible: the underground travel (teleport at once, no untouchable DirtShrink wait), the surfacing spot's
scoring (teleport mode near), ChargeLoop re-aiming at Isaac as it begins (Rep keeps V1), the shorter spike lines
starting late.
## the_matriarch: NpcAI::ENTITY_MATRIARCH 004c59d0 (413.0). Changed
- Marks at DAT_00b60170 shares of max health (.8, .65, .5, .35, the port's phases): each mark passed (pendingDamage
crossing it, i2 counting): sound 0x1c, (i2 > 1) + 1 small Fistulas 73.0 at 40 px AWAY from Isaac turned +-45 deg,
velocity 2 + 2 rand outward, blood; Flinch with velocity 20 away (6 when hopping); I1 += 90.
- Idle (state 3): friction *.5. Rage when I1 >= 301 and i2 >= 3 and rand%5 == 0 (I1 = 400, drained 2 a tick in the
rage). Otherwise rand%12 == 0 -> pick: summon weight S (0 with more than 3 Fistuloids or when the summon's health cost
would cross the next mark; 300 when I1 > 150 or none alive; else 100), tongues 100, shot 100 only while its own
ProjectileCooldown is out; else rand%10 == 0 -> a hop (Jump or Jump2, 1 in 2).
- Summon (state 8): one Fistuloid 308 at pos +-20 x moving 10 sideways (by facing), and she takes damage equal to its
health (the config value, 80 by default) without going below the next mark + 1. Shot (state 10) sets ProjectileCooldown
90 + rand%60 (blocks only the shot).
- Port: choice weights [120 - 40/Fistuloid, 100, 150, 250, 250] -> [300 - 75/Fistuloid, 100, 100 resting 120 ticks at
weight 0, 275, 275] (one_in 6 ~ Rep's 1/12 + 11/120 per tick; the two hops .092 vs picks .083), the shot's global
cooldown 90 + 60 removed, summon spawn speed 5 -> 10, Flinch Fistulas 2 -> 1 at the first two marks, speed 3 -> 2.
- Not expressible: the summon's health cost, Fistulas thrown away from Isaac (spawn speed is toward him), the flinch
knockback, the damage-driven rage meter.
## black_globin: NpcAI::ENTITY_GLOBIN 0050e4d0 (278.0). Changed
- State 4: rand%10 splat .2 + rand * .5; FindGridPath(CalcTargetPosition, .6) (EvadeTarget with friction *.8 when
feared); friction *.97; moan sound 0xa5 1 in 3 with a direct path.
- Every 5 health lost (V1.x tracks it): ThrowSpider to FindFreePickupSpawnPosition(pos + .75 (Isaac - pos)), height -30,
sound 0xb5.
- Death: a Black Globin's Body 280 at its place and a Black Globin's Head 279 at a free spot 40 away.
- Port: move chase .6 / .9 -> path .6 / .97; splatter one_in 10 (.2 + .5) on idle ticks added.
- Not expressible: the 5-health step (a spider per hit, cooldown 10), the landing 75% of the way (near: within 70 of
halfway).
## gasbag: NpcAI::ENTITY_GASBAG 004dd7f0 (856.0). Changed
- Anchored (velocity = TargetPosition - pos each tick). Init: eight smoke clouds 1000.141 at radius 100, 45 deg apart,
parented, timeout 60; ProjectileCooldown 15 + rand%30.
- Idle: cooldown counts down; then while the room sublist count is under 8, Attack. Sound event: 0x136; Shoot: sounds
0x6a, 0x109, direction = Vector::ToCardinal(CalcTargetPosition - pos); from then every 6th tick (Spawn events 36, 42,
48, 54) an Army Fly 868 at pos + dir * 10, velocity dir * 5, each linked to the last. Clip end: cooldown 90.
- Port: first_cooldown [15, 30] added; spawn timing, speed 5, offset 10, cap 8 and cooldown 90 already matched.
- Not expressible: the cardinal direction (the port aims at Isaac), the eight separate clouds (one aura of 100).
## adult_leech: NpcAI::ENTITY_ADULT_LEECH 004d9000 (854.0). Changed
- gridCollision walls (it crawls over rocks). Walk (state 3): friction *.8, v += .7 * heading / f (net .7) along
NpcHelper::adult_leech_heading 004d8f20 (within +-45 deg of horizontal, 1 in 2 toward Isaac's y), redrawn 1 in 30
a tick, reversed on a grid hit (over a rock: headed at a free spot instead). MoveHori clip.
- Burrow: once (StateFrame -1 -> 0) when health < 66%, Isaac not lined up (|dy| > |dx| or |dy| > 80), rand%3, not over a
rock: lerp to its cell centre, Burrow (Hit: collision 0); after the clip > 30 ticks and then rand%15 a tick: moved onto
Isaac, ChargeDown, FindGridPath(Isaac, .8) until Hit (frame 18): shake 12, ring mode 9 (8, 10), FallingAccel -.02.
- Charge (state 8, NOT the Charge clip): rand%3 and |dy| < 30 every walking tick -> sound 0x1fe, heading +-1 along x,
MoveHori; push V2.y from .5 rising .2 a tick to 5 (while within 500 of Isaac in x), friction *.86: v' = .86 v + p
(10 px/tick after 10 ticks, 26 after 22); y steered +-.12 p (dead zone 10, cap 2). A grid hit faster than 10 within .6
of the heading: shake 6, sound 0x48, v -= normal * 2.5, I1 = 12 (12 idle ticks at friction .9), blood, ring mode 9
(10, 12) from pos + dir * 8 with FallingAccel .08, BounceOverlay. States 9/10 (Charge, ChargeHit clips, 3.8 push,
12 boss shots) are never entered by this routine.
- Port: charge clip Charge -> MoveHori, charge_speed 5 -> 12 (the ramp's mean over a room-wide run); Burrow now waits
ticks 56 + random 30 (ticks_held) before ChargeDown.
- Not expressible: the ramping push and y steer (proposal), the ring firing at the wall (it waits for ChargeHit's
frame 12, a clip Rep does not play here), the 12-tick pause, ChargeDown following Isaac underground, the heading walk.
## min_min: NpcAI::ENTITY_MIN_MIN 004cf690 (913.0). Changed
- Friction *.7 every tick. Walk: FindGridPath(CalcTargetPosition, .6); with 2 or fewer Willos in the room (IsFrame 10)
it heads at a random room spot at .5 instead. Damage taken shortens ProjectileDelay.
- Pick (no thrown ring, ProjectileDelay < 1, rand&3 == 0), NpcHelper::min_min_willo_count 004cf5b0 (total T, own O):
if T < 5 (7 in form 2): O < 4 (8) and Isaac::Random(2 (3)) == 0 -> Spit one (delay 15 + rand%60, its Willo health
x1.5, sent at 25 turned +-15 deg, ProjectileCooldown 45); else O < 2 (4) and rand%3 -> Spit four (delay 90 + rand%90),
whose end goes straight into the Spin (form 2: Spin or Throw, 1 in 2); else (form 2) rand&3 -> Dive. Then, still idle,
ProjectileCooldown < 1 and O > 2 and rand%3 -> Spin (form 2: Spin or Throw).
- Port: retention 1 -> .7; roll_gate one_in 4; form 1 one_in 8 / 12 / 3 -> 2 / 3 / 3 (in Rep's order), the spit-four
hands over to the Spin; form 2 reordered [spit, spit four -> spin or throw, dive, back, spin (pick_next 1 = spin or
throw), throw (unrolled)] with one_in 3 / 3 / 4 / 3; grid_collision false -> walls (entities2 gridCollision walls).
- Not expressible: the random-spot walk with few Willos, the damage-shortened delay, the 45-tick spin block after a
single spit.
## mothers_shadow: NpcAI::ENTITY_MOTHERS_SHADOW 0056ffa0 (867.0). Changed
- See systems/room_features.md. Chase: friction *.8 twice (.64), accelerating straight at CalcTargetPosition (no
pathing) by 6 * clamp(d / 600, 0, 1) only while farther than 80 (terminal speed ~ d / 36); I1 60 after Appear, 90
after each Attack.
- Port: phase move chase 2.2 -> hover 1.8 (terminal 5, Rep's at d = 180); Appear cooldown 60.
- Not expressible: the distance-scaled pull and its 80-pixel dead zone.