Files
isaac-port/notes/_tools/b5tools/chimera.py
T
shweetandClaude Opus 5.5 ad8f933086 Salvage Repentance+ 1.9.7.17 decompilation toolkit, notes and name database
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>
2026-10-24 13:08:19 -04:00

69 lines
6.0 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}}
GREEN = [0.6, 1.5, 0.2, 100, 120, 0]
WALK = ["WalkHori", "WalkHori", "WalkVert", "WalkVert"]
common = {"gibs": {"large": True}, "death": {"anm2": "gfx/effects/blood_explosion/blood_explosion.anm2", "animation": "Poof", "height": -20}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]}}
attacks = [
# SpitFly (state 8): five Small Maggots, or a Sick Boom Fly.
{"animation": "SpitFly", "period": 1, "one_in": 90, "release": "Shoot", "spawn": ["small_maggot"], "count": 5,
"spawn_speed": 4, "spawn_cone": {"turn": 90, "speed_random": 3}, "sounds": [snd(0x10, "Shoot")], "cooldown": 30},
{"animation": "SpitFly", "period": 1, "one_in": 120, "release": "Shoot", "spawn": ["sick_boom_fly"], "spawn_speed": 4,
"sounds": [snd(0x10, "Shoot")], "cooldown": 30},
# Leap (state 9): two hops at Isaac, each landing in a ring of eight and four diagonal rock waves.
{"animation": "Leap", "period": 1, "one_in": 80, "range": 300, "leap": 14, "lunge_from": "Jump", "lunge_end": "Shoot",
"release": "Shoot", "retention": 1, "shots": [{"shot": "eight", "speed": 9}],
"effects": [{"effect": "bolts", "directions": "diagonal", "offset": 20, "bolt": ROCK}],
"sounds": [snd(0x34, "Shoot")], "cooldown": 30},
# FallBack (state 6): eight lobs led at Isaac.
{"animation": "FallBack", "period": 1, "one_in": 100, "release": "Shoot",
"shots": [{"shot": "boss_volley", "count": 8, "speed": 9, "aim_lead": 10, "fall_velocity": -12, "fall_acceleration": 0.6}],
"sounds": [snd(0x48, "Shoot")], "cooldown": 30},
]
upsert({"key": "chimera_head", "name": "Chimera (head)", "flash_id": 91000200, "hp": 1050, "mass": 75, "radius": 20, "contact_damage": 1,
**common,
"behavior": {"kind": "scripted", "move": "still", "retention": 0.8, "idle_pose": "Idle", "spawn_clip": {"animation": "Fall"},
"creep": {"period": 3, "min_speed": 2, "scale": 0.7},
"attacks": [
# Hops at Isaac, sliding with red creep (state 3).
{"animation": "Jump", "period": 1, "one_in": 20, "leap": 12, "lunge_from": "Jump", "lunge_end": "Shoot",
"retention": 0.95, "sounds": [snd(0x73, "Shoot")]},
# Shoot (state 8): spreads of five at Isaac.
{"animation": "Shoot", "period": 1, "one_in": 40, "release": "Shoot",
"shots": [{"shot": "aimed", "count": 5, "speed": 10, "spread": 0.15}], "sounds": [snd(0xb, "Shoot")], "cooldown": 20},
# The charge (states 9, 10): a dash at Isaac to a wall.
{"animation": "ChargeAnnounce", "period": 1, "one_in": 60, "line": {"axis": "row", "within": 40},
"sounds": [snd(0x73, "Start")], "next": 3},
{"animation": "ChargeLoop", "rolled": False, "charge_speed": 11, "on_wall": "end", "repeat": {"limit": 40},
"retention": 1, "next": 4},
{"animation": "ChargeEnd", "rolled": False, "cooldown": 30}]},
"art": "gfx/bosses/chimera_head/chimera_head.anm2"})
upsert({"key": "chimera_body", "name": "Chimera (body)", "flash_id": 91000100, "hp": 1050, "mass": 75, "radius": 20, "contact_damage": 1,
**common,
"behavior": {"kind": "scripted", "move": "path", "speed": 0.35, "retention": 1, "idle_pose": "WalkVertHeadless",
"facing": {"poses": ["WalkHoriHeadless", "WalkHoriHeadless", "WalkVertHeadless", "WalkVertHeadless"]},
"attacks": [
# Lined up on Isaac's column (state 10): a green brimstone beam down it.
{"animation": "BrimstoneStart", "period": 1, "one_in": 10, "line": {"axis": "column", "within": 30},
"sounds": [snd(0x7, "Shoot")], "next": 1},
{"animation": "BrimstoneLoop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 7},
"laser": {"width": 30, "aim": "axis", "tint": GREEN}, "sounds": [snd(0x119, "Start")], "next": 2},
{"animation": "BrimstoneEnd", "rolled": False, "cooldown": 60},
# Rolls about the room (state 11).
{"animation": "RollBegin", "period": 1, "one_in": 150, "next": 4},
{"animation": "Roll", "rolled": False, "charge_speed": 9, "on_wall": "end", "repeat": {"limit": 60}, "retention": 1,
"next": 5},
{"animation": "RollEnd", "rolled": False, "cooldown": 30}]},
"art": "gfx/bosses/chimera/chimera.anm2"})
upsert({"key": "chimera", "name": "Chimera", "flash_id": 91000000, "hp": 1050, "mass": 75, "radius": 20, "contact_damage": 1, **common,
"behavior": {"kind": "scripted", "move": "path", "speed": 0.45, "retention": 1, "idle_pose": "WalkVert", "facing": {"poses": WALK},
"spawn_clip": {"animation": "Appear"}, "creep": {"period": 3, "min_speed": 3, "scale": 0.8, "color": GREEN},
"attacks": attacks,
# At half health (state 16) its head trips off: the body and the head go on apart.
"phases": [{"when": [{"hp_share_below": 0.5}], "attack": 0,
"patch": {"attacks": [{"animation": "TripVert", "rolled": False, "release": "Shoot",
"spawn": ["chimera_head"], "spawn_speed": 6, "spawn_health": [0.5],
"become": {"type": "chimera_body"}, "sounds": [snd(0x89, "Shoot")]}]}}]},
"art": "gfx/bosses/chimera/chimera.anm2"})