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>
42 lines
3.6 KiB
Python
42 lines
3.6 KiB
Python
import sys; sys.path.insert(0, '../../b4tools'); from rec import upsert
|
|
def snd(names, on): return {"sounds": names, "on": on}
|
|
MEAT = ["meat_impacts_0.mp3", "meat_impacts_1.mp3", "meat_impacts_2.mp3"]
|
|
BLAST = {"effect": "explosion", "manned": True}
|
|
PUSH = {"radius": 120, "damage": 0, "frames": 2, "scale": 1, "push": 6, "hidden": True} # ButterBeanFart's shove around a blast.
|
|
ROLL = 75 # One idle tick in this many: an attack every 1-4 seconds on average.
|
|
attacks = [
|
|
{"animation": "Fart", "period": 1, "one_in": ROLL * 3, "release": "Shoot",
|
|
"gas": {"radius": 60, "damage": 0, "frames": 10000, "scale": 1, "push": 10,
|
|
"look": {"anm2": "gfx/effects/smoke_cloud/smoke_cloud.anm2", "animation": "Idle"}},
|
|
"sounds": [snd(["fart.mp3"], "Shoot")]},
|
|
{"animation": "RunStart", "period": 1, "one_in": ROLL, "sounds": [snd(["rebirth/child_angry_roar_1.mp3", "rebirth/child_angry_roar_2.mp3"], "Start")], "next": 2},
|
|
{"animation": "Run", "rolled": False, "seek": 1.4, "retention": 0.8, "loop": {"at": "Back", "to": "Start", "count": 6}, "next": [3, 4]},
|
|
{"animation": "Blast", "rolled": False, "release": "Shoot", "effects": [BLAST], "gas": PUSH, "sounds": [snd(MEAT, "Sound")]},
|
|
{"animation": "JumpBlast", "rolled": False, "leap": 9, "lunge_from": "Jump", "release": "Shoot", "effects": [BLAST], "gas": PUSH,
|
|
"sounds": [snd(["fetus_jump_0.mp3", "fetus_jump_1.mp3"], "Jump"), snd(MEAT, "Sound")]},
|
|
{"animation": "SuperBlast", "rolled": False, "release": "Shoot", "effects": [BLAST], "gas": PUSH,
|
|
"untouchable": {"from": "Shoot", "to": "End"}, "sounds": [snd(MEAT, "Shoot")], "next": 6},
|
|
{"animation": "SuperBlastLand", "rolled": False, "release": "Start", "pounce": True, "spawn": ["singes_ball"], "spawn_offset": 15,
|
|
"untouchable": {"from": "Start", "to": "Land"}, "sounds": [snd(MEAT, "Sound")]},
|
|
{"animation": "SuperFart", "rolled": False, "sounds": [snd(["rebirth/matchstick.mp3"], "Sound"), snd(["rebirth/fart_mega.mp3"], "Shoot"),
|
|
snd(["rebirth/flame_burst.mp3"], "Shoot")], "next": 8},
|
|
{"animation": "SuperFartLoop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 14}, "lunge": -2, "lunge_from": "Start",
|
|
"lunge_end": "Back", "retention": 0.8,
|
|
"shots": [{"shot": "aimed", "on": "Fire", "speed": 9, "direction_jitter": [0.15, 0.15],
|
|
"look": {"anm2": "gfx/projectiles/fire/fire.anm2", "animation": "Flickering"}}],
|
|
"sounds": [snd(["rebirth/candle_light.mp3"], "Fire")], "next": 9},
|
|
{"animation": "SuperFartEnd", "rolled": False},
|
|
]
|
|
superfart = {"animation": "SuperFart", "period": 1, "one_in": ROLL, "when": [{"min_range": 160}], "next": 8,
|
|
"sounds": attacks[7]["sounds"]}
|
|
upsert({"key": "singe", "name": "Singe", "flash_id": 91500000, "hp": 444, "mass": 20, "radius": 20, "contact_damage": 1,
|
|
"explosion_response": {"manned_damage": 0}, "gibs": {"large": True},
|
|
"behavior": {"kind": "scripted", "move": "chase", "speed": 0.8, "retention": 0.8, "idle_pose": "Walk",
|
|
"facing": {"poses": ["Walk", "Walk", "Walk", "Walk"]}, "spawn_clip": {"animation": "Appear"},
|
|
"attacks": attacks,
|
|
"phases": [{"when": [{"hp_share_below": 0.667, "idle": True}], "patch": {"opening": [5, 1]}},
|
|
{"when": [{"hp_share_below": 0.333, "idle": True}],
|
|
"patch": {"opening": [5, 1], "attacks": attacks + [superfart]}}]},
|
|
"death": {"animation": "Death"}, "death_effects": [BLAST],
|
|
"death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]}, "art": "gfx/bosses/singe/singe.anm2"})
|