7.6 KiB
7.6 KiB
Group j4 notes (pass 8, 2026-10-25)
Black Knight, Loose Knight, Dragon Fly X, Coal Boy, Stone Eye, Planetoid, Grilled Clotty and Fly Trap, read for isaac-classic branch rif/monster-fidelity-11. Speed convention as pass4_00.md / pass6_engine.md (the scripted brake runs before the move, so a push divided by friction maps to the Rep constant). Engine proposals: MF/engine_j4.md.
Fire waves (shared): Entity_Effect::Update case 005d9154 (1000.148), Entity_Projectile::Update 00653070
- Jump table 0x606f8c is indexed by variant - 1 (0x6071d8 -> 005d9154 for 148; 0x6071bc -> 005d6910 for 141).
- 1000.148: on even ages (age = frameCount - spawn frame, 006a9c10) its point (+0x334, first its position) steps 30 (0x00baa8d0) along the rotation, is clamped into the room, and when the grid collision there is <= 1 a 1000.147 fire jet is placed with scale 1 - .03 age (0x00baa0a0, 0x00baa454); removed after a jet under .2 (0x00baa198) or on a solid cell. So the first jet is 30 out, one every 2 ticks, the last at scale .16.
- Engine bolts wave: period 3 (born on frame 1, next on frame 3 = 2 ticks), spacing 30, shrink .03, least .2 match;
the first bolt sat on the origin: bolts
offset 30puts it where Rep does. - Projectile flags high dword 8 (1 << 35 FIRE_WAVE) spawn four waves at i * 90; 0x10 (1 << 36 FIRE_WAVE_X) at i * 90 + 45, both on the projectile's death branch, sound 0x1e3.
black_knight: NpcAI::ENTITY_KNIGHT 005135d0 (41.4). Changed
- Slam: |gridCollisionVelocity| > 8 (asm 00513b08 calls sqrtf, compare 0x00baa7e8) and normal . unit > .9. fidelity_leftovers read it as speed^2 > 8: wall_speed 2.83 -> 8. The charge (.7 + .07 a tick to 4, under .8) passes 8 after about 15 ticks, so short charges now end without a slam, as in Rep.
- Slam jets: three 1000.148 waves from its cell centre at atan2(charge) + 180 + (-90, 0, 90): bolts offset 30.
- Walk (state 4, variant 4): MoveRandomlyAxisAligned(.66), then projectileDelay++ and FindGridPath(Isaac, .66) with the velocity snapped by Vector::ToCardinal (keeping its length); friction *.8. The state-7 branch (GetIntervalTicks(20), 1 in 10) is dead: state 4's exit test sets state 4. Dazed (projectileDelay < 0, 45 ticks): no move, friction *.88.
- Damage events from 1000.147 jets (subtype != 1) are nulled for 41.4 (its own jets do not hurt it).
- Not expressible: the extra random-run push and the cardinal snap on the path walk, the dazed .88, the jets' cell-centre origin.
loose_knight: NpcAI::ENTITY_KNIGHT 005135d0 (41.2). Changed (death)
- Walk MoveRandomlyAxisAligned(.6) under .8, charge unit axis under .8, prediction 16 / alignment 20 / range 200 / CheckLine / IsFrame(3): match.
- Death (_dead, variant 2): Pon 0x348.0 at pos + RandomVector * 10, velocity 0, parent/child linked (champion colour copied), then Entity_NPC::Morph(npc, 41, 3, subtype) and _dead = 0: the knight becomes the Brainless Knight in place.
- death_split: random_axis and speed 2 removed -> layout 0,0,0],[1,0,0, offset 10, speed 0.
- Not expressible: Pon's direction (ours across the line to Isaac), the brainless keeping the knight's velocity.
dragon_fly_x: NpcAI::ENTITY_BOOMFLY 0050f280 (25.3.1). Changed
- Flight as every Boom Fly (bouncing .45 / .9). Death: FireProjectiles mode 0, vel 0, Scale 2, FallingSpeed 0,
FallingAccel 1, flag 1 << 36 (subtype != 0): diagonal waves (matches
diagonal). - The shot starts at Height -23 (00653070 init) and falls s = .9 s + .1 + 1: -21.9, -19.8, -16.8, -13.1, -8.5, -3.4; past -5 sets the dead flag on its 6th update, the waves come on the 7th: delay 7, offset 30.
- dragon_fly (25.3.0, not this group) has the same delay and offset to make.
coal_boy: NpcAI::ENTITY_DANNY 004fbd10 (820.1). Changed
- Init: stateFrame rand%10 + 10 -> first_cooldown [10, 10].
- Walk FindGridPath(CalcTargetPosition, .6), no friction change: path .6 / 1 matches. Attack friction *.7 matches.
- stateFrame = 150 at the attack start, counted down only in state 4 (so 150 after it ends: cooldown 150 matches). V1.X gains pending damage, loses .11 a tick; above 6 the countdown runs double and a second rand%20 roll is added.
- Roll: rand%60 == 0, then Isaac < 200 attacks; 200-400 a further rand%10 -> second attack copy: range 400, one_in 600, when min_range 200. The cap for variant 1 counts 33.2 entities (> 8 blocks), effectively never.
- Shoot: n = QueryNPCsGroup(index) count; 4 throws, the first max(0, 1 - n) ThrowRockSpider (004f9920) variant 2 = 818.2 coal spider (group linked), the rest variant 3 = 33.11 coal; each from pos + 4u, velocity u * (1 + 9 rand), u the aim turned (rand - .5) * 30 deg, height -15 (state 16 throw). Six 1000.66 embers.
- spawn_cap own true (its group, not the room), spawn_speed 4 -> 5.5 (the throw's mean).
- Not expressible: 4 coals when its spider lives (ours 3), the cone throw, the hurt haste.
stone_eye: NpcAI::ENTITY_STONE_EYE 00505d00 (201). Partial (data matches, engine proposal)
- As pass 7. Laser timeout read now: Entity_Laser::update_laser 00973c60 decrements Timeout (+0x458) each update; at 0 a thin laser sets its dead flag (thick ones fade). So the beam (timeout 2) lives 2 ticks and is relit on a 1 in 3 tick while none: it flickers, lit about half the time. Ours shines throughout.
planetoid: NpcAI::ENTITY_SWARMER 00518e20 (229.1). Changed (movement)
- friction *.77, later *.9 (.2 while a controller holds fire): .693; push +-.45 * 1.8 = .81 per axis by the velocity's sign, divided by friction (net .81). move bounce .3 / .9 -> .81 / .693 (Tumor's .45 / .693 shape).
- Attacks as pass 7 (matches).
grilled_clotty: NpcAI::ENTITY_CLOTTY 0050d370 (15.3). Changed (walk)
- PathFinder::MoveRandomly 007e6300: target pos + 40 * random unit, kept when its grid collision is 0 (no box clamp); push .5 * speedMult / f after the AI's friction *.9 (net .5); the target ends (and the arrival attack starts) under 3 px, on a grid hit, or below speed^2 .1 on a 1 in 10.
- acceleration .9 -> .5, stalled_speed .2 -> .316, unclamped_one_in 2 -> 1. target_radius 40, arrival 3, stalled 1 in 10 matched.
- Attack: V1.X 15 (walking resets it), -= speedMult a tick; leaves when the 11-frame clip ends or (rand%30 != 0 and V1.X <= 0). The clip always ends first, so the exit roll never matters. Fire damage (flag 2) nulled.
- Not expressible: hard mode's speed 8, the grid-hit arrival.
fly_trap: NpcAI::ENTITY_FLY_TRAP 00560ca0 (873.0). Changed
- Flies = QueryNPCsSpawnerType(873) whose parent is it. State 0: three 18.0 at 20 px, 120 deg apart from a random angle, parented, no clip.
- States 4 and 8: FindGridPath(CalcTargetPosition, .25): move chase -> path, Attack01s moving. State 9: no move, friction *.8 (attack retention .8 matches).
- i1 > 0 blocks all attacks. flies > 2 and rand%40 -> Attack02; else (flies < 3 and rand%20) or (flies < 6 and rand%80) -> Attack01 (order and odds match). Attack01 Shoot (frame 6): one 18.0 at pos + 2u, velocity 10u, u random; sound and a 1000.59 cloud.
- Attack02 Shoot (frame 9 of 24): i1 = 80, counted down every tick (about 65 left at the clip's end): cooldown 80 -> 65. Every own fly AddVelocity 10 away from it; Game::ButterBeanFart(pos, 120, npc, effect).
- Game::ButterBeanFart 00704360: QueryRadius(radius); Isaac (when the source is not friendly), vulnerable enemies, pickups 4/5: f = 2 * min(7, radius + size - d), * 1 at mass <= 20, * .5 above; v = dir * f + v * .5. gas push 10 -> 14 (as Planetoid). Spawn caps own (its spawns).
- Not expressible: the fart gate counts the room's fly_trap_flies, the 10 extra push on its flies, the new fly's random 10 throw, the opening clip (Rep spawns at once).