Files
isaac-port/notes/characters/characters_8.md
T
2026-10-24 17:53:09 -04:00

8.2 KiB

Characters pass 8 (Tainted ???, Cain, Eve; isaac-classic rif/characters-8)

What the port took from the code. Reprint any function with ./decompile.sh 0xADDR.

tainted_blue_baby (Entity_Player::UsePoopSpell 0x7d7290, player type 25)

  • Spells 0..7 are entity 245 (NpcAI::ENTITY_POOP 0x571280) variants from the table at 0xb6ba00, spawned at Isaac and TryHoldEntity (held overhead); sound 0x25f. Spell 10 (bomb) spawns a bomb 4.9 and holds it too. 8 (liquid) spawns effect 1000.195 (brown creep, timeout 36), 9 fart + Butter Bean fart, 11 diarrhea (null effect + candle shot).
  • Throw: ThrowHeldEntity 0x7d2470 gets (aim*10 + GetTearMovementInheritance)*1.2 from the fire code in 0x77b020; Entity_NPC::TryThrow 0x6d9440 for type 245 sets V1 = (-20, -force(7)), velocity = throw.
  • Flight (ENTITY_POOP, flag 0x4000000): each tick height V1.x += V1.y*speedMult, V1.y += 2 (+0.8 more for variant 11); grid collision 3 above -26 height. Lands when height >= 0 (10 ticks for the default throw): velocity x0.6, sound 0x45 (0x1e7 variant 11), anim State<6-hp>.
  • Holy poop (variant 16): every 3 frames each player within size+70 gets _hallowedGroundCountdown (0x1d90, zhl 0x1d7c) = min(old+4, 4). While > 0: fire rate x2.5 and damage x1.2 (EvaluateItems), homing flag and tear colour as Sacred Heart (same branches as items 182/3/331), and take_damage_impl 0x7729d0 blocks the hit on RandomInt(2)==0 with _damageCooldown = damage_cooldown_scale(8) and a colour flash.
  • Corny (12): every 60 frames one blue fly orbiting it, up to 3 (deque at 0xbf4). Burning (14) spawns fire 1000.141 on interval. Stone/stinky/black handled in the same routine (black 15 spawns creep 1000.45 on interval).
  • Pickups: Pickup_PickVariant 0x6ddcd0 and Entity_Pickup::Init 0x6e02f0 turn every bomb pickup (variant 40) except subtypes 3, 5, 6 (troll kinds) into 5.42.1 (big poop nugget) while all players are T??? (0x9be670). HandleCollision 0x6e8ae0: variant 42 adds poop mana 1 (subtype 0) or 3 (subtype 1). Small nuggets only spill from his death (0x782af0, up to 18). No poop drops from enemies or from dealing damage exist in code.
  • AddBombs 0x759500: for T??? positive amounts become AddBlueFlies(min(n, 24)).
  • Not found: brown creep's (1000.195) player effect; it lives in Entity_Effect::Update, which does not decompile.

