From e1da089600a1e28d04fcb75ae1b2dd339fd0534a Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Tue, 21 Oct 2025 00:46:16 -0400 Subject: [PATCH] Now the rat king screams. --- Makefile | 4 ++-- boss/ui.cpp | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ef52c74..dd046fb 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ tracy_build: meson compile -j 10 -C builddir test: - ./builddir/runtests -d yes "[coro]" + ./builddir/runtests -d yes run: build test ifeq '$(OS)' 'Windows_NT' @@ -60,7 +60,7 @@ clean: meson compile --clean -C builddir debug_test: build - gdb --nx -x .gdbinit --ex run --ex bt --ex q --args builddir/runtests -e "[coro]" + gdb --nx -x .gdbinit --ex run --ex bt --ex q --args builddir/runtests -e win_installer: powershell 'start "C:\Program Files (x86)\solicus\InstallForge\bin\ifbuilderenvx86.exe" scripts\win_installer.ifp' diff --git a/boss/ui.cpp b/boss/ui.cpp index 9ff863d..e2d6a17 100644 --- a/boss/ui.cpp +++ b/boss/ui.cpp @@ -160,6 +160,11 @@ namespace boss { } if($boss_anim.playing) { + if($boss_anim.current == 0) { + auto scream = $world->get($boss_id); + sound::play(scream.attack); + } + animation::apply($boss_anim, *$boss_sprite.sprite, $boss_pos); } }