Files
isaac-port/notes/_tools/b5tools/shell.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

31 lines
2.8 KiB
Python

import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
BOUNDS = [[60, 150], [575, 410]]
chain = {"types": ["the_shell"], "retention": 0.8, "trail": {"limit": 12, "kept": 9},
"intro": {"duration": 1, "poses": ["WalkBodyRef", "WalkHeadRef"]}, "buried": {"above": 1, "nudge": 2},
"follow_index": 4, "head_follow_index": 3, "body_pose": "WalkBodyRef", "head_pose": "WalkHeadRef",
"rotated_poses": ["WalkHeadRef", "WalkBodyRef"],
# Rebirth steers its heading at Isaac's spot (at 2.5 a tick): the Hollow's diagonal run with its chase.
"diagonal": {"bounds": BOUNDS, "retention": 0.85, "stall": 0.4, "kick": 0.1, "wide": [3, 1.6], "steep": [1.8, 3], "reroll_one_in": 10,
"chase": {"bound_brake": 0.5, "range": 300, "brake": 0.92, "pull": 0.4, "near": 130, "near_pull": 0.5,
"separation": 100, "boost": 2, "cap": 10, "y_weight": 0.6, "lone_retention": 0.6}}}
bare = {"blast_only": None, "idle_pose": "GutsIdle",
"chain": {"body_pose": "GutsIdle", "direction_poses": ["GutsIdle"] * 4, "tail_direction_poses": ["ButtIdle"] * 4,
"head_pose": "WalkHeadRef"},
"attacks": [
# A bare middle (state 8, every 60-89 ticks): three shots at Isaac at 8.
{"animation": "GutsAttack", "when": [{"chain_role": "middle"}], "release": "Shoot",
"shots": [{"shot": "aimed", "count": 3, "speed": 8, "spread": 0.2}], "sounds": [snd(0x13e, "Shoot")],
"cooldown": 60, "cooldown_random": [30, 1]},
# The bare tail (every 90-149 ticks, under four Fly Bombs): a Fly Bomb out behind it at 3.
{"animation": "ButtAttack", "when": [{"chain_role": "tail", "type_count": {"type": 819, "below": 4}}], "release": "Shoot",
"spawn": ["fly_bomb"], "spawn_speed": 3, "spawn_offset": 0, "sounds": [snd(0x13e, "Shoot")],
"cooldown": 90, "cooldown_random": [60, 1]}]}
upsert({"key": "the_shell", "name": "The Shell", "flash_id": 1900300, "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": 2, "retention": 1, "depth": {"step": 100},
"idle_pose": "WalkBodyRef", "blast_only": 0.4, "chain": chain,
# Fifteen lost to blasts, its bone shell breaks (state 4): bare, it takes every hit and fights.
"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/the_shell/the_shell.anm2"})