Files
isaac-port/notes/_tools/b4tools/big_horn.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

75 lines
6.1 KiB
Python

import sys; sys.path.insert(0, '../../b4tools'); from rec import upsert
S = 'rebirth/bighorn/'
def snd(names, on): return {"sounds": names, "on": on}
three = lambda stem: [f'{S}{stem}_0{i}.mp3' for i in (1, 2, 3)]
ART = "gfx/bosses/big_horn/big_horn.anm2"
head = [
{"animation": "BigHoleOpen", "rolled": True, "release": "Shake", "teleport": 10,
"untouchable": {"from": "Start", "to": "Open"},
"sounds": [snd([S + 'bighorn_bighole_shake.mp3'], "Shake"), snd([S + 'bighorn_bighole_crack.mp3'], "Crack"),
snd([S + 'bighorn_bighole_open.mp3'], "Open")], "next": 1},
{"animation": "PopUp", "rolled": False, "sounds": [snd(["boss_lite_roar.mp3"], "Poof"), snd([S + 'bighorn_appear.mp3'], "Poof")],
"next": [2] * 12 + [3] * 7 + [4]},
]
def charge(name, spawn, velocities, count):
attack = {"animation": name, "rolled": False, "release": "Shoot", "spawn": [spawn], "count": count, "spawn_scale": 1.5,
"sounds": [snd([S + 'bighorn_prep_spit.mp3'], "Start"), snd([S + 'bighorn_spit.mp3'], "Shoot")], "next": 5}
if velocities: attack["spawn_velocity"] = velocities
else: attack["spawn_speed"] = 7.07
return attack
head += [charge("Charge", "dark_ball", None, 1), charge("Charge2", "dark_ball_bouncing", [[15, 7], [-15, 7]], 2),
charge("Charge3", "dark_ball", [[5, 5], [15, 7], [-15, 7]], 3)]
holes = ["big_horn_slap_hole"] * 9 + ["big_horn_throw_hole"] * 8 + ["big_horn_bombs_hole"] * 2 + ["big_horn_little_horn_hole"]
head += [
{"animation": "Idle", "rolled": False, "stop": "Stop", "next": 6},
{"animation": "PopDown", "rolled": False, "untouchable": {"from": "Hide", "to": "End"},
"sounds": [snd([S + 'bighorn_hide.mp3'], "Hide")], "next": 7},
{"animation": "BigHoleClose", "rolled": False, "untouchable": {"from": "Start", "to": "Spawn"}, "release": "Spawn",
"spawn": holes, "count": 2, "spawn_count_random": 2, "spawn_place": {"radius": 60, "random": 240, "clearance": 40},
"sounds": [snd([S + 'bighorn_bighole_close.mp3'], "Start")], "cooldown": 106},
{"animation": "Appear", "rolled": False, "next": 5},
]
upsert({"key": "big_horn", "name": "Big Horn", "flash_id": 41100000, "hp": 480, "mass": 1000, "radius": 40, "contact_damage": 1,
"gibs": {"large": True},
"behavior": {"kind": "scripted", "move": "still", "retention": 0, "idle_pose": "Idle", "hidden": True,
"spawn_clip": {"animation": "Appear", "attack": 8}, "teleport": {"poses": ["BigHoleOpen"], "mode": "far"},
"choice": {"options": [0]}, "attacks": head},
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]}, "art": ART})
def hole(key, name, flash, hand):
hand = dict(hand, rolled=False, untouchable={"from": "Hidden", "to": "Shown"}, next=2)
hand.setdefault("sounds", []).insert(0, snd(three('bighorn_hand_appear'), "Poof"))
hand["sounds"].append(snd(three('bighorn_hand_hide'), "Hide"))
return {"key": key, "name": name, "flash_id": flash, "hp": 1000, "mass": 1000, "radius": 20, "contact_damage": 0,
"boss_bar": {"eligibility": "never"}, "contact_attack_target": False, "gibs": {"count": 0},
"hurt_link": {"type": "big_horn"}, "death_link": {"target_type": "big_horn", "animation": "Null", "all": True},
"behavior": {"kind": "scripted", "move": "still", "retention": 0, "idle_pose": "Null",
"spawn_clip": {"animation": "SmallHoleOpen", "attack": 0},
"attacks": [{"animation": "SmallHoleOpen", "rolled": False, "untouchable": {"from": "Start", "to": "End"},
"sounds": [snd([S + 'bighorn_smallhole_shake.mp3'], "Shake"),
snd([S + 'bighorn_smallhole_crack.mp3'], "Crack"),
snd(three('bighorn_smallhole_open'), "Open")], "next": 1},
hand,
{"animation": "SmallHoleClose", "rolled": False, "leave": True,
"untouchable": {"from": "Start", "to": "End"},
"sounds": [snd(three('bighorn_smallhole_close'), "Start")]}]},
"art": ART}
upsert(hole("big_horn_slap_hole", "Big Horn's Slapping Hand", 41100101,
{"animation": "HandSlap", "retention": 0, "lunge": 3, "lunge_from": "Move", "lunge_end": "Stop",
"hitbox": {"null": "Slam", "size": 16, "damage": 0.5},
"sounds": [snd(["forestboss_stomps0.mp3", "forestboss_stomps1.mp3", "forestboss_stomps2.mp3"], "Slam")]}),
hole("big_horn_throw_hole", "Big Horn's Throwing Hand", 41100103,
{"animation": "HandThrow", "release": "Shoot", "bombs": 1, "bomb_at": "player",
"sounds": [snd(["shellgame0.mp3", "shellgame1.mp3"], "Shoot")]}),
hole("big_horn_bombs_hole", "Big Horn's Bomb Hand", 41100105,
{"animation": "HandBombs", "release": "Shoot", "bombs": 3, "bomb_at": "player", "bomb_scatter": 80,
"sounds": [snd(["shellgame0.mp3", "shellgame1.mp3"], "Shoot")]}),
hole("big_horn_little_horn_hole", "Big Horn's Little Horn Hand", 41100107,
{"animation": "HandLittleHorn", "spawn": ["dark_ball"], "spawn_on": "Shoot", "spawn_velocity": [0, 10],
"sounds": [snd(["rebirth/littlehorngrunt1.mp3"], "Move"), snd(["rebirth/littlehorncough.mp3"], "Shoot")]}),
{"key": "dark_ball_bouncing", "name": "Dark Ball (bouncing)", "flash_id": 40400101, "hp": 10, "mass": 3, "radius": 13,
"contact_damage": 0.5, "grid_collision": False, "floor_hazards": {"flight": "fly_ai"},
"behavior": {"kind": "scripted", "move": "still", "retention": 1, "idle_pose": "Idle", "wall_bounce": {"impulse": 1}},
"gibs": {"count": 0}, "death_burst": {"sounds": ["death_burst_small_0.mp3", "death_burst_small_1.mp3", "death_burst_small_2.mp3"]},
"art": {"anm2": "gfx/monsters/dark_ball/dark_ball.anm2", "animations": {"flight": "Idle", "spawn": "Idle", "attack": "Idle"}},
"death": {"anm2": "gfx/effects/blood_explosion/blood_explosion.anm2", "animation": "Poof", "height": 0.0}})