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