117 lines
9.4 KiB
Markdown
117 lines
9.4 KiB
Markdown
# Alternate path (Repentance's secret exits, mirror world, mineshaft, Mausoleum), 2026-10-24
|
|
|
|
What the isaac-classic port (rif/mineshaft) read from the exe for the path's quest chain.
|
|
|
|
## secret exit kind (Level::get_secret_exit_kind 0x74bae0, misnamed _RoomDescriptor::GetShapeGridCount)
|
|
|
|
Greed: none. depth = stage (+1 with Curse of the Labyrinth, +1 more on stage type 4/5); an odd stage on the path
|
|
without the Labyrinth has none (Downpour I, Mines I, Mausoleum I). depth 1-2: 1 (Downpour), 3-4: 2 (Mines), 5: 3
|
|
(Mausoleum), 7 on the path: 4 (Mom's Heart, Mausoleum II), else 0 (Depths II: its door is the photo door instead).
|
|
`Level::get_secret_exit_room` 0x74bba0 makes room -10 lazily: kind 4 a boss room of subtype 90 (Mom's Heart in the
|
|
Mausoleum), else a ROOM_SECRET_EXIT (27) of that subtype, from the special rooms.
|
|
|
|
## secret exit door (Room::TrySpawnSecretExit 0x7f7a40, from Room::TriggerClear)
|
|
|
|
On the last boss room (or forced): the first door slot from a seeded random one (descriptor seed: `>>2 ^ <<9 ^ >>15
|
|
& 7`) that the room's shape has and that is free, made a door to -10 (GridEntity_Door::SetRoomTypes). Not in
|
|
challenge 0x2c, not in Mom's Mausoleum boss room (subtype 89) once IsPreAscent, not on stages 1-6 with game state
|
|
flag 0x30 (the Ascent). With an explosion-fed spawn it also scatters dust (1000.59).
|
|
|
|
`GridEntity_Door::get_secret_exit_kind` 0x70d360: the -10 room's subtype for a type 27 target (or current), 4 for a
|
|
boss room of subtype 0x5a (90). SetRoomTypes (0x710fa0): subtype 2 (Mines) or 4 -> variant 3 (cracked: a blast
|
|
opens it), 3 (Mausoleum) -> varData 1 and variant 1, 1 (Downpour) -> variant 1 (a key). LoadSprite (0x70d3f0):
|
|
Door_Downpour.anm2, Door_Mines.anm2 + Door_Mines_Planks.anm2, Door_Mausoleum.anm2 (Door_Mausoleum_Alt.anm2 with
|
|
HasPhotoDoor: its flag 0x40), Door_MomsHeart.anm2 (Disappear inside -10). TryUnlock (0x710480) on the Mausoleum's
|
|
door: the photo door takes a Polaroid/Negative (0x7103c0); else a touch costs 2 half hearts (TakeDamage flags
|
|
0x12002080), blood gibs, and opens at varData 0 (two touches). TryBlowOpen (0x70fb60) on kind 4 needs entity 3.223
|
|
(the Full Knife familiar): particles, Poof_Large1, sounds 0x4d and 0x1c, game state flag 0x34 (0x100000 of the high
|
|
word).
|
|
|
|
## the path (Level::SetNextStage 0x7467c0)
|
|
|
|
Off the path, leaving through the secret exit (game state flag 0x2c, `[0x9953] & 0x1000`) goes to the same stage on
|
|
the path (stage type 4, or 5 when Dross/Ashpit/Gehenna are unlocked and the next stage's seed `& 2` is 0); on it, the
|
|
next stage. On the path a stage's normal trapdoor: an odd stage's to the next stage on the path, an even one's to
|
|
stage + 2 off it (Downpour II -> Caves II: the path's floors count one deeper). Staying on regardless: leaving
|
|
Downpour II (stage 2, or 1 with the Labyrinth) holding Knife Piece 1, or Mines II holding both pieces, from a black
|
|
market (0x16), the secret exit room (0x1b), the error room (3) or room -12; and IsMausoleumHeartStage (stage 6 on
|
|
the path, game state flag 0x2e) -> Corpse. Stage 9 on the path (after Corpse II) is ???.
|
|
|
|
## dimensions
|
|
|
|
`Level::GetRoomByIdx` 0x740bc0: room -100 is the current room in the other dimension (0 <-> 1); -101 from dimension 0
|
|
is room 162 (row 12, column 6) of dimension 1, from dimension 1 the dimension 0 room of subtype 10.
|
|
|
|
Mirror world (`Level::generate_mirror_world` 0x74f0c0, dimension 1): every room of dimension 0 copied with its
|
|
RoomConfig and seeds, but the first treasure room, which draws a treasure room of subtype 0x22 (34: Knife Piece 1)
|
|
for its shape. HasMirrorDimension 0x74ef70: stage 2 (or 1 with the Labyrinth) on the path.
|
|
|
|
Mineshaft (`Level::generate_mineshaft` 0x74f360, dimension 1): eight rooms at fixed places on the 13-wide grid,
|
|
LevelGenerator::CreateRoom(x, y, shape): (6,12) 1x1 subtype 11, (6,10) IIV, (5,8) 2x2, (5,7) 1x1, (5,5) 2x2,
|
|
(7,5) IIH, (9,5) 1x1 (all subtype 30), (9,4) 1x1 subtype 20 (Knife Piece 2), each GetRandomRoomWithFallbackStage
|
|
(stage 29 Mines' rooms, difficulty 0, the doors its CreateRoom made). HasAbandonedMineshaft 0x74efd0: stage 4 (or 3
|
|
with the Labyrinth) on the path. generate_dungeon takes 3 rooms off and asks one dead end more on these floors.
|
|
|
|
Level 0x739370 (the level's special rooms): HasMirrorDimension -> a normal room of subtype 34 as a new end room and
|
|
one normal room replaced by a subtype 1 one (the white fire room); HasAbandonedMineshaft with Knife Piece 1 (0x272)
|
|
-> a normal room of subtype 10 (fallback stage 29) as a new end room and two rooms replaced by subtype 1 ones (the
|
|
rail plate rooms); HasPhotoDoor (stage 6 off the path, unlocked) -> one room replaced by subtype 1 (the marked skull).
|
|
|
|
## quest doors (Room::TrySpawnSpecialQuestDoor 0x8279d0)
|
|
|
|
RoomConfigRoom::ParseXml 0x829af0 / RoomConfig::ReadRoom 0x82aea0: ENTITY_ENVIRONMENT 970.2 on a door's place sets
|
|
that slot in the config's mask at +0x3c (5000.0 sets flag 0x80 at +0x4c). On a mirror floor a normal room of subtype
|
|
34 gets door -100 there, on a mineshaft floor a normal room of subtype 10 or 11 door -101 (subtype 30 rooms carry
|
|
the mark but get none). SetRoomTypes: -100/-101 in dimension 0 are variant 3. The mirror's flag 0x10 (LoadSprite:
|
|
door_downpour_mirror.anm2, Break / Closed) keeps Open() from opening it and TryUnlock from unlocking it; the room's
|
|
door check (`Room::update_door_transitions` 0x7f01c0) passes a 0x10 door while its state is not 2 (whole), others
|
|
while it is 2; walking into -100 starts transition 18 with the other dimension (Game::StartRoomTransition), and
|
|
Level::ChangeRoom enters at the door it left by. GridEntity_Door::Update keeps the mirror's collision class 4 (a wall)
|
|
whole or broken; whether only a ghost reaches it is not settled here. TryBlowOpen on it: state 2, "Break", sound 0x262
|
|
(SOUND_MIRROR_BREAK), level state flag 0x800000 (STATE_MIRROR_BROKEN), Player::DonateLuck(-7) for a player's blast.
|
|
In the mirror world with the mirror broken, Entity_Player's update (0x794e50, asm 0x796033) takes half a heart
|
|
(TakeDamage 1.0, flags 0x10002000) each time null item 116 (mirror death, cooldown 30) runs out.
|
|
|
|
`Room::IsMirrorWorld` 0x827b70: dimension 1 on a mirror floor; Entity_Player's update negates the movement's x there.
|
|
Room::SpawnEntry 0x7ed310: in the mirror world no pickup (type 5) spawns, but in a treasure room of subtype 34; 9000
|
|
(trapdoors) and 999.39 neither.
|
|
|
|
## white fire, Lost Curse (null item 112)
|
|
|
|
Entity_Player::take_damage_impl 0x7729d0: damage from 33.4 (white fire) on a player not the Lost (10, 31, 40, 39) and
|
|
without the curse: `Entity_Player::spawn_ghost_corpse` 0x7d87a0 (an effect 1000.6 playing the player's Death),
|
|
`PlayerManager::add_lost_curse` 0x9be850 (null item 112, count 1, for every player), sound 0x2b. Its count rises to 2
|
|
as a room clears (Entity_Player::TriggerRoomClear 0x7a8fd0); ClearTemporaryEffects (0x7907a0, every room change)
|
|
drops a count-2 curse unless the room entered is in the mirror world. The curse: Lost death anim, Lost-style flight
|
|
and spectral tears (EvaluateItems), free devil deals (Room::GetShopItemPrice).
|
|
|
|
## minecarts (the mineshaft's ride)
|
|
|
|
NpcAI::ENTITY_MINECART 0x4ce8a0 (965): +0x3c0 its rider. Variant 0 breaks (NpcHelper::minecart_break) 3 frames
|
|
without one; variant 10 (the entrance's) holds state 16 at its target point until it runs (state 4): dust clouds
|
|
(1000.59) while V2.x > 0.8, velocity += heading * 1.3 * V2.x, V2.x = V2.x * 1.02 + 0.01 a tick, friction 0.9. Off the
|
|
room it leaves (state 3) with its rider. Room init (0x823f50): an actor beside a cart-start rail gets a cart there
|
|
(Entity::GiveMinecart 0x6b7be0), players only in multiplayer; a 965.10 beside any rail is set on it (speed 0.2).
|
|
RoomTransition::Update carries a riding player's cart (Entity_Player::AttachMinecart 0x7d9180).
|
|
|
|
## knife pieces, Full Knife (Entity_Player::EvaluateItems 0x763570, Entity_Familiar::ai_charger 0x6174c0)
|
|
|
|
EvaluateItems counts each player's Knife Piece 1 (0x272) and 2 (0x273) like Key Piece 1/2 (0xee/0xef -> 3.26/27/28):
|
|
pairs (FUN_007dd3a0, the min of the two, matched across players) move from both pieces' counts to the full one, then
|
|
CheckFamiliar 3.213 (piece 1) and 3.214 (piece 2) with the leftovers and 3.223 (Full Knife, no item config) with the
|
|
pairs. entities2.xml: pieces 3.5 contact damage, Full Knife 25 (collisionInterval 10), radius 13, shadow 10.
|
|
|
|
ai_charger is the shared flung familiar (3.3 Little Chubby, 0x19, 0x3b Big Chubby, 0x68 Jaw Bone, 0x82, 0xdf, 0xe8):
|
|
on fire with state 0x353 < 1 it takes speed 10 (3 for Jaw Bone, 17 for the Full Knife), velocity aim * speed plus the
|
|
player's velocity * 0.6 doubled, at least speed, state -1, FloatShootSide/Up/Down (3, 0x68 and 0xdf only). The Full
|
|
Knife in -1 keeps at least 17 until a grid collision; then each of its grid collision points' cells is checked for a
|
|
door (grid type 0x10) of variant 3 whose get_secret_exit_kind is 4 (Mom's Heart): TryBlowOpen(0, knife) -> state -3,
|
|
moved on by its velocity, and Knife Piece 1 and 2 removed (RemoveCollectible) from its player or their first owner.
|
|
Otherwise it plays HitSide/HitUp/HitDown (38 frames), sound 0xcd (205, goo attach), state -2: velocity toward the
|
|
hit point until the animation ends, then state 30 (the cooldown, counting while it follows). In -3 its alpha falls
|
|
0.1 a frame; at 0 it is removed and every player of variant 0 gets flag 0x200 at +0x1574 (+0x1518 = 1).
|
|
|
|
Dad's Note (668): Entity_Pickup::HandleCollision (0x6e8ae0) saves the rewind state and fades the music on touching it;
|
|
CanRerollVariant keeps it; no literal Spawn(5, 100, .., 0x29c) site was found (Room::SpawnClearAward 0x7fb250's boss
|
|
rewards neither), so where Mom in Mausoleum II drops it is not settled here.
|