Duality notes: Room::TrySpawnDevilRoomDoor 0x7f83b0 opens a devil (14) and an angel (15) door at the first two of the boss room's shuffled free slots (descriptor seed +0x58, RandomInt(8) start, Rosary Bead swapping them) without making the deal room (roomList[0x1fb].Data null, no flags, _devilAngelRoomRNG not advanced); Room::update_door_transitions 0x7f01c0 makes it on transit as InitializeDevilAngelRoom(door type 15, door type != 15) with game flag 1 / 0x20; Level::QueryRoomTypeIndex 0x7484c0 makes it by the plain roll; load_room 0x73e0a0 re-runs the spawn on revisits

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-30 14:29:46 -04:00
1 parent c4d6807c01
commit 755cbcf9ab
2 files changed
+58 -3

No files matched your search

+2 -3
View File
@@ -47,9 +47,8 @@ period instead.)
RNG(pickup init seed, 3,5,25) redraws `RoomClear_PickVariant(rng, force 1)` up to 10 times until a variant other than
the first's; spawns it 15 px from the first at a random angle (the first moves 15 px the other way); a spiked/mimic/
haunted chest (52/54/57) on a cell that can't hold an obstacle becomes 5.50.1; both share `AssignOptionsIndex`.
- Duality (498 / 0x1f2): `Room::TrySpawnDevilRoomDoor 0x7f83b0`: with an owner and no second deal room yet
(roomList[0x1fb].Data null), a second door: shuffles the room's free door slots (RNG desc +0x58, shifts 2,5,21), ...
(read on from 0x7f83b0); also `FUN_0084c170` (stat HUD). Needs both deal rooms on one floor.
- Duality (498 / 0x1f2): `Room::TrySpawnDevilRoomDoor 0x7f83b0`: two deal doors, the room made by the one taken
(`Room::update_door_transitions 0x7f01c0`); read in full in notes/items/parity_duality.md.
- A Pound of Flesh (672 / 0x2a0): `Room::GetShopItemPrice 0x8151e0`: a shop's (and the Greed shop's) wares cost -5
(PRICE_SPIKES) unless Keeper pricing; collectibles cost -devilprice; outside shops (devil rooms) the deal costs 15
coins (30 at devilprice 2), others 5. `Entity_Player::update_effects 0x794e50`: blood drip gore (case 6).