notes: items sweep 14 familiars (Bob's Brain, Lost Fly, Angry Fly, Boiled Baby, Lil Abaddon, Bumbo)

This commit is contained in:
shweet committed 2026-10-25 16:14:10 -04:00
1 parent 5dbb3e398d
commit ca728ca74d
2 files changed
+67

No files matched your search

+66
View File
@@ -0,0 +1,66 @@
# Items sweep 14: familiar AIs, room systems
## Bob's Brain (Entity_Familiar::ai_charger 0x6174c0 case 0x3b, HandleCollision 0x6261f0, 3.59)
- ai_charger: subtype != 0 is the "gone" state: FollowParent, +0xd88 counts; past 300 a poof (1000.15) at subtype 1 and
subtype +1 each tick; past 3 subtype 0, +0xd4c (cooldown) = 60 for 0x3b (0 for the others), Appear. Fired (state < 1)
only while no other Bob's Brain is flung (QuerySublist of familiars: +0x172 set, +0xd4c < 0, subtype 0), speed 10,
velocity aim * 10 + player velocity * 0.6 * 2 (the off-axis part dropped), at least 10; no FloatShoot (only 3, 0x68,
0xdf play those). Generic stop: grid hit or out of room -> DamageGridWithSource, velocity * .5, +0xd4c - 1 a tick,
below -10 -> 30.
- HandleCollision: variants 3/0x3b/0x68/0x19 with subtype 0 and +0xd4c < 0 touching a grid-ish thing halve velocity
(same countdown). Variant 0x3b/0x3a with subtype 0 and Room::GetFrameCount > 0x14 touching an enemy: explosion damage
(mult - 1) * 25 + 100 (mult = BFFS multiplier) via the player's bomb flags, Game::BombExplosionEffects at its pos,
subtype 1; 0x3b also Entity::AddPoison(enemy, mult * 80 ticks, damage arg lost in XMM).
## Lost Fly (FamiliarAI::lost_fly 0x62e9c0, 3.85)
- First tick: targetPosition = pos, +0xd88 = its grid index. friction * 0.6; pos = targetPosition; direction +0xd54
(0 left, 1 up, 2 right, 3 down: Isaac::GetAxisAlignedUnitVectorFromDir), step 3.0 (0xbaa6fc).
- If gridIndex(pos + step) != +0xd88: blocked (GetGridCollision not 0/1) -> dir = (dir + 3) & 3, return (no move);
else side = dir + 1: if gridIndex(pos + side*3 + step) is free and GetGridCollisionAtPos(pos + side*3) blocked ->
dir = (dir + 1) & 3. velocity = step, targetPosition += step.
- Every collision interval (GetIntervalTicks; entities2 interval 7): QueryRadius(pos, 160.0 [0xbaaa5c], enemies),
vulnerable NPCs without flags 0x20000010 and in CheckLine(mode 3) sight -> Entity_NPC::TryForceTarget(fly, 90).
## Angry Fly (Entity_Familiar::update_angry_fly 0x633500, 3.118)
- Target +0x3c4: drawn again when none, when it is the player and IsFrame(30), or when not a vulnerable enemy and
IsFrame(150): a random room entity of type 10..999 (not 0x21 fire, 0x11 shopkeeper, 0x124; 0x375 only variant 10;
0x3c0/0x3c5 never; 0xf5 yes) not friendly (+0x173); none -> the player.
- angle offset = index * 360 / n among familiars with the same target; radius 65; when the target is an enemy (vtable
+0x4c) and game frame % 150 < 30: radius = |f / 30 - .5| * 2 * 65. angle = frame * 3.6 + offset (degrees);
velocity = (target + (cos, sin) * r - pos) * 0.22, capped at 10. entities2: 2 contact damage, interval 2.
- Neither Lost Fly (0x55) nor Angry Fly (0x76) is in Entity_Familiar::CanBlockProjectiles 0x60d8e0.
## Boiled Baby (Entity_Familiar::Update case 0xd0, 3.208)
- FollowParent; FloatDown. Every apply_forgotten_lullaby(4) frames (IsFrame) with alive enemies: QueryRadius 80 (180
with flag 0x100) counts vulnerable enemies; Isaac::Random(enemies ? 5 : 20) == 0 -> Play("Spawn") (0xb1de50).
- On Spawn's Shoot event (0xb1d2dc): sound 0xb2; Random(3) + 4 tears, damage apply_tear_modifiers * 3.5; each
RandomVector * 10 * (0.7 + 0.2 r); Random(2): scale (0.9 + .05 r) * .8 at that damage, else (1.3 + .05 r) * .8 at
1.5x. Random fall speed/accel (not read).
- 0x640ca0 (named ai_boiled_baby by an earlier DB guess) is NOT Boiled Baby: it is invisible at the player unless the
player's list +0x150c holds (0, 0x37), fires every 0x2d, and picks targets (PickEnemyTarget 1000) with a Shoot anim.
## Lil Abaddon (Entity_Familiar::ai_incubus_shot 0x62d300 case 0xe6, asm only; Update cases 0x3d/0x6c/0xe6)
- 0xe6: sound 0x1aa (pitch 1.1); Game::SpawnEx(7, 1, pos, 0, familiar, subtype 3 [ring following parent], seed):
+0x34c/+0x350 parent offset (0, -20), +0x358 = 3000.0, +0x4e0 = tear modifiers * 0.5, vtable+0x40 = modifiers * 3.5
(its damage), +0x428 tear flags from 0xc34890, _timeout (+0x458) = 30; +0xdc0 keeps the laser; +0xd50 = 30.
After any shot +0xd4c = apply_forgotten_lullaby(30) (the charge), decremented while +0xd50 <= 8.
- 0x6c (Seraphim?) fires 0x60 - ... FireProjectile loop and +0xd50 = 20; others FireBrimstone 0x638c10.
## Bumbo (FamiliarAI::bumbo 0x62f7f0, TriggerRoomClear 0x62aab0, 3.88)
- Level by +_coins: < 6 state 0 (Level1Float), 6.. state 1 (Level2, sound 0x34b), 12.. state 2 (Level3, 0x34c), 24..
state 3 (Level4, 0x34d, moved to a free spot, grid class 5 / entity class 4, collision damage 2.5).
- Every 5 frames with no target: the nearest coin (5.20, not dying, no +0x534 owner) within 200 (40000 squared; Level 4
needs a path). Toward it +1.1 a tick (not Level 4); within 10 FUN_006b2ee0 (takes it). No coin: follows Isaac (80) or
the follower ahead of it of variants 0x18/0x40/0x5a/0x58/0x66 (50) at +0.8 a tick, friction 0.8; Level 3 Shoot()
(friction .2 while its head delay > 0).
- Level 4: PickEnemyTarget(300, 0xd), FindGridPath .75 when farther than 20 (an enemy) / 4 (a pickup) / 80 (none);
IsFrame(60) and Random & 3 == 0 within 50: a bomb Game::Spawn(4, 0) at velocity 5; friction .85; Level4Walking/Idle.
- Drops: +_counter pending; within 80 of Isaac in state 1 or 3 it plays Level2Spawn/Level4Spawn, on the Spawn event a
random pickup 5.0 (drop RNG), counter - 1. TriggerRoomClear case 0x58: state 1 only, RandomInt(100) (80 with BFFS)
(x 4/3 for player 0x24) < 33 -> counter + 1. The Level 4 per-coin drop is elsewhere (not found).