notes: boss fidelity 1 (The Cage, Dingle/Dangle idle numbers corrected)

This commit is contained in:
shweet committed 2026-10-25 16:19:40 -04:00
1 parent 6044f52c36
commit 61a495fabb
2 files changed
+62

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ stored here: `./decompile.sh 0xADDR` prints it from the dump, with the current n
| folder | contents |
|---|---|
| `entities/` | per-entity findings from the monster-fidelity passes (state machines, timings, speeds, what the port changed or skipped) |
| `entities/boss_fidelity_*.md` | boss fidelity pass: Rebirth bosses whose port cited no decompile, re-read against their NpcAI routine by boss room count (The Cage, Dingle/Dangle, ...), what changed and what is still not expressible |
| `systems/greed_mode.md` | Greed waves' coins and music, Ultra Greed/coins/doors states, donation machine spawn, Greed doors/button, Mega Satan door |
| `systems/alt_path.md` | Repentance's path: secret exit kinds and doors, Level::SetNextStage's routing, the mirror world and mineshaft dimensions, quest doors, the white fire's Lost Curse, minecarts |
| `systems/use_dispatch.md` | id -> case of UseActiveItem / UseCard / UsePill from the exe's jump tables (`use_dispatch.tsv`, `find.sh active/card/pill`), the slot-labelled second active switch, the common tail (TemporaryEffect), actives without a case |
+61
View File
@@ -0,0 +1,61 @@
# Boss fidelity pass 1 (2026-10-25, isaac-classic branch rif/boss-fidelity)
Rebirth bosses whose reference comment cited no decompiled routine, in order of boss room count. Earlier passes had
only skimmed most of them ("matches"). Physics reminder (Entity::Update 006ae820: `vel *= friction; pos += vel`, then
friction is reset to the entities2 value, 1 for all of these): an AI's `friction *= f` is the record's retention, and
the port moves by the braked velocity too, so retention = f and pushes need no conversion.
## the_cage: NpcAI::ENTITY_CAGE 004878a0 (265.0; subtype 1 green, 2 pink). Changed
- Every tick, last thing: `friction *= .5` (unconditional). Port retention was .8 (Taunt .6/.8, roll 1).
- Init: subtype 2 (pink) spawns its twin 24 px right (unless spawned by a 265), moves itself 24 left, size = config
size * .67.
- State 3 Idle: stateFrame++ (reset on every state change); past 30, rand%20 == 0 picks:
- rand%3 == 0: enemies (Room+0x12c0 + 0x12c4, minus Room+0x12c8 + 0x12cc) < 3 and Random(2) and subtype != 1 ->
13 (Attack1, Vis); else 9 (Puking) with V1.x = random -180..180 degrees and V1.y = +-1 (spin way).
- else (rand&1 == 0 or pink) and not confused/feared (flags 0x1000a00) -> 8 roll (sound 0x12f);
else not flag 0x200 and not pink -> 6 jump: TargetPosition = CalcTargetPosition + player vel * 10, clamped.
- So plain: puke 1/6, Vis 1/6, roll 1/3, jump 1/3 (= the port's one_in 120/120/60/60); green: no Vis; pink: puke
1/6, Vis 1/6, roll 2/3, never jumps (the port had pink never rolling).
- 9 Puking (sound 922 on start, 0x137 on Shoot): from Shoot until StopShooting, on IsFrame(3): six spokes at V1.x +
60k, each only on rand&3 != 0, FireProjectiles mode 0 at 8 (HeightModifier -30, FallingSpeed +3, FallingAccel -.05,
flags 0x20000, variant 3 puke, colorize (.8, 1, .85), Scale .5 + rand); then V1.x += 9 * V1.y.
- 13 Attack1 (sound 0x398): on Shoot, unless friendly-flagged with a live Vis, a Vis 39.0 at pos + (0, 20) moving
(0, 5); 2-4 splats; sound 0x13a. No Vis cap (pass 4 read "fewer than 3 Vis": it is the room's enemy count).
- 8 roll: RollStart (sound 0x399) to its end, then vel += unit(Isaac) * 25; RollLoop: every tick vel = unit(vel) * 25
(sound 0x39c on grid collision), so it moves 12.5 a tick after the .5; out after stateFrame > 150 (151 ticks) or
confused/feared; then Taunt (sound 0x39b) and idle.
- 6 jump: Jumping (sound on Jump); from the Jump event, V1.x += .02 a tick (at most 1) and pos = lerp(pos, target,
V1.x), collision classes 0; after the clip JumpLoop until within sqrt(2) of the target -> 7 Landing: collisions back
at once (4 / 5, moved to a free tile if on a grid cell), on Landed: 5 creep 1000.22 at random angle and 0-75 out,
scale 2, grey colour; sounds 0x12f, 0x30 x2, ShakeScreen 10, 4 or 5 shockwaves 1000.72 (360/n apart from 0).
- Subtype 1: every 30 ticks (frame + index) green creep 1000.23 at its feet, scale 2.5, 0x11e = .75.
- Port: retention .5 throughout (roll RollLoop keeps retention 1 with the RollStart lunge 25 braked to 12.5, which is
the real per-tick move); RollLoop `ticks` 151 (was repeat 8 = 108 ticks); pink rolls (one_in 30 for pink) and still
never jumps; Vis gate `enemy_limit` 3 instead of a cap of one Vis, spawn_velocity (0, 5); puke spokes skip 1 in 4,
start at a random angle (spiral_random), still (mode 0), offset height -30, fall_velocity 0, fall_acceleration -.05,
scale .5-1.5, puke look; Landing no longer untouchable (it hurts as it comes down, as the wiki notes).
- Not expressed: when the Vis gate fails the 1/3 goes to puke (the port's rolls are independent), the
lerp-in-the-air glide (pounce lands on the spot, as Mega Fatty's).
## dingle / dangle: NpcAI::ENTITY_DINGLE 004855b0 (261.0 / 261.1; subtype 1 red, 2 black). Changed
- Correction to pass 3 / pass 4: the idle numbers were swapped. asm 004857bd..00485832: `CMP variant,1` then CMOVNZ:
Dingle (variant 0) waits stateFrame > 30, rand%20, or rand%10 on a tick with pendingDamage; Dangle (variant 1)
waits 15, rand%10, or rand%5 when hit.
- Pick: rand%3 == 0 -> 9 Whistle; else rand&1 == 0 and not confused -> 11 BeforeSlide; else 10 Dance.
- 8 Spit: Shoot -> black: mode 8 at 10 (variant 3, Dangle 5; FallingSpeed -1, FallingAccel .001); else mode 2 (centre
+ .9 * (.961, +-.276)) at 10 toward Isaac, variant 0 for red, 3 puke, Dangle 5 corn. Sound 0x12f.
- 4 Slide: on Slide vel += unit(Isaac) * 10 (black 15), sound 0x12d; on the first slide only (i1 == 0) rand%5: Dingle a
poop grid on its cell, Dangle a Corn Mine 295; friction *.98; from Slide on vel += unit(vel) * 1 (black 1.5) / friction;
Dangle also farts (size + 20, .5) on interval ticks and lays creep 1000.94 (slippery brown) each tick, scale .75-1.
Clip end: i1 < n -> stateFrame = 12 + rand&3 pause (friction .9, the clip restarted when it reaches 0), else 16
Tired. n = 3 red, 0 black, 2 Dingle, 1 Dangle (so 4 / 1 / 3 / 2 slides). Wall hit: splat on a wall cell.
- 9 Whistle (sound 0x13b, Dangle 0x19d): on the spawn event, if (enemies < 5 and not red) or i2 < 6: plain 1-2 dips
217.0 (Dangle 217.2 corns at pos + aim*30 + rand 10 moving 15 at Isaac, state 4), red a red poop near it (i2++),
black 1-2 Spiders 85 near it. Always on to Spit.
- 16 Tired: 60 + rand%30 ticks (Dangle half). Off-slide `friction *= .7`.
- Port: Dingle choice one_in 20 (was 10), hurt_one_in 10, cooldown 30 (was 15); Dangle hurt_one_in 5 (hurt_tick on
both); Spit fan [1,0], [.8649, +-.2484] instead of three at .3 rad; black eight fall_velocity -4, fall_acceleration
.001; slides' repeat gap [12, 3] at retention .9; Dingle's poop only on the first slide (poop first); Whistle
enemy_limit 5 (not red). New engine fields: choice hurt_one_in, attacks[] repeat gap / gap_retention, poop first.
- Not expressed: red's whistle cap of six red poops, Dangle's fart during the slide, the slide push along its own
velocity (the port pushes along its aim).