notes: rooms parity cluster: Restock's TriggerRestock 0x815800 / ShopRestockPartial 0x8158a0 queue, 30-tick timer and ResolveHeartSubType 0x816250 markup (max(1, price / 7) x n(n+1)/2, cap 99); Lost Cork's Lil Spewer tables (0xb64588 x1/1.25/1.5, 0xb64574 spacing); Death's List, Options?, Duality, Pound of Flesh, Sanguine Bond, Luna, Filigree Feather, Blue/Strange Key, Adoption Papers sites; names 0x814980 Room::shop_ware_roll
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6d1c269859
commit
bbbd66eb6d
2 files changed
+79
No files matched your search
@@ -0,0 +1,78 @@
|
||||
# Parity sweep: rooms cluster (floors, shops, deals, room clears, creep)
|
||||
|
||||
Repentance+ 1.9.7.17. Item tests found with a multi-line search (find.sh item misses `FirstCollectibleOwner` calls that
|
||||
wrap onto a second line): every `Collectible*`/`Trinket*` call within three lines of the id.
|
||||
|
||||
## Restock (COLLECTIBLE_RESTOCK 376 / 0x178): done in isaac-classic
|
||||
|
||||
- Buying in a shop (room type 2) with Restock held (or in Greed/Greedier, difficulty 2/3) calls
|
||||
`Room::TriggerRestock 0x815800(grid index of the ware, its shop item id)`: from `Entity_Pickup::HandleCollision
|
||||
0x6e8ae0` (a collectible ware: the bought pedestal moves to FindFreePickupSpawnPosition(radius 10), wait 20) and from
|
||||
the tail of `Entity_Pickup::CollectTrinket 0x6e84d0` (every other ware, `variant != 100`).
|
||||
- TriggerRestock queues (grid, shop id) on Room `_shopItemDeque` and sets `_shopRestockTimer = 30`. `Room::Update
|
||||
0x802980` counts it down once per update (30 Hz); at 0 (or on leaving the room: `Room::on_leave 0x7efa50`) it runs
|
||||
`Room::ShopRestockPartial 0x8158a0`.
|
||||
- ShopRestockPartial (shop rooms only): for each queued ware: `++descriptor[0xa4 + shop id]` (a byte per slot, 0xff
|
||||
= never), destroys a grid entity on the cell, spawns 5.150 (shop item) at the cell with `_spawnGridIndex` = cell and
|
||||
a 1000.15 poof. The new ware takes the queued shop id (`FUN_00814980` reads the deque front), so the slot's kind
|
||||
(`descriptor + 0x94 + id * 2`) and its sale (`descriptor + 0xae`) carry over.
|
||||
- Price: `_Room::ResolveHeartSubType 0x816250`, outside Greed, a coin price p (after Adoption Papers, before sale) of a
|
||||
slot restocked n times: `min(99, saleprice + max(1, p / 7) * n * (n + 1) / 2)`.
|
||||
- Counts reset only in `Room::init_shop_item_slots 0x813d90` (the 8 bytes at +0xa4); ShopRestockFull 0x815ae0 keeps them.
|
||||
- Minimap: `Minimap::render_icons 0x98e170` shows icon frame 4 while held (the port's map_icon 4).
|
||||
|
||||
## Lost Cork (TRINKET_LOST_CORK 106 / 0x6a): done in isaac-classic
|
||||
|
||||
Only `FamiliarAI::lil_spewer 0x6384a0` reads it (and the debug giver 0x42db40). By creep kind k (familiar state 0..4):
|
||||
scale `0xb6452c[k]` = {0.8, 0.8, 0.85, 0.8, 0.27}, spacing `0xb64518[k]` = {20, 20, 20, 20, 21}; with the trinket,
|
||||
scale += `0xb64588[k]` = {0.3, 0.3, 0.3, 0.3, 0.2} times 1 / 1.25 / 1.5 at multiplier 1 / 2 / 3 (none past 3), and at
|
||||
any multiplier spacing += `0xb64574[k]` = {0, 0, 0, 0, 16}. (BFFS! 0xf7 adds `0xb64504` / `0xb6459c` to count and
|
||||
period instead.)
|
||||
|
||||
## Not ported yet (findings, by item)
|
||||
|
||||
- Death's List (530 / 0x212): `Room::update_deaths_list 0x8020d0` each Room::Update: no owner -> room flag +0x1bbc
|
||||
(done) = 1. Not done and nothing marked: the first update-list entity that `IsVulnerableEnemy`, not friendly (flags
|
||||
0x20000000), not flags-high 0x400, not type 802, and (when `DoesEntityShareStatus`) its own root parent, is marked
|
||||
(+0x1bb8) and gets effect 1000.109 (Death Skull) targeting it. `Entity_Player::trigger_npc_death 0x7a0080`: with a
|
||||
mark, a non-friendly death that isn't the mark sets done; the mark clears; not done -> reward place (+0x1bc0) = the
|
||||
dead mark's position. Room cleared (descriptor +0x44 bit 0) and not done: per main player holding it, RNG(room
|
||||
seed +0x60, shifts 1,27,27): `(Next & 3) == 0` -> `Entity_Player::add_random_stat_up 0x7c3980` (one of speed, tears,
|
||||
damage, range, shot speed, luck modifiers +1), else 5.`0xb6c9c0[Next % 5]` = {70 pill, 30 key, 20 coin (subtype 2),
|
||||
40 bomb, 10 heart (subtype 3)} at the reward place (or FindFreePickupSpawnPosition(player, 40) when unset); then
|
||||
done. Room::Init 0x7f2800 sets done when the room is already clear. Blocker: the skull's own behaviour is in
|
||||
Entity_Effect::Update 0x5d4380 (no decompile; needs the asm of its case 0x6d).
|
||||
- Options? (670 / 0x29e): `RoomClear_PickVariant 0x7fa920`: roll < 0.06 -> 1 - roll / 0.06 * 0.78.
|
||||
`Room::SpawnClearAward 0x7fb250` (and Old Capacitor's battery) call `Room::spawn_options_alternative 0x8276e0`:
|
||||
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.
|
||||
- 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).
|
||||
- Sanguine Bond (692 / 0x2b4): `Room::Init 0x7f2800` on a devil room's first visit -> `Room::spawn_sanguine_bond_spikes
|
||||
0x827bf0`; `GridEntity::hurt_func 0x709fb0` (its payout as a TemporaryEffect), `GridEntity_Spikes::is_disabled
|
||||
0x71e920`, EvaluateItems 0x763570 (effect count).
|
||||
- Luna (589 / 0x24d): `Level::place_special_rooms 0x739370` places one more secret room (1 -> 2) and one more at the
|
||||
second site; `Entity_Player::level_start 0x7a4ba0` reveals a secret room (`Level::reveal_secret_room`); `Room::Init`
|
||||
in a secret / super secret room (7/8) on first visit spawns 1000.39 subtype 1 at the centre (its touch is in
|
||||
Entity_Effect::Update: asm only).
|
||||
- Star of Bethlehem (651) / Vanishing Twin (697): familiars; `EvaluateItems 0x763570` counts them (+ temporary effects;
|
||||
Vanishing Twin also `Entity_NPC::compute_speed_multiplier 0x6b99e0` via the room's TemporaryEffects).
|
||||
- Guppy's Eye (665 / 0x299): `Entity_Pickup::UpdateLootPreview 0x6e17c0` and `Entity_NPC::UpdatePickupGhosts 0x6da530`
|
||||
(chest / sack contents shown as ghosts); costume double-count in AddCostume / RemoveCollectible.
|
||||
- Death Certificate (628): UseActiveItem case 0x5c3433 (dimension 2, DIMENSION_DEATH_CERTIFICATE); not read.
|
||||
- Filigree Feather (TRINKET_FILIGREE_FEATHERS 123 / 0x7b): `Room::TriggerBossDeath 0x7fec00`: Uriel (0x10f) drops key
|
||||
piece 1 (0xee) when nobody has it or one on the floor and (no feather or key piece 2 held); Gabriel (0x110) likewise
|
||||
key piece 2 (0xef). Otherwise with the feather: an angel pool (4) item, multiplier 2 also 5.10.8, 3 also 5.10.3,
|
||||
each at its own free spot.
|
||||
- Blue Key (150 / 0x96): `GridEntity_Door::TryUnlock 0x710480`; `Room::SpawnClearAward`: in room index -16 the award
|
||||
count is multiplied by its trinket multiplier.
|
||||
- Strange Key (175 / 0xaf): `Room::TrySpawnBlueWombDoor 0x820170` ignores the time limit; UseActiveItem (Pandora's
|
||||
Box): consumed for 6 / 8 / 10 (multiplier 1 / 2 / 3) pool items; `Entity_Pickup::HandleCollision`: chests on stage 9.
|
||||
- Adoption Papers (184 / 0xb8): `pickup_roll_random_variant 0x814a50`: in shops (room type 2 / 0x16) a slot of kind 8
|
||||
or 0x11 becomes 0x12 (ItemPool 0x1c, babyShop); multiplier 3 (with achievement 0x275) turns the first special slot
|
||||
into 0x15 (card 92). `_Room::ResolveHeartSubType 0x816250`: a 0x12 slot costs price * 2 / 3, or 6 at multiplier 2+.
|
||||
Reference in new issue
Block a user