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>
This commit is contained in:
commit
ad8f933086
124 files changed
+1366681
No files matched your search
@@ -0,0 +1,43 @@
|
||||
"""boss.py KEY "Name" ITEM STAGE[/alt]:COUNT...: registers a boss: bosses.json (appended), its 1% item and the Rebirth
|
||||
boss pool (itempools.json), COUNT entries in each named stage's pool (its alt's with /alt; a pool listing weight-1 bosses
|
||||
four times takes 4) and one in The Void's."""
|
||||
import json, re, sys
|
||||
V = 'resources/data/versions/rebirth/'
|
||||
key, name, item, stages = sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4:]
|
||||
|
||||
p = V + 'bosses.json'; s = open(p).read()
|
||||
if f'"key": "{key}"' not in s:
|
||||
s = re.sub(r'(\n \{"key": [^\n]*\})\n \]', lambda m: m.group(1) + f',\n {{"key": "{key}", "name": "{name}"}}\n ]', s, count=1)
|
||||
open(p, 'w').write(s)
|
||||
|
||||
p = V + 'itempools.json'; s = open(p).read()
|
||||
if f'"bosses": ["{key}"]' not in s:
|
||||
s = s.replace(' {"key": "rebirth_boss_pool"',
|
||||
f' {{"key": "{key}_{item}", "bosses": ["{key}"], "items": ["{item}"], "one_in": 100}},\n {{"key": "rebirth_boss_pool"', 1)
|
||||
s = re.sub(r'("key": "rebirth_boss_pool", "bosses": \[[^\]]*)\]', lambda m: m.group(1) + f', "{key}"]', s, count=1)
|
||||
open(p, 'w').write(s)
|
||||
|
||||
p = V + 'stages.json'; s = open(p).read()
|
||||
def pool_add(start, count, end):
|
||||
"""Adds count entries to the bosses list between start and end (unless it names the boss already); a stage with
|
||||
none of its own (one inheriting its base's) gets its own."""
|
||||
global s
|
||||
m = re.compile(r'"bosses": \[([^\]]*)\]').search(s, start, end)
|
||||
if m is None:
|
||||
at = s.index('\n', s.index('"name": ', start)) + 1
|
||||
s = s[:at] + ' "bosses": [' + ', '.join(f'"{key}"' for _ in range(count)) + '],\n' + s[at:]
|
||||
return
|
||||
if f'"{key}"' in m.group(1):
|
||||
return
|
||||
s = s[:m.end() - 1] + ''.join(f', "{key}"' for _ in range(count)) + s[m.end() - 1:]
|
||||
for spec in stages + ['the_void:1']:
|
||||
stage, count = spec.rsplit(':', 1)
|
||||
stage, _, alt = stage.partition('/')
|
||||
at = s.index(f'"key": "{stage}"')
|
||||
end = s.find('"key": "', at + 1)
|
||||
end = len(s) if end < 0 else end
|
||||
if alt:
|
||||
at = s.index('"alt": {', at)
|
||||
pool_add(at, int(count), end)
|
||||
open(p, 'w').write(s)
|
||||
json.load(open(V + 'stages.json')); json.load(open(V + 'itempools.json')); json.load(open(V + 'bosses.json'))
|
||||
@@ -0,0 +1,68 @@
|
||||
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
ROCK = {"art": {"anm2": "gfx/effects/rock_explosion/rock_explosion.anm2", "animation": "Break", "scale": 1, "offset_y": 0},
|
||||
"period": 3, "radius": 14, "enemy_damage": 2, "player_damage": 0.5, "friendly": False,
|
||||
"wave": {"spacing": 30, "period": 3, "breaking": True}}
|
||||
GREEN = [0.6, 1.5, 0.2, 100, 120, 0]
|
||||
WALK = ["WalkHori", "WalkHori", "WalkVert", "WalkVert"]
|
||||
common = {"gibs": {"large": True}, "death": {"anm2": "gfx/effects/blood_explosion/blood_explosion.anm2", "animation": "Poof", "height": -20}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]}}
|
||||
attacks = [
|
||||
# SpitFly (state 8): five Small Maggots, or a Sick Boom Fly.
|
||||
{"animation": "SpitFly", "period": 1, "one_in": 90, "release": "Shoot", "spawn": ["small_maggot"], "count": 5,
|
||||
"spawn_speed": 4, "spawn_cone": {"turn": 90, "speed_random": 3}, "sounds": [snd(0x10, "Shoot")], "cooldown": 30},
|
||||
{"animation": "SpitFly", "period": 1, "one_in": 120, "release": "Shoot", "spawn": ["sick_boom_fly"], "spawn_speed": 4,
|
||||
"sounds": [snd(0x10, "Shoot")], "cooldown": 30},
|
||||
# Leap (state 9): two hops at Isaac, each landing in a ring of eight and four diagonal rock waves.
|
||||
{"animation": "Leap", "period": 1, "one_in": 80, "range": 300, "leap": 14, "lunge_from": "Jump", "lunge_end": "Shoot",
|
||||
"release": "Shoot", "retention": 1, "shots": [{"shot": "eight", "speed": 9}],
|
||||
"effects": [{"effect": "bolts", "directions": "diagonal", "offset": 20, "bolt": ROCK}],
|
||||
"sounds": [snd(0x34, "Shoot")], "cooldown": 30},
|
||||
# FallBack (state 6): eight lobs led at Isaac.
|
||||
{"animation": "FallBack", "period": 1, "one_in": 100, "release": "Shoot",
|
||||
"shots": [{"shot": "boss_volley", "count": 8, "speed": 9, "aim_lead": 10, "fall_velocity": -12, "fall_acceleration": 0.6}],
|
||||
"sounds": [snd(0x48, "Shoot")], "cooldown": 30},
|
||||
]
|
||||
upsert({"key": "chimera_head", "name": "Chimera (head)", "flash_id": 91000200, "hp": 1050, "mass": 75, "radius": 20, "contact_damage": 1,
|
||||
**common,
|
||||
"behavior": {"kind": "scripted", "move": "still", "retention": 0.8, "idle_pose": "Idle", "spawn_clip": {"animation": "Fall"},
|
||||
"creep": {"period": 3, "min_speed": 2, "scale": 0.7},
|
||||
"attacks": [
|
||||
# Hops at Isaac, sliding with red creep (state 3).
|
||||
{"animation": "Jump", "period": 1, "one_in": 20, "leap": 12, "lunge_from": "Jump", "lunge_end": "Shoot",
|
||||
"retention": 0.95, "sounds": [snd(0x73, "Shoot")]},
|
||||
# Shoot (state 8): spreads of five at Isaac.
|
||||
{"animation": "Shoot", "period": 1, "one_in": 40, "release": "Shoot",
|
||||
"shots": [{"shot": "aimed", "count": 5, "speed": 10, "spread": 0.15}], "sounds": [snd(0xb, "Shoot")], "cooldown": 20},
|
||||
# The charge (states 9, 10): a dash at Isaac to a wall.
|
||||
{"animation": "ChargeAnnounce", "period": 1, "one_in": 60, "line": {"axis": "row", "within": 40},
|
||||
"sounds": [snd(0x73, "Start")], "next": 3},
|
||||
{"animation": "ChargeLoop", "rolled": False, "charge_speed": 11, "on_wall": "end", "repeat": {"limit": 40},
|
||||
"retention": 1, "next": 4},
|
||||
{"animation": "ChargeEnd", "rolled": False, "cooldown": 30}]},
|
||||
"art": "gfx/bosses/chimera_head/chimera_head.anm2"})
|
||||
upsert({"key": "chimera_body", "name": "Chimera (body)", "flash_id": 91000100, "hp": 1050, "mass": 75, "radius": 20, "contact_damage": 1,
|
||||
**common,
|
||||
"behavior": {"kind": "scripted", "move": "path", "speed": 0.35, "retention": 1, "idle_pose": "WalkVertHeadless",
|
||||
"facing": {"poses": ["WalkHoriHeadless", "WalkHoriHeadless", "WalkVertHeadless", "WalkVertHeadless"]},
|
||||
"attacks": [
|
||||
# Lined up on Isaac's column (state 10): a green brimstone beam down it.
|
||||
{"animation": "BrimstoneStart", "period": 1, "one_in": 10, "line": {"axis": "column", "within": 30},
|
||||
"sounds": [snd(0x7, "Shoot")], "next": 1},
|
||||
{"animation": "BrimstoneLoop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 7},
|
||||
"laser": {"width": 30, "aim": "axis", "tint": GREEN}, "sounds": [snd(0x119, "Start")], "next": 2},
|
||||
{"animation": "BrimstoneEnd", "rolled": False, "cooldown": 60},
|
||||
# Rolls about the room (state 11).
|
||||
{"animation": "RollBegin", "period": 1, "one_in": 150, "next": 4},
|
||||
{"animation": "Roll", "rolled": False, "charge_speed": 9, "on_wall": "end", "repeat": {"limit": 60}, "retention": 1,
|
||||
"next": 5},
|
||||
{"animation": "RollEnd", "rolled": False, "cooldown": 30}]},
|
||||
"art": "gfx/bosses/chimera/chimera.anm2"})
|
||||
upsert({"key": "chimera", "name": "Chimera", "flash_id": 91000000, "hp": 1050, "mass": 75, "radius": 20, "contact_damage": 1, **common,
|
||||
"behavior": {"kind": "scripted", "move": "path", "speed": 0.45, "retention": 1, "idle_pose": "WalkVert", "facing": {"poses": WALK},
|
||||
"spawn_clip": {"animation": "Appear"}, "creep": {"period": 3, "min_speed": 3, "scale": 0.8, "color": GREEN},
|
||||
"attacks": attacks,
|
||||
# At half health (state 16) its head trips off: the body and the head go on apart.
|
||||
"phases": [{"when": [{"hp_share_below": 0.5}], "attack": 0,
|
||||
"patch": {"attacks": [{"animation": "TripVert", "rolled": False, "release": "Shoot",
|
||||
"spawn": ["chimera_head"], "spawn_speed": 6, "spawn_health": [0.5],
|
||||
"become": {"type": "chimera_body"}, "sounds": [snd(0x89, "Shoot")]}]}}]},
|
||||
"art": "gfx/bosses/chimera/chimera.anm2"})
|
||||
@@ -0,0 +1,39 @@
|
||||
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
upsert({"key": "clutch_orbital", "name": "Clutch Orbital", "flash_id": 92100100, "hp": 200, "mass": 60, "radius": 12, "contact_damage": 1,
|
||||
"gibs": {"count": 0}, "grid_collision": False, "boss_bar": {"eligibility": "never"},
|
||||
"death_link": {"target_type": "clutch", "animation": "Appear0", "all": True},
|
||||
"behavior": {"kind": "scripted", "move": "orbit", "flying": True, "speed": 0.6, "retention": 0.7, "idle_pose": "Idle0",
|
||||
"spawn_clip": {"animation": "Appear0"},
|
||||
"orbit": {"radius": 60, "spin": 0.06, "ring": 8, "center": "group", "target_type": "clutch"}},
|
||||
"death_burst": {"sounds": ["rebirth/v2/bone_death_5a.mp3", "rebirth/v2/bone_death_5b.mp3"]},
|
||||
"art": "gfx/monsters/clutch_orbital/clutch_orbital.anm2"})
|
||||
phase2 = [
|
||||
# A rush to a spot near Isaac (state 9), then rings of six at 9, six times, each turned half a gap (state 10).
|
||||
{"animation": "MoveStart2", "period": 1, "one_in": 40, "release": "Shoot", "leap": 15, "lunge_from": "Shoot", "retention": 0.9,
|
||||
"next": 1},
|
||||
{"animation": "AttackStart", "rolled": False, "next": 2},
|
||||
{"animation": "Attack", "rolled": False, "release": "Shoot", "loop": {"at": "Back", "to": "Start", "count": 5},
|
||||
"shots": [{"shot": "ring", "count": 6, "speed": 9}], "sounds": [snd(700, "Shoot")], "cooldown": 30},
|
||||
]
|
||||
upsert({"key": "clutch", "name": "Clutch", "flash_id": 92100000, "hp": 500, "mass": 30, "radius": 30, "contact_damage": 1,
|
||||
"gibs": {"large": True}, "grid_collision": False,
|
||||
"behavior": {"kind": "scripted", "move": "drift", "speed": 0.6, "retention": 0.8, "flying": True, "idle_pose": "Idle",
|
||||
# Shielded while a Clickety Clack walks (Rebirth: possessing one, the rest shielded).
|
||||
"partner": {"type": "clickety_clack", "shield": True},
|
||||
"attacks": [
|
||||
# With every Clack fallen, stunned then raising their bones (states 7, 8).
|
||||
{"animation": "Stun", "period": 1, "one_in": 10,
|
||||
"when": [{"type_count": {"type": 889, "below": 1}}], "next": 1},
|
||||
{"animation": "StunLoop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 30}, "next": 2},
|
||||
{"animation": "StunEnd", "rolled": False, "release": "Shoot",
|
||||
"revive": {"type": "clickety_clack_pile", "child_type": "clickety_clack"},
|
||||
"sounds": [snd([0x10b, 0x139], "Shoot")], "cooldown": 60}],
|
||||
# At a quarter (state 16): bone orbitals ring him, and he rushes and fires rings.
|
||||
"phases": [{"when": [{"hp_share_below": 0.25}], "attack": 0,
|
||||
"patch": {"partner": None, "idle_pose": "Idle2",
|
||||
"attacks": [{"animation": "Transition", "rolled": False, "release": "Shoot",
|
||||
"spawn": ["clutch_orbital"], "count": 8, "spawn_offset": 60,
|
||||
"sounds": [snd(0x1a2, "Shoot")], "next": -1}] + [
|
||||
dict(a, next=a["next"] + 1) if "next" in a else a for a in phase2]}}]},
|
||||
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
||||
"art": "gfx/bosses/clutch/clutch.anm2"})
|
||||
@@ -0,0 +1,13 @@
|
||||
"""consts.py ADDR...: the float at each address of the decompiled exe."""
|
||||
import struct, sys
|
||||
d = open('decomp/bin/isaac-ng.exe', 'rb').read()
|
||||
pe = struct.unpack_from('<I', d, 0x3c)[0]; n = struct.unpack_from('<H', d, pe + 6)[0]; opt = struct.unpack_from('<H', d, pe + 20)[0]
|
||||
secs = []
|
||||
for i in range(n):
|
||||
o = pe + 24 + opt + i * 40; vs, va, rs, ro = struct.unpack_from('<IIII', d, o + 8); secs.append((0x400000 + va, max(vs, rs), ro))
|
||||
def rd(v):
|
||||
for va, sz, ro in secs:
|
||||
if va <= v < va + sz: return ro + v - va
|
||||
for a in sys.argv[1:]:
|
||||
o = rd(int(a, 16))
|
||||
print(a, struct.unpack_from('<f', d, o)[0], d[o:o + 32].split(b'\0')[0][:30])
|
||||
@@ -0,0 +1,53 @@
|
||||
import math, sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
FIRE = {"anm2": "gfx/projectiles/fire/fire.anm2", "animation": "Flickering"}
|
||||
JET = {"effect": "bolts", "directions": {"count": 1}, "bolt": {"art": {"anm2": "gfx/effects/fire_jet/fire_jet.anm2", "animation": "Idle", "scale": 1, "offset_y": 0},
|
||||
"period": 3, "radius": 14, "enemy_damage": 0, "player_damage": 0.5, "friendly": False}}
|
||||
ROCK = {"art": {"anm2": "gfx/effects/rock_explosion/rock_explosion.anm2", "animation": "Break", "scale": 1, "offset_y": 0},
|
||||
"period": 3, "radius": 14, "enemy_damage": 2, "player_damage": 0.5, "friendly": False,
|
||||
"wave": {"spacing": 30, "period": 3, "breaking": True}}
|
||||
SIDE = 20 * math.pi / 180
|
||||
attacks = [
|
||||
# 0 The next wave: random(8) == 0 once the last is beaten (state 13), its room of the Mines' challenge waves.
|
||||
{"animation": "Summon", "rolled": False, "release": "Wave", "when": [{"others_below": 1}],
|
||||
"wave": {"kind": "challenge", "subtype": 12, "difficulties": [1, 5, 5, 10, 10, 15], "hp_cost": 1},
|
||||
"sounds": [snd(0x7a, "Start"), snd(0x367, "Wave")], "cooldown": 31},
|
||||
# 1 Attack1 (state 8): a big slowing shot bursting into eight, flanked 20 degrees either side, at 10.
|
||||
{"animation": "Attack1", "rolled": False, "release": "Shoot",
|
||||
"shots": [{"shot": "aimed", "speed": 10, "fan": [[round(math.cos(SIDE), 4), round(math.sin(SIDE), 4)], [round(math.cos(SIDE), 4), -round(math.sin(SIDE), 4)]]},
|
||||
{"shot": "aimed", "speed": 10, "scale": 2, "speed_scale": 0.94, "fall_velocity": 0, "fall_acceleration": 0.03,
|
||||
"landing": [{"effect": "enemy_shots", "count": 8, "speed": 8}]}],
|
||||
"sounds": [snd(0x136, "Start"), snd(0x6c, "Shoot")], "cooldown": 90},
|
||||
# 2-4 Attack2 (states 9, 6): a 50-tick stream of fire thrown down the room, each flame lighting a fire where it lands.
|
||||
{"animation": "Attack2Start", "rolled": False, "sounds": [snd(0x138, "Start"), snd([0x131, 0x1e3], "Shoot")], "next": 3},
|
||||
{"animation": "Attack2Loop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 1},
|
||||
"shots": [{"shot": "aimed", "on": "Fire", "until": "Stop", "direction": [0, 18], "direction_jitter": [0.12, 0.12],
|
||||
"fall_velocity": -20, "fall_acceleration": 2, "look": FIRE, "landing": [JET]}], "next": 4},
|
||||
{"animation": "Attack2End", "rolled": False, "cooldown": 90},
|
||||
# 5 Attack3 (state 10, once from the fourth wave): a floor-breaking rock wave down the room.
|
||||
{"animation": "Attack3", "rolled": False, "release": "Shoot",
|
||||
"effects": [{"effect": "bolts", "directions": {"count": 1, "angle": 90}, "offset": 40, "bolt": ROCK}],
|
||||
"sounds": [snd(0x133, "Start"), snd(0xcd, "Sound"), snd(0x34, "Shoot")], "cooldown": 90},
|
||||
# 6-8 Attack4 (states 11, 7): 115 ticks of inhaling, pulling Isaac, enemies and shots in.
|
||||
{"animation": "Attack4Start", "rolled": False, "enemy_limit": 5, "sounds": [snd(0x74, "Start"), snd(0x130, "Shoot")], "next": 7},
|
||||
{"animation": "Attack4Loop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 9},
|
||||
"aura": {"radius": 450, "push": -0.8, "all": True}, "next": 8},
|
||||
{"animation": "Attack4End", "rolled": False, "cooldown": 90},
|
||||
]
|
||||
upsert({"key": "great_gideon", "name": "Great Gideon", "flash_id": 90700000, "hp": 6, "mass": 100, "radius": 48, "contact_damage": 0,
|
||||
"initially_invulnerable": True, "gibs": {"count": 0}, "boss_bar": {"eligibility": "always"},
|
||||
"behavior": {"kind": "scripted", "move": "anchor", "retention": 0.7, "idle_pose": "Idle",
|
||||
"spawn_clip": {"animation": "Appear"}, "attacks": attacks,
|
||||
# The attack draw (every idle tick after 90, random(15)): Attack1, Attack2 off its 450-tick rest,
|
||||
# Attack3 six times as likely once (from the fourth wave), Attack4 off its 600-tick rest with
|
||||
# under five enemies; the next wave first whenever the last is beaten.
|
||||
"choice": {"one_in": 15, "when": [{"others_below": 1}], "forced": [0], "options": [1, 2, 5, 6],
|
||||
"weights": [{"weight": 1}, {"weight": 1, "rest": 450, "rest_weight": 0},
|
||||
{"weight": 6, "rest": 100000, "rest_weight": 0, "waves_at_least": 4},
|
||||
{"weight": 1, "rest": 600, "rest_weight": 0}]},
|
||||
# The sixth wave beaten: it shuts its eyes for good (subtype 1).
|
||||
"phases": [{"when": [{"others_below": 1, "waves_at_least": 6, "idle": True}],
|
||||
"patch": {"choice": None, "spawn_clip": None,
|
||||
"attacks": [{"animation": "CloseEyes", "become": {"type": "great_gideon_defeated"},
|
||||
"sounds": [snd(0x89, "Sound")]}]}}]},
|
||||
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
||||
"art": "gfx/bosses/great_gideon/great_gideon.anm2"})
|
||||
@@ -0,0 +1,56 @@
|
||||
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
FIRE = {"anm2": "gfx/projectiles/fire/fire.anm2", "animation": "Flickering"}
|
||||
PURPLE = [0.6, 0.3, 1, 60, 0, 90]
|
||||
JET = {"effect": "bolts", "directions": {"count": 1}, "bolt": {"art": {"anm2": "gfx/effects/fire_jet/fire_jet.anm2", "animation": "Idle", "scale": 1, "offset_y": 0},
|
||||
"period": 3, "radius": 14, "enemy_damage": 0, "player_damage": 0.5, "friendly": False}}
|
||||
WAVES = {"effect": "bolts", "directions": "cardinal", "bolt": {**JET["bolt"], "wave": {"spacing": 30, "period": 3, "shrink": 0.03, "least": 0.2}}}
|
||||
GHOST = {"death_burst": {"sounds": ["death_burst_small_0.mp3", "death_burst_small_1.mp3", "death_burst_small_2.mp3"]},
|
||||
"death": {"anm2": "gfx/effects/blood_explosion/blood_explosion.anm2", "animation": "Poof", "height": -20}, "gibs": {"count": 0}}
|
||||
upsert({"key": "exorcist", "name": "Exorcist", "flash_id": 83200000, "hp": 25, "mass": 10, "radius": 13, "contact_damage": 1, **GHOST,
|
||||
"behavior": {"kind": "scripted", "move": "path", "speed": 0.5, "retention": 1, "idle_pose": "WalkVert",
|
||||
"facing": {"poses": ["WalkHori", "WalkHori", "WalkVert", "WalkVert"]},
|
||||
"attacks": [
|
||||
# Revive: a fallen enemy's spirit raised as a Lil' Haunt, one at a time.
|
||||
{"animation": "Revive", "period": 1, "one_in": 60, "release": "Revive", "spawn": ["lil_haunt_260_10"],
|
||||
"spawn_cap": {"below": 1}, "spawn_offset": 20, "sounds": [snd(0x131, "Revive")], "cooldown": 60}]},
|
||||
"art": "gfx/monsters/exorcist/exorcist.anm2"})
|
||||
upsert({"key": "fanatic", "name": "Fanatic", "flash_id": 83200100, "hp": 35, "mass": 5, "radius": 13, "contact_damage": 1, **GHOST,
|
||||
"behavior": {"kind": "scripted", "move": "still", "retention": 0.8, "idle_pose": "SummonLoop1", "spawn_clip": {"animation": "Summon1"},
|
||||
# Its ritual done (The Heretic risen), it stands and hunts Isaac.
|
||||
"phases": [{"when": [{"after_tick": 150}], "attack": 0,
|
||||
"patch": {"move": "path", "speed": 0.5, "retention": 1, "idle_pose": "WalkVert",
|
||||
"facing": {"poses": ["WalkHori", "WalkHori", "WalkVert", "WalkVert"]},
|
||||
"attacks": [{"animation": "Transition", "rolled": False},
|
||||
# Two purple shots at Isaac turning round each other.
|
||||
{"animation": "Attack", "period": 1, "one_in": 60, "range": 250, "release": "Shoot",
|
||||
"shots": [{"shot": "aimed", "speed": 6, "orbit": "clockwise", "tint": PURPLE},
|
||||
{"shot": "aimed", "speed": 6, "orbit": "counterclockwise", "tint": PURPLE}],
|
||||
"sounds": [snd(0x13f, "Shoot")], "cooldown": 40}]}}]},
|
||||
"art": "gfx/monsters/fanatic/fanatic.anm2"})
|
||||
attacks = [
|
||||
# 0-1 Summoning (state 6): five Fanatics kneel round him; he stays unseen and untouchable while they live.
|
||||
{"animation": "Summoning", "rolled": False, "release": "Shoot", "spawn": ["fanatic"], "count": 5,
|
||||
"spawn_at": [[0, -80], [76, -25], [47, 65], [-47, 65], [-76, -25]], "sounds": [snd(0x131, "Shoot")],
|
||||
"untouchable": {"from": "Start", "to": "Sound"}},
|
||||
# 1-3 Point (state 7): five lobs at Isaac (six below half), each bursting into fire where it lands.
|
||||
{"animation": "PointDown", "rolled": False, "release": "Shoot", "directional_poses": ["PointLeft", "PointDown", "PointDown", "PointRight"],
|
||||
"shots": [{"shot": "aimed", "speed": 7, "fall_velocity": -14, "fall_acceleration": 0.7, "look": FIRE, "landing": [WAVES]}],
|
||||
"sounds": [snd(0x131, "Shoot")], "repeat": {"limit": 4}, "cooldown": 60},
|
||||
# 2-3 Attack1, then the dive (states 14, 15): a ring of fire, then up and down onto Isaac in a fire burst.
|
||||
{"animation": "Attack1", "rolled": False, "release": "Shoot", "shots": [{"shot": "ring", "count": 10, "speed": 8, "look": FIRE}],
|
||||
"sounds": [snd(0x132, "Shoot")], "next": 3},
|
||||
{"animation": "Divebomb", "rolled": False, "release": "Sound", "pounce": True, "untouchable": {"from": "Shoot", "to": "Sound"},
|
||||
"shots": [{"shot": "ring", "count": 12, "speed": 9, "look": FIRE}], "effects": [WAVES],
|
||||
"sounds": [snd([0x30, 0x1e3], "Shoot"), snd(0x1eb, "Sound")], "cooldown": 60},
|
||||
]
|
||||
upsert({"key": "the_heretic", "name": "The Heretic", "flash_id": 90500000, "hp": 789, "mass": 50, "radius": 26, "contact_damage": 1,
|
||||
"gibs": {"large": True}, "grid_collision": False,
|
||||
"behavior": {"kind": "scripted", "move": "drift", "speed": 0.6, "retention": 0.8, "flying": True, "idle_pose": "IdleInvis",
|
||||
"untouchable": True, "spawn_clip": {"animation": "Summoning", "attack": 0}, "attacks": attacks[:1],
|
||||
# His Fanatics fallen (state 5): he shows himself and fights, every 60 idle ticks (30 below half)
|
||||
# a weighted pick of his lobs and his dive.
|
||||
"phases": [{"when": [{"type_count": {"type": 832, "below": 1}, "idle": True, "after_tick": 130}],
|
||||
"patch": {"idle_pose": "Idle", "untouchable": None, "spawn_clip": {"animation": "InvisEnd"},
|
||||
"attacks": attacks, "choice": {"one_in": 1, "options": [1, 2]}}}]},
|
||||
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
||||
"art": "gfx/bosses/the_heretic/the_heretic.anm2"})
|
||||
@@ -0,0 +1,45 @@
|
||||
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
FIRE = {"anm2": "gfx/projectiles/fire/fire.anm2", "animation": "Flickering"}
|
||||
IDLE = {"poses": ["IdleRight", "IdleRight", "IdleDown", "IdleUp"]} # Mirrored leftward, as RunHori.
|
||||
attacks = [
|
||||
# Attack1 (state 8): a bomb thrown at Isaac (two from Attack1Double).
|
||||
{"animation": "Attack1Right", "period": 1, "one_in": 50, "range": 300, "release": "Shoot", "bombs": 1, "bomb_at": "player",
|
||||
"directional_poses": ["Attack1Left", "Attack1Right", "Attack1Right", "Attack1Right"],
|
||||
"sounds": [snd(0xc9, "Sound"), snd(0x19, "Shoot")], "cooldown": 40},
|
||||
{"animation": "Attack1Double", "period": 1, "one_in": 90, "release": "Shoot", "bombs": 1, "bomb_at": "player", "bomb_scatter": 40,
|
||||
"sounds": [snd(0xc9, "Sound"), snd(0x19, "Shoot")], "cooldown": 40},
|
||||
# Attack2 (state 9): mines dropped about the room.
|
||||
{"animation": "Attack2", "period": 1, "one_in": 120, "release": "Shoot", "bombs": 3, "bomb_scatter": 120, "sounds": [snd(0x19, "Shoot")], "cooldown": 40},
|
||||
# The sprint's end (state 11): a fire lob at Isaac.
|
||||
{"animation": "ChargeFinish", "period": 1, "one_in": 150, "release": "Shoot",
|
||||
"shots": [{"shot": "boss_volley", "count": 1, "speed": 10, "scale": 1.5, "fall_velocity": -10, "fall_acceleration": 0.5, "look": FIRE}],
|
||||
"sounds": [snd(0x130, "Sound")], "cooldown": 40},
|
||||
# Taunt.
|
||||
{"animation": "Taunt", "period": 1, "one_in": 200, "sounds": [snd(0xfc, "Sound")]},
|
||||
]
|
||||
# Its cart (965.1, its own sheet): 45 ticks in the wall's tunnel each time it runs off the floor (states 6/7).
|
||||
upsert({"key": "hornfel_minecart", "name": "Hornfel's Minecart", "flash_id": 96500100, "hp": 10, "mass": 10000, "radius": 13,
|
||||
"contact_damage": 0, "door_lock": "never", "contact_attack_target": False, "initially_invulnerable": True,
|
||||
"grid_collision": False, "enemy_contact_group": "player_only", "boss_bar": {"eligibility": "never"}, "gibs": {"count": 0},
|
||||
"death_burst": {"sounds": ["rebirth/wood_plankbreaks0.mp3", "rebirth/wood_plankbreaks1.mp3", "rebirth/wood_plankbreaks2.mp3"]},
|
||||
"behavior": {"kind": "scripted", "move": "rail", "speed": 1.2, "retention": 0.8, "mirrored": False, "idle_pose": "Move1",
|
||||
"facing": {"turns": ["Move1", "Move2", "Move3", "Move4", "Move5", "Move6", "Move7", "Move8"]},
|
||||
"rail": {"rider_offset": [0, -7], "rider_layers": ["back", "front"], "tunnel": 45}},
|
||||
"art": "gfx/bosses/hornfel/hornfel_minecart.anm2"})
|
||||
upsert({"key": "hornfel_decoy", "name": "Hornfel Decoy", "flash_id": 90600100, "hp": 4, "mass": 20, "radius": 20, "contact_damage": 1,
|
||||
"door_lock": "never", "boss_bar": {"eligibility": "never"}, "gibs": {"count": 0}, "death_explosion": {"variants": [1], "player_damage": 1},
|
||||
"behavior": {"kind": "scripted", "move": "still", "idle_pose": "DecoyIdle"},
|
||||
"art": "gfx/bosses/hornfel/hornfel.anm2"})
|
||||
# Rides his cart from the tunnel (240 health), with two Fly Bombs 1 in 3 and decoys on two other tracks 1 in 8 as it
|
||||
# comes out; at 100 left he falls off (Sad) and runs for the nearest rail door at 1.08, half a heart by touch.
|
||||
upsert({"key": "hornfel", "name": "Hornfel", "flash_id": 90600000, "hp": 340, "mass": 20, "radius": 20, "contact_damage": 1,
|
||||
"gibs": {"large": True}, "grid_collision": False,
|
||||
"behavior": {"kind": "scripted", "move": "still", "retention": 0.8, "idle_pose": "IdleDown", "facing": IDLE,
|
||||
"cart": {"type": "hornfel_minecart",
|
||||
"enter_spawns": [{"type": "fly_bomb", "count": 2, "one_in": 3},
|
||||
{"type": "hornfel_decoy", "count": 2, "one_in": 8, "carted": True}],
|
||||
"knock_off": 100, "knock_off_damage": 0.5, "speed": 1.08, "pose": "Sad",
|
||||
"facing": ["RunHori", "RunHori", "RunDown", "RunUp"]},
|
||||
"attacks": attacks},
|
||||
"death": {"animation": "Sad"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
||||
"art": "gfx/bosses/hornfel/hornfel.anm2"})
|
||||
@@ -0,0 +1,45 @@
|
||||
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
FIRE = {"anm2": "gfx/projectiles/fire/fire.anm2", "animation": "Flickering"}
|
||||
attacks = [
|
||||
# 0 SpawnFly (state 13): a Boom Fly below him and three Fly Bombs round it.
|
||||
{"animation": "SpawnFly", "rolled": False, "release": "Shoot", "spawn": ["boom_fly", "fly_bomb", "fly_bomb", "fly_bomb"],
|
||||
"spawn_in_order": True, "count": 4, "spawn_at": [[0, 50], [10, 50], [-5, 59], [-5, 41]], "sounds": [snd(0x109, "Shoot")]},
|
||||
# 1-5 The juggle (state 10): three bombs juggled, bouncing about, then all three thrown at Isaac.
|
||||
{"animation": "JuggleStart", "rolled": False, "next": 2},
|
||||
{"animation": "Juggle0", "rolled": False, "sounds": [snd(0xf9, "Start")], "next": 3},
|
||||
{"animation": "Juggle1", "rolled": False, "sounds": [snd(0xf9, "Start")], "next": 4},
|
||||
{"animation": "Juggle2", "rolled": False, "sounds": [snd(0xf9, "Start")], "next": 5},
|
||||
{"animation": "JuggleThrow", "rolled": False, "release": "Shoot", "bombs": 1, "bomb_at": "player", "bomb_scatter": 60,
|
||||
"sounds": [snd(0x19, "Shoot")], "cooldown": 60},
|
||||
# 6-10 The Loki dance (state 11): twenty volleys at 10 drifting to the room's middle, crosses, diagonals,
|
||||
# eights and rings, the last a sick vomit at Isaac.
|
||||
{"animation": "LokiDance", "rolled": False, "release": "Shoot", "shots": [{"shot": "cardinal", "speed": 10}],
|
||||
"sounds": [snd(0x19, "Shoot")], "next": 7},
|
||||
{"animation": "LokiDance2", "rolled": False, "release": "Shoot", "shots": [{"shot": "diagonal", "speed": 10}],
|
||||
"sounds": [snd(0x19, "Shoot")], "next": 8},
|
||||
{"animation": "LokiDance3", "rolled": False, "release": "Shoot", "shots": [{"shot": "eight", "speed": 10}],
|
||||
"sounds": [snd(0x19, "Shoot")], "next": 9},
|
||||
{"animation": "LokiDance4", "rolled": False, "release": "Shoot", "shots": [{"shot": "ring", "count": 12, "speed": 10}],
|
||||
"sounds": [snd(0x19, "Shoot")], "next": 10},
|
||||
{"animation": "LokiDance5", "rolled": False, "release": "Shoot",
|
||||
"shots": [{"shot": "ring", "count": 12, "speed": 8},
|
||||
{"shot": "boss_volley", "on": "Sound", "count": 8, "speed": 10, "scale": 2, "look": FIRE}],
|
||||
"sounds": [snd(0x19, "Shoot"), snd(0x9e, "Sound")], "cooldown": 60},
|
||||
# 11-12 BombPoof (state 9): a bomb dropped where he stood as he vanishes and comes back.
|
||||
{"animation": "BombPoof", "rolled": False, "release": "Shoot", "bombs": 1, "untouchable": {"from": "Sound", "to": "End"},
|
||||
"sounds": [snd(0x19, "Sound")], "next": 12},
|
||||
{"animation": "BombPoofBack", "rolled": False, "cooldown": 60},
|
||||
# 13-14 Teleport (states 6, 8): up, then down near Isaac with a bomb.
|
||||
{"animation": "TeleportUp", "rolled": False, "untouchable": {"from": "Sound", "to": "End"}, "next": 14},
|
||||
{"animation": "TeleportDown", "rolled": False, "release": "Shoot", "bombs": 1, "bomb_at": "player",
|
||||
"untouchable": {"from": "Start", "to": "Sound"}, "cooldown": 60},
|
||||
]
|
||||
upsert({"key": "horny_boys", "name": "Horny Boys", "flash_id": 92000000, "hp": 707, "mass": 30, "radius": 30, "contact_damage": 1,
|
||||
"gibs": {"large": True}, "grid_collision": False,
|
||||
"behavior": {"kind": "scripted", "move": "drift", "speed": 0.6, "retention": 0.8, "flying": True, "idle_pose": "Idle",
|
||||
"spawn_clip": {"animation": "Appear"}, "attacks": attacks,
|
||||
# Every 60 idle ticks the next of his rounds in turn: flies, the juggle, the dance, then a bomb
|
||||
# poof or teleports (one at random).
|
||||
"choice": {"one_in": 1, "cycle": True, "options": [0, 1, 6, 11, 0, 1, 6, 13]}},
|
||||
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
||||
"art": "gfx/bosses/horny_boys/horny_boys.anm2"})
|
||||
@@ -0,0 +1,51 @@
|
||||
import math, sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
TONGUES = [[round(22.4 * math.cos(i * math.pi / 4), 2), round(22.4 * math.sin(i * math.pi / 4), 2)] for i in range(8)]
|
||||
def attacks(rage):
|
||||
out = [
|
||||
# 0 Attack1 (state 8): a Fistuloid out toward Isaac.
|
||||
{"animation": "Attack1", "rolled": False, "release": "Shoot", "spawn": ["fistuloid"], "spawn_speed": 5, "spawn_offset": 20,
|
||||
"sounds": [snd(0x74, "Start"), snd(0x109, "Shoot")]},
|
||||
# 1 Attack2 (state 9): eight Chubber tongues lashed out all round at 22.4.
|
||||
{"animation": "Attack2", "rolled": False, "release": "Shoot", "spawn": ["chubber_tongue"], "count": 8,
|
||||
"spawn_velocity": TONGUES, "spawn_at": [[v[0] * 1.5, v[1] * 1.5] for v in TONGUES], "sounds": [snd(0xd5, "Shoot")]},
|
||||
# 2 Attack3 (state 10): one big shot at Isaac at 10 leaving red creep.
|
||||
{"animation": "Attack3", "rolled": False, "release": "Shoot",
|
||||
"shots": [{"shot": "green", "speed": 10, "scale": 2, "green": {"creep": "red", "velocity_scale": 1}}],
|
||||
"sounds": [snd([0x13e, 0xd4], "Shoot")], "cooldown": 90, "cooldown_random": [60, 1]},
|
||||
# 3-4 Jump (state 6): a hop at Isaac.
|
||||
{"animation": "Jump", "rolled": False, "leap": 10, "lunge_from": "Jump", "lunge_end": "Land", "retention": 1,
|
||||
"sounds": [snd(0x73, "Land")]},
|
||||
{"animation": "Jump2", "rolled": False, "leap": 10, "lunge_from": "Jump", "lunge_end": "Land", "retention": 1,
|
||||
"sounds": [snd(0x73, "Land")]},
|
||||
# 5 A damage mark crossed: she flinches and small Fistulas break off.
|
||||
{"animation": "Flinch", "rolled": False, "release": "Start", "spawn": ["fistula_small"], "count": 2, "spawn_speed": 3,
|
||||
"spawn_offset": 40, "spawn_cone": {"turn": 90, "speed_random": 2}, "sounds": [snd(0x1c, "Start")]},
|
||||
]
|
||||
if rage: # 6-8 Rage (state 13): Fistuloids at half health thrown out every eighth tick, half the time.
|
||||
out += [{"animation": "RageBegin", "rolled": False, "sounds": [snd(0x74, "Shoot")], "next": 7},
|
||||
{"animation": "RageLoop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 10},
|
||||
"spawn": ["fistuloid"], "spawn_on": "Spawn", "spawn_speed": 7, "spawn_offset": 20, "spawn_health": [0.5],
|
||||
"spawn_cone": {"turn": 180, "speed_random": 3}, "next": 8},
|
||||
{"animation": "RageEnd", "rolled": False}]
|
||||
return out
|
||||
def choice(rage):
|
||||
options = [0, 1, 2, 3, 4] + ([6] if rage else [])
|
||||
weights = [{"weight": 120, "per": -40, "type": 308}, {"weight": 100}, {"weight": 150}, {"weight": 250}, {"weight": 250}]
|
||||
return {"one_in": 6, "options": options, "weights": weights + ([{"weight": 60, "rest": 300, "rest_weight": 0}] if rage else [])}
|
||||
def phase(share, rage):
|
||||
return {"when": [{"hp_share_below": share}], "attack": 5, "patch": {"attacks": attacks(rage), "choice": choice(rage)}}
|
||||
upsert({"key": "the_matriarch", "name": "The Matriarch", "flash_id": 41300000, "hp": 700, "mass": 100, "radius": 60, "contact_damage": 1,
|
||||
"gibs": {"large": True},
|
||||
"behavior": {"kind": "scripted", "move": "still", "retention": 0.5, "idle_pose": "Idle", "spawn_clip": {"animation": "Appear"},
|
||||
"attacks": attacks(False), "choice": choice(False),
|
||||
# Damage marks at 80, 65, 50 and 35%; rage from the third; at 20% she bursts into Fistulas, a
|
||||
# Fistuloid and Chub (state 16).
|
||||
"phases": [phase(0.8, False), phase(0.65, False), phase(0.5, True), phase(0.35, True),
|
||||
{"when": [{"hp_share_below": 0.2}], "attack": 0,
|
||||
"patch": {"choice": None,
|
||||
"attacks": [{"animation": "Death", "rolled": False, "release": "Explosion",
|
||||
"spawn": ["fistula_medium", "fistula_small", "fistula_small", "fistuloid", "chub", "chub"],
|
||||
"count": 6, "spawn_in_order": True, "spawn_offset": 40, "untouchable": {"from": "Start", "to": "Explosion"},
|
||||
"become": {"type": "chub", "health": 140}, "sounds": [snd(0x8d, "Explosion")]}]}}]},
|
||||
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
||||
"art": "gfx/bosses/the_matriarch/the_matriarch.anm2"})
|
||||
@@ -0,0 +1,36 @@
|
||||
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
W = 'min_min_willo'
|
||||
def attacks(b, ring, total):
|
||||
return [
|
||||
# Spit (state 13): with fewer than `ring` Willos round her (and `total` in all), a Willo flung at Isaac at
|
||||
# 25, turned 15 degrees either way; it joins her ring after.
|
||||
{"animation": f"Spit{b}", "period": 1, "one_in": 8, "release": "Shoot",
|
||||
"when": [{"type_count": {"type": 808, "below": min(ring, total)}}],
|
||||
"spawn": [W], "spawn_speed": 25, "spawn_offset": 0, "spawn_cone": {"turn": 30, "speed_random": 0},
|
||||
"sounds": [snd(0x13f, "Shoot")], "cooldown": 15, "cooldown_random": [60, 1]},
|
||||
# Spit (state 14): with under half a ring, four Willos at once.
|
||||
{"animation": f"Spit{b}", "period": 1, "one_in": 12, "release": "Shoot",
|
||||
"when": [{"type_count": {"type": 808, "below": ring // 2}}], "spawn": [W], "count": 4, "spawn_offset": 30,
|
||||
"sounds": [snd(0x13f, "Shoot")], "cooldown": 90, "cooldown_random": [90, 1]},
|
||||
# Spin (state 8): with more than two round her, random(3): her ring fires at Isaac.
|
||||
{"animation": f"Spin{b}", "period": 1, "one_in": 3, "release": "Shoot", "when": [{"type_count": {"type": 808, "above": 2}}],
|
||||
"signal": W, "sounds": [snd(0x1e3, "Shoot")], "cooldown": 90, "cooldown_random": [90, 1]}]
|
||||
upsert({"key": W, "name": "Min-Min's Willo", "flash_id": 80800001, "hp": 9, "mass": 3, "radius": 17, "contact_damage": 1,
|
||||
"gibs": {"count": 0}, "grid_collision": False, "floor_hazards": {"flight": "flying", "die_on_probe": True},
|
||||
"boss_bar": {"eligibility": "never"}, "death_link": {"target_type": "min_min", "animation": "Appear", "all": True},
|
||||
"behavior": {"kind": "scripted", "move": "orbit", "flying": True, "speed": 0.4, "retention": 0.7, "idle_pose": "Fly",
|
||||
"orbit": {"radius": 70, "spin": 0.05, "ring": 8, "center": "group", "target_type": "min_min"},
|
||||
"choice": {"one_in": 1, "when": [{"flag": True}], "forced": [0], "options": []},
|
||||
"shot_sounds": ["bloodshoot0.mp3", "bloodshoot1.mp3", "bloodshoot2.mp3"],
|
||||
"attacks": [{"animation": "Attack", "rolled": False, "release": "Shoot", "shot": "aimed", "speed": 7}]},
|
||||
"death_burst": {"sounds": ["death_burst_small_0.mp3", "death_burst_small_1.mp3", "death_burst_small_2.mp3"]},
|
||||
"art": "gfx/monsters/willo/willo.anm2", "death": {"anm2": "gfx/effects/fly_explosion/fly_explosion.anm2", "animation": "Die", "height": -23.5}})
|
||||
upsert({"key": "min_min", "name": "Min-Min", "flash_id": 91300000, "hp": 280, "mass": 20, "radius": 35, "contact_damage": 1,
|
||||
"gibs": {"large": True}, "grid_collision": False,
|
||||
"behavior": {"kind": "scripted", "move": "path", "speed": 0.6, "retention": 1, "flying": True, "idle_pose": "Walk",
|
||||
"spawn_clip": {"animation": "Appear"}, "attacks": attacks('', 4, 5),
|
||||
# Below 40% (state 16): her second form, a ring of up to eight.
|
||||
"phases": [{"when": [{"hp_share_below": 0.4}],
|
||||
"patch": {"idle_pose": "Walk2", "spawn_clip": {"animation": "Transition"}, "attacks": attacks('2', 8, 7)}}]},
|
||||
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
||||
"art": "gfx/bosses/min_min/min_min.anm2"})
|
||||
@@ -0,0 +1,24 @@
|
||||
"""rec.py: upsert one-line records into the Rebirth version's entities.json (by key, appended before shared_rules)."""
|
||||
import json
|
||||
P = 'resources/data/versions/rebirth/entities.json'
|
||||
|
||||
|
||||
def upsert(*records):
|
||||
lines = open(P).read().split('\n')
|
||||
end = next(i for i, l in enumerate(lines) if l.startswith(' ],') or l.startswith(' ]'))
|
||||
for record in records:
|
||||
text = ' ' + json.dumps(record) + ','
|
||||
at = next((i for i, l in enumerate(lines[:end]) if l.startswith(' {"key": "%s",' % record['key'])), None)
|
||||
if at is not None:
|
||||
lines[at] = text
|
||||
else:
|
||||
lines.insert(end, text)
|
||||
end += 1
|
||||
# The last record has no comma.
|
||||
last = end - 1
|
||||
for i in range(1, end):
|
||||
if lines[i].startswith(' {') and not lines[i].endswith(','):
|
||||
lines[i] += ','
|
||||
lines[last] = lines[last].rstrip(',')
|
||||
open(P, 'w').write('\n'.join(lines))
|
||||
json.load(open(P))
|
||||
@@ -0,0 +1,26 @@
|
||||
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
SPIRAL = [[1, 0, 0, 1], [0, 1, -1, 0], [-1, 0, 0, -1], [0, -1, 1, 0]]
|
||||
def whip(name, beams): # A tendril lashed out to the wall (the_scourge_chain), drawn as a short beam.
|
||||
return {"animation": name, "rolled": False, "laser": {"width": 20, "from": "Shoot", "beams": [{"direction": b} for b in beams],
|
||||
"tint": [0.5, 0.3, 0.3, 40, 0, 0]}, "sounds": [snd(0x4d, "Sound")], "cooldown": 20}
|
||||
attacks = [
|
||||
whip("TrapDown", [[0, 1]]), whip("SliceBoth", [[-1, 0], [1, 0]]),
|
||||
{**whip("SliceRight", [[1, 0]]), "directional_poses": ["SliceLeft", "SliceRight", "SliceRight", "SliceRight"]},
|
||||
# BroccoliAttack (state 4): a homing cluster that bursts where it ends into shots.
|
||||
{"animation": "BroccoliAttack", "rolled": False, "release": "Shoot",
|
||||
"shots": [{"shot": "aimed", "speed": 7, "scale": 2.5, "homing": {}, "landing": [{"effect": "enemy_shots", "count": 10, "speed": 8}]}],
|
||||
"sounds": [snd(0x13e, "Shoot")], "cooldown": 20},
|
||||
# Hover (state 5): four inward-turning spiral streams.
|
||||
{"animation": "HoverStart", "rolled": False, "next": 5},
|
||||
{"animation": "HoverLoop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 6},
|
||||
"shots": [{"shot": "spiral", "on": "Fire", "speed": 7, "spread": 0.2, "fan": SPIRAL}], "next": 6},
|
||||
{"animation": "HoverEnd", "rolled": False, "cooldown": 20},
|
||||
]
|
||||
upsert({"key": "the_scourge", "name": "The Scourge", "flash_id": 90900000, "hp": 950, "mass": 75, "radius": 20, "contact_damage": 1,
|
||||
"gibs": {"large": True}, "grid_collision": False,
|
||||
"behavior": {"kind": "scripted", "move": "drift", "speed": 0.8, "retention": 0.85, "flying": True, "idle_pose": "Idle",
|
||||
"spawn_clip": {"animation": "Appear"}, "attacks": attacks,
|
||||
# A weighted pick (each 10 against idling's 1; the tendrils only with Isaac below him).
|
||||
"choice": {"one_in": 30, "options": [0, 1, 2, 3, 4], "weights": [{"weight": 10}] * 5}},
|
||||
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
||||
"art": "gfx/bosses/the_scourge/the_scourge.anm2"})
|
||||
@@ -0,0 +1,30 @@
|
||||
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"})
|
||||
@@ -0,0 +1,24 @@
|
||||
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
attacks = [
|
||||
# 0 The slash (state 11): with Isaac close below, a lunge at him and a spread of five.
|
||||
{"animation": "SlashRight", "rolled": False, "directional_poses": ["SlashLeft", "SlashRight", "SlashRight", "SlashRight"],
|
||||
"release": "Shoot", "lunge": 6, "lunge_from": "Shoot", "lunge_end": "Shoot",
|
||||
"shots": [{"shot": "aimed", "count": 5, "speed": 10, "spread": 0.2}], "sounds": [snd(0x32a, "Sound")], "cooldown": 30},
|
||||
# 1-3 The scream (state 8): pulsing rings at 5 and a shove away from her.
|
||||
{"animation": "Attack1Start", "rolled": False, "sounds": [snd(0x131, "Shoot")], "next": 2},
|
||||
{"animation": "Attack1Loop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 2},
|
||||
"shots": [{"shot": "ring", "on": "Fire", "count": 24, "speed": 5}], "aura": {"radius": 250, "push": 1.5}, "next": 3},
|
||||
{"animation": "Attack1End", "rolled": False, "cooldown": 30},
|
||||
# 4-5 The burrow (states 6, 4): she sinks and surfaces under Isaac.
|
||||
{"animation": "Teleport", "rolled": False, "untouchable": {"from": "Shoot", "to": "End"}, "next": 5},
|
||||
{"animation": "TeleportEnd", "rolled": False, "release": "Start", "pounce": True, "untouchable": {"from": "Start", "to": "Shoot"},
|
||||
"sounds": [snd(0x89, "Shoot")], "cooldown": 30},
|
||||
]
|
||||
upsert({"key": "siren", "name": "The Siren", "flash_id": 90400000, "hp": 666, "mass": 75, "radius": 20, "contact_damage": 1,
|
||||
"gibs": {"large": True}, "grid_collision": False,
|
||||
"behavior": {"kind": "scripted", "move": "drift", "speed": 0.6, "retention": 0.8, "flying": True, "idle_pose": "Idle",
|
||||
"spawn_clip": {"animation": "Appear"}, "attacks": attacks,
|
||||
"choice": {"one_in": 30, "options": [0, 1, 4], "weights": [{"weight": 20}, {"weight": 10}, {"weight": 10}],
|
||||
"override": {"index": 0, "when": {"range": 180}}}},
|
||||
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
||||
"art": "gfx/bosses/siren/siren.anm2"})
|
||||
@@ -0,0 +1,22 @@
|
||||
"""snd.py: sound cues by Rebirth sound id (reference sounds.json's resources)."""
|
||||
import json
|
||||
S = {r['id']: r for r in json.load(open('tools/reference/rebirth/sounds.json'))}
|
||||
|
||||
|
||||
def res(i):
|
||||
return S[i]['resource']
|
||||
|
||||
|
||||
def snd(i, on):
|
||||
names = res(i) if isinstance(i, int) else [n for x in i for n in res(x)]
|
||||
return {"sounds": names, "on": on}
|
||||
|
||||
|
||||
def anims(path):
|
||||
"""{animation: (frames, loop, [(event, frame)])} of a dump anm2."""
|
||||
import xml.etree.ElementTree as ET
|
||||
D = '/home/anon/sda/Personal/Projects/Binding of Isaac Repentance Mods/shweet-sprites/dump/rep+full/resources/'
|
||||
r = ET.parse(D + path).getroot()
|
||||
ev = {e.get('Id'): e.get('Name') for e in r.iter('Event')}
|
||||
return {a.get('Name'): (int(a.get('FrameNum')), a.get('Loop') == 'true',
|
||||
[(ev[t.get('EventId')], int(t.get('AtFrame'))) for t in a.iter('Trigger')]) for a in r.iter('Animation')}
|
||||
@@ -0,0 +1,11 @@
|
||||
"""triage.py KEY STATUS COMMENT: sets a reference entity record's triage and comment (file formatting kept)."""
|
||||
import json, sys
|
||||
p = 'tools/reference/rebirth/entities.json'
|
||||
text = open(p).read()
|
||||
records = json.loads(text)
|
||||
key, status, comment = sys.argv[1:4]
|
||||
record = next(r for r in records if r.get('key') == key)
|
||||
record['triage'] = status
|
||||
record['comment'] = comment
|
||||
indent = 1 if '\n "' in text[:200] or '\n {' in text[:20] else 2
|
||||
open(p, 'w').write(json.dumps(records, indent=1, ensure_ascii=False) + ('\n' if text.endswith('\n') else ''))
|
||||
@@ -0,0 +1,31 @@
|
||||
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"})
|
||||
@@ -0,0 +1,26 @@
|
||||
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"})
|
||||
@@ -0,0 +1,65 @@
|
||||
import sys; sys.path.insert(0, '../../b5tools'); from rec import upsert; from snd import snd
|
||||
ROCK = {"art": {"anm2": "gfx/effects/rock_explosion/rock_explosion.anm2", "animation": "Break", "scale": 1, "offset_y": 0},
|
||||
"period": 3, "radius": 14, "enemy_damage": 2, "player_damage": 0.5, "friendly": False,
|
||||
"wave": {"spacing": 30, "period": 3, "breaking": True}}
|
||||
MOVE = ["MoveLeft", "MoveRight", "MoveDown", "MoveUp"]
|
||||
upsert({"key": "visage_plasma", "name": "Visage Plasma", "flash_id": 90302000, "hp": 50, "mass": 30, "radius": 10, "contact_damage": 1,
|
||||
"gibs": {"count": 0}, "grid_collision": False, "boss_bar": {"eligibility": "never"},
|
||||
"death_link": {"target_type": "the_visage", "animation": "Idle", "all": True},
|
||||
"behavior": {"kind": "scripted", "move": "orbit", "flying": True, "speed": 0.5, "retention": 0.75, "idle_pose": "Idle",
|
||||
"orbit": {"radius": 70, "spin": 0.05, "ring": 6, "center": "group", "target_type": "the_visage"},
|
||||
"attacks": [{"animation": "Idle", "period": 30, "one_in": 3, "release": "Start", "shots": [{"shot": "aimed", "speed": 7}]}]},
|
||||
"death_burst": {"sounds": ["death_burst_small_0.mp3", "death_burst_small_1.mp3", "death_burst_small_2.mp3"]},
|
||||
"art": "gfx/monsters/visage_plasma/visage_plasma.anm2"})
|
||||
upsert({"key": "visage_mask", "name": "Visage Mask", "flash_id": 90300100, "hp": 100, "mass": 30, "radius": 20, "contact_damage": 1,
|
||||
"door_lock": "never", "gibs": {"count": 0}, "boss_bar": {"eligibility": "never"},
|
||||
"death_link": {"target_type": "the_visage", "animation": "Appear", "all": True},
|
||||
"behavior": {"kind": "scripted", "move": "path", "speed": 0.35, "retention": 1, "idle_pose": "MoveDown", "facing": {"poses": MOVE},
|
||||
"spawn_clip": {"animation": "Appear"},
|
||||
"attacks": [
|
||||
# Lined up with Isaac: a charge along his row or column, crashing into a wall.
|
||||
{"animation": "ChargeBeginDown", "period": 1, "one_in": 8, "line": {"axis": "row", "within": 30},
|
||||
"directional_poses": ["ChargeBeginLeft", "ChargeBeginDown", "ChargeBeginUp", "ChargeBeginRight"], "next": 1},
|
||||
{"animation": "ChargeLoopDown", "rolled": False, "charge_speed": 10, "on_wall": "end", "repeat": {"limit": 50},
|
||||
"directional_poses": ["ChargeLoopLeft", "ChargeLoopDown", "ChargeLoopUp", "ChargeLoopRight"], "retention": 1,
|
||||
"sounds": [snd(0x130, "Start")], "next": 2},
|
||||
{"animation": "ChargeHitDown", "rolled": False,
|
||||
"directional_poses": ["ChargeHitLeft", "ChargeHitDown", "ChargeHitUp", "ChargeHitRight"],
|
||||
"sounds": [snd(0x34, "Start")], "cooldown": 30},
|
||||
{"animation": "ChargeBeginDown", "period": 1, "one_in": 8, "line": {"axis": "column", "within": 30},
|
||||
"directional_poses": ["ChargeBeginLeft", "ChargeBeginDown", "ChargeBeginUp", "ChargeBeginRight"], "next": 1}]},
|
||||
"death": {"anm2": "gfx/effects/blood_explosion/blood_explosion.anm2", "animation": "Poof", "height": -20},
|
||||
"art": "gfx/bosses/visage_mask/visage_mask.anm2"})
|
||||
heart = [
|
||||
# Leaps (states 0x6c-0x6e): up and down onto Isaac, landing in four rock waves.
|
||||
{"animation": "JumpUp", "period": 1, "one_in": 40, "release": "Shoot", "untouchable": {"from": "Shoot", "to": "End"},
|
||||
"sounds": [snd(0x48, "Shoot")], "next": 1},
|
||||
{"animation": "JumpDown", "rolled": False, "release": "Shoot", "pounce": True,
|
||||
"effects": [{"effect": "bolts", "directions": "cardinal", "offset": 20, "bolt": ROCK}], "untouchable": {"from": "Start", "to": "Shoot"},
|
||||
"sounds": [snd(0x34, "Shoot")], "cooldown": 30},
|
||||
# Attack: a spread at Isaac.
|
||||
{"animation": "Attack", "period": 1, "one_in": 40, "release": "Shoot", "shots": [{"shot": "aimed", "count": 3, "speed": 9, "spread": 0.25}],
|
||||
"sounds": [snd(0xb2, "Shoot")], "cooldown": 30},
|
||||
]
|
||||
second = heart + [
|
||||
# 3-5 Attack3: plasma orbs out round her.
|
||||
{"animation": "Attack3", "period": 1, "one_in": 80, "release": "Shoot", "when": [{"type_count": {"type": 903, "below": 5}}],
|
||||
"spawn": ["visage_plasma"], "count": 3, "spawn_offset": 50, "sounds": [snd(0xd5, "Shoot")], "next": 4},
|
||||
{"animation": "Attack3Loop", "rolled": False, "loop": {"at": "Back", "to": "Start", "count": 2}, "next": 5},
|
||||
{"animation": "Attack3End", "rolled": False, "cooldown": 30},
|
||||
# 6 Attack4: a ring, then everything drawn in toward her.
|
||||
{"animation": "Attack4", "period": 1, "one_in": 120, "release": "Shoot", "shots": [{"shot": "ring", "count": 16, "speed": 7}],
|
||||
"aura": {"radius": 400, "push": -0.6, "from": "Break"}, "sounds": [snd(0x1d7, "Break"), snd(0x10b, "Shoot")], "cooldown": 60},
|
||||
]
|
||||
upsert({"key": "the_visage", "name": "The Visage", "flash_id": 90300000, "hp": 620, "mass": 30, "radius": 20, "contact_damage": 1,
|
||||
"gibs": {"large": True},
|
||||
"behavior": {"kind": "scripted", "move": "anchor", "retention": 0.8, "idle_pose": "Idle1", "spawn_clip": {"animation": "Appear"},
|
||||
# Chained and untouchable while her mask roams (the chain's 150 here the mask's 100).
|
||||
"partner": {"type": "visage_mask", "spawn": True, "shield": True, "offset": 0},
|
||||
"phases": [{"when": [{"partner": False}],
|
||||
"patch": {"move": "still", "idle_pose": "Idle2", "spawn_clip": {"animation": "Transition"},
|
||||
"attacks": heart}},
|
||||
{"when": [{"hp_share_below": 0.5}],
|
||||
"patch": {"idle_pose": "Idle3", "spawn_clip": {"animation": "Transition2"}, "attacks": second}}]},
|
||||
"death": {"animation": "Death"}, "death_burst": {"boss_sounds": ["rocket_blast_death_1.mp3"]},
|
||||
"art": "gfx/bosses/the_visage/the_visage.anm2"})
|
||||
Reference in new issue
Block a user