Files
isaac-port/notes/items/items_verify.md
T

110 lines
7.0 KiB
Markdown

# Items verify (rif/items-verify): records once marked "not decompile-verified"
Read through `find.sh active|card|pill` (use_dispatch.tsv). Port-side results are in isaac-classic's
tools/reference/rebirth/*.json comments.
## magic_fingers (UseActiveItem case 0x127, 0x5b9eba)
- Variant 0 and coins > 0: AddCoins(-1), shake; every vulnerable enemy takes `2 * damage + 10` (the +10 is 0 when
Game+0x26614 > 1, FUN_00429550, unidentified counter).
## diplopia / crooked_penny / jera (UseActiveItem 0x15b 0x5bbb61, 0x1e5 0x5bf22e; UseCard 0x21 0x7b4033)
- Entity_Pickup::CanReroll 0x6ee200 = not dead, CanRerollVariant (not 380 bed, 370 trophy, 340 big chest, 41, 390,
collectible 668 Dad's Note, challenge/seed cases), and a chest only with subtype != 0 (closed).
CanJeraDuplicate 0x6ee3f0 = CanReroll and not variant 100, not 350 (trinkets), not card 300.33 (Jera).
- Jera: each CanJeraDuplicate pickup -> Spawn(5, variant, FindFreePickupSpawnPosition(pos, 40), subtype). Wares are
not skipped.
- Diplopia: pedestals with subtype not 0 and not 347, plus CanJeraDuplicate pickups; copies at a free spot within 40,
SetForceBlind and the alternate pedestal copied; an options group gets a new shared index for its copies.
- Crooked Penny: RandomInt(2) on the decoration-seeded RNG. 0: copies every CanReroll pickup except opened chests and
empty pedestals (trinkets too). 1: removes them all (pickups on grid type 28 fixed up) and spawns 5.20.1.
## pause (UseActiveItem 0x1de, 0x5c0971)
- Room::SetPauseTimer(900), the item's room effect, player +0x2ed2 = 240.
## spindown_dice (UseActiveItem 0x2d3, 0x5c6b85)
- ResetRoomBlacklist; each pedestal with subtype != 0 (options index 0 or timeout < 0) and CanReroll: id - 1 until
ItemConfig has it and Item::IsAvailable; below 1 Entity_Pickup::empty_pedestal 0x6ed580; Morph, poof 1000.15.
## teleport_2 (UseActiveItem 0x1a3, 0x5bd5b4; Level::GetNonCompleteRoomIndex 0x740a60)
- Level rooms at Level+0x14, 0xb8 each (Flags at +0x44, so +0x58 from Level): the first room of the current dimension
without FLAG_CLEAR whose RoomConfig type is 1 (normal) returns at once; else the first such room of any type in list
order. None: -1 (Devil/Angel Room, InitializeDevilAngelRoom first) unless room 507's (the devil room's) clear flag is
set and IsNextStageAvailable, then -2 (I AM ERROR).
## glass_cannon (UseActiveItem 0x160 = SetItemState; update_shooting 0x77b020 state 0x160; TakeDamage 0x7729d0)
- Shot: velocity = (aim * 10 + movement inheritance) * shotspeed, FireTear, scale x5, collision damage 10 + 10 x,
tear flags 1 | 2 (spectral, piercing), sound 0x1e2, Isaac pushed by -0.5 x aim.
- Break (a counted hit with 0x160 in a slot): becomes 0x1da, effect 1000.97, particles, TemporaryEffect 214 (Anemic;
300 ticks when Game+0x26614 > 1), Belial passive null 0x7b, then TakeDamage(2.0, 0x2002801 = NOKILL | ISAAC_HEART |
INVINCIBLE | NO_PENALTIES): one more full heart, never lethal.
## tear_detonator (UseActiveItem 0x17f, 0x5bc5af)
- Every alive tear (type 2, familiars' too) removed; 6 FireTears from its place at 60-degree steps from
`rand * 360 - 180`, speed 10 x shot speed, SetTargetPosition(old tear); with an extra collectible (implicit arg)
x1.4 and +5 damage, variant/flags changed.
## moms_shovel / we_need_to_go_deeper (shared case 0x5b83e0)
- First a dirt patch (effect 1000.116) at Isaac's grid index: removed, Spawn 5.{50, 60, 360}[RandomInt(3)] (table
0xb62fd0), random velocity x4, sounds 0x394/0x395. Mom's Shovel without the Forgotten unlock: special branch (his
body). WNTGD digs it too. Else the trapdoor.
## abyss (UseActiveItem 0x2c2, `case 99:` in the dump, 0x5c3df7)
- A queued (held-up) collectible without quest tags -> Isaac::SpawnLocust, ClearQueueItem; then each pickup: CanReroll,
not a shop item, variant 100 subtype != 0, timeout < 1 -> SpawnLocust(subtype) at it, Remove, RemoveOtherOptions;
co-op hands the last eaten item to another player; boss challenge rooms (grid variant 0xb / 0x11) start the ambush.
## aces (UseCard 0x1b-0x1e, 0x7b25a3)
- Pickups: CanReroll, price 0, variant != 100. Enemies: type 10..999, IsActiveEnemy, Entity_NPC::CanReroll 0x6d4db0
(no config flag 0x10, not a boss, not config +0x2c). Each: poof 1000.15 (enemies), Remove, Spawn(5, table 0xb6bbd8
[card id] = 40/20/30/10, subtype 0) at its place (free spot if on a grid); keeps the old pickup's +0x528.
## ansuz (UseCard 0x24) / blue_map / the_mind (level_start 0x7a4ba0)
- Level::ShowMap 0x7489c0: every room but types 8 and 29 gets display flags |5. ApplyBlueMapEffect 0x7488d0: types 7
and 8 get |4. The Mind: ApplyMapEffect + ApplyBlueMapEffect + ApplyCompassEffect(1).
## temperance_reversed (UseCard 0x46; Entity_Player::update_effects 0x794e50)
- 5 (10 with Tarot Cloth) null effects 69. Each update while one is held, no pill pending (player `_montezumaChargeTimer`
< 0, the name is wrong: it holds the pending pill colour) and CanPickupItem: one removed, ItemPool::GetPill, the
colour stored, AnimatePill(colour, "UseItem"); once controls are on and the lift is over: UsePill(GetPillEffect),
timer -1.
## soul_of_magdalene (UseCard 0x52)
- AddNullEffect(114). The only `push 0x72; call GetNullEffect` in the exe is update_effects 0x79a2ae: a 1000.111
sparkle at Isaac every 2 ticks (GetIntervalTicks 2.0, random < 1.6). The heart drops' reader was not found.
## paralysis / vurp (UsePill 0x16 0x7c5fe0, 0x2e 0x7c74ab)
- Paralysis: `_controlsCooldown` = 120 (horse 240), counted down in Entity_Player::Update (60 Hz): 2 s / 4 s.
- Vurp!: Spawn 5.70 subtype = player +0x1738 (last pill colour) or this one, |0x800 when horse, free spot within 40.
## passives and trinkets
- Pyromaniac (TakeDamage): flag 2 (fire) returns 0; flag 4 (explosion) returns 0 and below max red heals 1 half heart
with effect 1000.49.
- Immaculate Conception (AddImmaculateConceptionCounter 0x7c8050): +1 a heart pickup (co-op: threshold 60, +8 x n), at
15 a random unset bit of 0x40..0x400 at player +0x1938 (rng % 5, then the next), cache 0x200, soul heart 5.10.3.
- Candy Heart / Soul Locket (Entity_Pickup::HandleCollision 0x6e8ae0, EvaluateItems): one of six counters (rng % 6) per
half red heart healed (+0x1db0..) / half soul or black heart gained (+0x1dbc..); EvaluateItems adds 0.1 / 0.2 stat-up
units a count to the damage, tears, range, shot speed, speed and luck accumulators.
- Orphan Socks: EvaluateItems +0.3 speed a copy; GridEntity::hurt_func spike immunity as Callus (trinket 14).
- Maggy's Bow: HandleCollision doubles a red heart's heal.
- Fire Mind: EvaluateItems tear flag 1<<22 (TEAR_BURN) and tint; the explosion roll not traced.
- Broken Magnet (update_magnet_attraction 0x6ed690): with Magneto, Super Magnet or it; below multiplier 2 coins only.
- Blessed Penny (HandleCollision): one RandomFloat a coin vs worth 1: 0.17, 2: 0.30, 5: 0.60, 10: 0.83, other 0.17
(x2 0.25/0.4/0.7/0.9, x3 0.3/0.5/0.75/1.0): half soul heart 5.10.8.
- Endless Nameless (Entity_Player::pocket_use_input 0x7a3d30, asm 0x7a41a7): kind 0 pill / 1 card used,
RandomFloat < 0.25 (x2 0.33, x3 0.5): Spawn 5.70 / 5.300 same id at a free spot within 40.