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

3.8 KiB

Items verify 2 (rif/items-verify-2)

Second pass over Rebirth records ported to isaac-classic, read through find.sh active|card|pill|item. Port-side results are in isaac-classic's tools/reference/rebirth/*.json comments. Per-batch files: items_verify_2_<batch>.md.

coin trinkets (Entity_Pickup::HandleCollision 0x6e8ae0, asm 0x6ea820..)

  • Before the checks: local_cc = pow(0.75, worth) (asm 0x6ea843, worth = local_a8 the coin's value), local_fc = pow(0.5, worth). One RandomFloat a coin (not a penny of its worth) per trinket, each on its own GetTrinketRNG.
  • Burnt Penny 0x32 / Flat Penny 0x33 / Bloody Penny 0x31: rand >= 0.75^worth - (mult - 1) * 0.25: Spawn 5.40.1 bomb / 5.30.1 key / 5.10.2 half red heart at a free spot within 40; Bloody Penny with Daemon's Tail (0x16): RandomInt(5) != 0 skips it. Counterfeit Penny 0x34: rand >= 0.5^worth: AddCoins(mult).
  • Blessed Penny 0x83: rand <= table[worth] (1: .17, 2: .30, 5: .60, 10: .83, other: the penny's; x2 .25/.40/.70/.90, x3 .30/.50/.75/1.0): Spawn 5.10.8 half soul heart. Charged Penny 0x93: rand >= 0.75^worth: AddActiveCharge(mult: 1, 2 at x2, 3 at x3, 1 at x4+) into slot 0..3, the first that takes it.

mega_bean explosion wave (Entity_Effect::Update case 202, asm 0x5fa30d..0x5fb47c)

  • Init (+0x450 == 0): +0x454 = distance to the farthest room corner, +0x458 = that + 200 (0xbaaa94); shockwaves, bloom, screen shake, a 1000.151 effect.
  • Each update (Entity::GetIntervalTicks(2.0) gate for the visuals): radius +0x478 = min(+0x478 + clamp(+0x458 / 3, 30, 100), +0x458); every room entity (not its spawner) with DistanceSquared <= radius^2, IsEnemy, not flag 0x20000000, once (hit list +0x4a8): TakeDamage(collision damage 100, 0x1000004), AddFreeze(-50), AddPoison(90, 5).
  • UseActiveItem case 0x15f 0x5bc20b: Fart(pos, 160, Isaac, scale 2.0, 0, color), ButterBeanFart(pos, 200, Isaac, 0, 0), Spawn 1000.202 at Isaac + SetTargetPosition(Isaac). Book of Virtues (0x248): wisp.

Game::ButterBeanFart 0x704360

  • Gigante Bean (0x86): radius x2, force x2 (> 1.8: sounds 0x25 x2 and shake 3, vulnerable enemies of a player fart take 10). QueryRadius; skips the source and entities with mass 0 or flag 0x4000000. Enemy shots (9) of a player/familiar fart: Entity_Projectile::Reflect(dir * |vel| / dist); tears (2): Deflect. Others: push = min(7, radius + size - dist) * 2 (x1.5 at Gigante x2, confusion 90 at x3), scaled by mass (> 20 x0.5, > 30 x0.2, > 50 x0.015; the decompiler's nesting garbles the order), velocity = dir * push * force + velocity * 0.5. param_5: AddKnockback with impact damage (Butter Bean).

tear_detonator Book of Belial branch (UseActiveItem case 0x17f 0x5bc5af)

  • local_5d9 = HasCollectible(0x3b) (the Book of Belial passive): x1.4 speed multiplier, tear variant changed, two flags or-ed in, collision damage + 5, scale + 0.5. Each new tear SetTargetPosition(old tear's position).

false_phd (UsePill 0x7c4180 tail; EvaluateItems 0x763570 ~line 1051)

  • UsePill tail with False PHD: cache flag 1 (damage) always; effects 0x19, 1, 0x1b, 0x16, 0x1d, 0x1f, 0x25, 0x2a (Amnesia, Bad Trip, R U A Wizard, Paralysis, Addicted, ???, Retro Vision, I'm Excited): Spawn 5.10.6 black heart at a free spot within 40 (pickup RNG). Then last pill colour +0x1738 = colour unless it is 14 (gold).
  • EvaluateItems: damage-up accumulator += 0.6 * (uses of effects 0x2f, 0x11, 0xf, 0xd, 0xb, 6: the stat-down pills, FUN_0042c810(effect) reads the per-effect use count).

tarot_cloth (UseCard 0x7b2230 preamble)

  • HasCollectible(0x1c3) and card config +0x58 (type) 0 or 5 (tarot, reversed tarot): boost flag (uStack_2a2.1_1) set; with use flag 4 and not 0x20, UseCard(card, 0x20) first (a second use). Cases with a boosted take read the flag and return at once under 0x20 (Temperance? 0x46: 10 null effects 69 instead of 5).