4.8 KiB
4.8 KiB
Items verify 2, pills batch (rif/iv2-pills)
Entity_Player::UsePill 0x7c4180 (switch on the pill effect; horse = use flag 0x800, local_204). Port-side results are
in isaac-classic's tools/reference/rebirth/pills.json comments.
stat pills (UsePill cases 6, 7, 0xb..0x12, 0x2f, 0x30; EvaluateItems 0x763570)
- The preamble counts each use in the per-effect array at player +0x16d4 (index = effect, +1, +1 more for a horse pill; FUN_0042c810(effect) reads it in EvaluateItems). The stat cases only set cache flags, tint and face.
- EvaluateItems: tears (~line 513) units 0.5 x Tears Up(0x10) - 0.4 x Tears Down(0xf), x 0.7 with the tears-up items; range (~1905) 0.5 x Range Up(0xc) - 0.4 x Range Down(0xb), x 100 px with the range items; speed (~2151) 0.5 x Speed Up(0xe) - 0.4 x Speed Down(0xd), x 0.3 with the speed items (so +0.15 / -0.12); shot speed (~1706) (Shot Speed Up(0x30) - Down(0x2f)) x 0.15, no damage; luck (~4440) Luck Up(0x12) - Luck Down(0x11).
- Health Up 7: AddMaxHearts(2) (horse 4), red tint, cache 0x1000. Health Down 6: AddMaxHearts(-2) (horse -4), TryPreventDeath.
- One Makes You Larger 0x20 / Small 0x21 (EvaluateItems ~4569): sprite scale 2^((Larger - Smaller + items) x 0.322) (x1.25 a step; 2.77259 slope past 2 steps); the size multiplier reads only items 0x78/0x79 and the timed sets 0x23/0x24 (the pills leave the hitbox alone). Larger: IncrementPlayerFormCounter(Stompy 0xd, 1 + horse).
other cases (UsePill 0x7c4180)
- 0 Bad Gas: Fart(Isaac, 85, scale 1) + ButterBeanFart(120); horse Fart(170, scale 2) + ButterBeanFart(200) and every room enemy (type 10..999, not flags 0x11 / 0x20000011) AddPoison(90), poop-cloud screen effect.
- 1 Bad Trip: TakeDamage(2.0, horse 4.0; x8 when Game+0x26614 > 1, flags 0x10002001).
- 2 Balls of Steel: AddSoulHearts(4 + 4 x horse). 5 Full Health: horse AddSoulHearts(6) first, then SetFullHearts.
- 3 Bombs are Key: swap bombs/keys and golden bomb/key (Tainted ??? 0x19: keys and poop mana); horse AddBombs((n+1)/2), AddKeys((n+1)/2).
- 4 Explosive Diarrhea: sound 0x25, null effect 0 removed, a TemporaryEffect of it with cooldown 60; horse adds a second with cooldown 30. 8 I Found Pills / 9 Puberty: costumes (horse other configs); Puberty Adult counter +1.
- 10 Pretty Fly: cache 0x200; horse null 0x6b (one more fly).
- 0x13 Telepills: MoveToRandomRoom(allow I AM ERROR unless stage 6 with 0x226 held or the photo door boss room); horse: FUN_007cdf30 over room types 4, 2, 7, 8, 0x12, 0x14, 0x15, 0xc, 0xb, 0x18, 9, 0xd (a random special room).
- 0x14 48 Hour Energy: FullCharge each slot (horse AddActiveCharge(2 x max)); RandomInt(2) + 1 Lil' Batteries 5.90.1 (horse + 3), free spots within 40.
- 0x15 Hematemesis: red hearts set to one heart; RandomInt(4) + 1 (horse + 4) full hearts 5.10.1, health type 3: pennies 5.20.1.
- 0x17 I Can See Forever: Game+0x11 = 1 (x-ray); horse ApplyMapEffect + ApplyBlueMapEffect + ApplyCompassEffect(1).
- 0x18 Pheromones: 1000.34 cloud (horse x2, sound, shake 3); vulnerable enemies AddCharmed(150); horse: non-bosses (vtable +0x4c false) without flag 0x20000000 AddCharmed(-1) (permanent, friendly), others AddCharmed(300).
- 0x19 Amnesia: AddCurse(4); horse clears the 14 colours' identified flags unless PHD 0x4b / Virgo 0x12f (or zodiac) / Lucky Foot 0x2e / False PHD 0x28e.
- 0x1a Lemon Party 1000.78 (horse size 2). 0x1b R U A Wizard: costume config 0x18, _rUaWizardTimer += 900 (horse 1800).
- 0x1c Percs: collectible effect 0x6c; horse AddHearts(20). 0x1d Addicted: null 0x1d; horse AddBrokenHearts(1).
- 0x1e Re-Lax: sound 0x25, TemporaryEffect null config 0x1c cooldown 30 (horse 300).
- 0x1f ???: AddCurse(0x20) + costume; horse one of 1, 4, 8, 0x40 passing Level::filter_curses (RandomInt).
- 0x22 Infested!: each poop grid (type 14) destroyed with a spider (horse 2); none: RandomInt(2) + 1 (each x2 horse). 0x23 Infested?: GetAliveEnemiesCount spiders, none RandomInt(3) + 1 (each x2 horse).
- 0x24 Power Pill: collectible effect 0x5d; horse shake 30, null 0x29 (Huge Growth) unless held, collectible effect 0x12e.
- 0x25 Retro Vision: AddPixelation(900 / 2700). 0x26 Friends Till The End: AddBlueFlies(3, horse 12).
- 0x27 X-Lax 1000.94 / 0x28 Something's Wrong 1000.45: 3 (horse 9) creeps at i x 120 deg, 35 + rand x 40 (horse 80) out, scale 5, horse timeout 900. 0x29 I'm Drowsy: SetBrokenWatchState(1), SetSlowDown(max), horse level flag 0x18. 0x2a I'm Excited: SetBrokenWatchState(2), countdown (RandomInt(2) + 2) x 900, collectible effect 0x1c, horse 0x19.
- 0x2b Gulp: horse trinket ids |= 0x8000 (golden), UseActiveItem 0x1df (Smelter).
- 0x2c Horf: one tear facing x 10 x shot speed, damage 200, flags 0xc34bd0, fall accel 0.6, fall speed -13; horse 6: facing x 8 x shot speed + 2 x rand at a random angle, damage (rand + 0.8) x 200, fall -9 - rand x 5, scale rand + 0.8.
- 0x2d Sunshine: UseActiveItem 0x12a (Unicorn Stump); horse collectible effect 0x5d (Gamekid).