From 385224c35889840b455d100ed2544575134b7f91 Mon Sep 17 00:00:00 2001 From: shweet Date: Mon, 26 Oct 2026 12:09:33 -0400 Subject: [PATCH] notes: shared enemies walkers (Charger, Maggot, Spitty, Leeches, Sucker, Spit, Fly, Pooter, Moter, Horf, Boom Flies, Globins, Maws, Gusher, Clotties, Big Spider, Hive, Mulligans, Eternal Fly) --- notes/entities/shared_walkers.md | 124 +++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 notes/entities/shared_walkers.md diff --git a/notes/entities/shared_walkers.md b/notes/entities/shared_walkers.md new file mode 100644 index 0000000..ef6aa5d --- /dev/null +++ b/notes/entities/shared_walkers.md @@ -0,0 +1,124 @@ +# Shared enemies: walkers and flyers (Phase C, 2026-10-26) + +isaac-classic branch rif/shared-enemies, fork "walkers". Monsters both games have keep Flash's AI under Enemies = +Eternal Edition; under Enemies = Repentance+ a gated override (resources/data/repentance_plus/entities.json) gives +them these routines, on Flash's art and animation names. Engine fields added: corridor_walker `roam` (the walk as +MoveRandomlyAxisAligned / roam_step), foraging_fly `pull` {one_in, speed} and alternate_one_in 0, ground_chaser `keep`, +corridor shot duration below its clip. Used the bosses fork's entity `shots_still` and hp {base, per_stage}. +Hard-mode numbers (Game::IsHardMode / difficulty 1 or 3) are `{"$if": {"mode": ["hard", "greedier"]}}` values. +"No rare rolls": Flash's 1 in 21 / 25 / 100 promotions to a second form (variants.rolls) are removed; Repentance+'s +rooms name every variant. + +## charger: NpcAI::ENTITY_MAGGOT 0052db50 (23.0). Changed +- Walk (state 4): MoveRandomlyAxisAligned(.6) (default aiFloat 0x3f19999a), friction *.85, then velocity.y *= .9647 + (0x3f76f6f6): override roam, retention [.85, .82]. +- Charge check IsFrame(4, index): target CalcTargetPosition + Isaac's velocity * 16 rand, clamped 20; delta from its + cell's centre within 20 on an axis, d^2 < 40000 (not for 0x37), CheckLine(mode 0; 0x37 mode 2). Sound 0xe0 delay 20. + V1 = ToCardinal * 1.3 (0x37 1.55, 23.1 x .9, Dank x 14). +- State 8: friction *.8 (0x17; others .9), AddVelocity_divided(V1): .8 v + 1.3, terminal 6.5 (the original's). The + cross axis: v += ((lane - pos) - v) * .3 (timescale .7). Ends on a grid hit, fear/charm flags, or moving under + sqrt 2 a tick for more than 5 ticks. +- Override: prediction_duration 8 -> 16. Left: the cross-axis velocity ease (ours eases position .9), the stall end. + +## my_shadow_23_0_1: NpcAI::ENTITY_MAGGOT 0052db50 (23.0.1). Partial +- The Charger's routine; in state 4 each other My Shadow within 15 + 15 RandomFloat(InitSeed) pushes it away by + clamp(speed + .4, .8, 2). A friendly charger whose target is a player never charges. Not expressed. + +## maggot: 0052db50 (21.0). Changed +- Speed .75 (0x3f400000) MoveRandomlyAxisAligned, the same frictions; no charge (only 0x17 / 0x37 / 0xed charge). + Override roam, retention [.85, .82]. + +## spitty: 0052db50 (31.0). Changed +- Speed .72 (0x3f3851ec) roam. Not controlled: rand % 35 == 0 a tick (no speed test) -> state 9 Attack by its way + (i1 = animDir), friction *.85; Shoot (sound 0xb2): mode 0 at 8 along the way, HeightModifier 14, FallingSpeedModifier + -.1, FallingAccelModifier -.101 (fall -3.1 / accel -.001, unboosted), back to state 4 when the 16-frame clip ends + (Rep's Shoot on frame 6). +- Override: roam, retention [.85, .82], shooting minimum_speed_squared 0, height -9, fall -3.1 / -.001, duration 16 + (Flash's clip is 23), release 7. Contact damage 1 -> .5 (entities2 collisionDamage 1). + +## leech / kamikaze_leech / holy_leech: 0052db50 (55.0-2). Changed (partly) +- Speed .85 roam; charge as Charger but no range limit and CheckLine mode 2, V1 1.55, friction .9: .9 v + 1.55. + Sound 0xdd. Death of 55.1 / 55.2: BombDamage(40, 60) + 1000.1. Health 25 for all three. +- Override: roam, retention [.85, .82], charge prediction 16, range 1000; variants health 1.25 -> 1; no rare rolls. + +## sucker / spit: NpcAI::ENTITY_FLY 00506bd0 (61.0 / 61.1). Changed +- Steering every 2nd tick toward CalcTargetPosition, stop 15 (0x3d), (dx, dy * .5), push min((d - 15) * .08, 1.2) / + f; V1 not *.7 for 0x3d. V1 = (RandomVector * .6 + V1) * .4 on frame % 4 == 1 (every type, no obstacle test); on + frame % 3 == 2 the edge nudges (.06 past y 230 / 420, x 80 / 540), v += 2 V1 / f, f *= .6. +- Death 61.0: mode 6 at 8 (10 in hard). 61.1: FireBossProjectiles(1, Isaac, 10), then flag 2 (explode), accel -.3, + scale 1.6, velocity * .55, fall .7 f - 13, green colorize (.4, 2, .5): the original's green lob. +- Override: drift_radius .34 -> .6, drift_retention .8 -> .4, crossing_retention .5 -> 1, shots_still, death shot 8 / + 10 in hard; no rare rolls. Left: the top edge line (230 vs our 210). +- Same drift applies to Attack Fly 18 (shared_1.md): its crossing_retention should be 1 too. + +## fly / pooter: 00506bd0 (13.0 / 14.0). Changed (partly) +- 13 / 14 have their target cleared (spawnerType 0x66 aside): no steering at all. Instead, target zero: rand % 5 == 0 + a tick -> v += .7 unit(Isaac) (not divided). Then the shared V1 drift and third-tick brake. +- 13: rand % 1000 == 0 a tick on a poop cell (grid type 0xe): the poop is hit and it Morphs into 14.0 at full health. +- 14: IsTargetInAttackRange(200, 0, 7), cooldown 35 (0x23; 14.2 0x3f), Attack (Shoot frame 6): mode 0 at 7 (10 in + hard; 14.1 mode 1; 14.2 mode 4 with +0x98 set), unboosted, fall -3 / .1; while cooling friction *.8, V1 *.7. +- Override: foraging_fly search_radius 0 (only its own cell), alternate_one_in 0, pull {5, .7}, flight drift .6 / .4 / + crossing 1; pooter attack windup 8 -> 6, cooldown_checks 4 -> 5, shot 7 / 10 hard, shots_still, no rare rolls. +- Left: the feed roll on every 2nd (steering) tick, steering onto the poop's centre once over one. + +## moter: 00506bd0 (80.0). Changed +- Stop 25, the attack fly's push; death (health above -20, no Skatole): two 18.0 at +-10 across the line to Isaac moving + 10 (the original's death_split). Override: drift .6 / .4 / crossing 1. + +## horf: NpcAI::ENTITY_HORF 00513080 (12.0). Changed +- Friction *.7; cooldown 28 (14 in hard) on IsTargetInAttackRange(200, 0, 7); Attack's Shoot (frame 4): mode 0 at 7 + (10 in hard) at Isaac, blood effect, sound; Shake idle. +- Override: windup 8 -> 4, shot 7 / 10, cooldown_checks 4 / 2, shots_still. + +## boom_fly / red_boom_fly: NpcAI::ENTITY_BOOMFLY 0050f280 (25.0 / 25.1). Changed +- Friction *.9, +-.45 per axis by the velocity's sign / f (the original's). Feared: v += away * clamp((120 - d) * .02) + / f (not expressed). Death 25.0: BombExplosionEffects 40; 25.1 (and every variant not 0/2/4/5/6): mode 9 count 6 at + 8 (10 in hard), no explosion. +- Health: baseHP 8, stageHP 3 (Flash 20): hp {base 8, per_stage 3}. shots_still, death shot 8 / 10, no rare rolls. + +## globin / gazing_globin: NpcAI::ENTITY_GLOBIN 0050e4d0 (24.0 / 24.1). Changed +- State 4: splat rand % 10 (.2 + .5 rand), FindGridPath(.75; 24.1 1.1), groan 0xa5 1 in 3 with a direct path, then + friction *.97. ReGen (state 3): *.7 (24.1: *.83 and .5 / f away from Isaac within 200); Regen event sound 0x1d. +- Death in state 4 (variants 0-2): health 10, ReGen, state 3 (24.2 adds a spider below 7 enemies). Killed in ReGen: + dies. +- Override: ground_chaser path, acceleration .7275 / 1.067 (x .97), keep .7 -> .679, recovery champion_health 2 -> 0; + no rare rolls. + +## maw / red_maw / psychic_maw: NpcAI::ENTITY_MAW 00510ae0 (26.0-2). Changed +- Clamped 30 into the room; splat 1 in 10; v += .13 unit(target) / f (x3 for 26.1), friction *.93. 26.0 / 26.2: + IsTargetInAttackRange(200, 0, 7), cooldown 28, Shoot (frame 4) mode 0 at 7 (10 in hard); 26.2 homing (flag 1), + scale 1.5, sound 0xb2, and an Eternal Fly parented at init. Death 26.1: mode 6 at 8. +- Override: windup 8 -> 4, shot 7 / 10, homing_shot fall offset 3 -> 0 and height -10 -> 0 (the mode 0 base), + shots_still, no rare rolls. + +## gusher / pacer: NpcAI::ENTITY_GUSHER 0050af90 (11.0 / 11.1). Changed (partly) +- Friction *.75, MoveRandomly (net .5, the original's). 11.0: cooldown 20 + rand % 20 at init; then along its velocity + mode 0 at 5 with FallingAccelModifier .3, FallingSpeedModifier -5 (fall -8 / accel .4), cooldown 40 + rand % 20, + sound 0xb2; the shot's look by stage (6 / 27 variant 4, 28 variant 3). 11.1 never shoots. +- Override: blood_shot fall -5 / .3 -> -8 / .4, shots_still. Left: the first cooldown, the stage looks. + +## clotty / clot / i_blob: NpcAI::ENTITY_CLOTTY 0050d370 (15.0-2). Changed +- Friction *.9, MoveRandomly; arrival -> Attack with V1.x 30, ended once the clip stops or past V1.x 0 on 29 in 30. + Shoot (asm 0050ded0): variant 0 mode 6, 1 mode 7 (red, 0xc34e54), 2 mode 8; at 7 (10 in hard). The original's. +- Override: shots_still, shot 7 / 10. + +## big_spider: NpcAI::ENTITY_SPIDER 00529da0 (94.0). Changed (partly) +- The Spider's branch (shared_1.md); death (health above -20): two 85.0 at pos +- 10 u' moving +- 10 u', u' the + perpendicular of unit(target - pos). Override: prediction 10, short_wander_scale 1. Left: the pair's direction. + +## hive: NpcAI::ENTITY_HIVE 0050c370 (22.0). Skipped (matches) +- EvadeTarget is Flash's angstfind (FindGridPath 1.079 = Flash's 1.3 x the .83 calm scale our fleeing navigation + keeps); friction *.8, calm MoveRandomly under *.9. Death (above -20): ceil(4 / (1 + .2 alive)) less champion regens, + each rand % 11: < 7 Fly, 7 Pooter, else Attack Fly, 2..6 out (DAT int floats 13 / 14 / 18): the original's. + +## mulligan / mulligoon / mulliboom: NpcAI::ENTITY_MULLIGAN 0050bbe0 (16.0-2). Changed +- 16.0/16.1 EvadeTarget, *.8; against a wall rand % 300 -> Explode overlay -> BombDamage 40/60, mode 6 at 7 (10 hard). + 16.2 FindGridPath(1.2), *.9, every 5 ticks within 40 of Isaac it dies (bomb). Death: 16.2 bomb; 16.1 mode 7 at 7 (10) + and a Troll Bomb 4.3; 16.0 above -10 health: exactly 4 - champion regens (no crowd scaling) of the Hive's pool. +- Override: death_spawn overkill 20 -> 10, crowd_scale .2 -> 0; burst / troll bomb shots 7 (10 hard), shots_still; + no rare rolls. + +## eternal_fly: NpcAI::ENTITY_ETERNALFLY 0050a8a0 (96.0). Changed (partly) +- Orbit .02 at 60 / 50 with no parent or a Hanger (0x5a) parent, else .04 at 25 / 20; the parent gone (or its poop + cell gone) and i1 > 0: Morph to 18.0, collision back. Override: wide_host_types [hanger] (the Duke's flies orbit close). + Left: the released fly's health / scale (Morph's), not checked.