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>
81 lines
8.0 KiB
Markdown
81 lines
8.0 KiB
Markdown
# misc1 notes (patch_misc1.py)
|
|
|
|
## hard_host (27.3): Host routine 005111b0 (it's listed as Entity::TeleportToRandomPosition)
|
|
- Idle: on IsFrame(7), if cd<1 and dist<240 (57600) and sight: cd=7 and Shoot. Otherwise cd--. So the cooldown is 7 checks of 7 ticks each. The record had 10, now **7**.
|
|
- The I1 delay: a hit while closed adds (int)(dmg+0.5)/2, capped at 10, and the counter goes down every 7 ticks. delay_cap adds the raw damage. FEATURE `guarded/delay_scale` (0.5, rounded).
|
|
- Variant 3 on Close: sound 0x34, effect 1000.72 at 20px toward Isaac, ShakeScreen 12, and players within 120 get a 3-unit push (force 9). The existing bolts and gas already cover this. hard_host.anm2 has no Shoot event, so no projectiles, which is correct.
|
|
- When damage over 20 lands while closed, it plays "Bombed" and the damage resets. Not expressed.
|
|
- mobile_host / flesh_mobile_host are type 204/247, a different routine. Not checked.
|
|
|
|
## blister (303): 005430d0
|
|
- Idle: stateFrame = rand%30, counting down each tick. Retention 0.6 (was 0.9).
|
|
- When the timer expires: rand%10==0 and no live child -> "Attack". Otherwise -> "Hop" (always, no roll). The timer is redrawn as rand%30 after each hop or attack.
|
|
- What I changed: first_cooldown [0,30]. Both attacks: period 1 and cooldown_random [30,1]. Attack: one_in 10 (was period 10 1/12), retention 0.7, spawn_cap below 1. Hop: no one_in (was period 2 1/6), retention 0.9.
|
|
- Attack Shoot spawns 404.1 (dark ball) with a random-length-4 velocity. Pitch is 0.9+0.2r.
|
|
- FEATURE `spawn_cap/own: true`: the cap counts only this actor's own live child (field_3c0 is the child pointer). The global type count can block other blisters.
|
|
- FEATURE hop motion: velocity is SET each hop frame to (1 - frame/len) * clamp(axis delta, ±40) * 0.2, along Isaac's dominant axis only (at most 8 px/t, decaying linearly). Proposed `axis_hop: {clamp:40, scale:0.2}`. lunge 0.9 is kept as an approximation.
|
|
|
|
## mushroom (300): 00542be0
|
|
- Idle "Blocking": wait (rand%5+1)*30 ticks. All damage x0.25 in this state, for every variant. The record had guarded variants [1], so 300.0 had no guard; now `guarded {scale .25}`.
|
|
- Then Reveal (no range test and no roll; it was range 160, 1/6 every 7). On Shoot: mode 6 or 7, speed 7 (quad_random is correct).
|
|
- Then Revealed for (rand%3+1)*30 ticks, then Hide, then the wait again.
|
|
- Mapping: first_cooldown [30,121]. Revealed repeat limit 29 + limit_random 61 (30..90). Hide cooldown 30 + cooldown_random [5,30] (30..150, exact steps).
|
|
- Small gap: first_cooldown and Revealed are uniform rather than 30-step. FEATURE `first_cooldown` [base, count, step], same form as cooldown_random.
|
|
|
|
## tube_worm (244.1): Round Worm routine 0053e4a0
|
|
- Loops DigIn -> (underground: pick spot) -> DigOut -> DigIn forever. It never idles; it starts in DigIn. DigIn had a 1/15 roll from Idle; that roll is removed, and DigOut now has next 0.
|
|
- Spot: room centre + random dir * (60+250r), clamped, free cell. Accepted on a rand&1 roll with player distance in (100,1000). teleport mode "far" (130-1000) is the closest built-in (was default, >200 and not in line).
|
|
- DigOut Shoot: variant 1 fires one shot per tick for **10 ticks**. Target = player + playerVel*0.2*dist, plus a random vector *30r. Velocity = (target-pos)*0.025. ProjectileParams: HeightModifier 25r, FallingSpeedModifier 8r-56, FallingAccel 1.5, Scale 0.5+r.
|
|
- PreShoot: if its spot is off camera, it goes back to DigIn.
|
|
- Changed count 6+r2 -> 10 at once.
|
|
- FEATURE `shots[]/burst_ticks: N`: from the on-event, fire one volley a tick for N ticks.
|
|
- FEATURE `shot: "lob_to"` with `travel: 40`: velocity = (aim - origin)/travel, with the given fall params.
|
|
- FEATURE teleport mode `room`: {radius:[60,310], player_range:[min,max], one_in:2}, centred on the room centre. Needle needs it too.
|
|
|
|
## needle (881.0) / pasty (881.1): 0054eb80
|
|
- Underground (invisible, untouchable) for 30..89 ticks, then 20..59 between leaps. Now hidden:true, first_cooldown [30,60], leap cooldown 20 + cooldown_random [40,1].
|
|
- Spot: room centre + dir*(60..310), 50% roll, player distance in (120,240). Mode near (100-230) is kept. DigOut has no roll now (was period 4 1/8).
|
|
- Leap after DigOut: velocity 8 toward Isaac, then each tick v = 0.6v + 3.2*dir (terminal 8). Data: lunge 5.333 (=3.2/0.6), retention 0.6 (was 0.6/0.9).
|
|
- Arc: height starts 2, vy -5, +0.4/t. It lands when height > 8 (about 26 ticks) and has no collision while height < -6. A hit adds -3 to vy and slows dir *0.8.
|
|
- FEATURE `arc: {height:2, velocity:-5, gravity:0.4, land_below:8, untouchable_above:-6, hurt_kick:-3}`: an attack that ends on landing instead of at clip end.
|
|
- Pasty fires mode 7 (diagonal) speed 7 on leap tick 4. The data fires it on DigOut's Shoot event (frame 4); kept as is.
|
|
|
|
## nerve_ending (231.0): 00537e20. Skipped
|
|
- Matches: anchored to its spawn spot, Idle. The swing code is only for variant 1.
|
|
|
|
## whipper (834.0) / snapper (834.1): 004e5170. No data change
|
|
- Friction x0.8 always. In the attack, x0.9 (whipper) or x0.6 (snapper), so 0.72 and 0.48, which match.
|
|
- Walk: MoveRandomlyAxisAligned(1.25). Data uses Flash's lane mode at speed 0.7.
|
|
- Charge: when Isaac lies along an axis (dot > 0.9) with a clear line, accelerate 1.75/friction (terminal ~8.75). It stops after 20 slow ticks (<0.5) or on a wall. This matches the lane charge.
|
|
- Attack needs: (a) Isaac within 90 (whipper) or 180 (snapper), (b) dot(facing axis, dir to Isaac) > 0.6 (whipper) or 0.92 (snapper), (c) 10 ticks since the last facing change or attack. On start it adds impulse 5/friction along the facing direction.
|
|
- FEATURE `attacks[]/cone: cos` against the actor's facing axis. Snapper's alignment 25 is only an approximation of cone .92.
|
|
- FEATURE impulse along facing on frame 0. `impulse` exists but needs lunge_from and aims at Isaac.
|
|
|
|
## blurb (813): 0055a010
|
|
- Moves by FindGridPath(0.3), so move -> "path".
|
|
- Fires when (hp > 50% and dist < 100 and sight) or hp <= 50%. The phase gate is now [{range 100, sight}, {hp_share_below .5}]; it was range 110 or hurt.
|
|
- Then speed is 0.72 (was 0.45).
|
|
- Shot: 4 ticks into HeadAttack, FireBossProjectiles(7 + rand%3, target capped at 100px, trajectory 3). Now boss_volley count 7 + random 2, spread 1 (was 6 aimed at speed 8). Check that volley defaults are sane.
|
|
- Death before firing (state 4, or 8 still counting) fires the burst on death. FEATURE `death_fires_pending_attack` (or reuse death_volley).
|
|
- Gusher morph 1/2 when health > -25 matches transformation.
|
|
|
|
## small_leech (810.0): 0055b740
|
|
- In water (the flooded flag, true in Downpour/Dross where it lives): accel ramps 0.016/t up to 0.35 toward Isaac, retention 0.96 (terminal ~8.4), speed cap 10/0.96, bounces off the room edge at -0.6.
|
|
- Changed chase 0.9 / ret 1 -> hover 0.35 / ret 0.96.
|
|
- Dry: 50% roll per tick to hop (impulse (2..4)/0.7 toward Isaac, Hop{dir}, retention 0.7).
|
|
- FEATURE `speed_ramp` (+0.016/t) and `speed_cap`.
|
|
- small_leech_orbit runs on the same routine (the parent-orbit branch) and was not touched.
|
|
|
|
## deep_gaper (811): 00560570
|
|
- Hidden until no other live enemies remain (or a room counter > 8). Then every 4 ticks a rand&7==0 roll, or a forced emerge after 90 ticks, if its cell is free.
|
|
- Emerge plays Ambush1 or Ambush2 (initSeed&1), then FindGridPath(0.6).
|
|
- Now: gate one_in 32 (about 1/8 every 4 ticks; the 90-tick cap is not expressible); patch move path speed 0.6 (was chase 0.45).
|
|
- Ambush2 is never used: `opening` takes a single index.
|
|
- Subtype 0 morphs 1/3 into subtypes 1-6; subtype 6 throws a leech on death. Not expressed.
|
|
|
|
## sub_horf (812.0): 0055fb60
|
|
- The real AI: a hit knocks it away from the hit (speed at least 8). It slides at retention 0.97, its angle turning speed*2 deg/t, and the pose is Shake00..11 chosen by angle.
|
|
- While moving it fires single shots at speed 10 along its heading, every 2*max(1, 20/speed) ticks.
|
|
- The current hurt->Attack00..11 cycle is a stand-in. I changed only the shot speed: 7 -> 10, directions scaled.
|
|
- FEATURE `spin_slide: {hit_speed:8, retention:0.97, spin:2, poses:[Shake00..Shake11], shot_speed:10, shot_every:20}`: a knockback-driven spinning turret. The Attack clips are unused by the real AI.
|