From 1f7df641008e5494f21c52b6da0b43d4a03ffeff Mon Sep 17 00:00:00 2001 From: shweet Date: Sat, 24 Oct 2026 16:25:18 -0400 Subject: [PATCH] names/notes: characters pass 8 (Tainted ???, Cain, Eve) --- db/names.tsv | 4 +++ notes/README.md | 2 +- notes/characters/characters_8.md | 52 ++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 notes/characters/characters_8.md diff --git a/db/names.tsv b/db/names.tsv index 7486e15..c6ecd44 100644 --- a/db/names.tsv +++ b/db/names.tsv @@ -386,3 +386,7 @@ 0058e490 NpcHelper::siren_familiar_counts counts Isaac's charmable familiars: free, charmed (flag 0x100), total (boss_approx_2) 0058e590 NpcHelper::siren_charmed_count charmed familiars following this Siren (boss_approx_2) 00642cb0 FamiliarAI::tinytoma Entity_Familiar::Update case 0xd8/0xd9 (Tinytoma, items sweep 12) +007d58f0 Entity_Player::tainted_cain_pedestal_burst HandleCollision calls it for player type 0x17 on a free pedestal; spawns max(4,3+rand4) pickups by pool (characters-8) +009be670 PlayerManager::are_all_players_tainted_blue_baby loops players: false if any non-twin is not type 0x19; Pickup_PickVariant/Init turn bombs into poop nuggets (characters-8) +007729d0 Entity_Player::take_damage_impl player damage: hallowed ground 50% block (RandomInt(2)), then LuaEngine::EntityTakeDamage (characters-8) +007db330 Game::damage_cooldown_scale returns ticks, or ticks>>3 (min 1) when game field 0x26614 >= 2 (characters-8) diff --git a/notes/README.md b/notes/README.md index 0595d7d..daed3a1 100644 --- a/notes/README.md +++ b/notes/README.md @@ -10,7 +10,7 @@ stored here: `./decompile.sh 0xADDR` prints it from the dump, with the current n | `items/items_sweep_10.md` | Smelter/Guppy's Tail room drop variant, Daemon's Tail pickup picker, I'm Drowsy slowdown, Guillotine orbit layer + orbit distance table, Converter | | `items/items_sweep_11.md` | Nancy Bombs flag roll (GetBombFlags) | | `items/items_sweep_12.md` | Ghost Bombs soul spawn, Purgatory soul, Rocket in a Jar rockets, Angelic Prism split, orbit layer table, Tinytoma, Daemon's Tail coin test, Guillotine head | -| `characters/` | Rebirth behaviour + port design for tainted characters and Jacob & Esau | +| `characters/` | Rebirth behaviour + port design for tainted characters and Jacob & Esau; `characters_8.md`: T??? poop throw/nuggets/hallowed ground, T.Cain burst tables, T.Eve clot order and tears | | `_tools/` | the one-shot port-side patch scripts those passes used (they edit isaac-classic data; kept for reference, not maintained) | | `../src/anm2`, `../src/rooms` | reimplementations of the anm2 player and .stb/RoomConfig loader, with their own decompile docs and tests | diff --git a/notes/characters/characters_8.md b/notes/characters/characters_8.md new file mode 100644 index 0000000..c5530f0 --- /dev/null +++ b/notes/characters/characters_8.md @@ -0,0 +1,52 @@ +# 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 - luck*0.1); 3 eternal: x1.5, x1.3 scale, homing; + 4 gold: TEAR_MIDAS (53) 1 in max(3, 9 - luck*0.25), gold colour; 5 bone: TEAR_BONE (51), variant 29; 6 rotten: + TEAR_MULLIGAN (11). Subtypes 0, 6, 7 get the blood tear look.