Ghidra 12.2 project and full dump of isaac-ng.exe v1.9.7.17, query scripts, notes indexed by entity, anm2/rooms reimplementations, and db/ (names + fields) that build.sh re-applies. Fixes awk numeric address comparison in find.sh/decompile.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
119 lines
10 KiB
Python
119 lines
10 KiB
Python
import math, sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
|
def fan(n, low, high):
|
|
return [[round(math.cos(math.radians(a)), 4), round(math.sin(math.radians(a)), 4)]
|
|
for a in (low + (high - low) * i / (n - 1) for i in range(n))]
|
|
ROCK = {"art": {"anm2": "gfx/effects/rock_explosion/rock_explosion.anm2", "animation": "Break", "scale": 1, "offset_y": 0},
|
|
"period": 3, "radius": 14, "enemy_damage": 2, "player_damage": 0.5, "friendly": False,
|
|
"wave": {"spacing": 30, "period": 3, "breaking": True}}
|
|
KNIFE = {"anm2": "gfx/projectiles/big_knife/big_knife.anm2", "animation": "Move"}
|
|
first = [
|
|
# 0 State 8, ThrowKnife(2): Mother's big knife thrown down from her hand at 15, shedding side shots as it flies.
|
|
{"animation": "ThrowKnife", "rolled": False, "directional_poses": ["ThrowKnife", "ThrowKnife2", "ThrowKnife"],
|
|
"release": "Shoot",
|
|
"shots": [{"shot": "aimed", "direction": [0, 15], "offset": [0, 60], "scale": 1, "look": KNIFE, "over_terrain": 60,
|
|
"fall_velocity": 0, "fall_acceleration": 0, "shed": {"period": 4, "speed": 4, "speed_scale": 1.04, "speed_limit": 9}}],
|
|
"sounds": [snd(0x272, "Sound"), snd(0x273, "Shoot")], "cooldown": 50},
|
|
# 1 State 9, GroundPound(2): a fist slammed down, a shockwave and seven shots fanned toward the room's middle.
|
|
{"animation": "GroundPound", "rolled": False, "directional_poses": ["GroundPound", "GroundPound2", "GroundPound"],
|
|
"release": "Shoot", "effects": [{"effect": "bolts", "directions": {"count": 5, "angle": 30}, "offset": 60, "bolt": ROCK}],
|
|
"shots": [{"shot": "aimed", "speed": 6, "offset": [0, 60], "fan": fan(7, -40, 40)}],
|
|
"sounds": [snd([0x26c, 0x26d], "Sound"), snd(0x34, "Shoot")], "cooldown": 50},
|
|
# 2 State 10, WristAttack: ten wavy homing trails (Mother Worms) let loose from her wrist.
|
|
{"animation": "WristAttackLeft", "rolled": False, "directional_poses": ["WristAttackLeft", "WristAttackRight", "WristAttackLeft"],
|
|
"release": "Shoot",
|
|
"shots": [{"shot": "aimed", "speed": 6, "offset": [0, 60], "fan": fan(10, -60, 60), "homing": {}, "curve": 0.04,
|
|
"curve_alternate": True}],
|
|
"sounds": [snd(0x283, "Sound"), snd(0x284, "Shoot")], "cooldown": 90},
|
|
# 3 State 19, Shoot1: a Fistula ball spat out, bouncing off the walls.
|
|
{"animation": "Shoot1", "rolled": False, "release": "Shoot", "spawn": ["mother_ball"], "count": 1, "spawn_offset": 0,
|
|
"spawn_at": [[0, 120]], "spawn_speed": 6, "spawn_cap": {"type": "mother_ball", "below": 1}, "sounds": [snd(0x26f, "Shoot")],
|
|
"cooldown": 50},
|
|
# 4-6 State 13: SummonBegin, the Dead Isaacs' horde walking up from the bottom while her laser loops, then its end.
|
|
{"animation": "SummonBegin", "rolled": False, "sounds": [snd(0x274, "Sound")], "next": 5},
|
|
{"animation": "LaserAttackLoop", "rolled": False, "release": "Start", "loop": {"at": "Back", "to": "Start", "count": 9},
|
|
"spawn": ["dead_isaac"], "count": 2, "spawn_at": [[-160, 340], [160, 340], [-60, 340], [60, 340]], "spawn_velocity": [0, -1.4],
|
|
"spawn_cap": {"type": "dead_isaac", "below": 12}, "next": 6},
|
|
{"animation": "LaserAttackEnd", "rolled": False, "sounds": [snd(0x275, "Start")], "cooldown": 60},
|
|
# 7 State 11, ScrapeAttack(2): the hand swept along the floor, blowing what stands near it away.
|
|
{"animation": "ScrapeAttack", "rolled": False, "directional_poses": ["ScrapeAttack", "ScrapeAttack2", "ScrapeAttack"],
|
|
"release": "Shoot", "gas": {"radius": 140, "damage": 10, "frames": 2, "scale": 1, "push": 10, "hidden": True},
|
|
"sounds": [snd(0x34, "Shoot")], "cooldown": 30},
|
|
]
|
|
upsert({"key": "dead_isaac", "name": "Dead Isaac", "flash_id": 91202000, "hp": 40, "mass": 5, "radius": 13, "contact_damage": 0.5,
|
|
"door_lock": "never", "gibs": {"count": 4},
|
|
"behavior": {"kind": "scripted", "move": "still", "retention": 1, "idle_pose": "WalkVert", "spawn_clip": {"animation": "Appear"}},
|
|
"death_burst": {"sounds": ["death_burst_small_0.mp3", "death_burst_small_1.mp3", "death_burst_small_2.mp3"]},
|
|
"art": "gfx/monsters/dead_isaac/dead_isaac.anm2"})
|
|
upsert({"key": "mother_ball", "name": "Mother Ball", "flash_id": 91210000, "hp": 10, "mass": 1000, "radius": 40, "contact_damage": 0.5,
|
|
"door_lock": "never", "enemy_contact_group": "secondary",
|
|
"behavior": {"kind": "scripted", "move": "bounce", "speed": 0.6, "retention": 0.95, "idle_pose": "Idle", "blast_only": 1,
|
|
"wall_bounce": {"impulse": 1, "sounds": ["meat_impacts_0.mp3", "meat_impacts_1.mp3", "meat_impacts_2.mp3"],
|
|
"volume_scale": 15, "gap": 5},
|
|
"fade": {"life": 600, "duration": 600}},
|
|
"death_spawn": {"overkill_limit": 1000000, "count": 3, "crowd_scale": 0, "count_step": 1, "radius": 20,
|
|
"pool": [{"create_type": "mother_ball_medium", "weight": 1}]},
|
|
"death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]}, "art": "gfx/bosses/mother_ball/mother_ball.anm2",
|
|
"death": {"anm2": "gfx/effects/blood_explosion/blood_explosion.anm2", "animation": "Poof_Large1", "height": 5.9}})
|
|
upsert({"key": "mother", "name": "Mother", "flash_id": 91200000, "hp": 2222, "mass": 1000, "radius": 90, "contact_damage": 0.5,
|
|
"boss_bar": {"eligibility": "never"}, "gibs": {"count": 0}, "grid_collision": False,
|
|
"behavior": {"kind": "scripted", "move": "anchor", "idle_pose": "Idle", "spawn_clip": {"animation": "Appear"},
|
|
"attacks": first, "first_cooldown": [60, 0],
|
|
# State 3 once its wait runs out: Shoot1 one time in six (three attacks since the last), else the
|
|
# wrist one in three, else a pound or the knife; every ~54 s the Dead Isaacs; a scrape when they near.
|
|
"choice": {"one_in": 1, "options": [0, 0, 1, 1, 2, 3, 4, 7],
|
|
"weights": [{"weight": 4}, {"weight": 4}, {"weight": 4}, {"weight": 4}, {"weight": 5},
|
|
{"weight": 3, "rest": 150, "rest_weight": 0}, {"weight": 2, "rest": 1620, "rest_weight": 0},
|
|
{"weight": 2, "per": 4, "type": "dead_isaac"}]}},
|
|
# Beaten, she tears through into her second form, the room's whole length.
|
|
"death": {"animation": "Transition0"},
|
|
"death_spawn": {"overkill_limit": 1000000, "count": 1, "crowd_scale": 0, "count_step": 1, "radius": 0,
|
|
"pool": [{"create_type": "mother_2", "weight": 1}]},
|
|
"art": "gfx/bosses/mother/mother.anm2"})
|
|
CHARGE = [["ChargeLeftBegin", "ChargeBegin", "ChargeUpBegin", "ChargeRightBegin"],
|
|
["ChargeLeftLoop", "ChargeLoop", "ChargeUpLoop", "ChargeRightLoop"],
|
|
["ChargeLeftEnd", "ChargeEnd", "ChargeUpEnd", "ChargeRightEnd"]]
|
|
second = [
|
|
# 0-2 Spin: wavy strings spun out all round.
|
|
{"animation": "SpinBegin", "rolled": False, "sounds": [snd(0x27c, "Sound")], "next": 1},
|
|
{"animation": "SpinLoop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 7},
|
|
"shots": [{"shot": "spiral", "on": "Start", "until": "Back", "every": 3, "speed": 6, "spread": 0.35,
|
|
"fan": [[1, 0, 0, 1], [0, 1, -1, 0], [-1, 0, 0, -1], [0, -1, 1, 0]], "curve": 0.02, "curve_alternate": True}],
|
|
"next": 2},
|
|
{"animation": "SpinEnd", "rolled": False, "cooldown": 40},
|
|
# 3-5 Shoot: an inhale pulling Isaac in, then a big ball that splits against the wall.
|
|
{"animation": "ShootBegin", "rolled": False, "directional_poses": ["ShootLeftBegin", "ShootBegin", "ShootBegin", "ShootRightBegin"],
|
|
"next": 4},
|
|
{"animation": "ShootLoop", "rolled": False, "directional_poses": ["ShootLeftLoop", "ShootLoop", "ShootLoop", "ShootRightLoop"],
|
|
"loop": {"at": "Back", "to": "Start", "count": 4}, "aura": {"radius": 500, "push": -0.5}, "next": 5},
|
|
{"animation": "ShootEnd", "rolled": False, "directional_poses": ["ShootLeftEnd", "ShootEnd", "ShootEnd", "ShootRightEnd"],
|
|
"release": "Start",
|
|
"shots": [{"shot": "aimed", "speed": 9, "scale": 3, "fall_velocity": -2, "fall_acceleration": 0.02,
|
|
"landing": [{"effect": "enemy_shots", "count": 10, "speed": 7}]}],
|
|
"sounds": [snd(0x26f, "Start")], "cooldown": 40},
|
|
# 6-8 A charge along Isaac's row or column to the wall.
|
|
{"animation": "ChargeBegin", "rolled": False, "directional_poses": CHARGE[0], "next": 7},
|
|
{"animation": "ChargeLoop", "rolled": False, "directional_poses": CHARGE[1], "charge_speed": 14, "on_wall": "end",
|
|
"repeat": {"limit": 30}, "retention": 1, "next": 8},
|
|
{"animation": "ChargeEnd", "rolled": False, "directional_poses": CHARGE[2], "sounds": [snd(0x34, "Start")], "cooldown": 40},
|
|
# 9 A swipe: a line of hanging shots dropped toward Isaac.
|
|
{"animation": "SwipeDown", "rolled": False, "directional_poses": ["SwipeLeft", "SwipeDown", "SwipeUp", "SwipeRight"],
|
|
"release": "Shoot",
|
|
"shots": [{"shot": "aimed", "speed": 8, "fan": fan(9, -50, 50), "hover": {"ticks": 30, "speed": 9}}],
|
|
"sounds": [snd(0x27d, "Sound")], "cooldown": 40},
|
|
# 10-11 A leap out of the room and down onto Isaac, rock waves out from her landing.
|
|
{"animation": "JumpUp", "rolled": False, "release": "Shoot", "untouchable": {"from": "Shoot", "to": "End"},
|
|
"sounds": [snd(0x48, "Sound")], "next": 11},
|
|
{"animation": "JumpDown", "rolled": False, "release": "Shoot", "pounce": True, "untouchable": {"from": "Start", "to": "Shoot"},
|
|
"effects": [{"effect": "bolts", "directions": "cardinal", "offset": 60, "bolt": ROCK}],
|
|
"sounds": [snd(0x34, "Shoot")], "cooldown": 50},
|
|
# 12 Chomp.
|
|
{"animation": "Chomp", "rolled": False, "release": "Shoot", "range": 160, "sounds": [snd(0x277, "Shoot")], "cooldown": 20},
|
|
]
|
|
upsert({"key": "mother_2", "name": "Mother 2", "flash_id": 91201000, "hp": 2000, "mass": 1000, "radius": 110, "contact_damage": 0.5,
|
|
"boss_bar": {"eligibility": "never"}, "gibs": {"count": 0},
|
|
"behavior": {"kind": "scripted", "move": "hover", "flying": True, "speed": 0.08, "retention": 0.9, "idle_pose": "Idle",
|
|
"spawn_clip": {"animation": "Appear"}, "attacks": second,
|
|
"choice": {"one_in": 30, "options": [0, 3, 6, 9, 10, 12]}},
|
|
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"], "frames": "Shoot"},
|
|
"art": "gfx/bosses/mother_2/mother_2.anm2"})
|