Files
isaac-port/notes/items/parity_familiars.md
T

4.3 KiB

Parity sweep: familiars cluster

Variants by entities2.xml (3.V): Lil Harbingers 122 (0x7a), Pointy Rib 127 (0x7f), Intruder 200 (0xc8), Lost Soul 211 (0xd3), Isaac's Heart 62 (0x3e), Box Buddy 119 (0x77), Cube Baby 239 (0xef), Blood Puppy 241 (0xf1), blood clot 238 (0xee); Spear of Destiny is effect 1000.83.

Lil Clot (TRINKET_LIL_CLOT 176) - ported

  • Entity_Player::spawn_lil_clot_familiars 0x7d83f0, called from Entity_Player::room_enter 0x7a6c50 and TriggerTrinketAdded 0x7ad860 (case 0xb0 only): counts this player's 3.238 subtype 7 in the room and spawns more until there are GetTrinketMultiplier(176), each at Isaac with velocity 2 x (cos a, sin a) (a = Random() x 2.3283e-10 x 3.14 x 2), sound 0x48 (meat jumps) and a 1000.2 subtype 2 blood poof in the clot's splat colour, offset (0, -6).
  • The clot table at 0xc34238 (stride 100 bytes, index min(subtype, 7)) is initialised data: [0] floor / health, [1..2] crop offset, [3..] splat colour. Row 7: 3.0, crop (0, 0) (the red clot's), splat (1, 1, 1, 1).
  • Entity_Familiar::Init 0x60de70 case 0xee: subtype 7 health = row 7's 3.0 (x10 in deathmatch); no x1.5/x0.5.
  • ai_blood_clot 0x64e0c0: subtype 7 skips the health decay (the others lose 0.2 every 15 frames down to their floor) and its scale is min(health / 3, 1) x 0.4 + 0.6 (the others sqrt(health / maxHp) x 0.5 + 0.6, plus a colorize).
  • Its tears are a red clot's (GetTearHitParams 0x7bf6c0: subtypes 0, 6, 7 get the blood tear look; x0.35 damage).

Pointy Rib (COLLECTIBLE_POINTY_RIB 544) - ported

  • EvaluateItems 0x763570: CheckFamiliar(0x7f, count + effect count).
  • Entity_Familiar::Update 0x61da10 case 0x7f: aim = GetAimDirection, else the head direction's axis vector, else (0, 1). distance = assert_lerp_range(sin(GetFrameCount / 30 x pi), -1, 1, 20, 120, clamped); _orbitAngleOffset = LerpAngleDeg(it, aim angle, 0.4); velocity = (player + FromAngle(angle) x distance - pos) x 0.8; friction x 0.7. Layer 0 rotation = angle(pos - player) - 90, flipX = Sprite::Rotation() > 1 (the sprite's own rotation, 0: never). IsFrame(7, 0): Room::DamageGridWithSource(its grid index, 1).
  • Entity_Familiar::HandleCollision 0x6261f0, variant 0x7f: a vulnerable enemy (or type 0x21, 0x124, 0xf5) not on its hit list is added to it and takes GetTearHitParams(out, 4, 1.0, +-1, null)._tearDamage x (apply_tear_modifiers (BFFS!...) + clamp(dot(player velocity, rib facing) x 0.1, 0, 1)), facing = FromAngle(layer rotation + 90).
  • Not in Entity_Familiar::CanBlockProjectiles 0x60d8e0; Init sets no grid collision (class 0).
  • update_shooting 0x77b020: with it (or Lilith + Birthright) player _blinkTime (HeadFrameDelay) = max(.., 7).

Not ported yet: entry points found

  • Spear of Destiny (400): update_shooting 0x77b020 spawns/keeps effect 1000.83 parented to Isaac, rotation eased (LerpAngleDeg 0.8 firing, 0.5 otherwise) to aim - 90, placed 45 ahead and 10 aside, tinted by his tear colour; removed when not held. Its damage is in the effect's update (not traced).
  • 7 Seals (526): EvaluateItems CheckFamiliar(0x7a); Entity_Familiar::ai_lil_harbingers 0x6378c0.
  • Blood Puppy (565): FamiliarAI::blood_puppy 0x64fd40; GetFollowTargetPosition 0x63b4a0 case 0xf1.
  • Lost Soul (612): EvaluateItems; Update case 0xd3 -> FamiliarAI::lost_soul 0x645bc0; blocks shots.
  • Isaac's Heart (276): EvaluateItems; Update case 0x3e (GetOrbitPosition; challenge 30 parents it to 3.67); update_effects 0x794e50; take_damage_impl 0x7729d0.
  • Buddy in a Box (518), Lil Delirium (519): EvaluateItems only in find.sh item.
  • Cube Baby (652): FamiliarAI::cube_baby 0x64f860; HandleCollision variant 0xef; blocks shots.
  • Quints (661): Entity_Pickup::Update 0x6bbdc0.
  • The Intruder (575): EvaluateItems; Entity_Player::Update 0x782af0.
  • Bursting Sack (377): Entity_NPC::HandleCollision 0x6cd410: an NPC whose config tags have bit 2 (spider) skips its contact damage while anyone holds it (bit 1, fly, with Skatole 9).
  • Dirty Mind (576): Entity_Pickup::HandleCollision 0x6e8ae0, spawn_poop_rewards 0x716db0, update_effects 0x794e50, Room::SpawnEntry 0x7ed310.
  • RC Remote (179): FollowParent 0x612bb0 -> predict_player_movement 0x650220 (SimulatePlayerMovement 0x7e8010); GetFollowTargetPosition 0x63b4a0 adds a random vector when detached; HandleCollision: a familiar with 0 collision damage deals 2 at multiplier 2, 5 above (4 with trinket 148 at 2+).
  • Extension Cord (125): update_effects 0x794e50.