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>
32 lines
2.9 KiB
Python
32 lines
2.9 KiB
Python
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
|
def poses(head, body, tail, b=''):
|
|
return {"head_direction_poses": [f'{head}Hori{b}', f'{head}Hori{b}', f'{head}Down{b}', f'{head}Up{b}'],
|
|
"direction_poses": [f'{body}Hori{b}', f'{body}Hori{b}', f'{body}Vert{b}', f'{body}Vert{b}'],
|
|
"tail_direction_poses": [f'{tail}Hori{b}', f'{tail}Hori{b}', f'{tail}Down{b}', f'{tail}Up{b}']}
|
|
def spit(b, child): # The head's spit (state 8): a Sucker (an Ink while armoured) thrown out along its run.
|
|
return {"animation": f"AttackHeadHori{b}", "period": 10, "one_in": 24, "when": [{"chain_role": "head", "type_count": {"type": 61, "below": 4}}],
|
|
"directional_poses": [f"AttackHeadHori{b}", f"AttackHeadDown{b}", f"AttackHeadUp{b}"], "release": "Shoot",
|
|
"spawn": [child], "spawn_speed": 10, "spawn_offset": 0, "spawn_cone": {"turn": 20, "speed_random": 0},
|
|
"sounds": [snd(0x9e, "Shoot")]}
|
|
chain = {"types": ["tuff_twin"], "retention": 0.8, "trail": {"limit": 12, "kept": 9},
|
|
"intro": {"duration": 1, "poses": ["Body1Hori", "WalkHeadDown"]}, "buried": {"above": 1, "nudge": 2},
|
|
"follow_index": 5, "head_follow_index": 4, "body_pose": "Body1Hori", "chewing": True, **poses('WalkHead', 'Body1', 'Butt')}
|
|
bare = {"blast_only": None, "speed": 1.8, "idle_pose": "Body1HoriB",
|
|
"chain": {"body_pose": "Body1HoriB", **poses('WalkHead', 'Body1', 'Butt', 'B')},
|
|
# Bare, a middle segment (every fifth tick, random(24)) spits two to four shots at Isaac at 10.
|
|
"attacks": [spit('B', 'sucker'),
|
|
{"animation": "Body1AttackHoriB", "period": 5, "one_in": 24, "when": [{"chain_role": "middle"}],
|
|
"directional_poses": ["Body1AttackHoriB", "Body1AttackVertB", "Body1AttackVertB"], "release": "Shoot",
|
|
"shots": [{"shot": "boss_volley", "count": 2, "count_random": 2, "speed": 10}],
|
|
"sounds": [snd(0xb2, "Shoot")]}]}
|
|
upsert({"key": "tuff_twin", "name": "Tuff Twin", "flash_id": 1900200, "hp": 35, "mass": 100, "radius": 20, "contact_damage": 1,
|
|
"boss_bar": {"eligibility": "always"}, "grid_collision": False, "enemy_contact_group": "secondary",
|
|
"gibs": {"count": 0},
|
|
"behavior": {"kind": "scripted", "move": "corridor", "speed": 1, "corridor_retry": True, "retention": 1, "depth": {"step": 100},
|
|
"idle_pose": "Body1Hori", "blast_only": 0.4, "chain": chain, "attacks": [spit('', 'ink')],
|
|
# Fifteen lost to blasts, its rock armour crumbles (state 4): bare, it takes every hit, and the
|
|
# head runs faster.
|
|
"phases": [{"when": [{"hp_below": 20}], "patch": bare}]},
|
|
"death": {"animation": "DeathBody01"}, "death_burst": {"sounds": ["rock_crumble_0.mp3", "rock_crumble_1.mp3", "rock_crumble_2.mp3"]},
|
|
"art": "gfx/bosses/tuff_twin/tuff_twin.anm2"})
|