From 8338bf7663f7783ac13a7f5f1d4a02de8843585b Mon Sep 17 00:00:00 2001 From: shweet Date: Sun, 25 Oct 2026 15:35:49 -0400 Subject: [PATCH] notes: items verify 2 passives_rif_a (tear procs, hurt items, update_effects, contact damage, familiars) --- notes/items/items_verify_2_passives_rif_a.md | 71 ++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 notes/items/items_verify_2_passives_rif_a.md diff --git a/notes/items/items_verify_2_passives_rif_a.md b/notes/items/items_verify_2_passives_rif_a.md new file mode 100644 index 0000000..23bf760 --- /dev/null +++ b/notes/items/items_verify_2_passives_rif_a.md @@ -0,0 +1,71 @@ +# Items verify 2, batch passives_rif_a (Rebirth passives/familiars 200-418) + +Read for rif/iv2-passives_rif_a. FUN_00429550 after Game::GetField26614 is the Greed-mode test (Game+0x26614 > 1): +every "Greed:" value below is its branch. + +## GetTearHitParams 0x7bf6c0 tear procs (chance, tint) + +- Mom's Eyeshadow 200 / Iron Bar 0xc9: 1 in max(1, 10 - int(luck * 0.334)); charm tint (1, 0, 1) offset (0.196, 0, 0); + concussion tint 0.5 grey. +- Ball of Tar 0xe7: 1 in max(1, 10 - int(luck * 0.5)), slow tint 0.15 grey. Common Cold 0x67: 1 in max(1, 4 - + int(luck * 0.25)), tint (0.4, 0.97, 0.5). +- Mom's Perfume 0xe4 / Abaddon 0xe6: rand % max(1, 100 - luck) < 15 fear; Perfume tint (1, 1, 0.455) offset (0.169, + 0.145, 0), Abaddon 0.392 grey. +- Dark Matter 0x103: fear 1 in max(1, 3 - int(luck * 0.1)). Holy Light 0x176: 1 in max(2, 10 - int(luck * 0.9)). + Serpent's Kiss 0x189: Random() % 100 < 15 poison. Explosivo 0x191: (Random() & 3) == 0, variant 19. +- God's Flesh 0x18e: Random() % 5 == 0 (no luck), variant 16, tint (0.6, 0.7, 1). Scorpio 0x131: tint (0.196, 1, + 0.196) only (its flag is EvaluateItems'). Death's Touch 0xed: variant 8. Lost Contact 0xd5: variant 10. + +## Entity_Player::TakeDamage 0x7729d0 hurt items + +- Fanny Pack 0xcc: Random(2) != 0, Random(4) kind via jump table 0x7791b0 (0 heart, Daemon's Tail 1 in 5). +- Old Bandage 0xdb: RandomFloat <= 0.2 (Greed 0.1) + 0.01 luck: red heart. Gimpy 0xe1: RandomFloat <= 0.08 + 0.02 luck: + soul heart. Both skipped 4 in 5 under Daemon's Tail (0x16). +- Piggy Bank 0xe3: RandomInt(2) + 1 pennies (coin health: RandomInt(2)), RandomVector * 2. Spiderbaby 0xd3: + RandomInt(4) + 2 spiders (Greed RandomInt(2) + 1). Best Bud 0x112, Cancer (effect 0x6c Wafer) for the room. +- Virgo 0x12f: RandomInt(max(1, 4 - int(luck * 0.3))) == 0 (Greed: 10% under 4 luck, 20% at 4-6, 35% at 7-9, 50% from 10) -> + Book of Shadows 0x3a effect (items.xml cooldown 300). +- Polaroid 0x147 / Negative 0x148: red hearts at or below the line (nullsub_7dd380): Book of Shadows 150 ticks / + UseActiveItem(0x23 Necronomicon). +- Curse of the Tower 0x173: source type not 4 (bomb) nor 6 (slot): Anarchist Cookbook's effect (0x41); update_effects + spawns a troll bomb at a random pickup position each 5th tick of it. +- Anemic 0xd6: TemporaryEffect 0xd6 (Greed 300 ticks). Cambion 0x19c: _cambionConceptionState + 1, levels from + FUN_007c9080 (15, 30, 60, 90), GetCambionPregnancyLevel 0x7c90b0. + +## Entity_Player::update_effects 0x794e50 + +- Anemic: while 0xd6 is on, Isaac::Random(5) == 0 an update: Spawn 1000.46 at Isaac, sprite scale 0.2 + rand * 0.5. +- Placenta 0xda: not full hearts, IsFrame(1800) and Random(2) != 0 -> AddHearts(1) (Greed: IsFrame(900), no roll). +- Taurus 299: +0.0022222 a tick while enemies live; at 2.0 the 299 charge effect for 180 ticks. +- Empty Vessel 0x199: red hearts < 1: effect 0x199 + costume; with it, IsFrame(1200) (asm 0x796a41) in an uncleared + room (or Greed): Book of Shadows 300 ticks. + +## Entity_Player::HandleCollision 0x78e1f0 (touching enemies) + +- Contact damage sum: Mom's Heels 0x1e +12, The Virus 0xd +12, Serpent's Kiss 0x189 +12 (Greed 1/2), Taurus charge + +20 (+20 more on an enemy at <= 40 health), Aries 300: velocity length > 4 -> +25 (Greed 10), damage cooldown >= 2, + mass 1000; null effect 0x3b +40. TakeDamage(sum, 0x40, ..., countdown 15). +- Virus / Serpent's Kiss: AddPoison(60 ticks, 2 + 0.05 * x^2, x = the _redHearts field as decompiled). Midas 0xca: + AddMidasFreeze 90 (Greed 45). + +## EvaluateItems 0x763570 size and others + +- Size units: pills (larger - smaller) * 0.322, Leo 0x12e +0.263, Caffeine Pill 0x154 -0.152, null 0x29 (Huge Growth) + +0.678; scale = 2^units below 2, else (units - 2) * 2.77259 + 4. +- Purity 0x197 states 0..3: +4 damage-up, +2 fire rate, +0.5 speed, +120 range. Lusty Blood: min(5, stacks of + effect 0x19b * 0.5) to the damage-up sum (trigger_npc_death 0x7a0080 adds a stack a kill). +- Epiphora: fire rate x (1 + _epiphoraCharge / 180). Libra 0x130: damage * 30 / (delay + 1) etc. through pow_wrapper. +- Room::time_scale_update 0x7ea2d0: Stop Watch owned -> 0.9 (its 0xe8 effect / Hourglass 0x42 -> 0.7). +- Weapon::TriggerTearEffects 0x9f7930: Mom's Wig 0xd9 1 in max(1, 20 - int(2 luck)) a blue spider while <= 4 (9 with + Hive Mind 0xf8). Entity_Projectile::HandleCollision 0x65b670: Infamy 0xf2 blocks when Random(2) == 0 (Greed 4). + +## Familiars (Entity_Familiar::HandleCollision 0x6261f0, TriggerRoomClear 0x62aab0, Update 0x61da10) + +- Dry Baby (variant 51) blocking a shot, cooldown out: Isaac::Random(4) == 0 (25 in Greed) plays its trigger, + cooldown 150; Update case 0x33 uses UseActiveItem(0x23 Necronomicon) when that animation ends. Farting Baby (95): + Random() % 5 == 0, cooldown 210. Sworn Protector (83): blocks counted in _coins, the 10th spawns a heart (not Greed). +- TriggerRoomClear drop rule: p per clear, a drop when floor((clears + 1) * p) > floor(clears * p) (x0.75 for player + type 36). Mystery Sack (57): p 0.18 (BFFS 0.22), RandomInt(4) heart (subtype RandomInt(6) + 1) / coin / bomb / key. + Rune Bag (91): p 0.125 (BFFS 0.166), a rune from ItemPool::GetCardEx(seed, 0, -1, 0, 1): every 8th clear. +- Lil Chest (82): one RandomFloat r (x0.8 with BFFS): r < 0.1 trinket 350; r < 0.35 RandomInt(7) of 10, 20, 30, 40, + 90, 300, 70 (subtype 0); else nothing.