Merge items/rooms2 parity notes

# Conflicts:
#	db/names.tsv
This commit is contained in:
shweet committed 2026-10-30 15:09:17 -04:00
commit f4c8907ac0
2 files changed
+88 -1

No files matched your search

+86
View File
@@ -0,0 +1,86 @@
# Parity sweep: rooms cluster, part 2
Repentance+ 1.9.7.17. Follows parity_rooms.md (its findings are not repeated). Ported to isaac-classic where marked.
## Options? (COLLECTIBLE_OPTIONS 670 / 0x29e): ported
- `RoomClear_PickVariant 0x7fa920(rng, isForcePickup)`: roll = RandomFloat; Lucky Foot (0x2e) `* 0.9 + 0.1`; + RandomFloat
* clamp(total luck, 0, 10) * 0.1; Lucky Toe (0x2a) `* 0.9 + 0.1` (`* 0.98 + 0.02` with Lucky Foot and luck > 0); then
Options? held and roll < 0.06: `roll = 1 - clamp(roll / 0.06) * 0.78`; then isForcePickup and roll <= 0.22:
`roll = clamp(roll / 0.22) * 0.7799 + 0.2201`. Thresholds after: < .3 card/pill/trinket band, < .45 coin, < .6 heart,
< .8 key, < .95 bomb, else chest. Guppy's Tail (0x86) at the end: 1/3 a chest (50 / 60), else (not forced) 1/3 nothing.
- `Room::SpawnClearAward 0x7fb250`: after each award pickup spawned, Options? held -> `Room::spawn_options_alternative
0x8276e0(pickup)` (also after Old Capacitor's battery).
- `spawn_options_alternative`: RNG(pickup init seed, 3, 5, 25); up to 10 draws of RoomClear_PickVariant(rng, 1) until
a nonzero variant other than the pickup's (the 10th kept even if equal; 0 -> none); angle RandomFloat * 3.14 * 2;
the new pickup 15 px from the first along it, the first moved 15 px the other way; a 52 / 54 / 57 chest on a cell that
can't hold an obstacle (CanSpawnObstacleAtPosition) morphs to 5.50.1; flag 0x100 (high) copied; both share
`Entity_Pickup::AssignOptionsIndex 0x6eed30`.
- `Entity_Pickup::RemoveOtherOptions 0x6ee750`: every other pickup of the same `_optionsPickupIndex` (+0x528, any
variant) gets a 1000.15 at its pos + (0, 10) and is removed (a pedestal: timeout 4); called from
`Entity_Pickup::Update 0x6e3940` when a chest opens (TryOpenChest) and `HandleCollision 0x6e8ae0` when taken.
## Adoption Papers (TRINKET_ADOPTION_PAPERS 184 / 0xb8): ported (Soul of Lilith slot waits on achievements)
- `pickup_roll_random_variant 0x814a50`: owner in a shop (room 2 / 0x16): slot kind 8 or 0x11 -> 0x12 for good
(GetCollectible(0x1c, babyShop)). Multiplier > 2 with achievement 0x275: the first slot of category 4 (kind 0x15), else
the first consumable (kinds 2, 6), bomb (1), key (3), heart (0) slot becomes 0x15 = card 92 (Soul of Lilith). Category
table `0x81516c` = {0,1,2,3,5,5,2,5, 5 x 12, 5, 4} by kind 0..0x15.
- `_Room::ResolveHeartSubType 0x816250`: a 0x12 slot with an owner: price * 2 / 3 (multiplier < 2), else 6; before the
sale and the restock markup (which use it as the full price).
## Filigree Feather (TRINKET_FILIGREE_FEATHERS 123 / 0x7b) and the key pieces: ported
- `Room::TriggerBossDeath 0x7fec00`, type 0x10f (Uriel) or 0x110 (Gabriel), any variant, in room type 15 / 13 / 8
(angel, sacrifice, super secret), only when Room +0x7300 (the room's killed-NPC list, `Room::record_killed_npc
0x820d30`) has no earlier entry of the type. State flag 0x32 / 0x33 set once (counter +0x2675c). RNG(init seed, 0x1e).
has1/has2 = anyone has 0xee / 0xef; onFloor1/2 = a 5.100.0xee / 0xef in the room.
drop1 = !has1 && !onFloor1 && (!feather || has2); drop2 = !has2 && !onFloor2 && (!feather || has1).
Uriel: drop1 -> 0xee; else [feather: an angel pool (4) item drawn; multiplier 2 -> 5.10.8, 3 -> 5.10.3 at the free spot,
the next free spot taken]; drop2 -> 0xef, else the feather's item. Gabriel the same with the pieces swapped.
## A Pound of Flesh (COLLECTIBLE_A_POUND_OF_FLESH 672 / 0x2a0): ported
- `Room::GetShopItemPrice 0x8151e0`: isKeeperPricing = Keeper / Tainted Keeper, or Keeper's Bargain (0xab) at
multiplier >= 2 or its RandomInt(2) == 0 (RNG seed subtype + variant | desc +0x58 & ~0x7ff, shifts 15,1,29). In a
shop (not devil 14 / angel shop 22 / flag 0x800 / room 5 under level flag 0x20000), with Pound and no Keeper pricing:
wares -5 (PRICE_SPIKES), collectibles -devilprice. In deal rooms, Pound (or Keeper pricing without its exceptions):
15 coins, 30 at devilprice 2; other wares 5.
- `Entity_Pickup::can_player_buy 0x6e83a0`: price -5 -> TakeDamage(2.0, 0x10002080 = SPIKES | INVINCIBLE |
NO_PENALTIES, source, 30); bought only if it lands. (INVINCIBLE only passes the Isaac's Heart / type 0x23 immunity,
`Entity_Player::TakeDamage 0x7729d0`'s 0x2820 mask; damage cooldown still blocks.)
- `Entity_Pickup::update_price_sprite 0x6e2570`: -5 hides the price layers and spawns 1000.174 (Shop Spikes) as its
child; `Entity_Effect::Update` case 0xae (asm 0x5df70e): once the parent is gone (+0x3bc null or dead) state 1 and
Play("Retract").
- HandleCollision counts a devil deal (`_devilRoomDeals`) only in room 14 / flag 0x800 / room 5 + flag 0x20000.
## Sanguine Bond (COLLECTIBLE_SANGUINE_BOND 692 / 0x2b4): ported
- `Room::spawn_sanguine_bond_spikes 0x827bf0(isRoomInit)`: devil room (14) with an owner; cell width * 4 + 7 (width >= 8,
height >= 5); spikes (type 8) variant 100 there already -> nothing; a pit (7): the pits in the 3x3 around and on the
cell are destroyed; spikes (8 / 9) there: path 900, destroyed; placed when `_gridPaths[cell] < 901` (type 8, variant
100, varData 0). Not init (from `Entity_Player::AddCollectible`): every other type 8/9 grid unsummoned, a 1000.15 poof.
`Room::Init 0x7f2800` calls it (init) on a first visit (descriptor +0x40 == 0 sets Room +1).
- `GridEntity::hurt_func 0x709fb0`: pays when room 13 or variant >= 100 (not after descriptor flag 4); variant >= 100:
RandomFloat < .15 six 5.20.1; < .48 AddCollectibleEffect(0x2b4) (EvaluateItems 0x763570: 0.5 a count in the damage
sum; items.xml persistent="true": `TemporaryEffects::ClearEffects 0x9306c0` keeps it through Room::Init); < .58 two
5.10.6; < .63 5.100.0 (room pool); < .65 IncrementPlayerFormCounter(8 Leviathan, 3); else nothing. Each at
FindFreePickupSpawnPosition(spike pos).
## Strange Key (TRINKET_STRANGE_KEY 175 / 0xaf): not ported (see the rooms2 questions)
- `Room::TrySpawnBlueWombDoor 0x820170`: held -> isIgnoreTime (the `_blueWombParTime` test).
- Pandora's Box (UseActiveItem 0x5b39d0, at 0x5ba903): removed; count 6, multiplier 2 -> 8, 3 -> 10; pools 0xbab230 /
0xbab4b0 + {26, 5} = {0, 2, 1, 3, 4, 6, 8, 12, 26, 5}, Greed 0xbab580 / 0xbab5c0 + 26 = {16..20, 6, 8, 21, 26};
forward Fisher-Yates on the Pandora's collectible RNG (`r = i + RandomInt(n - i)`, swap_ints 0x5cbf90); item k from
pools[k] at FindFreePickupSpawnPosition(Isaac, 40).
- HandleCollision 0x6e8ae0: on stage 9 at multiplier >= 2 chests 0x3c / 0x35 / 0x37 open without a key.
## Star of Bethlehem (651 / 0x28b), Vanishing Twin (697 / 0x2b9), Guppy's Eye (665), Blue Key (150): not ported
- Star: CheckFamiliar(0xec, min(n, 1)); `FamiliarAI::star_of_bethlehem 0x64d5f0`, its map walk (formationOffset = map
cell, `_coins` % 13 / 13 and `_hearts` halves as sub-cell), `star_of_bethlehem_get_target_room 0x64d370`,
`Entity_Familiar::update_star_of_bethlehem_speed 0x64d1d0` (0.25 / 0.5 / 1 / 4 / 8 by room-path lengths, 9 rooms
margin), 1000.0x70 aura.
- Twin: CheckFamiliar(0xf2, n + effects); `FamiliarAI::vanishing_twin 0x650610` (see db/names.tsv).
- Blue Key: GridEntity_Door::TryUnlock 0x710480; SpawnClearAward in room -16: count x multiplier.