Files
isaac-port/notes/characters/characters_8.md
T

4.4 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 counts only when rng&1 (else one more pickup); < 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.