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"})