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>
66 lines
5.8 KiB
Python
66 lines
5.8 KiB
Python
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
|
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}}
|
|
MOVE = ["MoveLeft", "MoveRight", "MoveDown", "MoveUp"]
|
|
upsert({"key": "visage_plasma", "name": "Visage Plasma", "flash_id": 90302000, "hp": 50, "mass": 30, "radius": 10, "contact_damage": 1,
|
|
"gibs": {"count": 0}, "grid_collision": False, "boss_bar": {"eligibility": "never"},
|
|
"death_link": {"target_type": "the_visage", "animation": "Idle", "all": True},
|
|
"behavior": {"kind": "scripted", "move": "orbit", "flying": True, "speed": 0.5, "retention": 0.75, "idle_pose": "Idle",
|
|
"orbit": {"radius": 70, "spin": 0.05, "ring": 6, "center": "group", "target_type": "the_visage"},
|
|
"attacks": [{"animation": "Idle", "period": 30, "one_in": 3, "release": "Start", "shots": [{"shot": "aimed", "speed": 7}]}]},
|
|
"death_burst": {"sounds": ["death_burst_small_0.mp3", "death_burst_small_1.mp3", "death_burst_small_2.mp3"]},
|
|
"art": "gfx/monsters/visage_plasma/visage_plasma.anm2"})
|
|
upsert({"key": "visage_mask", "name": "Visage Mask", "flash_id": 90300100, "hp": 100, "mass": 30, "radius": 20, "contact_damage": 1,
|
|
"door_lock": "never", "gibs": {"count": 0}, "boss_bar": {"eligibility": "never"},
|
|
"death_link": {"target_type": "the_visage", "animation": "Appear", "all": True},
|
|
"behavior": {"kind": "scripted", "move": "path", "speed": 0.35, "retention": 1, "idle_pose": "MoveDown", "facing": {"poses": MOVE},
|
|
"spawn_clip": {"animation": "Appear"},
|
|
"attacks": [
|
|
# Lined up with Isaac: a charge along his row or column, crashing into a wall.
|
|
{"animation": "ChargeBeginDown", "period": 1, "one_in": 8, "line": {"axis": "row", "within": 30},
|
|
"directional_poses": ["ChargeBeginLeft", "ChargeBeginDown", "ChargeBeginUp", "ChargeBeginRight"], "next": 1},
|
|
{"animation": "ChargeLoopDown", "rolled": False, "charge_speed": 10, "on_wall": "end", "repeat": {"limit": 50},
|
|
"directional_poses": ["ChargeLoopLeft", "ChargeLoopDown", "ChargeLoopUp", "ChargeLoopRight"], "retention": 1,
|
|
"sounds": [snd(0x130, "Start")], "next": 2},
|
|
{"animation": "ChargeHitDown", "rolled": False,
|
|
"directional_poses": ["ChargeHitLeft", "ChargeHitDown", "ChargeHitUp", "ChargeHitRight"],
|
|
"sounds": [snd(0x34, "Start")], "cooldown": 30},
|
|
{"animation": "ChargeBeginDown", "period": 1, "one_in": 8, "line": {"axis": "column", "within": 30},
|
|
"directional_poses": ["ChargeBeginLeft", "ChargeBeginDown", "ChargeBeginUp", "ChargeBeginRight"], "next": 1}]},
|
|
"death": {"anm2": "gfx/effects/blood_explosion/blood_explosion.anm2", "animation": "Poof", "height": -20},
|
|
"art": "gfx/bosses/visage_mask/visage_mask.anm2"})
|
|
heart = [
|
|
# Leaps (states 0x6c-0x6e): up and down onto Isaac, landing in four rock waves.
|
|
{"animation": "JumpUp", "period": 1, "one_in": 40, "release": "Shoot", "untouchable": {"from": "Shoot", "to": "End"},
|
|
"sounds": [snd(0x48, "Shoot")], "next": 1},
|
|
{"animation": "JumpDown", "rolled": False, "release": "Shoot", "pounce": True,
|
|
"effects": [{"effect": "bolts", "directions": "cardinal", "offset": 20, "bolt": ROCK}], "untouchable": {"from": "Start", "to": "Shoot"},
|
|
"sounds": [snd(0x34, "Shoot")], "cooldown": 30},
|
|
# Attack: a spread at Isaac.
|
|
{"animation": "Attack", "period": 1, "one_in": 40, "release": "Shoot", "shots": [{"shot": "aimed", "count": 3, "speed": 9, "spread": 0.25}],
|
|
"sounds": [snd(0xb2, "Shoot")], "cooldown": 30},
|
|
]
|
|
second = heart + [
|
|
# 3-5 Attack3: plasma orbs out round her.
|
|
{"animation": "Attack3", "period": 1, "one_in": 80, "release": "Shoot", "when": [{"type_count": {"type": 903, "below": 5}}],
|
|
"spawn": ["visage_plasma"], "count": 3, "spawn_offset": 50, "sounds": [snd(0xd5, "Shoot")], "next": 4},
|
|
{"animation": "Attack3Loop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 2}, "next": 5},
|
|
{"animation": "Attack3End", "rolled": False, "cooldown": 30},
|
|
# 6 Attack4: a ring, then everything drawn in toward her.
|
|
{"animation": "Attack4", "period": 1, "one_in": 120, "release": "Shoot", "shots": [{"shot": "ring", "count": 16, "speed": 7}],
|
|
"aura": {"radius": 400, "push": -0.6, "from": "Break"}, "sounds": [snd(0x1d7, "Break"), snd(0x10b, "Shoot")], "cooldown": 60},
|
|
]
|
|
upsert({"key": "the_visage", "name": "The Visage", "flash_id": 90300000, "hp": 620, "mass": 30, "radius": 20, "contact_damage": 1,
|
|
"gibs": {"large": True},
|
|
"behavior": {"kind": "scripted", "move": "anchor", "retention": 0.8, "idle_pose": "Idle1", "spawn_clip": {"animation": "Appear"},
|
|
# Chained and untouchable while her mask roams (the chain's 150 here the mask's 100).
|
|
"partner": {"type": "visage_mask", "spawn": True, "shield": True, "offset": 0},
|
|
"phases": [{"when": [{"partner": False}],
|
|
"patch": {"move": "still", "idle_pose": "Idle2", "spawn_clip": {"animation": "Transition"},
|
|
"attacks": heart}},
|
|
{"when": [{"hp_share_below": 0.5}],
|
|
"patch": {"idle_pose": "Idle3", "spawn_clip": {"animation": "Transition2"}, "attacks": second}}]},
|
|
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
|
"art": "gfx/bosses/the_visage/the_visage.anm2"})
|