notes: shared enemies bosses_a (Larry Jr. .. Daddy Long Legs, Enemies option)

This commit is contained in:
shweet committed 2026-10-26 12:04:58 -04:00
1 parent 6b3c1c39dd
commit ea59ad4642
1 file changed
+119
+119
View File
@@ -0,0 +1,119 @@
# Shared bosses A (Phase C, 2026-10-26)
isaac-classic branch rif/shared-enemies. Bosses Flash and Repentance+ share keep Flash's AI under the Enemies option
Eternal Edition; under Enemies = Repentance+ a gated override in resources/data/repentance_plus/entities.json gives
them the routine below (Flash's art and animation names kept). Most of these routines are Flash's port: where the
numbers agree the note says so and the override only carries the differences.
Engine fields added for them: entity `shots_still` (true or variants: shots from the non-scripted paths fly unboosted:
FireProjectiles modes 0/1/3/6-9 and FireBossProjectiles), scripted `jump.repick`, scripted shot
`volley.radial_speed`, and the chub kind roaming under `move: roam`.
## larry_jr: NpcAI::ENTITY_LARRYJR 0x46a0f0 (19.0 / 19.1). Changed (partly)
- Head: MoveRandomlyAxisAligned(2) while ProjectileCooldown < 31 (holds still above), FollowParentSegment(1, 24 (The
Hollow 18, +12 for the blue subtype 2), 20) for the others, friction *.8 last (*.96 more for subtype 2).
- Subtype 1 (green, Flash colour 3): rand%3 == 0 each tick, then if the cooldown is out: sound 0xb2, cooldown 40 +
rand%20, FireProjectiles(7.5 along its velocity) mode 0 (Larry, FSmod -5, FAmod .3: fall -8 / .4) or mode 2 (The
Hollow, FAmod .3: boosted, fall -4 / .4). The cooldown counts down only on the rolls' ticks below 31.
- MakeSplat(.3 + .4 rand) when IsFrame(10, index). Tail (no child, not subtype 2): 1 in 100, or 1 in 20 with pending
damage, a poop grid at its cell (V1.x = 30 cooldown). A head dying without a parent gives its child +25 health.
- The Hollow (variant 1): kick .1 / f below speed .4, push sign * V1 / f (V1 (3, 1.6) or (1.8, 3), redrawn 1 in 10 at a
wall), friction .85 then .8, tilt 15. Death: subtype 1 a Charger, 2 a Boom Fly, 3 a 5.20, if the cell is free.
- Health 22 / 26 (The Hollow); bosscolors: Larry green / blue (1.45, 1.15); The Hollow green / black / yellow.
- Override: move roam, chain fire shot fall -8 / .4 (form 2: fan .287, fall -4 / .4), shots_still [1], splatter 1 in
10 at .3 + .4, variant health 2 1.18182, The Hollow's three champions alike. Left: firewalk's clear-lane test (Rep
has none), the side shots' .9, Larry's ground grid collision.
## chub: NpcAI::ENTITY_CHUB 0x47a360 (28.0, 28.2). Changed
- Walk MoveRandomlyAxisAligned(1.5), stateFrame counting; past 50 a charge when (Isaac + vel * 16 rand) is within 20 on
an axis with CheckLine (no range), sound 0x73, then friction *.9 and v += 3.7 dir / f until a grid hit; 1 in 100 a
swallow while fewer than 5 of its spawns live; friction .8 last. The Carrion Queen (variant 2) below 30% bounces
(+-2 / f) and flees within 120 when feared.
- Override: move roam (chub.cpp now roams for move roam), charge lane range 1000, Carrion Queen health 1 (350),
the pink champion's scale 1.
## monstro: NpcAI::ENTITY_MONSTRO 0x46c0a0 (20.0). Changed (one field)
- Friction *.9 at the top. State 3: rand%3 hop / spit (Taunt) / leap; subtype 2 never leaps; subtype 1 splits in two.
Hop: Isaac's free cell, v += 1.2 u / f and f *.9 until Land; at the clip's end rand&1 hops again. Leap: Jump..Land
v += (d * .006 + u * .3) / f, then FireBossProjectiles(18) at no target. Spit: FireBossProjectiles(13) at Isaac.
- FireBossProjectiles 006ccdd0 never scales the count: volley two_boss / many_boss multipliers -> 1. The rest matches.
## pin / scolex: NpcAI::ENTITY_PIN 0x476860 (62.0 / 62.1). Skipped (matches, health left)
- Drift .003 away within 250 and .002 to the centre, surfacing rise - d/20 > 15 past 100, leap 8 at the target with
lift -2 - d * .02, gravity .4 (as The Frail's pass found). Pin: one lob (FireBossProjectiles(1, Isaac, 10), accel
-.3, fall * .7 - 13, scale 1.6, velocity * .55) on frame 46, Scolex three on 46-48 and FireBossProjectiles(15) at
Isaac from the tail; the grey Pin (subtype 1) a ring FireProjectiles mode 9 (8, 6), FAmod -.06.
- Health: each spawned segment takes the head's health; every tick the chain is equalised to its lowest (damage passed
with flag 0x2000), so a hit on any segment counts once (Pin 100, Scolex 300). Ours routes hits to a core with a
multiplier: left as Flash's.
## gemini: NpcAI::ENTITY_GEMINI 0x471050 (79.0). Changed (one field)
- Inline dispatcher case 0x6c2a45: friction *.8 (champions *.92), and Steven's death volleys (mode 8).
- State 4: FindGridPath(1.4 * .83 (Ovum 1.6)); 1 in 60 (Ovum 1 in 4 more) state 8: s = (s + .04) * .98, path (s + .2
Ovum) * .83 for 100 ticks, then state 3 rest 100. The cord: past 76 the baby takes (d - 76) * .01 / f toward it;
Steven's baby (d - 26) * .1 / f from any distance: steven_leash 20 -> 26.
## loki: NpcAI::ENTITY_LOKI 0x467670 (69.0). Changed
- Friction *.8; state 3: MoveRandomly (move hop .5), Walk above speed^2 1; in turn each tick: rand%40 within 300 ->
TeleportUp (spot: random, free, >= 200 from Isaac and off his row/column within 20 unless 400 away); rand%140 ->
Attack03 (mode 8 at 12); rand%100 -> Attack01 (modes 6, 7, 6 at 12 on its three Shoots); rand%70 -> enemies <
3 + rand%3 and (rand%3 == 0 or variant 0) -> Attack02 summoning 25.variant (+ health 10 when flagged).
- Override: move hop, walk_speed 1, shots_still, teleport without alignment, speeds 12, summon 1 in 70 with enemy
limit 3 + random 3 and no discard (both forms).
## monstro_ii: NpcAI::ENTITY_MONSTRO 0x46c0a0 (43.0). Changed
- State 3: |dy| < 20 + 50 rand -> laser (Taunt: ShootAngle variant 1, 30 ticks, from (0, -20)); else rand&1 leap /
hop; if I2 == the pick and rand < .9: (pick + 1 + rand&1) % 3 (Gish: rand%3 first). Landing end: I1 ^= 1, I1 = 1
leaps again (Flash's bossrep); landing Shoot: I1 0 mode 8 at 10 scale 1.4, I1 1 four Suckers (two for subtype 1)
while at most 4 enemies. Red subtype 1: playback 1.5, hop push x1.5.
- Override: jump.repick .9 (new field), shots_still, red champion health .9.
## fistula_large / fistula_medium / fistula_small: NpcAI::ENTITY_FISTULA_BIG 0x466600 (71-73). Changed (stats)
- Behaviour matched before (boss_fidelity_3). entities2.xml: medium / small collisionDamage 2 -> contact 1; Teratoma
60 / 15 / 8 like Fistula's (variant health 1.8 -> 1).
## blastocyst_large / medium / small: NpcAI::ENTITY_BLASTOCYST_BIG 0x472c40 (74-76). Changed
- Large: friction .8 * .9; state 3: d < 180, or d < 250 on rand%5 != 0: rand&1 hop (1.5) / shooting hop (.4, Land:
FireBossProjectiles(10, none, traj 2, VelocityMulti 1.2, FSmod -2)); else leap (3) -> JumpDown, Land: mode 8 at 12.
Pushes v1 / f between Jump and Land. Split: two 75.0 at +-20 u moving +-12 u. HP 300.
- Medium: beyond 250 hop 1.5 at a random heading; else rand&1 hop at Isaac / shooting hop .4: Land mode 9 (10, 6),
CircleAngle 0 or 30 deg, scale 1.5, FAmod -.04. Split: two 76.0 at +-12 u moving +-12 u.
- Small: rand&1 walk (MoveRandomly; friction *.6 after Land) / attack (still): Land mode 6 at 10, scale 1.5, FAmod
-.04; death an Embryo. Contact 1 (half a heart).
- Override: hp 300, choice when [{min_range 250}, {min_range 180, one_in 5}], volley 10 at radial_speed 8.4 (new field)
/ fall base 1 / accel .52, the eight at 12 still, the medium ring of 6, the small cardinal 10, death_split 20 / 12
and 12 / 12, no after_tick 60, small contact .5. Left: the medium ring's random 0 / 30 degree turn.
## gurdy_jr: NpcAI::ENTITY_GURDY_JR 0x51d300 (99.0). Changed (one field)
- The decompile stops at a jump table (0x51e0c8, states 3-10); --asm 0x51d4f0: friction *.8, the slide *.97 on
GetIntervalTicks(5), lunge 4 / .7, the shoot FireProjectiles mode 8 at 10 (12 when 0x6d8240 > 0, hard mode).
- Override: shots_still. Left: the rest of the jump-table states unread in detail.
## widow: NpcAI::ENTITY_WIDOW 0x46fbe0 (100.0). Changed
- Friction *.8. State 4: rand%3 == 0 beyond 100 (or, Widow, over 5 enemies) -> pounce: friction *.7, v1 = 7 u; else
(I1 < 1) a random pick of {4, 8, 9 (when allowed)}. Pounce (state 6): v += v1 / f between Jump and Land, friction
*.9 more (net .72 v + 6.3 u); Stomp crushes other NPCs for 100. The Wretched 215 hp.
- Override: pounce lunge 4 -> 6.3, variant health 2 .85 -> .86.
## duke_of_flies: NpcAI::ENTITY_DUKE 0x46e290 (67.0). Changed
- Drift MoveRandomly (.4, Husk .8, champions 1.1 / .5), friction .8 (*.9 for subtype 2). State 4: rand%40 with
enemies + flies < 9 -> swarm; rand%70 with enemies - flies < 10 -> large fly; rand%45 with flies >= 5 and others <= 4
-> release (rand%70 Husk / subtype 1, rand%20 yellow Husk). Release: flies flung 18; Husk ring mode 9 (8, 8),
subtype 1 (7, 8).
- Override: large_fly_crowd_limit 10, large_fly_member_discount 1, shots_still.
## peep: NpcAI::ENTITY_PEEP 0x47d8a0 (68.0). Changed
- Friction .6 (subtype 1 .8) then MoveRandomlyBoss: move drift .5. Each tick rand%23 leap, rand%20 shoot / summon (rand&1);
subtype 1 skips 2 in 3. Leap velocity (target - pos) * .033 on Jump; landing mode 9 (10, 12) (12 in hard mode).
- Override: move drift, shots_still. Left: hard mode's speed 12.
## gurdy: NpcAI::ENTITY_GURDY 0x47c850 (36.0). Changed
- rand%3 == 0 or Isaac above y 200: a summon (rand%3), else the spit: FireProjectiles mode 5 at 10 down / left / right
(with +-1.5 lateral and +-15 position jitter), boosted.
- Override: the spit as five (fan (1, 0), (.978, +-.208), (.914, +-.407)) at 10, base fall -3 / .1 (the boost adds -1).
Left: the jitter and the fixed ways.
## daddy_long_legs: NpcAI::ENTITY_DADDYLONGLEGS 0x468180 (101.0). Changed
- State 3: rand%20 -> {6 stomp, 9, 9 summon, 8, 8 spit} (only the first three from 4 enemies); stomps: 4 (Triachnid 3)
then 1 in 7 more; BombDamage(300 or 50, radius 44); the slam's eight mode 8 at 10. HP 500 (was 300).
- Override: hp 500, shots_still.