From ae36e13486c3f0a5fee3dc8db5a256081cd491ad Mon Sep 17 00:00:00 2001 From: shweet Date: Sun, 25 Oct 2026 19:10:24 -0400 Subject: [PATCH] notes: items sweep 14 (red rooms, member card, D1, D infinity, glowing hourglass, bone spurs, lil dumpy, mystery egg, the swarm, samson's chains, jaw bone) --- notes/items/items_sweep_14.md | 93 +++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/notes/items/items_sweep_14.md b/notes/items/items_sweep_14.md index 58a2d7b..f8899c1 100644 --- a/notes/items/items_sweep_14.md +++ b/notes/items/items_sweep_14.md @@ -64,3 +64,96 @@ - Drops: +_counter pending; within 80 of Isaac in state 1 or 3 it plays Level2Spawn/Level4Spawn, on the Spawn event a random pickup 5.0 (drop RNG), counter - 1. TriggerRoomClear case 0x58: state 1 only, RandomInt(100) (80 with BFFS) (x 4/3 for player 0x24) < 33 -> counter + 1. The Level 4 per-coin drop is elsewhere (not found). + +## Red Key (Entity_Player::UseRedKey 0x5b2360, Level::MakeRedRoomDoor 0x74d010, FUN_0074cea0) + +- UseRedKey: the first of the room's 8 door outline effects (room +0x7744, 1000.154) within 120 (14400 squared) of the + player -> MakeRedRoomDoor(current room index, slot). +- MakeRedRoomDoor: get_door_neighbor_room; none -> fails. Off the 13x13 map (row < 0) -> if IsNextStageAvailable the + slot's door leads to -2 (I AM ERROR). Else RNG (dungeonPlacementSeed + row * 0x3a1) * (col + 1); stage 13 (Home): + RoomConfig::GetRandomRoom(stage 0x23, type 0xb? difficulty 10, subtype 0xb) (the tainted closet); else the type from + FUN_0074cea0 and GetRandomRoom (1x1, required doors 15; libraries/devil/angel subtypes special-cased), place_room, + flag 0x400 (red room), doors to every existing neighbour both ways; FUN_00827550 adds the door to the current room. +- FUN_0074cea0: rand & 0x1ff walked over (weight, type): (2 devil 14) (2 angel 15) (3 secret 7) (3 super secret 8) + (6 shop 2) (4 treasure 4) (2 planetarium 24 -> treasure 4 while not unlocked) (9 curse 10) (8 sacrifice 13) + (5 arcade 9) (2 vault 20) (2 dice 21) (4 library 12) (2 Isaac's bedroom 18) (2 barren bedroom 19) (7 miniboss 6); + past them 1 (normal). Angel becomes devil while game +0x26568 > 0. + +## Member Card (Room::TrySpawnSecretShop 0x7f8190, GridEntity_Stairs::Update 0x99bd50) + +- In a shop (room type 2) with a Member Card (0x25a) owner, or off the map: grid index width + 10 (a 2x room: twice + that). On the map: sound 0x394 and GridEntity_Stairs (grid 0x12, variant 2) there; off the map (the secret shop + itself) a tall ladder effect 1000.156 (0x9c) back up. +- GridEntity_Stairs::Update: Closed until the room is clear (Open Animation then state 1); the nearest player within + 21 (state 1, not mid-jump) goes to room -4 (variant 0, crawl space), -11 (1, Gideon's crawl space), -13 (2, the + secret shop) or the level's +0x182d0 room (3), StartRoomTransition(.., 2). +- The secret shop rooms are 00.special rooms' shops of subtype 10 / 11 (rare good / rare bad, weights 0.25 / 0.1); + crawl space subtypes 1-3 are Gideon's crawl space and Rotgut's two rooms. The Stairway's angel shop is the angel rooms + of subtype 1 (variants 40-45, room -18); Genesis' bedroom is bedroom subtype 99 (variant 1000, room -12, + Level::InitializeGenesisRoom 0x8e11b0). No HasCollectible(0x24a) (Stairway) site was found in the dump. + +## D1 (UseActiveItem case 0x28 @0x5bd9ca) + +- Room pickups that Entity_Pickup::CanReroll and are not variant 100: one drawn (the player's collectible RNG); a chest + (FUN_006ee330) copies as variant 60 or 50 at even odds; a card (300) of subtype > 0 as ItemPool::GetCard of its card + type (runes, type 4, kept as they are); anything else subtype 0. Spawned at Room::FindFreePickupSpawnPosition beside + it. + +## D infinity (UseActiveItem case 0x35 @0x5bfad0, Entity_Player::pockets_rotate 0x7a42b0) + +- varData >> 16 indexes the die table at 0xb1f450: D1 476, D4 284, D6 105, Eternal D6 609, D7 437, D8 406, D10 285, + D12 386, D20 166, D100 283 (used from outside its slot: a random one, RNG % 10). After UseActiveItem(die) its low 16 + bits = that die's maxCharges, which GetCollectibleMaxCharge (0x7911f0) returns for 0x1e9. +- pockets_rotate (the drop key): after the pockets turn, with D infinity in slot 0 (itemState 0) the index goes + (i + 1) % 10, HUD refreshed; only on wrapping to 0 does SwapActiveItems (Schoolbag) run. + +## Glowing Hourglass (UseActiveItem case 0x21 @0x5bd61f, GetCollectibleMaxCharge 0x7911f0) + +- varData (uses this floor) < 3: Level::EnterDoor + StartRoomTransition(GetPreviousRoomIndex) in its rewind mode; + else TemporaryEffects::AddCollectibleEffect(0x42) (The Hourglass) with the room's time scale and music pitch slide. +- GetCollectibleMaxCharge: 0x1a6 returns 0 while varData < 3 (no charge needed), its items.xml 2 after. + +## Bone Spurs (the NPC death drop beside Entity_Pickup::Update 0x6bbdc0; HandleCollision variant 0xea) + +- RandomCollectibleOwner(0x2ab): unless the death list holds a 3.234 already, 1 bone (2 when maxHP > 8 and the + seed's bit (s ^ s >> 6) >> 9 ^ .. & 1 is 0); each flung at a random angle at 5 (later ones 3-5) plus the corpse's + velocity, from pos + v * .25, Game::Spawn(3, 0xea). Update case 0xea: friction lerped while its loop plays. +- HandleCollision 0xea: an enemy touching pushes both ways (AddVelocity +-10 along player->enemy), state += 3; past 5 + (two touches) it dies. It is in CanBlockProjectiles. + +## Lil Dumpy (FamiliarAI::lil_dumpy 0x6468a0) + +- Follows (pulled (d - 10)/d * .2 toward 10 px from Isaac, speed-multiplier-adjusted friction .8); Idle/IdleFast/ + IdleFaster by distance (40/80). While Isaac can be hurt and it is within 100: QueryRadius(10, 14 in greed) at his + next place; an enemy (types 10..999 or 9 shots, collision damage > 0) whose capsule collides -> Game::ButterBeanFart( + Isaac, 120, ...), fart effect 1000.34, velocity 20 away from the threat, state 1, cooldown 45; asleep until the + cooldown is over and Isaac is within 50. Collision damage = clamp((speed - 10) / 30, 0, 1)^2 * 25 * tear modifiers. + +## Mystery Egg (FamiliarAI::mystery_egg 0x638170) + +- On the Spawn/"Crack" event: tier by _roomClearCount (<1, <4, <7, <10, <13, else) and a table of entity types + (0xb6475c 7, 0xb64724 14, 0xb64698 35, 0xb645e0 32, 0xb645b0 12, 0xb64778 6), RNG::RandomInt(drop RNG); SpawnEx + variant 0, AddCharmed(-1: permanent), BFFS -> MakeChampion, max HP and HP x1.5, sound 0xed, BloodExplode, roomClear + count 0; hidden once Crack ends. +- Tables: 0: 13 18 217 85 21 231 77 | 1-3: 80 14 214 249 61 256 94 29 11 12 281 244 92 40 | 4-6: 220 246 228 215 206 + 240 255 289 16 22 205 288 54 10 284 226 26 248 229 208 211 15 23 32 89 27 53 38 24 279 280 58 243 305 234 | 7-9: 238 + 251 253 25 278 227 221 252 57 59 55 56 259 258 257 254 41 216 210 224 219 86 90 300 283 286 35 34 304 303 301 242 | + 10-12: 87 88 230 204 60 276 213 225 282 209 277 91 | 13+: 285 237 223 306 241 39. + +## The Swarm (Entity_Player::AddSwarmFlyOrbital 0x759bf0, TriggerRoomClear 0x7a8fd0) + +- AddSwarmFlyOrbital: the player's 3.229 familiars queued, the oldest removed while more than 15, then + Game::Spawn(3, 0xe5). TriggerRoomClear adds one with 0x2b5; update_effects adds one every IsFrame(n) in greed mode. + +## Samson's Chains (Entity_Familiar::ai_samsons_chains 0x62e120) + +- Pull toward the player: unit * (max(0, (d - 70) * .1) + max(0, (d - 100) * 1.6)) (x only in room type 0x10), + velocity * .8836; other familiars within 20 push it (20 - d) * .1; past 120 it is put 120 from the player when that + cell's GetGridCollision is 0, else its speed capped at 5. In CanBlockProjectiles; entities2 5 damage, interval 14. + +## Jaw Bone (ai_charger, variant 0x82) + +- Thrown at 10 (Throw anim); flying it attaches the first pickup (variants 10, 20, 90, 40, 30, 70, 300, 350, 69, 41, + 42 without an owner; a Mom's-box-ish 20.6 coin plays Touched instead) at +0x3c4, dragging it; grid hit, out of room + or carrying -> velocity .5, state -2: velocity = unit(player - pos) * 10 until within 40 (1600 squared): cooldown 30, + the pickup let go (collision class back).