tainted_cain (Entity_Player::tainted_cain_pedestal_burst 0x7d58f0)

  • Caller Entity_Pickup::HandleCollision skips the burst for quest-tagged items (tag 0x8000: 238, 239, 327, 328, 550-552, 626, 627, 633, 668), challenge 43, dimension 2 and room index -12.
  • Count max(4, 3 + (rng&3)), +1 on rng%3!=0 with Lucky Toe; doubled with Birthright.
  • Trinket bonus first: trinkets [45 Ace of Spades -> card, 44 Safety Cap -> pill, 34 Child's Heart -> heart, 41 Match Stick -> bomb, 36 Rusted Key -> key]; chance 33/66/100% by PlayerManager multiplier; Child's Heart is skipped 4 in 5 while Daemon's Tail (22) is held; the first success stops the loop.
  • First pickup by pool (param_4, else ItemPool::GetPoolForRoom): devil 3/19 black heart (5.10.6), angel 4/20 eternal (5.10.4), secret 5/22 bone (5.10.11, unlocked), curse 12/21 rotten (5.10.12, unlocked), red chest 9 and ultra secret 24 cracked key (5.300.78), planetarium 26 a rune (GetCardEx rune), else weighted soul heart 10 / nickel 10 / dime 5 / golden key 1 / giga bomb 1 (heart weight 0 four times in five with Daemon's Tail).
  • The rest: r in [0,1): < 0.35 coins 1-3; < 0.55 heart (Daemon's Tail 4/5 skips to the next branch), and a heart takes two of the count when rng&1 is 0 (count = snapshot - 1), so half the time one pickup fewer; < 0.7 key; else bomb.

tainted_eve (Entity_Player::SpawnClot 0x7da810; GetTearHitParams 0x7bf6c0)

  • Order: golden heart (clot subtype 4), eternal (3); red when red >= 1 and soul+bone >= 1, or red minus rotten above the floor (1 half heart); red takes a rotten heart first (subtype 6, -2 red) else half a red (0). Otherwise the last heart: bone (5) if IsBoneHeart(last index), else half a soul: black (2) if its bit in 0x1350 is set, else soul (1). Clot familiar is 3.238; sound 0x48.
  • Tear damage of clot copies x0.35 (GetTearHitParams). By subtype: 2 black: tear variant 6, x1.25 damage, x1.1 scale, TEAR_DARK_MATTER (124), TEAR_FEAR (20) 1 in max(1, 5 - luck0.1); 3 eternal: x1.5, x1.3 scale, homing; 4 gold: TEAR_MIDAS (53) 1 in max(3, 9 - luck0.25), gold colour; 5 bone: TEAR_BONE (51), variant 29; 6 rotten: TEAR_MULLIGAN (11). Subtypes 0, 6, 7 get the blood tear look.

the_forgotten knife hits (Entity_Knife::HandleCollision 0x9666f0; knife 8.1 club, 8.2 Bone Scythe)

  • Thrown (_isFlying): variant 2 deals (0.4 + 0.4 * clamp(Charge(+0x460) * _knifeVelocity / 3, 0, 1)) x collisionDamage; other knives max(1.5x, x + 1.75). Not flying (Mom's Knife at rest/charging): (2 + 4 * clamp(...)) x.
  • entities2: both club and scythe collisionRadius 16; their anm2 tip null sits 20 (club) / 24 (scythe) out in Swing.

tainted_forgotten (player type 0x23)

  • take_damage_impl 0x7729d0 returns 0 for 0x23 (like item 276), so his body takes nothing yet stays a collidable player: shots and enemies stop on it. HandleCollision 0x78e1f0: while thrown (own flag 0x4000000, not 0x20000000) an enemy contact halves his velocity.
  • Landing (player update 0x782af0, height offset back to 0 with flag 0x4000000): ShakeScreen(4), SOUND_BONE_BOUNCE (499) and SOUND_BONE_DROP (467).

butter_bean (Game::ButterBeanFart 0x704360; Entity::AddKnockback 0x6b7a80; Entity::Update 0x6ae820)

  • Pushes vulnerable enemies (and pickups, bombs; reflects shots, deflects projectiles-as-tears): strength 2*min(7, radius - dist), Gigante Bean (trinket 134) doubles the radius and push (x1.5 more at multiplier 2, confusion 90 at 3); mass > 20 x0.5,

    30 x0.2, > 50 x0.015 (as decompiled); velocity = dir * that + old * 0.5; 10 damage when doubled.

  • With the knockback flag: AddKnockback(dir*16, floor(lerp(...)), takeImpactDamage=1) sets entity flags 0x8000 (knocked back) and 0x10000 (impact) in the high word.
  • Entity::Update: during knockback (velocity = knockbackDirection, x0.95 a tick) a grid collision with the impact flag deals 10 + 2 * (stage - 1) (stage from _get_index_plus_one_if_kind_4_5, +1 for stage types 4/5) once, reflects the knockback x0.8 and halves its countdown.
  • Tainted Azazel's sneeze (0xa01020) uses AddKnockback(dir*20, 14, 1): the same impact damage.

bag_of_crafting retries (CalculateBagOfCraftingOutput 0x7d9d00; Item::IsAvailable 0x7300d0)

  • Weights use the pools' current item weights (+4 of each 0x18-byte pool entry) for items passing IsAvailable(1); quality band from the bag's value (-5 for pools 3, 4, 5).
  • Draw: up to 20 times, each stepping the seed, the drawn item must pass IsAvailable(6) (unlocked, character filters); else 25 (Breakfast). No quest tag check here.
  • Item::IsAvailable(flags): 1 = mode/seed/challenge tag filters (0x10000000, 0x20000000, 0x20000 bits of the tag word at +0xb8), 2 = achievement unlocked, 4 = character filters (Tainted Lost: offensive 0x100000 only, quality < 2 refused on a 1-in-5 seeded roll; Lost/Keeper birthright 0x200000/0x400000 tags; Lil' Chest-like 0x2b3 rules), 8 = mod callbacks.

tainted_eden (take_damage_impl 0x7729d0, type 0x1e)

  • No reroll when the damage flags hold 0x20 (red hearts) or 0x10000000 (no penalties), or while Glitch plays. Sound 0x253; stats re-rolled into the _eden* fields; trinkets replaced by pool trinkets; pocket items (not pocket actives) by a pill or card 50/50 (PHD 251 forces pills unless False PHD 252, and the other way).

Leads not ported

  • Tainted Magdalene's hug (HandleCollision 0x78e1f0, type 0x16): touching a vulnerable enemy while field 0x1ef8 < 3 spawns knife 8.1 subtype 4 (a club swing) toward it, damage from GetTearHitParams with scale (2*field_0x157c)/damage.
  • Dark Arts (705): fire input ends the effect (0x782af0); while active (0x794e50) enemies and shots within size+10 of him not yet hit get a child effect and add their collision damage to field 0x2008; on removal (0x793970 sets field 0x2004) the end blast runs once the marks are gone: DamageRadius, screen shake, poof.
  • Abyss locusts (familiar 3.231): size from a 5-entry quality table at config +0x2a46c (Entity_Familiar::Update).