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>
140 lines
13 KiB
Markdown
140 lines
13 KiB
Markdown
# Group 01 notes (pass 4)
|
|
|
|
Mama Fly's AI is 004ddf00: ENTITY_FLY 00506bd0 sends type 61 variant 4 there.
|
|
Speeds follow the pass 3 rule: engine push = Repentance push x friction. Most of these AIs divide their push by the
|
|
friction field, so the engine push equals the decompile's constant.
|
|
|
|
## level_2_willo: ENTITY_WILLO_L2 005593c0. Changed
|
|
- Friction `*0.9` gives retention .85 -> **.9**.
|
|
- Attack: tried on `rand%9==0` per tick, only when projectileCooldown < 1 and Isaac is within 240 (dist² < 57600). It was period 7 / one_in 25 with no range. Now **period 1, one_in 9, range 240**.
|
|
- The shot is aimed at `player.pos + player.vel` at speed **10** (was 8), so `aim_lead 1`. ProjectileParams set FallingAccel .05 and BulletFlags 0x2000; these are not ported.
|
|
- After the attack: projectileCooldown = 45, so **cooldown 45**.
|
|
- Not expressible:
|
|
- The orbit radius is the target's size + 20. The tangential push is `clamp(6 - v·tangent, 0, 3)`. The radial push is `clamp((d - r) * .05, -2, 2) * .5`. The target can be a found parent (FUN_005591c0) or Isaac.
|
|
- Same-target willos push apart with a force of `10/(d*.1+10)`.
|
|
- The ring approximation is kept.
|
|
|
|
## scarred_para_bite: ENTITY_PARA_BITE 005240a0 (variant 1). Changed (partly)
|
|
- Walk is FindGridPath 0.8, which matches. Dig: `rand%30` per tick, which matches. The teleport goes to a random spot more than 130 from Isaac; mode far is kept.
|
|
- Shot:
|
|
- It fires whenever projectileCooldown < 1 and the velocity is non-zero. There is no range, sight or random roll.
|
|
- The shot goes along unit(own velocity) * **7**, from pos + velocity. Params: Height +5, FallingSpeed -5, FallingAccel +.3.
|
|
- Then the cooldown is `rand%20 + 40`. On spawn it is `rand%20 + 5`.
|
|
- Patched turret: **one_in 1, period 1, range 10000, sight dropped, cooldown 50** (the mean of 40-59), and shot `velocity_lead 1`. The aim stays at Isaac.
|
|
- Needs the pass 3 proposals, which are still unimplemented:
|
|
- shot `along_velocity: true`: aim = unit(velocity) * speed, and no shot while still.
|
|
- `turret/cooldown_random [20,1]` on 40.
|
|
- `turret/first [5,20]`.
|
|
- `turret/moving`.
|
|
|
|
## psy_tumor: ENTITY_SWARMER 00518e20 (type 0xfd). Changed
|
|
- Friction is `*0.77` then `*0.9` (net .693). The push is ±.45 on each axis along the velocity's own signs, divided by friction, which is exactly move bounce. Now **speed .45, retention .693** (was .2/.9).
|
|
- Random attack: `rand%100==0` per tick, so **period 1, one_in 100** (was 7/15).
|
|
- Shot: `FireProjectiles(mode 9, speed 10, n 6)` with BulletFlags |1 (homing), on the Shoot event. Ring speed 7 -> **10** on both attacks.
|
|
- Not expressible: the hurt attack. Repentance fires once for each 10% of max health lost. The counter at 0x2ec is compared with `(1 - hp/max)*10` and goes up by one per volley.
|
|
- Proposed field `attacks[]/hp_steps: N`: ready while `floor((1 - hp/maxhp) * N)` is above the count of past fires.
|
|
- For Psy Tumor that is N = 10, with no random roll. The record's hurt / one_in 2 is kept until then.
|
|
|
|
## pustule: ENTITY_PUSTULE 004dea40. Changed
|
|
- It is pinned to its spawn spot (`velocity = home - pos` every tick), so move **anchor**.
|
|
- Stage clock:
|
|
- stateFrame goes up by 1 per tick, plus 1 more on `rand%3==0`. Above 35 (and i1 < 5) it plays Transition[i1] and resets.
|
|
- The clock also runs during the 15-frame transition. So the first wait is about **27 ticks** (36 / 1.33) and the later idle stages are about **12 ticks**.
|
|
- New chain: Idle0 is `ticks 24 + ticks_random [7,1]`, period 1. Each Idle1-4 is `ticks 9 + [7,1]`. The transitions play through. The 26-period roll is gone.
|
|
- After Transition4 it plays Idle5. When that ends, i1 = 6 and it kills itself. The death spawns the 61.6 fly only when i1 == 6. Idle5 now has **die: true**. The spawn stays on Idle5's Burst event (approximate).
|
|
- Not ported: creep / blood on death scaled by stage (tables at b60640 / b60670 / b6068c).
|
|
|
|
## black_maw: ENTITY_BLACK_MAW 0053b2f0. Changed (partly)
|
|
- Summon: `rand%120==0` per tick and alive enemies < 8. It spawns a leech (0x37) 20 px out in a random direction. Now **period 1, one_in 120, enemy_limit 8** (was 7/12/6).
|
|
- Not expressible:
|
|
- The walk is a direct hover: unit vector to CalcTargetPosition(10), push 1/friction, friction `*0.8`, so terminal speed is about 5. The direction is resampled only on `IsFrame(rand%30+15)` or after a grid hit, and is held otherwise. The lane walk does not offer hover.
|
|
- The charge starts when |dy| < 20 and the age is over 45 ticks. It goes at a constant **25 px/tick** horizontally, ignoring the grid, until 200 px past the room edge. Then it comes back at 18 px/tick the other way until it passes its start x (state 9).
|
|
- Proposed lane field `lane/flyby_charge {speed 25, return_speed 18, overshoot 200, alignment 20, min_age 45}` and `lane/walk: "hover"`.
|
|
- On death it explodes (BombDamage radius 40, damage 60). I did not check whether the death fields already cover that.
|
|
|
|
## slog: ENTITY_GUTS 005153b0 (type 40 variant 2). Changed
|
|
- The border push for variant 2 is **2.45** (3 by default, 3.3 for variant 1), times the c34 ramp, over friction `*.6`. Speed 2.5 -> **2.45**.
|
|
- Charge: ChargeLoop sets c34 = 1.8, so it goes 2.45 x 1.8 = **4.41** cell by cell (was 6).
|
|
- After the hit: projectileCooldown = 60, so HitHori/HitVert **cooldown 60** (was 45).
|
|
- Creep (effect 0x1a, scale .75, timeout 150) every **4** ticks, every tick while charging (was 6).
|
|
- Not checked: the charge trigger is a Room::CheckLine from Isaac to Isaac + vel*5, then FUN_005150b0. Alignment 20 / sight / period 4 are kept.
|
|
|
|
## cyst: ENTITY_GUTS 005153b0 (type 0x35e). Changed
|
|
- Border push 3 matches. Splat every 5 ticks matches.
|
|
- Shot: projectileDelay counts up to 30 and then fires at once, with no range, sight or roll. It is an aimed shot at **10** (was 7).
|
|
- Turret is now **one_in 1, period 1, range 10000, no sight, cooldown 31**. That fires every 31 ticks, as Repentance does.
|
|
|
|
## level_2_horf: ENTITY_GAPER_L2 004e2b40 (variant 1). Changed
|
|
- Friction `*0.93`. The push is .13 straight at CalcTargetPosition, divided by friction. Now **move hover, speed .13, retention .93**. It was chase 0.2 / 0.8, but this horf does not pathfind.
|
|
- Shoot is timer-driven: cooldown `rand%30+15` on spawn, then **45** after each Shoot. There is no range, sight or roll. Now **period 1, one_in 1, cooldown 45, range and sight dropped**.
|
|
- The spawn (FUN_004d8d10) is thrown at unit(dir to Isaac) x **10** from height -8. spawn_speed 6 -> **10**.
|
|
- Not expressible: the first-shot delay `rand%30+15`.
|
|
|
|
## level_2_gaper: ENTITY_GAPER_L2 004e2b40 (variant 0). Changed
|
|
- FindGridPath speed **0.6** (c34 = .6), so acceleration .7 -> **.6** (both). On death it morphs to variant 2 and spawns variant 1. I left that as it is.
|
|
|
|
## dusty_deaths_head / _887_0_1: ENTITY_DUSTY_DEATHS_HEAD 00504a40. Changed (margin)
|
|
- These match:
|
|
- push ±1.6 / friction `*.6`
|
|
- vy = sin(age*pi/30 + phase) * (5 + rand*3) (period 60)
|
|
- dies when the room is clear after 2 ticks
|
|
- It is removed 120 px past the far room edge, so **wave margin 120** (was 60 by default).
|
|
- Not expressible: Repentance does not wrap. At age 150 it spawns a copy at its spawn point. Each head starts one room width behind and is removed past the far side, so several heads cross at once, 600 px apart.
|
|
- Proposed `wave/respawn_after: 150`: spawn a copy at the start point once, instead of wrapping.
|
|
|
|
## corn: ENTITY_DIP 00534860 (type 217 variant 1). Changed
|
|
- Idle: `rand%10==0` per tick, then a push in a random direction of `2*(5 + 5*rand)` = **10-20**, under the idle friction `*.8`. Now **period 1, one_in 10, impulse 10 + lunge_spread 10, lunge_random** (the old per-tick lunge .5 is gone).
|
|
- Move state: friction `*.95`. It returns to idle once the speed is below 1. Now **retention .95, end_below 1**, and idle retention .92 -> **.8**.
|
|
|
|
## drowned_hive: ENTITY_HIVE 0050c370 (type 22 variant 1). Changed
|
|
- Idle friction `*0.8*0.95`, so retention **.76**. In the attack state variant 1 gets no friction factor, so attack retention **1**.
|
|
- The range is 300 (dist < 300), not 250.
|
|
- The charger (0x17 v1, health halved) spawns with zero velocity, so spawn_speed was removed. The cough clock (75 / 7 / 3) and the crowd test match. The crowd delay (`rand%50+20`) is as in group a's notes.
|
|
|
|
## holy_mulligan: ENTITY_HIVE 0050c370 (type 22 variant 2). Changed
|
|
- Range **300**. The spawn (38.1) appears at x ± 8 with velocity (±8, 0) toward the side it faces (it faces Isaac). spawn_speed 7 -> **8**. The direction is horizontal in Repentance, and the engine aims at Isaac.
|
|
- Friction `*0.8` in both states matches .8.
|
|
|
|
## sick_boom_fly: ENTITY_BOOMFLY 0050f280 (variant 5). Changed
|
|
- Friction is .9 x .8 = .72. The push is ±.45 per axis (bounce). Now **speed .45, retention .72** (was .45/.9).
|
|
- Gas: every 10 frames (frame/10 changes) it spawns effect 141 (smoke cloud) with timeout **90**, scale **.7**, and a random drift of up to 2. Now period 12 -> **10**, frames 120 -> **90**, scale .5 -> **.7**. The drift is not expressible.
|
|
|
|
## mama_fly: 004ddf00 (61.4, through ENTITY_FLY 00506bd0). Changed (approximation)
|
|
- Walk: FindGridPath at **0.6**, friction `*0.8`. Now speed .3 -> **.6** and retention .85 -> **.8**. Move flee is kept.
|
|
- The target cell is the farthest from Isaac of 10 random free cells 80-120 px away, skipping cells with a state-5 entity within 8.
|
|
- A new target is picked when there is none, or once more than 90 ticks have passed with `rand%10==0`.
|
|
- On arrival (< 10 px): Attack, friction `*.7`, velocity = target - pos. On Shoot it spawns a Pustule (0x35d) on itself when its cell is free.
|
|
- **There is no cap**, so spawn_cap was removed. Pustules end themselves after their stages (about 2.3 s).
|
|
- Attack roll 7/8 (about 56 ticks) -> **7/5 (about 35 ticks)**, about the travel time of a 100 px hop at about 3 px/tick.
|
|
- Proposed move `spot {near 80, far 120, tries 10, repick_after 90, repick_one_in 10, arrive 10}`: pathfind to the chosen cell, then start `attack_on_arrive` (an index).
|
|
|
|
## mega_maw: ENTITY_MEGA_MAW 0045ef20 (subtype 0). Changed
|
|
- The decision runs on IsFrame(20) (IsFrame(10) below 30% hp):
|
|
- Spit: Isaac below (py - 40 > y) and `rand&3==0`.
|
|
- Else FireRing on `rand%3==0`.
|
|
- Else Summon on IsFrame(40) with `rand&1==0`, when the enemy count is low.
|
|
- Per tick that is spit 1/80, rings 1/80, summon 1/160. The ring is the double 5-ring (speeds 10 and 7, orbit flags) 3/4 of the time and the plain 9-ring at 10 1/4 of the time. The cw/ccw 9-rings (options 3, 4) never happen for subtype 0.
|
|
- Choice: one_in 25 over [0..5] -> **one_in 32 over [0,0,0,0,1,1,1,2,5,5]**. Each option's rate now matches.
|
|
- Spit: FireBossProjectiles(**15**, Isaac, traj 0), with the target moved down 100 when Isaac is nearly level. Count 10 -> **15**.
|
|
- Not expressible:
|
|
- The spit's "Isaac below" gate (choice options are not gated).
|
|
- The doubled rate below 30% hp.
|
|
- Fire params: Height 18.5, FallingSpeed -2, FallingAccel -.06, VelocityMulti 1.05, flags 0x2080.
|
|
|
|
## fistuloid: ENTITY_FISTULOID 00545f70. Changed
|
|
- Friction is set to **.9**. The push is .7 (not divided), wobbled ±40° on a 60-tick sine. Engine push .7 x .9 = **.63**, so speed .3/.8 -> **.63/.9**.
|
|
- Attack: i1 < 1, within **100**, `rand%5==0` per tick. Now **period 1, one_in 5, range 100** (was 7/150).
|
|
- The shot is aimed at speed **10** (was 8). From the Shoot event on, it gets a recoil push of -dir x 1.2, so **lunge -1.08 from Shoot** (x .9). Retention .9.
|
|
- Then i1 = 30, so **cooldown 30** (was 20).
|
|
- Not expressible: the wobble, the separation from other fistuloids, and the leash to its parent.
|
|
|
|
## Skipped (already match)
|
|
- **mega_fatty** (00460780):
|
|
- After stateFrame > 30, per tick `rand%15==0`, with weights suck 30, fart 30 (+20 within 120), jump 20 (40 past 240), over the literal total `jump + fart + 60 + fart`. The record's one_ins (85 / 63 / 85 / 142 / 254) are those rates.
|
|
- The fart's dip cap of 4 (8 brown) and the 30-shot else branch match.
|
|
- Unsure: FUN_006fed60 passes radius 50, against the gas radius 85.
|
|
- **the_cage** (004878a0): after 30 frames, per tick 1/20, then 1/3 summon-or-puke (the summon needs fewer than 3 vis). Else 1/2 roll, else jump. That is 1/60 each, as in the record. The spiral (speed 8, 9° per 3 ticks) matches. Each of the 6 spokes fires on `rand&3 != 0` (75%), which is not ported.
|
|
- **sisters_vis** (00496fb0): after 20 frames, `rand%5` gate, then jump 35 / roll 50 / summon 15. Puke intervals 9/8/7 (+2 in phase 1) at speed 6/8 with modes 1/3/4. Taunt next 60/10/30. These match.
|
|
- **rotten_gaper_10_3_1 / _10_3_4** (00508f40): variant 3 is FindGridPath 0.6, which matches. 0.72 applies only when FUN_0040ac50 > 0 (unidentified).
|
|
- **error_room_keeper** (006c2220): pinned to its spawn point. The friction .8 makes no difference while it is anchored.
|