diff --git a/notes/items/items_verify_2_trinkets.md b/notes/items/items_verify_2_trinkets.md new file mode 100644 index 0000000..76ae1e6 --- /dev/null +++ b/notes/items/items_verify_2_trinkets.md @@ -0,0 +1,61 @@ +# Items verify 2: trinkets batch (rif/iv2-trinkets) + +Trinket findings for isaac-classic's Rebirth layer. `find.sh item` misses calls whose first argument is cast +(`HasTrinket((Entity_Player *)this_02,0x31,0)` in the current dump); grep `Trinket[A-Za-z]*[(]([^;]*,)?(0xNN|NN)[,)]`. +FUN_00429550 (Game+0x26614 > 1) switches many odds to a second table; the port uses the first. + +## Entity_Player::TakeDamage 0x7729d0 + +- Red Patch 0x28 (~line 930): Isaac::Random(100) < 20 + int(5 * luck) (x2 33, x3+ 50; second table 10/20/30, 2.5 a + luck): a room TemporaryEffect of trinket 0x28; EvaluateItems adds 1.8 damage-up per stack. +- A Missing Page 0x30 (~976): Random(max(20 - int(luck * 0.3), 2)) == 0: UseActiveItem Necronomicon (0x23); its case + (0x5b40f3) deals 40 + 40 * (Missing Page 2 copies + Missing Page multiplier) (second table 20 + 10 per). +- Fish Head 0x1d (asm 0x774a6b): AddBlueFlies(multiplier * (Random(2) + 1)); second table 1 in 5. +- Cartridge 8 (~1351): RandomInt(max(.., 20 - int(luck * 0.5))) < multiplier and no Gamekid effect: UseActiveItem 0x5d. +- Bag Lunch 0x69 / Wish Bone 0x68: RandomInt(20 / 10 / 7 by multiplier) == 0: Lunch / a room-pool item, TryRemoveTrinket. +- Umbilical Cord 0x21 (~1893): RandomFloat <= 0.3 + 0.02 * luck (0.1 second table): collectible effect 318 (Gemini). +- Butter 0x7a: RandomInt(50 / 25 / 16) == 0 drops a passive. Finger Bone 0x80: RandomInt(25 / 12 / 8) == 0 AddBoneHearts. +- Cursed Skull 0x2b (~2575): alive, red <= 1 half and (no soul, or no red and soul <= 1 half): MoveToRandomRoom; + golden: a room of types 2, 4, 6, 7, 8 (FUN_007dc620 list). Monkey Paw 0x14 sits inside the same test: multiplier + black hearts, _monkeyPawCounter - 1 from 3, at 0 removed. +- Blind Rage 0x51: _damageCooldown *= damage_cooldown_scale(..). Perfection 0x91: a counted hit removes it. +- Swallowed M80 0xb2 (~2818): not damage flag 0x10000000; RandomInt(max(3 - mult, 1)) == 0: UseActiveItem 0x28 Kamikaze!. + +## Entity_Player::TriggerNewRoom_TemporaryEffects 0x7a8350 + +- Liberty Cap 0x20: 1 in (4 / mult): room effect of one of {12, 71, 121, 120, 342, 398} (rng % 6). +- Umbilical Cord 0x21: no Little Steven effect and red hearts <= 1 (2 x2, 3 x3+) halves: effect 100 for the room. +- Broken Syringe 0x84 / Mom's Lock 0x99: 1 in (4 / mult): add_random_drug_item_effect / AddRandomMomItemEffect. + +## level start, room clear, kills + +- level_start 0x7a4ba0: Maggy's Faith AddEternalHearts(mult); Cain's Eye (asm 0x7a57c7): Random % 100 < 25 * + uint(mult + luck) -> ApplyCompassEffect; Beth's Faith 4 * mult AddWisp(584); Lucky Sack mult x Spawn 5.69; Hollow + Heart AddBoneHearts(mult). +- TriggerRoomClear 0x7a8fd0: Isaac's Fork Random % max(1, 10 - int(luck * 0.5)) == 0: AddHearts(mult), sound 0x9d, + effect 1000.49; Louse AddBlueSpider; Watch Battery: per clear charge min(mult, 16) rolls of 1 in 20 add mult; + Polished Bone rng % (5 - mult) == 0. +- trigger_npc_death 0x7a0080: Samson's Lock Random % 10000 < 666 (1332, 2500) + 1000 * luck (asm 0x7a026a); Eve's Bird + Foot Random % 1000 < 50 (100, 150) + 125 * luck (0x7a0338) -> trinket effect 0x3c; Bat Wing RandomInt(20 / 10 / 7). +- RoomClear_PickVariant 0x7fa920: the pickup trinkets (Child's Heart, Rusted Key, Match Stick, Safety Cap, Ace of + Spades) 10% (20, 50) override; Child's Heart with Daemon's Tail 1 in 5. + +## other sites + +- Entity_NPC::Update 0x6c4b30: Tick (health > 60, not types 0x112/0x113) x0.85 per mult; A Lighter / Ice Cube as an + enemy starts: RandomFloat < 0.2 (0.33, 0.5) + 0.02 * luck: AddBurn(-90) / AddFreeze(-90) + AddIce(-90). +- Entity_Player::update_effects 0x794e50: Mysterious Candy 0x19 (variant 0): frame % 900 and Random(2) == 0 on an + empty/pit/poop cell: poop grid (golden 3, Meconium 33/66/100% black 5); frame % 1800 and Random(2) == 0: + ButterBeanFart(pos, 120, Isaac, 1, 0) (asm 0x797166). Faded Polaroid 0x45: IsFrame and Random(5) == 0: its effect + for mult * (Random(5) + 3) * 30 ticks. Hairpin 0x78: first frame of an uncleared boss room: FullCharge. +- Entity_Player::Update 0x782af0: Broken Remote after an active: UseActiveItem 44, or 0x1a3 above multiplier 1. + Cursed Penny 0xac: by the last coin's subtype (+0x13b8), a room-type list. +- GridEntity_Rock::SpawnDrops 0x71b410: Lucky Rock min(mult, 16) rolls of rng % 3 == 0. Entity_Bomb::Update 0x6a24d0: + Blasting Cap RandomInt(10 / mult) == 0 Spawn 5.40.1. FUN_006ad350: Second Hand duration * 2 * mult. +- GridEntity_Poop::spawn_drops 0x7178c0: Lil Larva AddBlueFlies(mult); Meconium black heart rng % 100 < 5 (7, 10). +- Weapon::TriggerTearEffects 0x9f7930: Torn Card every 15 (10, 5) shots. update_shooting 0x77b020: Teardrop Charm + tear luck + 2 + 2 * mult. Room::GetDevilRoomChance 0x7f92b0: Number Magnet +0.1 (0.15, 0.2), Rosary golden +5/10%; + Room::TrySpawnDevilRoomDoor 0x7f83b0: InitializeDevilAngelRoom(anyone has Rosary Bead). +- Room::SpawnClearAward 0x7fb250: Temporary Tattoo in a challenge room: 5.50 chest, boss challenge (subtype 1) 5.100. +- room_enter 0x7a6c50 -> FUN_007c8830 (first visit, uncleared): locust trinkets 0x71..0x75 spawn mult familiars 3.43 + (subtype = horseman), x2 with Fish Tail (0x5e); Conquest 1 + rng % (5 - (mult == 2)).