From eb1e0bc472b38f6bc3f8c527b279e282e3890af1 Mon Sep 17 00:00:00 2001 From: shweet Date: Sat, 24 Oct 2026 16:11:43 -0400 Subject: [PATCH] Items sweep 12: Ghost Bombs, Purgatory, Rocket in a Jar, Angelic Prism, orbit table, Tinytoma, Daemon's Tail, Guillotine --- db/names.tsv | 1 + notes/README.md | 1 + notes/items/items_sweep_12.md | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 notes/items/items_sweep_12.md diff --git a/db/names.tsv b/db/names.tsv index c83502a..2c3881c 100644 --- a/db/names.tsv +++ b/db/names.tsv @@ -385,3 +385,4 @@ 004be670 NpcHelper::query_nearest_other nearest entity of a query list to a point, not the given one; Hush Fly spacing (boss_approx_2) 0058e490 NpcHelper::siren_familiar_counts counts Isaac's charmable familiars: free, charmed (flag 0x100), total (boss_approx_2) 0058e590 NpcHelper::siren_charmed_count charmed familiars following this Siren (boss_approx_2) +00642cb0 FamiliarAI::tinytoma DB: Entity_Familiar::Update case 0xd8/0xd9 (Tinytoma, items sweep 12) diff --git a/notes/README.md b/notes/README.md index 273474c..0595d7d 100644 --- a/notes/README.md +++ b/notes/README.md @@ -9,6 +9,7 @@ stored here: `./decompile.sh 0xADDR` prints it from the dump, with the current n | `systems/greed_mode.md` | Greed waves' coins and music, Ultra Greed/coins/doors states, donation machine spawn, Greed doors/button, Mega Satan door | | `items/items_sweep_10.md` | Smelter/Guppy's Tail room drop variant, Daemon's Tail pickup picker, I'm Drowsy slowdown, Guillotine orbit layer + orbit distance table, Converter | | `items/items_sweep_11.md` | Nancy Bombs flag roll (GetBombFlags) | +| `items/items_sweep_12.md` | Ghost Bombs soul spawn, Purgatory soul, Rocket in a Jar rockets, Angelic Prism split, orbit layer table, Tinytoma, Daemon's Tail coin test, Guillotine head | | `characters/` | Rebirth behaviour + port design for tainted characters and Jacob & Esau | | `_tools/` | the one-shot port-side patch scripts those passes used (they edit isaac-classic data; kept for reference, not maintained) | | `../src/anm2`, `../src/rooms` | reimplementations of the anm2 player and .stb/RoomConfig loader, with their own decompile docs and tests | diff --git a/notes/items/items_sweep_12.md b/notes/items/items_sweep_12.md new file mode 100644 index 0000000..369977c --- /dev/null +++ b/notes/items/items_sweep_12.md @@ -0,0 +1,31 @@ +# Items sweep 12 + +- **Ghost Bombs (727)**: flag from `Entity_Player::GetBombFlags` (0x780560, HasCollectible(0x2d7); placed bombs always, else + `rand%100 <= 33 + luck*8`). On explosion `Entity_Bomb::Update` (0x6a24d0, ~line 358957 of all.c) tests the flag + (BitSet DAT_00c34640): bomb scale > 0.75 spawns effect 1000.186 (Hungry Soul) subtype 1, timeout fields [0x117]/[0x118] + = 360 ticks (180 when field_0x448, a Dr. Fetus bomb), scaled by the bomb; smaller bombs spawn 1000.189 (Purgatory + soul) subtype 1 instead. The soul's own update is in `Entity_Effect::Update` (0x5d4380, does not decompile; --asm). + Hungry Soul subtype 0 also spawns from `Entity_Pickup::Update` (Hungry Soul item, 1 in 3 by seed, timeout 180). +- **Purgatory (634)**: no HasCollectible(0x27a) in the dump; the rift/soul logic sits in Entity_Effect::Update + (asm only). Purgatory soul anm2 (1000.189): Appear 39 frames, Charge 6. Around 0x5e4d98: after Appear finishes it + plays Charge, targets the nearest enemy (radius 5000) else a random room point (20 from the wall), speed rand*6+4. +- **Rocket in a Jar (583)**: `FUN_00780f40` (bomb placement) HasCollectible(0x247): with a fire input (player + [0x58b] != -1, aim [0x58c..]) the bomb is variant 0x13 (19), velocity = normalized aim * 10 + GetTearMovementInheritance, + angle = atan2 aim; else plain. `Entity_Bomb::Update` variant 19/20: rocketSpeed += speedMultiplier each tick, + push = clamp(rocketSpeed * 0.125, 0, 1) * 2 (variant 20 giga: clamp(rs*0.0625)*.19 path), velocity += (cos,sin)(angle) + * push; `_collidesWithGrid` zeroes explosionCountdown1 (explodes); drawn rotated, flipped (180 - angle) past +-90. + Homing flag (DAT_00c34860) steers rocketAngle toward the target by min((speed-1)/9,1)*0.5 of the gap. +- **Angelic Prism (528)**: familiar 3.123; `Entity_Familiar::Init` case 0x7b orbit layer 4; `Entity_Familiar::Update` + case 0x7b: each live tear (type 2) within distance^2 < 625 not already prism-split (FUN_0060cd80) is removed and + respawned 4 times (static Colors at 0xc7fc60, 0x2c apart), velocity rotated 30 - i*20 degrees (or, flagged, i*90); + Dr. Fetus bombs (type 4, IsFetus) split the same way. +- **Orbit table** `GetOrbitDistance` @0xc34130, 5 floats per layer = x radius, y radius, angular speed, guardian + speed, phase: layer 0 25,20,.045,2,1.5; 4 85,67.5,.02,1.5,.8; 5 35,30,.045,1.5,.5; 6 50,42,.03,1.5,0. +- **Tinytoma (645)**: familiars 3.216 (hp 10) / 3.217 small (hp 5), collisionDamage 3.5 interval 14; Init case + 0xd8/0xd9 orbit layer 6; Update -> `FUN_00642cb0`: the small one pairs with a parent (+0x3bc), the 0xd88 counter + (150) brings the big one back (AddToOrbit(6), grow-in scale +0.03 a tick, collisions from 0.8); damage entries capped + at 3.5. +- **Daemon's Tail (trinket 22)** in `Pickup_PickVariant` (0x6ddcd0): the `*param_1 != 3` coin test follows + `*param_1 = 0`, so the coin (20) is always in the redraw; the black subtype is skipped only in room type 8. +- **Guillotine (206)**: `Entity_Familiar::Update` case 0x44 only orbits the head and hides it (collision class 0, + invisible) under a temporary collectible effect / IsFullSpriteRendering; no costume in costumes2.xml.