9.4 KiB
9.4 KiB
Trinkets, cards and pills (rif/trinkets-cards)
Findings from porting Rebirth trinkets, cards/runes/souls and pills to isaac-classic. Addresses are the dump's.
Entity_Player::take_damage_impl 0x7729d0 (trinkets)
- Walnut (0x6c): hit with damage flag 4 (explosion),
rng % 100 < 33: spawns trinket (350), heart (10), key (30), coin (20), subtype 0, eachGetTrinketMultipliertimes (table 0xb6bcc0 = 350, 10, 30, 20), then TryRemoveTrinket. - Torn Pocket (0x9e):
multiplier + 1times a WeightedOutcomePicker over coins (0), keys (1), bombs (2), Bethany's soul charge (3) and Tainted Bethany's blood charge (4), weighted by count; the drawn one is spent and dropped (variant 20/30/40 subtype 0; charges as a half soul or half red heart 9 in 10 times).
Entity_Player::EvaluateItems 0x763570
- Cracked Crown (0x5c): factor
1 + 0.2 * mult(x0.75 for player type 36). Final fire rate above 2.7272727 (30/11), damage above 3.5, shot speed above 1, range above 260 and speed above 1 each gain(stat - base) * (factor - 1). - Black Feather (0x50): damage-up accumulator (before the curve) +=
0.5 * mult * (count of 654, 344, 339, 262, 260, 230, 216, 215, 80, 79 + trinket mult of 17 Black Lipstick and 22 Daemon's Tail).
Champion roll (0x6bb790, ZHL-misnamed Game::RestoreState; it is the NPC init champion roll)
- Base 0.05, Champion Belt (0xd0) 0.2, challenge-ish state 0.75/1.0. Purple Heart (trinket 5): normal enemies
chance
*= 3 * mult; bosses' champion chance (0.1 / 0.3 / 0.6 by state)*= 2 * mult.
Entity_Player::GetTrinketMultiplier 0x7cb6e0
- Mysterious Paper (0x15): for trinket 0x30 (A Missing Page) counts when
frameCount % 4 == 2(or 3 with golden). HasCollectible 0x7706e0 gives The Polaroid (0x147) at% 4 == 0and The Negative (0x148) at% 4 == 1(golden: both on 0 and 1); 0x782af0 handles the Missing Poster revive at% 4 == 3. - Rainbow Worm (0x40): the worm
table_0xb6bad0[(frameCount / 90) % 10]counts at Rainbow Worm's multiplier. Table: 9 Pulse, 11 Ring, 65 Tape, 27 Whip, 10 Wiggle, 12 Flat, 26 Hook, 66 Lazy, 96 Ouroboros, 144 Brain (also the daily 0x1c special list). - Error (0x4b): a trinket id equal to
room descriptor RNG.RandomInt(189) + 1counts (one per room; Challenge 0x29 excludes 0x7a).
Room enter 0x7a6c50 and the Twins duplicator 0x7dbeb0 (ZHL-misnamed HistoryHUD::RecomputeAll)
- The Twins (0xb7):
RandomInt(mult + 1)copies; candidates are owned familiar-type (4) items except 0, 43, 61, 235; none owned: Brother Bobby (8) and Sister Maggy (0x43). One is added for the room as a temporary collectible effect. Skipped when more than 59 familiars (type 3 entities) exist.
Post active use 0x7abf80
- 'M (0x8a): after a main-slot use of a valid active (no TMTRAINER: glitched one), removes it and adds a random other
active (type 3, not quest-flagged, available via 0x7300d0) uncharged, weighted by
table_0xb6bc60[quality]= 5, 4, 3, 2, 1. Golden: 10% (x2) / 20% (x3) refills the charge.
Player active update 0x791a40
- Panic Button (0x95): when not using an item, not 0x4000-flagged, active held and charged, collidable, damage cooldown < 2 and not invincible: QueryRadius(pos + vel * speedMultiplier * field_0x36c, 10 (14 in coop)) for NPCs (type 10..999, not Pitfall 33.4) or projectiles (9) with collision damage / not friendly; a hit uses the active. Golden x2: 1 in 10 keeps the charge, x3 1 in 5.
Entity_Player::UseCard 0x7b2230 (switch on card id)
- IX - The Hermit? (0x41): over free, existing, visible, non-shop, timeout-free, rerollable pickups: worth by variant/
subtype: hearts 10 eternal/gold, 6 black/bone/double, 5 soul, 2 half soul/rotten, 1 half red, else 3; keys 10 golden/
ring/charged else 5; bombs 10 double/golden(4)/giga(7) else 5; pill 5, sack (69) 7, battery (90) 5, card 5, trinket 5,
collectible (subtype != 0) 15; coins and chests are skipped. Paid at the pickup as
(worth - 5) / 5nickels (if worth > 9) and the rest pennies, random velocity * 5, a poof (1000.15); items emptied (pedestal kept). Nothing sold: one penny at the room centre.
More trinkets
- Cracked Dice (0x43, take_damage_impl):
RandomInt(100) < 50(golden 75, x3 100): UseActiveItem of one of D6 105, D20 166, D12 0x182, D8 0x196, D10 0x11d (RandomInt(5)). - Crow Heart (0x6b, take_damage_impl ~line 2156): with it (or damage flag 0x20) and red hearts >= damage, red health is taken first; golden x2/x3: 25/50% (a chance around keeping it, not traced).
- Apple of Sodom (0x8c, Entity_Pickup::HandleCollision 0x6e8ae0): red heart subtypes 1/9 (base 3 spiders), 2 (1),
5 (6), doubled by Maggy's Bow (0x138). RandomInt(2) == 0 consumes: blood effects 1000.2 / 1000.7 / 1000.5 gibs,
base + Random() % 3blue spiders, ButterBeanFart(radius 100), the heart removed. Else the normal pickup path. - Azazel's Stump (0xa2, TriggerRoomClear 0x7a8fd0):
rng % max(1, 4 - mult) == 0adds trinket effect 162 with count 2; HasTrinketEffect(0xa2) makes EvaluateItems/FireBrimstone treat Isaac as Azazel (type 7): brimstone, flight, stats. - Dingle Berry (0xa3): TriggerRoomClear picks a dip subtype (weights 6 each) per multiplier; NpcAI::ENTITY_DIP removes enemy Dips on update and ThrowDip()s them as friendly dips while it or Dirty Mind (0x240) is held.
- Sigil of Baphomet (0xbd, kill credit 0x7a0080): Book of Shadows (0x3a) effect +30 ticks per kill (golden 45, x3 60), capped at 150 (225, 300) total; Entity_Tear::HandleCollision: 1 in 10 player tear hits add 30 under 150.
- Silver Dollar 0x6e (stage 7-8), Wicked Crown 0xa1 (stage 10 type 0), Holy Crown 0x9b (stage 10 type 1): the level generator 0x739370 keeps the shop (and treasure for the crowns; Bloody Crown 0x6f the treasure room at 7-8); golden (mult 2) upgrades, mult 3 sets room flag 4. Pay to Win (0x70) picks treasure room layouts of subtype 2/3 (with a restock machine; 0x743550) and Entity_Slot::Update gives the restock machine a 1-in-(mult+1) break roll.
- Lost Cork (0x6a) appears only in a familiar's creep code (0x6384a0, BFFs-scaled tables 0xb64588) and AddTrinket.
More UseCard cases (0x7b2230)
- 0x20 Hagalaz -> 0x5b23f0: every grid entity but doors (16) Destroy()ed (22 twice), then a stone-enemy kill/morph table.
- 0x22 Ehwaz-like? (UseActiveItem 0x54 = We Need To Go Deeper, overlay 0x16).
- 0x2a Chaos Card: Spawn(2, 9) tear at 10 x movement (else aim) + half velocity.
- 0x2d A Card Against Humanity: sound 0x25, Room::SetCardAgainstHumanity (fill happens in Room::Update).
- 0x32 Emergency Contact: up to two vulnerable enemies get effect 1000.0x5b (Mom's hand) targeting them, timeout 150, and NPC call 0x6b5e20(150) (a 150-tick status).
- 0x3c Emperor?: Level::TryInitializeExtraBossRoom then transition to room -17 (else MoveToRandomRoom).
- 0x3d Hierophant?: (hearts+2) bone hearts (5.10.11); 0x3e Lovers?: (n+1) room pool items, each costing 2 containers (or a bone heart, or 4 soul halves) and a broken heart (not for The Lost / Tainted Lost).
- 0x3f Chariot?: null 63 (cooldown 300, refreshed) = statue: EvaluateItems fire rate multiplier x4; 3 debris on first use; 1 in 10 a costume (null 68).
- 0x41 Hermit? (see above). 0x42 Wheel of Fortune?: RandomInt(6): D4; D20; D20 + level pickups; level items + D6; forget stage seed + restart stage; all (D20, level pickups, level items, D6, D4).
- 0x45 Death?: UseActiveItem 0x221 (Book of the Dead). 0x46 Temperance?: 5 (10 with ...) null effect 69 stacks.
- 0x48 Tower?: 35 waves; each picks a free cell (weight 5, 50 if its 4 neighbours are free) and spawns 1000.177 at it and at free cells within 75 px (timeout = wave index).
- 0x4b Sun?: null 66 for the floor (damage-up +1.5 per use, flight, spectral, tint); normal-health red containers to bone hearts (count kept in field 0x1ed4).
- 0x4c Judgement?: Spawn(6, 10) restock machine near Isaac (flag 4). 0x4e Cracked Key: UseActiveItem 0x244 (Red Key).
- 0x53 Soul of Cain: red room doors on every viable slot, every door unlocked/blown, Dad's Key effect.
- 0x54 Soul of Judas: Dark Arts (705) effect, null 128, room pause 90, UseActiveItem Dark Arts.
- 0x58 Soul of Azazel: field 0x18f4 = 240 (90 in coop) beam timer, costume null 31.
- 0x59 Soul of Lazarus: null 113, then Kill() (revived by the null effect).
Entity_Player::UsePill 0x7c4180 (switch on pill effect)
- 0x19 Amnesia: curse 4 (Lost); horse: unless PHD/Virgo/Lucky Foot/False PHD, the 14 pill colours' identified flags cleared.
- 0x1b R U A Wizard?: costume null 25,
_rUaWizardTimer += 900(horse 1800); the player update counts it down. - 0x1e Re-Lax: sound 0x25, null item 28 effect, cooldown 30 (horse 300).
- 0x22 Infested!: every poop grid (14) destroyed with a blue spider (horse 2); none: RandomInt(2)+1 (x2 horse).
- 0x23 Infested?: a spider per alive enemy, none: RandomInt(3)+1. 0x24 Power Pill: collectible effect 93 (Gamekid); horse: shake, null 41 (Huge Growth) and collectible effect 302 (Leo). 0x25 Retro Vision: Game::AddPixelation(900, horse 2700). 0x26 Friends Till The End: 3 blue flies (12). 0x27 X-Lax: 3 (horse 9) 1000.94 slippery brown creeps at 120 deg steps, 35 + rand*40 (80) out, scale 5, horse timeout 900. 0x28 Something's Wrong: same with 1000.45 black creep. 0x29 I'm Drowsy: broken watch state 1 (horse: level flag 0x18). 0x2a I'm Excited: broken watch state 2, countdown (RandomInt(2)+2)*900 (horse: level flag 0x19).
- 0x31 Experimental: shuffled six stats, first down, second up (pill counters at 0x16d4); good pills skip the down, False PHD the up.
- Huge Growth (null 41, EvaluateItems): +7 flat damage, +120 range, -30 tear height once; size +0.678 per stack.