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

27 lines
2.4 KiB
Python

import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
BOUNDS = [[60, 150], [575, 410]]
chain = {"types": ["turdlet"], "retention": 0.85, "trail": {"limit": 12, "kept": 9},
"intro": {"duration": 1, "poses": ["BodySegments", "HeadWalkRef"]}, "buried": {"above": 1, "nudge": 2},
"follow_index": 4, "head_follow_index": 3, "body_pose": "BodySegments", "head_pose": "HeadWalkRef",
"rotated_poses": ["HeadWalkRef", "HeadChargeRef", "HeadChargeLoopRef", "HeadChargeEndRef"],
# Rebirth turns its heading toward a lagging target on Isaac at 1.2 a tick (wide turns off the walls).
"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.3, "near": 130, "near_pull": 0.4,
"separation": 100, "boost": 1.5, "cap": 8, "y_weight": 0.6, "lone_retention": 0.6}}}
attacks = [
# The launch (states 8, 6, 16): once its clock passes 270 (1-2 a tick) with Isaac on its target, random(5): a
# wind-up, then the whole chain flung at Isaac at 12.
{"animation": "HeadChargeRef", "period": 1, "one_in": 5, "range": 200, "when": [{"chain_role": "head"}],
"sounds": [snd(0x39, "Start")], "next": 1, "cooldown": 180},
{"animation": "HeadChargeLoopRef", "rolled": False, "lunge": 2.4, "lunge_from": "Start", "lunge_end": "Back",
"loop": {"at": "Back", "to": "Start", "count": 5}, "next": 2},
{"animation": "HeadChargeEndRef", "rolled": False, "cooldown": 180},
]
upsert({"key": "turdlet", "name": "Turdlet", "flash_id": 91800000, "hp": 190, "mass": 70, "radius": 20, "contact_damage": 1, "shared_health": True,
"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": "BodySegments", "chain": chain, "attacks": attacks,
"creep": {"period": 4, "scale": 0.7, "slippery": True, "color": [0.45, 0.6, 0.6, 45, 25, 5]}},
"death": {"animation": "DeathBody01"}, "death_burst": {"sounds": ["death_burst_small_0.mp3", "death_burst_small_1.mp3", "death_burst_small_2.mp3"]},
"art": "gfx/bosses/turdlet/turdlet.anm2"})