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>
54 lines
4.9 KiB
Python
54 lines
4.9 KiB
Python
import math, sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
|
FIRE = {"anm2": "gfx/projectiles/fire/fire.anm2", "animation": "Flickering"}
|
|
JET = {"effect": "bolts", "directions": {"count": 1}, "bolt": {"art": {"anm2": "gfx/effects/fire_jet/fire_jet.anm2", "animation": "Idle", "scale": 1, "offset_y": 0},
|
|
"period": 3, "radius": 14, "enemy_damage": 0, "player_damage": 0.5, "friendly": False}}
|
|
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}}
|
|
SIDE = 20 * math.pi / 180
|
|
attacks = [
|
|
# 0 The next wave: random(8) == 0 once the last is beaten (state 13), its room of the Mines' challenge waves.
|
|
{"animation": "Summon", "rolled": False, "release": "Wave", "when": [{"others_below": 1}],
|
|
"wave": {"kind": "challenge", "subtype": 12, "difficulties": [1, 5, 5, 10, 10, 15], "hp_cost": 1},
|
|
"sounds": [snd(0x7a, "Start"), snd(0x367, "Wave")], "cooldown": 31},
|
|
# 1 Attack1 (state 8): a big slowing shot bursting into eight, flanked 20 degrees either side, at 10.
|
|
{"animation": "Attack1", "rolled": False, "release": "Shoot",
|
|
"shots": [{"shot": "aimed", "speed": 10, "fan": [[round(math.cos(SIDE), 4), round(math.sin(SIDE), 4)], [round(math.cos(SIDE), 4), -round(math.sin(SIDE), 4)]]},
|
|
{"shot": "aimed", "speed": 10, "scale": 2, "speed_scale": 0.94, "fall_velocity": 0, "fall_acceleration": 0.03,
|
|
"landing": [{"effect": "enemy_shots", "count": 8, "speed": 8}]}],
|
|
"sounds": [snd(0x136, "Start"), snd(0x6c, "Shoot")], "cooldown": 90},
|
|
# 2-4 Attack2 (states 9, 6): a 50-tick stream of fire thrown down the room, each flame lighting a fire where it lands.
|
|
{"animation": "Attack2Start", "rolled": False, "sounds": [snd(0x138, "Start"), snd([0x131, 0x1e3], "Shoot")], "next": 3},
|
|
{"animation": "Attack2Loop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 1},
|
|
"shots": [{"shot": "aimed", "on": "Fire", "until": "Stop", "direction": [0, 18], "direction_jitter": [0.12, 0.12],
|
|
"fall_velocity": -20, "fall_acceleration": 2, "look": FIRE, "landing": [JET]}], "next": 4},
|
|
{"animation": "Attack2End", "rolled": False, "cooldown": 90},
|
|
# 5 Attack3 (state 10, once from the fourth wave): a floor-breaking rock wave down the room.
|
|
{"animation": "Attack3", "rolled": False, "release": "Shoot",
|
|
"effects": [{"effect": "bolts", "directions": {"count": 1, "angle": 90}, "offset": 40, "bolt": ROCK}],
|
|
"sounds": [snd(0x133, "Start"), snd(0xcd, "Sound"), snd(0x34, "Shoot")], "cooldown": 90},
|
|
# 6-8 Attack4 (states 11, 7): 115 ticks of inhaling, pulling Isaac, enemies and shots in.
|
|
{"animation": "Attack4Start", "rolled": False, "enemy_limit": 5, "sounds": [snd(0x74, "Start"), snd(0x130, "Shoot")], "next": 7},
|
|
{"animation": "Attack4Loop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 9},
|
|
"aura": {"radius": 450, "push": -0.8, "all": True}, "next": 8},
|
|
{"animation": "Attack4End", "rolled": False, "cooldown": 90},
|
|
]
|
|
upsert({"key": "great_gideon", "name": "Great Gideon", "flash_id": 90700000, "hp": 6, "mass": 100, "radius": 48, "contact_damage": 0,
|
|
"initially_invulnerable": True, "gibs": {"count": 0}, "boss_bar": {"eligibility": "always"},
|
|
"behavior": {"kind": "scripted", "move": "anchor", "retention": 0.7, "idle_pose": "Idle",
|
|
"spawn_clip": {"animation": "Appear"}, "attacks": attacks,
|
|
# The attack draw (every idle tick after 90, random(15)): Attack1, Attack2 off its 450-tick rest,
|
|
# Attack3 six times as likely once (from the fourth wave), Attack4 off its 600-tick rest with
|
|
# under five enemies; the next wave first whenever the last is beaten.
|
|
"choice": {"one_in": 15, "when": [{"others_below": 1}], "forced": [0], "options": [1, 2, 5, 6],
|
|
"weights": [{"weight": 1}, {"weight": 1, "rest": 450, "rest_weight": 0},
|
|
{"weight": 6, "rest": 100000, "rest_weight": 0, "waves_at_least": 4},
|
|
{"weight": 1, "rest": 600, "rest_weight": 0}]},
|
|
# The sixth wave beaten: it shuts its eyes for good (subtype 1).
|
|
"phases": [{"when": [{"others_below": 1, "waves_at_least": 6, "idle": True}],
|
|
"patch": {"choice": None, "spawn_clip": None,
|
|
"attacks": [{"animation": "CloseEyes", "become": {"type": "great_gideon_defeated"},
|
|
"sounds": [snd(0x89, "Sound")]}]}}]},
|
|
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
|
"art": "gfx/bosses/great_gideon/great_gideon.anm2"})
|