Ghidra 12.2 project and full dump of isaac-ng.exe v1.9.7.17, query scripts, notes indexed by entity, anm2/rooms reimplementations, and db/ (names + fields) that build.sh re-applies. Fixes awk numeric address comparison in find.sh/decompile.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9.4 KiB
9.4 KiB
reap: Reap Creep (reap_creep, type 900)
AI: NpcAI::ENTITY_REAP_CREEP @ 00579890 (./decompile.sh 0x00579890). Helpers: FUN_00579770 = room enemy count without
bosses (the "other enemies" gate), FUN_005797b0 = the thin sweeping laser. Asm in reap_creep_asm.txt.
Art: gfx/bosses/reap_creep/reap_creep.anm2. Every animation and event the patch names exists there (Summon1 Close
f33, Attack1Fire Shoot f1, Attack2 Shoot f49 / EndShoot f63, Attack3Start Close f30, BeamStart Shoot f24, DashStart
Shoot f12, DashEnd Slam f2). Art, death, gibs and sound fields are unchanged.
What the decompile does
- Phases: phase p (i1 byte 1) moves on once
hp < (2 - p) * maxHp / 3, from any state: 2/3 and 1/3. It then plays Transition{1,2} (or the ...Alt clip if the mouth is open), and goes idle with cooldown 30 + rand(30). - Idle (state 3): projectileCooldown counts down; at 0 it attacks at once (no per-tick roll):
- p0: no other enemies and
rand & 3 != 0(3/4) -> Summon1, else Attack1Start. - p1: no other enemies and
rand & 1(1/2) -> Summon2, else Attack2 (kind i2 = rand & 1). - p2: (first attack of the phase, or
rand & 3 == 0) and fewer than 3 other enemies -> Dash, else Attack3.
- p0: no other enemies and
- Movement (all states but appear/dash): y pinned to room top + 8. x: velocity.x += dir * accel * 5 while x is inside [left + 80, right - 80], then friction .6 (dash .8). accel: idle 1 / .7 / 1 by phase; attacks 0; beam .4 (thin) / .42 (big) while the laser lives. dir is bang-bang: target dx > 40 -> +1, < -40 -> -1, held 6 ticks (stateFrame) before a dead-zone drops it. Target: p1 a wandering x = left+80 + (w-160) * (v1.x+1)/2; p0/p2 Isaac's x + v1.x * 120 (Attack1/Attack3: dx pushed 20 further out). v1.x is redrawn in [-1, 1] every 10 + rand(30) ticks.
- Summon1 (13): sound on Shoot; at the clip's end one Wall Creep at a random wall spot: 2/5 left wall, 2/5 right wall (y random in [top+20, bottom-20]), 1/5 bottom wall (x random in [left+20, right-20]). Then cooldown 30 + rand 30.
- Attack1 (8): Attack1Start to its end, then Attack1Fire for 60 ticks: every 2nd tick (30 shots) one shot straight down (0, 12) from pos + randomVector * rand * 13 + (0, 5); params Height -24, FallingSpeed 2, Scale 1.8 - .8 rand. Then Attack1End, cooldown 60 + rand 60.
- Attack2 (9): on Shoot an angle a = atan2 to Isaac + (rand - .5) * 20 deg; outside [30, 150] it is clamped to
[75, 105] and taken - 360 (forces kind 0). Each odd tick until EndShoot (6 volleys, n = 1..6) a fan:
- kind 0: 4 shots at a + o + {-45, -15, 15, 45}, o = (4 - n) * 13 (a < 90) or (n - 4) * 13; speed 8; each shot skipped on rand % 10 == 0; Height -24, FallingSpeed 1.5, Scale 1.1.
- kind 1: 5 shots at a + o + {-45, -25, -5, 15, 35}, o = (4 - n) * 8 or n * 8 - 32; speed 8 * (.5 + .5 rand); FallingSpeed rand * 17 - 12, FallingAccel .3, Scale .6 + .9 rand. Cooldown 60 + rand 60.
- Summon2 (14): on Shoot: 1/2 three ThrowSpider to free cells at 45..135 deg, rand * 200 out; else one Trite (29.1) at pos + (0, 4) jumping to a free cell at 45..135 deg, 100 + rand * 200 out. Cooldown 30 + rand 30.
- Dash (7): heads for the FARTHER wall (DashRight if nearer the left). From Shoot on, velocity.x += dir * 8 (friction .8: ~32 px/tick top). When x + vx + 1 passes the room edge: vx = -1, ShakeScreen 15, DashEnd, and for 22 ticks every 2nd tick (11 drops) at a random free room spot: 1/3 (with < 4 enemies) a thrown spider (rock spider on stages 29/30), else a rock (projectile variant 9) dropped from Height -400, FallingAccel 2, FallingSpeed rand10, Scale 1.2 - .4 rand. Cooldown 30 + rand 30.
- Attack3 (10): Attack3Start; on Close (f30) kind i2 = rand & 1 and a timer of 10 (big) / 30 (thin) ticks, then Attack3BeamStart (Attack3Charge loops in between). On Shoot: big = one giant laser (variant 11) down (90 deg), timeout 50; thin = four laser variant 1, timeout 100, angles 135/45/150/30, each turning after 30 ticks at 1 deg/tick to 106/74/111/69 (both pairs inward). BeamLoop until the laser has < 5 ticks left (checked at loop ends: 4 loops big, 9 thin), then Attack3End, cooldown 30 + rand 30.
What the patch changes
- speed .5 -> 3.0 (push 5 * 1 * friction .6), retention .8 -> .6, first_cooldown [30, 30]. Phase 2: speed 2.1 (accel .7) and wall_wander true (its wandering target).
- Phase gates .66/.33 -> .6667/.3333.
- All idle starts: period 1 / one_in 1 (Repentance attacks the tick its cooldown runs out). Choices as
whengates: Summon1others_below 1, chance .75; Summon2others_below 1, chance .5; Dashothers_below 3, chance .25; the fall-throughs (Attack1Start, Attack2, Attack3Start) always ready. Kinds aspick_next 1pairs: Summon2 spiders/trite, Attack2 kind 0/1, Attack3 big/thin. - Cooldowns: 30 + [30, 1] after Summon1/2, transitions, DashEnd, Attack3End; 60 + [60, 1] after Attack1End and Attack2; all cooldown_once.
- Summon1: release Close (spawn at clip end, 3 frames on), spawn_cap dropped (the gate already needs no others).
- Attack1Fire: ticks 60, one shot (0, 12) on Shoot with burst {60, every 2} (30 shots), scale 1.4 (mean of 1.0..1.8), fall_velocity -1 (-3 + 2), offset_y 5, offset_jitter 26 (+-13). Its seek .25 / repeat 25 / speed 9 gone.
- Attack2: aimed fans with burst {12, every 2} from Shoot (6 volleys): kind 0 count 4 spread 30 deg speed 8 scale 1.1 fall_velocity -1.5; kind 1 count 5 spread 20 deg speed 6 (mean of 4..8) scale 1.05 fall_velocity -6.5 (mean) fall_acceleration .3. The Flash boss_volley version is gone.
- Summon2: exactly 3 thrown spiders (shot spider, near false, far_radius 200), not 3-4 spawned ones.
- Dash: lunge 1.5 -> 6.4 (8 * .8), retention .8 on all three, on_wall end + wall_next 3 (DashEnd) on start and loop, loop ticks 7 instead of repeat 3 (one loop as a fallback; see gaps). DashEnd retention .8.
- Attack3: the Close event plays the yell; big: Start -> BeamStart -> BeamLoop ticks 36 (4 loops); thin: Start -> Charge ticks 19 -> BeamStart -> BeamLoop ticks 81 (9 loops); beams at 135/45/150/30 (were 135/114/66/45). Seek 1.26 (big) / 1.2 (thin) = accel * 5 * .6 on BeamStart and BeamLoop; Attack3BeamLoop's old .2 seek and repeats gone.
Not expressible (proposals)
- Wall move dead-zone / lead (
wall_drive: {dead_zone: 40, hold: 6, lead: 120, lead_ticks: [10, 30], margin: 80}): bang-bang push +-speed when the target is beyond dead_zone, keeping the last wayholdticks; target = Isaac's x + r * lead, r in [-1, 1] redrawn every lead_ticks[0] + rand(lead_ticks[1]); push only while x is within the box shrunk by margin. Today wall_apply eases over 10 px with no lead. - Bounds clamp counts as a wall hit: with grid_collision false the actor never sets isCollided, so on_wall
endnever fires on the dash; the clamp in the scripted tick (scripted_enemy.cpp ~2445) should set state.isCollided when it moves the actor. Then the dash bounds should widen to the room edge, x [60, 580] (Repentance hits at the room's left/right edge, not at the idle margin); the idle margin would come from proposal 1. Without this the loop's ticks 7 ends the dash. - Lunge toward the farther wall (
lunge_wall: "far", with directional_poses choosing by that way): today the lunge and poses follow Isaac. Also the dash's vx *= -1 rebound on the hit, and ShakeScreen 15. - First attack of a phase forced: a gate
phase_attacks_below: 1(attacks begun since the phase began), so the Dash gate becomes[{others_below 3, phase_attacks_below 1}, {others_below 3, chance .25}]. - Rock rain on DashEnd: an attack
drop: {ticks 22, every 2, spider_one_in 3, spider_enemy_limit 4, height -400, fall_acceleration 2, fall_velocity [0, 10], scale [.8, 1.2], look rock}landing at random free room spots. Today DashEnd keeps its approximation (3 spiders around it + 8 rock boss_volley on Slam), close to the 11-drop expectation (~3.7 spiders, ~7.3 rocks). - Per-beam laser rotation (Repentance SetActiveRotation):
beams[]/turn: {delay 30, degrees, rate 1}, degrees -29, +29, -39, +39 for 135/45/150/30, counted from the beam's start and carried across BeamStart -> BeamLoop. laser/sweep turns all beams the same way, so the thin beams stay fixed for now. Also laser lifetime (big 50, thin 100 ticks from Shoot) is the clip span (17 + 36 / 17 + 81), a few ticks off. - Attack2 sweep: the fan's centre locked at the Shoot aim (+-10 deg jitter, [30, 150] clamp) and stepping 13
(kind 0) or 8 (kind 1) deg per volley toward the other side, each kind-0 shot skipped 1 in 10, kind-1 per-shot
speed 4..8, fall speed -15..2 and scale .6..1.5. Proposal: shot
lock_aim: trueplusburst/turndegrees per burst tick (sign by the aim's side of 90 deg),skip_one_in, and [min, max] ranges for speed / fall_velocity / scale. Attack1's scale 1.0..1.8 the same. - Summon1 wall placement: spawn_place
wall: {left: 2, right: 2, bottom: 1, inset: 20}(weights). Today it uses radius 200 around the boss (the Wall Creep then clings to its nearest wall). - Trite leap: spawn at (0, 4) given a jump to a free cell 100..300 out at 45..135 deg (spawn_pose Jump + target). Kept as spawn_at [0, 30] velocity [0, 5].
- Transition*Alt: the Alt clip when the mouth is open (Open seen, Close not yet), and a phase change cuts any attack. Also Attack3's seek runs from BeamStart's first frame, Repentance only once the laser exists (from Shoot).
- Shot HeightModifier -24 (Attack1/2) is not set (no height field on scripted shots).